Subversion Repositories ALCASAR

Rev

Rev 1836 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 1836 Rev 3173
Line 1... Line 1...
1
<?php
1
<?php
2
#
-
 
3
# Things should work even if register_globals is set to off
-
 
4
#
2
 
5
$testVer=intval(str_replace(".", "",'4.1.0'));
-
 
6
$curVer=intval(str_replace(".", "",phpversion()));
-
 
7
if( $curVer >= $testVer )
-
 
8
{
-
 
9
//	import_request_variables('GPC');
-
 
10
	extract($_GET);
3
extract($_GET);
11
	extract($_POST);
4
extract($_POST);
12
	extract($_COOKIE);
5
extract($_COOKIE);
13
}
-
 
14
foreach($_POST as $key => $value){
6
foreach($_POST as $key => $value){
15
	${$key} = $value;
7
	${$key} = $value;
16
}
8
}
17
# If using sessions set use_session to 1 to also cache the config file
9
# If using sessions set use_session to 1 to also cache the config file
18
#
10
#
Line 67... Line 59...
67
	}
59
	}
68
	if ($use_session){
60
	if ($use_session){
69
		session_register('config');
61
		session_register('config');
70
		session_register('nas_list');
62
		session_register('nas_list');
71
	}
63
	}
72
 
-
 
73
}
64
}
74
if ($use_session == 0 && $config['general_use_session'] == 'yes'){
65
if ($use_session == 0 && $config['general_use_session'] == 'yes'){
75
	// Start session
66
	// Start session
76
	@session_start();
67
	@session_start();
77
	if (isset($nas_list))
68
	if (isset($nas_list))
Line 116... Line 107...
116
		}
107
		}
117
	}
108
	}
118
	if ($config['general_use_session'] == 'yes')
109
	if ($config['general_use_session'] == 'yes')
119
		session_register('mappings');
110
		session_register('mappings');
120
}
111
}
121
 
-
 
122
//Include missing.php if needed
-
 
123
if (!function_exists('array_change_key_case'))
-
 
124
	include_once('../lib/missing.php');
-
 
125
@header('Content-type: text/html; charset='.$config['general_charset'].';');
112
@header('Content-type: text/html; charset='.$config['general_charset'].';');
126
?>
113
?>