Changeset 4200 for branches/2.2
- Timestamp:
- 05/04/11 09:43:23 (13 years ago)
- Location:
- branches/2.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/login.php
r3621 r4200 40 40 if(function_exists('CreateObject')) 41 41 { 42 //detect if the user has a compatible browser, if don't have send him to expresso mini 43 $browser = CreateObject('phpgwapi.browser'); 44 45 switch ($browser->get_platform()) { 46 case browser::PLATFORM_IPHONE: 47 case browser::PLATFORM_IPOD: 48 case browser::PLATFORM_IPAD: 49 case browser::PLATFORM_BLACKBERRY: 50 case browser::PLATFORM_NOKIA: 51 case browser::PLATFORM_ANDROID: 52 $GLOBALS['phpgw']->redirect_link('/mobile/'); 53 break; 54 default: 55 break; 42 if($_GET['dont_redirect_if_moble'] != 1) { 43 //detect if the user has a compatible browser, if don't have send him to expresso mini 44 $browser = CreateObject('phpgwapi.browser'); 45 46 switch ($browser->get_platform()) { 47 case browser::PLATFORM_IPHONE: 48 case browser::PLATFORM_IPOD: 49 case browser::PLATFORM_IPAD: 50 case browser::PLATFORM_BLACKBERRY: 51 case browser::PLATFORM_NOKIA: 52 case browser::PLATFORM_ANDROID: 53 $GLOBALS['phpgw']->redirect_link('/mobile/'); 54 break; 55 default: 56 break; 57 } 56 58 } 57 58 59 $GLOBALS['phpgw']->session = CreateObject('phpgwapi.sessions'); 59 60 } -
branches/2.2/mobile/templates/default/login.tpl
r4120 r4200 14 14 <link rel="icon" href="./templates/default/images/favicon.png" type="image/x-ico" /> 15 15 <meta name="apple-touch-fullscreen" content="YES" /> 16 16 17 <script type="text/javascript"> 17 18 … … 36 37 </script> 37 38 </head> 38 39 <body> 39 40 <body> 40 41 <div class="topo"> 41 42 <h1>{website_title} - {lang_login}</h1> 42 43 </div> 43 44 44 {message_box} 45 {message_box} 45 46 46 47 <form name="form_login" method="post" action="./login.php" id="login_form" autocomplete=off onSubmit="return validate_login(this);"> … … 62 63 63 64 <div class="rodape">Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</div> 65 <div class="rodape center"><a href="/login.php?dont_redirect_if_moble=1">Versão Clássica</a></div> 64 66 </body> 65 67 </html> -
branches/2.2/mobile/templates/default/pc_template.tpl
r3996 r4200 95 95 <p>Projeto ExpressoLivre 2004 - 2010 :: Licença de Software</p> 96 96 <p><a href="index.php?menuaction=mobile.ui_home.change_template&template=mini_mobile">{lang_mini_mobile}</a></p> 97 <p><a href="/index.php">Versão Clássica</a></p> 97 98 </div> 98 99 </body>
Note: See TracChangeset
for help on using the changeset viewer.