1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' smeserver-mimp-1.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp mezzanine_patched_smeserver-mimp-1.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp |
2 |
|
|
--- smeserver-mimp-1.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp 1969-12-31 18:00:00.000000000 -0600 |
3 |
|
|
+++ mezzanine_patched_smeserver-mimp-1.0/root/etc/e-smith/templates/home/httpd/html/horde/config/conf.php/999mimp 2006-07-19 20:34:33.000000000 -0500 |
4 |
|
|
@@ -0,0 +1,24 @@ |
5 |
|
|
+// 999mimp |
6 |
|
|
+{ |
7 |
|
|
+my $Mimp = $mimp{'status'} || "#Mimp login is currently not enabled. To enable - config set mimp service status enabled"; return "" |
8 |
|
|
+ unless ($Mimp eq "enabled"); |
9 |
|
|
+$OUT = '$conf[\'auth\'][\'params\'][\'drivers\'] = array( |
10 |
|
|
+ \'imp\' => array(\'driver\' => \'application\', |
11 |
|
|
+ \'params\' => array(\'app\' => \'imp\')), |
12 |
|
|
+ \'mimp\' => array(\'driver\' => \'application\', |
13 |
|
|
+ \'params\' => array(\'app\' => \'mimp\'))); |
14 |
|
|
+$conf[\'auth\'][\'params\'][\'loginscreen_switch\'] = \'_horde_select_loginscreen\'; |
15 |
|
|
+ |
16 |
|
|
+if (!function_exists(\'_horde_select_loginscreen\')) \{ |
17 |
|
|
+ function _horde_select_loginscreen() |
18 |
|
|
+ \{ |
19 |
|
|
+ require_once \'Horde/Browser.php\'; |
20 |
|
|
+ $browser = &new Browser(); |
21 |
|
|
+ if ($browser->isMobile()) \{ |
22 |
|
|
+ return \'mimp\'; |
23 |
|
|
+ \} |
24 |
|
|
+ return \'imp\'; |
25 |
|
|
+ \} |
26 |
|
|
+\}' |
27 |
|
|
+} |
28 |
|
|
+ |