Location: PHPKode > projects > MM5 User Interface > mui_pack/mui/cgi/run.php
<?
system("/mm5/shells/checker.bash mm5.bash",$retval);
if($retval != 0) 
	die('');
include("mm5_p2.tpl");

$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);

Terrain($user);
Pregrid($user);
Regridder($user);
//Little_R($user);
Interpf($user);
Mm5($user);
Config_User($user);
Rip($user);

$tik=split(",",$line);
$div=floor($tik[4]/$tik[8])+1;
$start=split("[/.-]",$tik[0]);
print $head;
print "<h1 align=\"center\">MM5 is running...</h1>";
print "<h3 align=\"center\">please wait</h3>";

system("/loc/mm5/shells/mm5.bash $div $tik[8] $start[2] $start[1] $start[0] $user");
?>
Return current item: MM5 User Interface