20000000) $id -= 20000000; $ordate = pg_escape_string ($ordate); $ornumber = pg_escape_string ($ornumber); $ortimestamp = pg_escape_string ($ortimestamp); $sql = "select * from charges where account_number -20000000 = '$id' and reference_number = '$ornumber' /* and (substring((date_time::time)::text,0,9) = '$ortimestamp' OR substring(((date_time - '00:00:01'::time)::time)::text,0,9) = '$ortimestamp' ) and date_time::date = '$ordate' */ and trans_id > 0 and abs(amount) >= 10;"; // echo $sql; syslog (6, "/personal/changepassrcp.php -> $sql"); $res = dbexec ($sql, "aolis"); if (pg_numrows ($res) > 0) { $authed = 1; syslog (6, "/aolis/personal/changepassrcp.php authed"); } /* gragols code below! hehe */ if (!$authed) { // test if all digits $passda = chop ($passda); for ($i = 0; $i < strlen ($passda); $i++) { if (!strchr ("0123456789", $passda[$i])) { $continue = 0; } } } if (!$continue) { echo "Only DIGITS, or characters \"0\"-\"9\" are allowed for passdigits. There must be exactly 6 digits only."; } else { if ($authed) { if ($passda != $passdb) { echo "Passwords don't match.
"; } elseif (changepassword ($id, $passda)) { echo "Successfully changed AOLIS Password for $id.
"; echo "

Login

"; } else { echo "Error occured.
"; } } else { echo "Password was not set, Official Receipt details did not match our records. (Only receipts with Account Numbers starting with 22 works).
Please try again..."; // echo $sql; } } } else { ?>


Do-It-Yourself Password Set / Change Utility

You can set your AOLIS password, without going to AOLIS office
if you have an Official Receipt amount of 200 pesos up.
The Official Receipt must have all the information below,
and it should be credited to your account number (starting with 22).
Make sure the data is accurate including dashes and colons.
 example 
Student ID Number2123456
Official Receipt Number654532 (upper right, upper left)
Official Receipt Timestamp17:22:59 (upper left, first six digits only)
Official Receipt Date2008-10-08 (lower left)
New 6-digit PIN123456 (digits only)
retype new PIN123456 (number only)

 
 
Don't have Official Receipt?

 
Login "; //$prof->printTimers(true); ?>