6 |
* Author: Monte Ohrt <monte@ispi.net> |
* Author: Monte Ohrt <monte@ispi.net> |
7 |
* Andrei Zmievski <andrei@php.net> |
* Andrei Zmievski <andrei@php.net> |
8 |
* |
* |
9 |
* Version: 2.3.0 |
* Version: 2.3.1 |
10 |
* Copyright: 2001,2002 ispi of Lincoln, Inc. |
* Copyright: 2001,2002 ispi of Lincoln, Inc. |
11 |
* |
* |
12 |
* This library is free software; you can redistribute it and/or |
* This library is free software; you can redistribute it and/or |
1297 |
|
|
1298 |
case 'get': |
case 'get': |
1299 |
array_shift($indexes); |
array_shift($indexes); |
1300 |
$name = substr($indexes[0], 1); |
$compiled_ref = "\$GLOBALS['HTTP_GET_VARS']"; |
1301 |
$compiled_ref = "\$GLOBALS['HTTP_GET_VARS']['$name']"; |
if ($name = substr($indexes[0], 1)) |
1302 |
|
$compiled_ref .= "['$name']"; |
1303 |
break; |
break; |
1304 |
|
|
1305 |
case 'post': |
case 'post': |
1306 |
array_shift($indexes); |
array_shift($indexes); |
1307 |
$name = substr($indexes[0], 1); |
$name = substr($indexes[0], 1); |
1308 |
$compiled_ref = "\$GLOBALS['HTTP_POST_VARS']['$name']"; |
$compiled_ref = "\$GLOBALS['HTTP_POST_VARS']"; |
1309 |
|
if ($name = substr($indexes[0], 1)) |
1310 |
|
$compiled_ref .= "['$name']"; |
1311 |
break; |
break; |
1312 |
|
|
1313 |
case 'cookies': |
case 'cookies': |
1314 |
array_shift($indexes); |
array_shift($indexes); |
1315 |
$name = substr($indexes[0], 1); |
$name = substr($indexes[0], 1); |
1316 |
$compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']['$name']"; |
$compiled_ref = "\$GLOBALS['HTTP_COOKIE_VARS']"; |
1317 |
|
if ($name = substr($indexes[0], 1)) |
1318 |
|
$compiled_ref .= "['$name']"; |
1319 |
break; |
break; |
1320 |
|
|
1321 |
case 'env': |
case 'env': |
1322 |
array_shift($indexes); |
array_shift($indexes); |
1323 |
$name = substr($indexes[0], 1); |
$compiled_ref = "\$GLOBALS['HTTP_ENV_VARS']"; |
1324 |
$compiled_ref = "\$GLOBALS['HTTP_ENV_VARS']['$name']"; |
if ($name = substr($indexes[0], 1)) |
1325 |
|
$compiled_ref .= "['$name']"; |
1326 |
break; |
break; |
1327 |
|
|
1328 |
case 'server': |
case 'server': |
1329 |
array_shift($indexes); |
array_shift($indexes); |
1330 |
$name = substr($indexes[0], 1); |
$name = substr($indexes[0], 1); |
1331 |
$compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']['$name']"; |
$compiled_ref = "\$GLOBALS['HTTP_SERVER_VARS']"; |
1332 |
|
if ($name = substr($indexes[0], 1)) |
1333 |
|
$compiled_ref .= "['$name']"; |
1334 |
break; |
break; |
1335 |
|
|
1336 |
case 'session': |
case 'session': |
1337 |
array_shift($indexes); |
array_shift($indexes); |
1338 |
$name = substr($indexes[0], 1); |
$name = substr($indexes[0], 1); |
1339 |
$compiled_ref = "\$GLOBALS['HTTP_SESSION_VARS']['$name']"; |
$compiled_ref = "\$GLOBALS['HTTP_SESSION_VARS']"; |
1340 |
|
if ($name = substr($indexes[0], 1)) |
1341 |
|
$compiled_ref .= "['$name']"; |
1342 |
break; |
break; |
1343 |
|
|
1344 |
/* |
/* |