[Openfirst-cvscommit] feedback/admin index.php,1.7,1.8
Brought to you by:
xtimg
From: <xt...@us...> - 2003-09-28 13:34:46
|
Update of /cvsroot/openfirst/feedback/admin In directory sc8-pr-cvs1:/tmp/cvs-serv6937/admin Modified Files: index.php Log Message: Make indenting proper again, convert ISSET to isset (again) and make signature occur after a proper amount of spacing from the main filler message Index: index.php =================================================================== RCS file: /cvsroot/openfirst/feedback/admin/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 26 Sep 2003 03:30:45 -0000 1.7 --- index.php 28 Sep 2003 13:34:35 -0000 1.8 *************** *** 33,47 **** // Delete current users, as they will all be replaced with new users. if(isset($_POST['feedbackusers'])){ ! $query = ofirst_dbquery("DELETE FROM ofirst_feedbackusers;"); ! $line = explode("\n", $_POST["feedbackusers"]); ! foreach ($line as $lin) { ! $fname = trim(substr($lin, strpos($lin, " ") - strlen($lin))); ! $femail = trim(substr($lin, 0, strpos($lin, " "))); // Create the new users for the feedback list $query = ofirst_dbquery("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');") or die(mysql_error()); ! } ! echo("<p><br>The feedback users have been modified as per your request. [ <a href='index.php'>Manage</a> ]<br></p>"); ! die(include($footer)); ! } } --- 33,47 ---- // Delete current users, as they will all be replaced with new users. if(isset($_POST['feedbackusers'])){ ! $query = ofirst_dbquery("DELETE FROM ofirst_feedbackusers;"); ! $line = explode("\n", $_POST["feedbackusers"]); ! foreach ($line as $lin) { ! $fname = trim(substr($lin, strpos($lin, " ") - strlen($lin))); ! $femail = trim(substr($lin, 0, strpos($lin, " "))); // Create the new users for the feedback list $query = ofirst_dbquery("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');") or die(mysql_error()); ! } ! echo("<p><br>The feedback users have been modified as per your request. [ <a href='index.php'>Manage</a> ]<br></p>"); ! die(include($footer)); ! } } |