Return to your page

Eco-$mart Web Site Administration

WEB FEED USERS [ HELP ]   [ WEB FEEDS ]   [ Your Page ]
Log in to view this page."); exit(); } $dbcnx = @mysql_connect('mysql.plainhost.com', 'ecosmar_ecosmart', 'ecoman1'); $act=$_GET['act']; $outsure=$_GET['outsure']; $outusr=$_GET['outusr']; $ID=$_GET['ID']; $insert = $_GET['insert']; $newusrn= $_GET['newusrn']; $newsword = $_GET['newsword']; if($insert == "yes"){ if($newusrn!="" AND $newusrn!="New User Name" AND $newsword!="" AND $newsword!="New Password"){ mysql_select_db('ecosmar_website', $dbcnx); $uppit=mysql_query("INSERT INTO feedusr SET usrn='$newusrn',sword='$newsword'"); if(!$uppit){ $airs[]="Could not insert new Web Feed User. Error: ".mysql_error(); }//uppit error }//newusername and new sword are present else{ $mess="

Could not Add New User. Not enough info.

"; }//newusername and new sword are wrong either blank or not changed. }//insert is yes if($act=="out"){ if($outsure!="yes"){ echo("

" . "Are you sure?
Delete $outusr from Webfeed Users?" . "
YES

"); exit(); }else{ $outit=mysql_query("DELETE FROM feedusr WHERE ID='$ID' LIMIT 1"); if(!$outit){ $airs[]="Could not Delete Webfeed User. Error: ".mysql_error(); }else{ $mess="

User Deleted

"; } }//outsure is yes }//act is out mysql_select_db('ecosmar_website', $dbcnx); $getusr=mysql_query("SELECT ID,usrn,sword FROM feedusr ORDER BY usrn"); if(!$getusr){ $airs[]="Could not get User list. Error: ".mysql_error(); }else{ while($row=mysql_fetch_array($getusr)){ $IDs[]=$row[0]; $usrns[]=$row[1]; $swords[]=$row[2]; }//while fetching }//gotusrs ?>
"); }else{ $i=0; while($i<$countem){ echo(""); $i=$i+1; }//while counting down IDs }//there are IDs ?>
  Username Password
No Users in Data Base
" . "" . "DELETE WEB FEED USER" . "" . "$usrns[$i]" . "" . "$swords[$i]" . "
©2011 Eco-$mart, Inc. [ Return to your page ]  
HELP

Create a New Web Feed User by entering a New User Name and New Password into the text fields in the top row of the Web Feed Users List and clicking the green button to the left of the row.

User Names and Passwords can be any set of letters or numbers less than 60 characters long. Do not use symbols.

DELETE a Web Feed User by clicking the Red Button to the left of the row it is on.

TOP

"); }//4each }//airs is not empty if($mess!=""){ echo("
" . "$mess
"); }//message is not empty ?>