studentname = ""; $this->password = ""; } } class TRVU_Assignment { var $status; var $hits; var $attempts; } 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"])); if ($userdata->studentname == "") {$error = "You are not authorized to view this page (TRV 303). "; include("/usr/sites/www.trvuniversity.com/error.html"); exit(0);} $myDB = new mysqlDB; $myDB->Connect("trvuniversity"); $studentID = getStudentID($userdata->studentname, $userdata->password); //1. are they enrolled in this course, and are they ok to view it? $myDB->Query("SELECT status, cstatus, UNIX_TIMESTAMP(enrolldate) AS enrolldate, UNIX_TIMESTAMP(expirydate) AS expirydate, UNIX_TIMESTAMP(completed) AS completed FROM training WHERE studentID = $studentID AND courseID = 303"); $row = $myDB->GetRow(); if ($row == false) {$error = "You are not authorized to view this page (TRV 303). "; include("/usr/sites/www.trvuniversity.com/error.html"); exit(0);} switch ($row["status"]) { case 0: switch ($row["cstatus"]) { case 0: break; //OK case 1: break; //course completed case 2: $error = "You are not authorized to view this page (TRV 303). Error: Course Dropped"; break; case 3: $error = "You are not authorized to view this page (TRV 303). Error: Unknown"; break; case 4: break; //trial user (OK for week 1) } break; case 1: $error = "You are not authorized to view this page (TRV 303). Error: Authorization Needed"; break; case 2: $error = "You are not authorized to view this page (TRV 303). Error: Course Expired"; break; case 3: $error = "You are not authorized to view this page (TRV 303). Error: Administrative Hold"; break; case 4: $error = "You are not authorized to view this page (TRV 303). Error: Usage Exceeded"; break; } if ($error != "") {include("/usr/sites/www.trvuniversity.com/error.html"); exit(0);} $now = time(); $timein = ceil(($now - $row["enrolldate"]) / 86400); $timeout = ceil(($row["expirydate"] - $now) / 86400); $completed = $row["completed"]; //2. get their assignment list $myDB->Query("SELECT * FROM assignments WHERE studentID = $studentID AND courseID = 303 ORDER BY weekID, objectiveID ASC"); $asns = array(); while ($row = $myDB->GetRow()) { $asns[$row["weekID"]][$row["objectiveID"]] = new TRVU_Assignment; $asns[$row["weekID"]][$row["objectiveID"]]->status = $row["status"]; $asns[$row["weekID"]][$row["objectiveID"]]->hits = $row["hits"]; $asns[$row["weekID"]][$row["objectiveID"]]->attempts = $row["attempts"]; } //3. get their name $myDB->Query("SELECT firstname, lastname FROM personal WHERE studentID = $studentID"); $row = $myDB->GetRow(); $name = $row["firstname"]; ?> Technical Remote Viewing University: Remote Viewing Training Online
Quick Jump To Building:
Campus Overview Lecture Hall Administration
Laboratory Student Commons Auditorium
Library Bookstore Dormatories
Today is .
You are currently in: Lecture Hall - TRV 303
|  Enroll  |  Student Login  |  Training Forums  |  Live Chat  |  Student Account  |  Training Targets  |  News  |  Links  
TRV University Courses
Welcome to TRV University!

TRVU is the premiere training resource for remote viewing instruction.

TRV University Lecture Hall: TRV 303
Welcome back, !

   To continue your training, select the from the weeks below. Note that you cannot select a week until you have completed all previous weeks before it.

   Weeks you have finished will be marked as "Completed". Weeks you are still working on are marked "Current Week".

status == 0):?>
Week 1: Winning at Gambling. Week 1: Winning at Gambling. status == 0) echo ""; else echo ""; } ?>
   In Winning at Gambling, you'll learn how to apply TRV Advanced level skills to determine outcomes of common games of chance, such as horse races, slot machines, and sports games. This is a subject that always arises when people realize how real this technology is, and that it is a tool that can be used to forsee future events.



";?>

All contents ©PSI TECH, Inc. All Rights Reserved. Contact webmaster@trvuniversity.com with questions or comments.