Help about myIntranet
Description
myIntranet gives your users mobile access to the latest news about your company.
myIntranet is very flexible: you could configure your personal intranet with different module like web access, address book, …
For some services, myIntranet could even run offline (e.g. address book)
myIntranet only uses open standard well-known like vcf, web, rss, … So, you could do the server part yourself very easily.
Setting up myIntranet for your company is a snap!
Installation
Main configuration file
When you start myIntranet, you have to enter a URL.
It’s the URL of the root of your website.
On this website, you have to create a file myintranet.xml.
This file describes all services that will be available for your users.
Scripting
If you want you use php or any other scritping software on your website, as myIntranet need to open the file myintranet.xml, you have to create a .htaccess on your webserver.
.htaccess |
RewriteEngine On RewriteBase / RewriteRule ^myintranet\.xml$ myintranet.php |
---|
Authentication
myIntranet supports authentication if needed via HTTP Authentication.
php authentication |
<?php function loginIsValid($username, $password) { return 1; } function Auth() { header('WWW-Authenticate: Basic realm="Test Authentication System"'); header("HTTP/1.0 401 Unauthorized"); exit; } // Handle php-cgi if (isset($_SERVER["HTTP_AUTHORIZATION"])) { list($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"]) = explode(":" , base64_decode(substr($_SERVER["HTTP_AUTHORIZATION"], 6))); } // Handle authentication if (!isset($_SERVER["PHP_AUTH_USER"]) || !isset($_SERVER["PHP_AUTH_USER"])) { Auth(); } // Do the username / password check if (!loginIsValid($_SERVER["PHP_AUTH_USER"], $_SERVER["PHP_AUTH_PW"])) { Auth(); } // Create myintranet.xml file for $_SERVER['PHP_AUTH_USER'] echo '<config><services>'; echo '<service title="Home site" type="web"><url>http://www.kyuran.be</url></service>'; echo '</services></config>'; ?> |
---|
Caching
myIntranet support caching of file and recommand it to save bandwith.
In php, you could using something like this:
php caching |
// Fill the $ts variable with the last-modification date $gmt_mtime = gmdate("D, d M Y H:i:s",$row["ts"]); if ((isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) && ($_SERVER['HTTP_IF_MODIFIED_SINCE'] == $gmt_mtime)) { header('HTTP/1.1 304 Not Modified'); exit(); } header("Last-Modified: " . $gmt_mtime); |
---|
Sample file
XML |
<config> <services> <service title="izApps my" type="web" image="icon-settings.png"> <url>http://kalih-2.local/izapps.mobi</url> </service> <service title="iPortal" type="web" image="/images/myintranet/yacc2.png"> <url>http://172.16.244.233</url> </service> <service title="Contact" type="contact" image="/images/myintranet/yacc2.png"> <url>http://www.kyuran.be/export/vcard_all.php</url> </service> </services> </config> |
---|
All Services
Default
Each service is described with these parameterstype is mandatory and is the type of the service. Sample |
|
Sample |
<service title="title" type="type" image="image"> </service> |
Service contact
This service allow you to display all the contact in your intranet address book.
Parametersurl: the URL of the vcard file. Sample |
|
Sample |
<service title="Kyuran Address Book" type="contact"> <url>http://www.kyuran.be/export/vcard_all.php</url> </service> |
.vcf sample file
BEGIN:VCARD VERSION:3.0 N:Oribi;John;;; FN:John Oribi ORG:Google; EMAIL;type=INTERNET;type=WORK;type=pref:john.oribi@google.com TEL;type=CELL;type=WORK;type=pref:+36412753198 CATEGORIES:card END:VCARD BEGIN:VCARD VERSION:3.0 N:Agnassons;Tom;;; FN:Tom Agnassons ORG:St. John Hospital; EMAIL;type=INTERNET;type=WORK;type=pref:tom.agnassons@yahoo.com TEL;type=CELL;type=VOICE;type=pref:+3341274718 PHOTO;ENCODING=b;TYPE=JPEG:/9j/4AAQSkZJRgABAQAAAQABAAD/4hnESUNDX1BST0ZJTEUA 468Gt8XvCms+E7rxGIb3SjcKqG5RmVWVtjfJKu9N8DbZU3rvVdy17X+zp+1F46/wCCe+jaL4c8 c/CnW7ibw144vPFDzXEz2cd28mmT6U1sjeRKvyvL5vmq7btu3b826vLPF/xc1z4k/B34M+AL/w AM3ujf8K3udTZNTuJH2X5vrxbr7jxL5XleVt+827/Z+7X7BgquIw1eNOEI+xfp/mfxpjcPSnTq yrTqe3u+/lbzv21P/9k= CATEGORIES:card END:VCARD
|
Service mail
This service allow you to send a email.
Parametersto: the default recipients of the email body: the default message of the email subject: the default subject of the email Sample |
|
Sample |
<service title="Contact" type="mail"> <to>contact@kyuran.be<to> </service> |
Service map
This service allow you to display a map.
Parametersaddress: the address to display Sample |
|
Sample |
<service title="HQ" type="map"> <address>Belgique, Ath, Rue du berger David, 10<address> </service> |
Service kdb
This service allow you to display a web page like your intranet page or any other page.
Parametersurl: the URL of the kdb database file Sample |
|
Sample |
<service title="Kyuran" type="web" image="/images/myintranet/kyuran.png"> <url>http://www.kyuran.be</url> </service> |
Service pdf
This service allow you to display a pdf.
Parametersurl: url of the file to display Sample |
|
Sample |
<service title="Documentation" type="pdf"> <url>http://www.kyuran.be/doc.pdf<url> </service> |
Service rss
This service allow you to display a web page like your intranet page or any other page.
Parametersurl: the URL of the website Sample |
|
Sample |
<service title="Kyuran" type="web" image="/images/myintranet/kyuran.png"> <url>http://www.kyuran.be</url> </service> |
Service setup
This service allow you to display the configuration page of myIntranet. This page is added automatically by myIntranet
Parametersnone |
Service web
This service allow you to display a web page like your intranet page or any other page.
Parametersurl: the URL of the website Sample |
|
Sample |
<service title="Kyuran" type="web" image="/images/myintranet/kyuran.png"> <url>http://www.kyuran.be</url> </service> |
[app 529301226]