Update of /cvsroot/openfirst/feedback/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv3985
Modified Files:
index.php
Log Message:
Fixed some minor things.
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/feedback/admin/index.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** index.php 13 Sep 2003 15:35:59 -0000 1.6
--- index.php 26 Sep 2003 03:30:45 -0000 1.7
***************
*** 31,38 ****
if(isset($_POST["feedbackusers"])) {
! echo("<p><br>The feedback users have been modified as per your request. [ <a href='index.php'>Manage</a> ]<br></p>");
! die(include($footer));
!
! // Delete current users, as they will all be replaced with new users.
$query = ofirst_dbquery("DELETE FROM ofirst_feedbackusers;");
$line = explode("\n", $_POST["feedbackusers"]);
--- 31,36 ----
if(isset($_POST["feedbackusers"])) {
! // 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"]);
***************
*** 40,48 ****
$fname = trim(substr($lin, strpos($lin, " ") - strlen($lin)));
$femail = trim(substr($lin, 0, strpos($lin, " ")));
- if(trim($fname) != "" && trim($femail) != "") {
// Create the new users for the feedback list
! $query = ofirst_dbquery("INSERT INTO ofirst_feedbackusers (name, email) VALUES ('$fname', '$femail');");
! }
! }
}
--- 38,47 ----
$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));
! }
}
|