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 301). "; 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 = 301"); $row = $myDB->GetRow(); if ($row == false) {$error = "You are not authorized to view this page (TRV 301). "; 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 301). Error: Course Dropped"; break; case 3: $error = "You are not authorized to view this page (TRV 301). 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 301). Error: Authorization Needed"; break; case 2: $error = "You are not authorized to view this page (TRV 301). Error: Course Expired"; break; case 3: $error = "You are not authorized to view this page (TRV 301). Error: Administrative Hold"; break; case 4: $error = "You are not authorized to view this page (TRV 301). 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 = 301 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 301
|  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 301
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: Optimum Trajectories. Week 1: Optimum Trajectories. status == 0) echo ""; else echo ""; } ?>
   In Optimum Trajectories, you'll learn how to discover your personal Optimum Trajectory - which is your optimal path in life. Optimum Trajectories show us the direction that will enable us to be the most fulfilled - and the happiest.



";?>

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