Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/members/saaceadmin/
Upload File :
Current File : /var/www/cesa.co.za/members/saaceadmin/null.phtml

<?php
include('../inc/conf.inc');
include('../inc/db.inc');

switch($action) {
case 1  :
		$sql = "UPDATE user_login SET registered='$registered' WHERE id = $id";
		$result = mysql_query($sql) or die('Could not complete reset.');

default :
		$sql = "SELECT * FROM user_login WHERE registered=''";

		$result=mysql_query($sql);
		$num_rows = mysql_num_rows($result);
		if($num_rows > 0){
			echo "<table width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\">\n";
			while ($row=mysql_fetch_array($result)) {
				$aid=$row["id"];
				$ausername=$row["username"];
				$alastlogin=$row["lastlogin"];
				$alastupdate=$row["lastupdate"];
				echo "<tr>\n<td valign=\"top\">$aid</td>\n<td valign=\"top\">$ausername</td>\n<td valign=\"top\">$alastlogin</td>\n<td valign=\"top\">$alastupdate</td>\n<td valign=\"top\">\n";
				echo "<form method=\"get\" action=\"$PHP_SELF\">\n";
				echo "<select name=\"registered\">\n";
				echo "<option value=\"$alastupdate\">$alastupdate\n";
				echo "</select>\n";
				echo "<input type=\"hidden\" name=\"id\" value=\"$aid\">\n";
				echo "<input type=\"hidden\" name=\"action\" value=\"1\">\n";
				echo "</td>\n";
				echo "<td valign=\"top\"><input type=\"submit\" value=\"reset\"></form></td></tr>\n";
			} //end while
			echo "</table>\n";
		} //end if
		else
		{
			echo "Nothing Found<br>";
			echo "<a href=\"/saaceadmin/\">>Back to SAACEAdmin</a>";
		}
} //end switch
?>