Viewing File server/web/firstrun.php of 0.02.11a
|
1: <?php 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 "<b>Error:</b> This script is not correctly named. In order to run it please rename "".$script."" to "firstrun.php"."; 14: echo "<br><br>"; 15: exit(); 16: } 17: if (isset($_REQUEST['stage'])) $stage=$_REQUEST['stage']; 18: else $stage=0; 19: 20: echo "<h1>First Run Setup: Stage ".$stage."</h1>"; 21: 22: 23: ?>