Changeset 623 for trunk/mobile/index.php
- Timestamp:
- 01/26/09 14:47:04 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/index.php
r517 r623 4 4 $phpgw_info = array(); 5 5 $GLOBALS['sessionid'] = isset($_GET['sessionid']) ? $_GET['sessionid'] : @$_COOKIE['sessionid']; 6 6 7 if(!$GLOBALS['sessionid']) 7 { 8 /*if (($GLOBALS['phpgw_info']['server']['use_https'] == 2) && ($_SERVER['HTTPS'] != 'on')) 9 { 10 11 Header('Location: https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 12 exit; 13 } 14 else 15 {*/ 16 $location = 'Location: ' . $_SERVER['SCRIPT_URL'].'login.php'; 17 Header('Location: ' . $_SERVER['SCRIPT_URL'].'login.php'); 18 //Header('Location: ' . $_SERVER['SCRIPT_URL'].'login.php' . 19 // (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ? 20 // '?phpgw_forward='.urlencode('/index.php?'.$_SERVER['QUERY_STRING']):'')); 8 { 9 $location = 'Location: login.php'; 10 Header($location); 21 11 exit; 22 // Header('Location: login.php'.23 // (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING']) ?24 // '?phpgw_forward='.urlencode('/mobile/index.php?'.$_SERVER['QUERY_STRING']):''));25 // exit;26 //}27 12 } 28 13 … … 37 22 This is the menuaction driver for the multi-layered design 38 23 */ 24 39 25 if(isset($_GET['menuaction'])) 40 26 { … … 47 33 else 48 34 { 49 //$phpgw->log->message('W-BadmenuactionVariable, menuaction missing or corrupt: %1',$menuaction);50 //$phpgw->log->commit();51 35 $mobileapp = 'home'; 52 36 $invalid_data = True; 53 37 } 54 38 39 55 40 $GLOBALS['phpgw_info']['flags'] = array( 56 41 'noheader' => True, … … 62 47 include('../header.inc.php'); 63 48 include('./mobile_header.inc.php'); 64 49 65 50 if($mobileapp == 'home') 66 51 { 67 Header('Location: ' . $GLOBALS['phpgw']->link('/mobile/home.php'));52 start_prefered_app(); 68 53 } 69 54 70 55 $GLOBALS[$class] = CreateObject(sprintf('%s.%s','mobile',$class)); 71 56 $public_functions = $GLOBALS[$class]->public_functions; 72 57 if((is_array($GLOBALS[$class]->public_functions) && $GLOBALS[$class]->public_functions[$method]) && ! $invalid_data) 73 //if((is_array($public_functions) && $public_functions[$method]) && ! $invalid_data) 74 { 75 execmethod($_GET['menuaction']); 76 print_header(); 77 print_footer(); 58 { 59 $GLOBALS['phpgw_info']['mobiletemplate'] = CreateObject("mobile.mobiletemplate"); 60 $GLOBALS['phpgw_info']['mobiletemplate'] -> print_page($class,$method); 78 61 unset($mobileapp); 79 62 unset($class); 80 63 unset($method); 81 64 unset($invalid_data); 65 82 66 } 83 67 else … … 111 95 { 112 96 $GLOBALS['phpgw']->log->commit(); 113 } 114 $GLOBALS['phpgw']->redirect_link('/mobile/home.php');97 } 98 start_prefered_app(); 115 99 } 116 100
Note: See TracChangeset
for help on using the changeset viewer.