studentname = ""; $this->password = ""; } } function LoginStudent() { global $error, $HTTP_VARS, $userdata; //user wants to log in include "/usr/sites/shared_code/"; $userdata->studentname = $HTTP_VARS["username"]; $userdata->password = $HTTP_VARS["password"]; $myDB = new mysqlDB; $myDB->Connect("trvuniversity"); $query = "SELECT * FROM login WHERE username = '$userdata->studentname'"; $myDB->Query($query); $row = $myDB->GetRow(); if (!$row) { //silly user, you didn't give us a valid login name! $error = "The username name you entered could not be found. Please be sure you entered it correctly and try again."; return; } if ($row["password"] != $userdata->password) { //d'oh.. you naughty hacker! $error = "The password you provided does not match the one for this username."; return; } $myDB->Query("UPDATE login SET lastlogin = '" . Date("Y-m-d") . "' WHERE username = '$userdata->studentname'"); //handle some status errors switch ($row["status"]) { case 1: $error = "This account has not yet been activated. Please contact customer support for assistance."; return; break; case 2: $error = "This account has expired. Please contact customer support for assistance."; return; break; case 3: $error = "This account has been placed on administrative hold. Please contact customer support for assistance."; return; break; case 4: $error = "This account has exceeded its allowed usage. Please contact customer support for assistance."; return; break; } $myDB->Connect("vb_trvu"); $myDB->Query("SELECT userid FROM user WHERE username = '$userdata->studentname'"); $row = $myDB->GetRow(); $bbuserid = $row["userid"]; setcookie("trvudata", urlencode(serialize($userdata)), time()+60*60*24*365, "/", "", 0); setcookie("bbuserid", $bbuserid, time()+60*60*24*365, "/", "", 0); setcookie("bbpassword", md5($userdata->password), time()+60*60*24*365, "/", "", 0); include "entry.html"; exit(0); } if ($_POST) $HTTP_VARS = $_POST; else $HTTP_VARS = $_GET; $userdata = new TRVU_User; if ($_COOKIE["trvudata"]) $userdata = unserialize(urldecode($_COOKIE["trvudata"])); if ($userdata->username != "") { $userdata2 = new TRVU_User; $userdata2->studentname = $userdata->username; //trvu fix $userdata2->password = $userdata->pass; $userdata = $userdata2; } $error = ""; if ($HTTP_VARS["student_x"]) LoginStudent(); ?> 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: Login
|  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 Login
Welcome back to TRV University!

   Please enter your login details below. If you wish to enter as a guest, click the "Enter as Guest" button.

   If you have forgotten your login details, enter your Student Name and click the "Retrieve Password" button to have your password emailed to you, or contact for assistance.

Enter Your Login Details
   Student Name:  

Enter as a Guest
   If you are not a registered student, you can still visit TRV University and get an idea of what the facilities are like and take a look around. Videos and introductions to TRV are available also.

   To enter TRV University, click the button to the right.

Retrieve Your Password
   Student Name:  

All contents ©PSI TECH, Inc. All Rights Reserved. Contact with questions or comments.