Eco-$mart Web Site Administration
WEB FEED USERS | [ HELP ] [ WEB FEEDS ] [ Your Page ] |
$airs=array();
$dtnum=date(Ymd);
$dnum = date(Ymd) * 4;
$usrn = $_GET['usrn'];
$fr = $_GET['fr'];
if($fr != $dnum){
echo(">>>Please 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? 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 ?> |
©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. |