studentname = ""; $this->password = ""; $this->player = ""; $this->speed = ""; $this->mspeed = ""; } } function getStudentID($username, $pass) { $myDB = new mysqlDB; $myDB->Connect("trvuniversity"); $myDB->Query("SELECT studentID FROM login WHERE username = '$username' AND password = '$pass'"); $row = $myDB->GetRow(); return $row["studentID"]; } } $userdata = unserialize(urldecode($_COOKIE["trvudata"])); $myDB = new mysqlDB; $myDB->Connect("trvuniversity"); $studentID = getStudentID($userdata->studentname, $userdata->password); if ($_GET["act"] == "chaddr") { //change their address $query = "UPDATE personal SET firstname = '{$_GET["fname"]}', lastname = '{$_GET["lname"]}', address1 = '{$_GET["addr1"]}', address2 = '{$_GET["addr2"]}', city = '{$_GET["city"]}', state = '{$_GET["state"]}', zipcode = '{$_GET["zipcode"]}', country = '{$_GET["country"]}', telephone = '{$_GET["telephone"]}', email = '{$_GET["email"]}' WHERE studentID = $studentID"; $myDB->Query($query); //$notice = $query; } if ($_GET["act"] == "chpass") { //change their password if ($_GET["newpass"] == $_GET["newpass2"]) { if ($_GET["oldpass"] == $userdata->password) { $myDB->Query("UPDATE login SET password = '" . $_GET["newpass"] . "' WHERE studentID = $studentID"); $myDB->Connect("vb_trvu"); $salt = 'Xj-'; $myDB->Query("UPDATE user SET password = '" . MD5(MD5($_GET["newpass"]) . $salt) . "' WHERE username = '$userdata->studentname'"); $myDB->Connect("trvuniversity"); $userdata->password = $_GET["newpass"]; setcookie("trvudata", urlencode(serialize($userdata)), time()+60*60*24*365, "/", ".trvuniversity.com", 0); setcookie("bbuserid", $userdata->studentname, time()+60*60*24*365, "/", ".trvuniversity.com", 0); setcookie("bbpassword", md5($userdata->password), time()+60*60*24*365, "/", ".trvuniversity.com", 0); $notice = "Password updated successfully!"; } else $notice = "Error: The password you entered (old password) is incorrect."; } else $notice = "Error: The new passwords you entered do not match."; } $myDB->Query("SELECT UNIX_TIMESTAMP(creationdate) AS creationdate FROM login WHERE studentID = $studentID"); $row = $myDB->GetRow(); $studentsince = $row["creationdate"]; $myDB->Query("SELECT * FROM personal WHERE studentID = $studentID"); $row = $myDB->GetRow(); $fname = $row["firstname"]; $lname = $row["lastname"]; $addr1 = $row["address1"]; $addr2 = $row["address2"]; $city = $row["city"]; $state = $row["state"]; $zipcode = $row["zipcode"]; $country = $row["country"]; $telephone = $row["telephone"]; $email = $row["email"]; $myDB->Query("SELECT * FROM training WHERE studentID = $studentID ORDER BY courseID ASC"); ?> Technical Remote Viewing University: Remote Viewing Training Online
Quick Jump To Building:
Campus Overview Lecture Hall Administration
Laboratory Student Commons Auditorium
Library Bookstore Dormitories
Today is .
You are currently in: Administration - Student Account
|  Enroll  |  Student Login  |  Training Forums  |  Live Chat  |  Student Account  |  Training Targets  |  News  |  Links  
TRV University Overview
Welcome to TRV University!

TRVU is the premiere training resource for remote viewing instruction.

TRV University Administration - Student Account
$notice

";?>
Account Information
First Name:
Last Name:
Address:
 
City:
State:
ZIP/Postal Code: 
Country:
Daytime Phone:
Email:
Account Info
Student ID:
Student Name:studentname;?>
Student Since:

Change Password
Old Password:
New Password:
New Password (Confirm):

Class Information
GetRow()) { switch ($row["courseID"]) { case 1: echo "TRV 101 - Basic TRV Skills
"; break; case 2: echo "TRV 201 - Advanced TRV Skills
"; break; case 301: echo "TRV 301 - Optimum Trajectories
"; break; case 302: echo "TRV 302 - Finding Your Optimum Mate
"; break; case 303: echo "TRV 303 - Winning at Gambling
"; break; case 304: echo "TRV 304 - Solving Murders and Abductions
"; break; case 305: echo "TRV 305 - Find Missing Persons
"; break; case 306: echo "TRV 306 - Find Lost Objects
"; break; case 307: echo "TRV 307 - In Search Of UFO's and Other Anomalies
"; break; } echo "Started: " . $row["enrolldate"] . "   Expires: " . $row["expirydate"] . "
"; switch ($row["status"]) { case 0: echo "Status: OK
"; break; case 1: echo "Status: Authorization Needed
"; break; case 2: echo "Status: Expired
"; break; case 3: echo "Status: Administrative Hold
"; break; case 4: echo "Status: Usage Exceeded
"; break; } echo "Course - "; switch ($row["cstatus"]) { case 0: echo "In Progress
"; break; case 1: echo "Completed " . $row["completed"] . "
"; break; case 2: echo "Dropped
"; break; case 3: echo "Other
"; break; case 4: echo "Trial User
"; break; } echo "Extensions Granted: " . $row["extensions"]; echo "

"; } ?>

Click here to return to the Administration Building.
All contents ©PSI TECH, Inc. All Rights Reserved. Contact webmaster@trvuniversity.com with questions or comments.