[Openfirst-cvscommit] projects updatesetup.php,1.1,1.2
Brought to you by:
xtimg
From: <xt...@us...> - 2003-10-04 00:14:30
|
Update of /cvsroot/openfirst/projects In directory sc8-pr-cvs1:/tmp/cvs-serv3327 Modified Files: updatesetup.php Log Message: Fix syntax issues, incorrect header information, add clarification and fix minor typographical errors. Index: updatesetup.php =================================================================== RCS file: /cvsroot/openfirst/projects/updatesetup.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** updatesetup.php 3 Oct 2003 02:19:02 -0000 1.1 --- updatesetup.php 4 Oct 2003 00:14:24 -0000 1.2 *************** *** 1,5 **** <?php /* ! * openFIRST.projects - today.php * * Copyright (C) 2003, --- 1,5 ---- <?php /* ! * openFIRST.projects - updatesetup.php * * Copyright (C) 2003, *************** *** 38,60 **** if(isset($_POST['addtask'])){ ! ! $time = $_POST['when']; ! $when = $_POST['perform']; ! $script = $_POST['scriptlocation']; ! $engine = $_POST['engine']; ! if(isset($_POST['useoutput'])){ ! $output = "^>".getcwd()."\updatelog.txt"; ! }else{ ! $output = ""; } ! $command = "at $time /every:$when $engine -f $script $output"; ! system($command,$message); ! echo "<br><br><b>Command returned:</b> "; ! echo $message; ! } ?> --- 38,59 ---- if(isset($_POST['addtask'])){ ! $time = $_POST['when']; ! $when = $_POST['perform']; ! $script = $_POST['scriptlocation']; ! $engine = $_POST['engine']; ! if(isset($_POST['useoutput'])){ ! $output = "^>".getcwd()."\updatelog.txt"; ! } else { ! $output = ""; } ! $command = "at $time /every:$when $engine -f $script $output"; ! system($command,$message); ! echo "<br><br><b>Command returned:</b> "; ! echo $message; ! } ?> *************** *** 67,73 **** <tr> <td><p align="center"> ! <form method="POST" action="updatesetup.php"> ! <div align="center"> ! <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> --- 66,72 ---- <tr> <td><p align="center"> ! <form method="POST" action="updatesetup.php"> ! <div align="center"> ! <p>Confirm Update Script Location:<br> <input name="scriptlocation" type="text" id="scriptlocation" value="<?php echo getcwd()."\updates.php"; ?>" size="70"> <br> *************** *** 80,86 **** PHP engine, if they have installed it in a different location) </font> </p> ! </p> ! </div> ! <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: --- 79,84 ---- PHP engine, if they have installed it in a different location) </font> </p> ! </div> ! <p align="center"> <input name="useoutput" type="checkbox" id="useoutput" value="checkbox"> Record update schedule task for review.</p> <p align="center">Perform Task: *************** *** 105,112 **** </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer ! works by using the Microsoft Task Schedule Service. Itcombines the information you provide above and automatically creates and performs ! the (at) command in cmd. To view, edit, or remove this task you can ! use the schtasks command in cmd. To make sure this task will work you<br> must make sure the schedule service is on. Read more about this in the Microsoft<br> Help and Support option on your operating system.</font> <br> --- 103,110 ---- </form> <p align="left"><font size="2"><strong>Note:</strong> This update installer ! works by using the Microsoft Task Schedule Service. It combines the information you provide above and automatically creates and performs ! the (at) command in cmd.exe. To view, edit, or remove this task you can ! use the schtasks command in cmd.exe. To make sure this task will work you<br> must make sure the schedule service is on. Read more about this in the Microsoft<br> Help and Support option on your operating system.</font> <br> *************** *** 114,118 **** </p></td> </tr> ! <?php }else{ ?> <tr> <th>Unix Crontab Setup</th> --- 112,116 ---- </p></td> </tr> ! <?php } else { ?> <tr> <th>Unix Crontab Setup</th> *************** *** 122,128 **** </tr> </table> ! <?php } ?> ! <?php ! } ! include($footer); ?> --- 120,125 ---- </tr> </table> ! <?php } ! } ! include($footer); ?> |