[Openfirst-cvscommit] update system.php,1.7,1.8
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2004-11-19 18:19:54
|
Update of /cvsroot/openfirst/update In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26993 Modified Files: system.php Log Message: Make adding new machines work again, add removing of systems error. Index: system.php =================================================================== RCS file: /cvsroot/openfirst/update/system.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** system.php 19 Nov 2004 17:06:30 -0000 1.7 --- system.php 19 Nov 2004 18:19:44 -0000 1.8 *************** *** 16,27 **** echo "Setup New System"; $NewServer = True; ! } elseif(! isset($_REQUEST["id"])) { echo "<a href='system.php?new=new'>Create new system profile</a> or <p>"; ! echo "Please select the system to edit."; $sq = mysql_query("SELECT id, displayname FROM ofirst_systems WHERE owner='$user->id' ORDER BY displayname;"); while($s = mysql_fetch_object($sq)) { ! echo "<br><img src='network.png'> <a href='system.php?id=$s->id'>$s->displayname</a>"; } die(include_once($footer)); } else { --- 16,36 ---- echo "Setup New System"; $NewServer = True; ! } elseif(! isset($_REQUEST["id"]) && ! isset($_REQUEST["ftpusername"])) { echo "<a href='system.php?new=new'>Create new system profile</a> or <p>"; ! echo "Please select the system to edit. ! <br><table> ! <tr><th> </th><th>System Name ! <br><small>(click to edit)</small></th><th>Actions</th></tr>"; $sq = mysql_query("SELECT id, displayname FROM ofirst_systems WHERE owner='$user->id' ORDER BY displayname;"); while($s = mysql_fetch_object($sq)) { ! echo "<tr ! ><th> ! <img src='network.png'></th><td> ! <a href='system.php?id=$s->id'>$s->displayname</a></td><td> ! [ <a href=\"javascript: alert('Remove system functionality has not been added yet.');\">Remove System</a> ] ! </td></tr>"; } + echo "</table>"; die(include_once($footer)); } else { *************** *** 46,51 **** ftpserver, owner) ! VALUES ('" . $_REQUEST["admin"] ."', ! '" . $_REQUEST["display"] . "', '" . $_REQUEST["ftpuser"] . "', '" . $_REQUEST["ftppassword"] . "', '" . $_REQUEST["ftpserver"] . "', '$user->id');"); echo "System setup"; die(include_once($footer)); --- 55,59 ---- ftpserver, owner) ! VALUES ('" . $_REQUEST["email"] ."', '" . $_REQUEST["displayname"] . "', '" . $_REQUEST["ftpusername"] . "', '" . $_REQUEST["ftppassword"] . "', '" . $_REQUEST["ftpserver"] . "', '$user->id');"); echo "System setup"; die(include_once($footer)); |