Location: PHPKode > projects > WorkOrder TS > workorder-ts/setup_files/validate_config.php
<?PHP $inc_dir='../include/';$_IlJtQ=Null;define("ERROR_IMG","grfx/check_error.png");define('OK_IMG',"grfx/check_ok.png");define('WARNING_IMG',"grfx/check_warning.png");$_j6O6l=0;$_jtCoj=$inc_dir.'config-guest.inc.php';$_jtifi=$inc_dir.'config-user.inc.php';if( file_exists($_jtCoj) ) { $_IlJtQ.=$_jtCoj.' found. <img src="'.OK_IMG.'" width="22" height="11" />'."\n";} else { $_IlJtQ.='ERROR, '.$_jtCoj.' not found <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n";$_j6O6l=2;} if( file_exists($_jtifi) ) { $_IlJtQ.=$_jtifi.' found. <img src="'.OK_IMG.'" width="22" height="11" />'."\n";} else { $_IlJtQ.='ERROR, '.$_jtifi.' not found. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n";$_j6O6l=2;} switch ($_j6O6l) { case 0:$_IlJtQ='<span style="background-color: #33CC00;">' .'All Tests OK, please proceed with the installation. </span><img src="'.OK_IMG.'" width="22" height="11" />'."\n" .'<input type="button" name="button" value="Start Installation (click ONCE)" onClick="javascript:populateDB(this.value);"/>' ."\n".$_IlJtQ;break;case 1:$_IlJtQ='<span style="background-color: #FF9900;">' .'At least one Warning issued, please check the test warning below. </span><img src="'.WARNING_IMG.'" width="22" height="11" />'."\n" .'<input type="submit" name="btnSubmit" id="btnSubmit" value="Start Installation (click ONCE)" />'."\n".$_IlJtQ;break;case 2:$_IlJtQ='<span style="background-color: #FF0000;">' .'FATAL ERROR, installation will fail! Please correct the problem and retest. </span><img src="'.ERROR_IMG.'" width="22" height="11" />'."\n\n" .$_IlJtQ;break;} $_IlJtQ=nl2br($_IlJtQ);print_r($_IlJtQ);?>
Return current item: WorkOrder TS