File:
0.02.11a/server/web/firstrun.php (
View as Code)
1: 2: require("include.php");
3: $sn=$_SERVER['SCRIPT_NAME'];
4: $script="";
5: for ($a=strlen($sn)-1; $a>0; $a--)
6: {
7: $c=$sn[$a];
8: if ($c=="/") $a=-1;
9: else $script=$c.$script;
10: }
11: if ($script!="firstrun.php")
12: {
13: echo "Error: This script is not correctly named. In order to run it please rename "".$script."" to "firstrun.php".";
14: echo "
";
15: exit();
16: }
17: if (isset($_REQUEST['stage'])) $stage=$_REQUEST['stage'];
18: else $stage=0;
19:
20: echo "First Run Setup: Stage ".$stage."
";
21:
22:
23: ?>