Location: PHPKode > projects > MM5 User Interface > mui_pack/mui/cgi/advancedrun.php
<?php

system("/mm5/shells/checker.bash adv.bash",$retval);
if($retval != 0)
	die('');
require_once("mm5_p2.tpl");
print "<h1 align=\"center\">MM5 is running...</h1>";
print "<h3 align=\"center\">please wait</h3>";
system("/mm5/shells/avdfiles.bash $user");

$fp=fopen("/mm5/files/user_folders/$user/time.opt","r");
$line=fgets($fp,1024);
fclose($fp);
$tik=split(",",$line);
/*@correct dates and copy need files to /AVN/Tmp directory*/
Copy_Need_Files_To_TmpDir($tik[0],$tik[1],$tik[2],$tik[3],$tik[7]);
$line=Correct_Date($line);
/*@apply corrected dates to time.opt file*/
$fp=fopen("/mm5/files/user_folders/$user/time.opt","w");
fwrite($fp,$line);
fclose($fp);

Rip($user);
system("/mm5/shells/adv.bash $user $runname");
?>
Return current item: MM5 User Interface