Changeset 691 for trunk/index.php
- Timestamp:
- Mar 19, 2010, 9:46:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r690 r691 10 10 $_SERVER['QUERY_STRING'] = substr($_SERVER['REQUEST_URI'], strpos($_SERVER['REQUEST_URI'], '?') + 1); 11 11 else $_SERVER['QUERY_STRING'] = ''; 12 echo(phpinfo());12 //echo(phpinfo()); 13 13 14 14 if(count($QueryItems) > 0) … … 19 19 else die('Nenalezen soubor inc/config.php. Vytvořte jej z předlohy config.sample.php.'); 20 20 21 if(array_key_exists('RealmIndex', $_POST))22 {23 setcookie('RealmIndex', $_POST['RealmIndex']);24 $_COOKIE['RealmIndex'] = $_POST['RealmIndex'];25 }26 if(array_key_exists('RealmIndex', $_GET))27 {28 setcookie('RealmIndex', $_GET['RealmIndex']);29 $_COOKIE['RealmIndex'] = $_GET['RealmIndex'];30 }31 21 32 22 session_start(); … … 51 41 $html->Start(); 52 42 $_GET = $html->GetQueryStringArray(); 43 44 if(array_key_exists('RealmIndex', $_POST)) 45 { 46 setcookie('RealmIndex', $_POST['RealmIndex']); 47 $_COOKIE['RealmIndex'] = $_POST['RealmIndex']; 48 } 49 if(array_key_exists('RealmIndex', $_GET)) 50 { 51 setcookie('RealmIndex', $_GET['RealmIndex']); 52 $_COOKIE['RealmIndex'] = $_GET['RealmIndex']; 53 } 53 54 54 55 if(isset($_COOKIE['hof-random']) and $_COOKIE['hof-random'] == 'no') $num_headers = 1;
Note:
See TracChangeset
for help on using the changeset viewer.