File: 0.02.12a/server/web/firstrun.php (View as HTML)

  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 &quot;".$script."&quot; to &quot;firstrun.php&quot;.";
 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: ?>