Update of /cvsroot/openfirst/feedback/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv24128
Modified Files:
index.php
Log Message:
Fix spacing issues in feedback admin which were interfering with its proper operation.
Index: index.php
===================================================================
RCS file: /cvsroot/openfirst/feedback/admin/index.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** index.php 23 Aug 2003 20:13:19 -0000 1.4
--- index.php 1 Sep 2003 20:16:25 -0000 1.5
***************
*** 35,40 ****
$line = explode("\n", $_POST["feedbackusers"]);
foreach ($line as $lin) {
! $fname = (substr($lin, strpos($lin, " ") - strlen($lin)));
! $femail = substr($lin, 0, strpos($lin, " "));
if(trim($fname) != "" && trim($femail) != "") {
// Create the new users for the feedback list
--- 35,40 ----
$line = explode("\n", $_POST["feedbackusers"]);
foreach ($line as $lin) {
! $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
***************
*** 56,60 ****
echo("<textarea name='feedbackusers' rows='10' cols='50'>");
while($feedback = ofirst_dbfetch_object($query)){
! echo("$feedback->email$feedback->name\n");
}
} else {
--- 56,60 ----
echo("<textarea name='feedbackusers' rows='10' cols='50'>");
while($feedback = ofirst_dbfetch_object($query)){
! echo("$feedback->email $feedback->name\n");
}
} else {
|