# HG changeset patch # User Alex McMahon # Date 1276885410 0 # Node ID 7696ae981a3c53efdd86729ef19ceb6a0fb4284e # Parent 52aaf1a838bdc529b16482d99ba07b07466d8151 variables defined diff -r 52aaf1a838bd -r 7696ae981a3c HTMLrequester.html --- a/HTMLrequester.html Fri Jun 18 15:53:48 2010 +0000 +++ b/HTMLrequester.html Fri Jun 18 18:23:30 2010 +0000 @@ -1,8 +1,15 @@ - + + + + + N4C Summer 2010 Trial + + -
+

Sorry - you do not have access to this. Please return to the portal (portal) + diff -r 52aaf1a838bd -r 7696ae981a3c details.php --- a/details.php Fri Jun 18 15:53:48 2010 +0000 +++ b/details.php Fri Jun 18 18:23:30 2010 +0000 @@ -52,7 +52,8 @@ // $sid2 = '06D5VlLQTbM57LL7IBMW38yHkFpb1XVa'; $currSID2 = $sid2; } - + $view_mode == "public" + $view_order == "pend" $status = $_GET['alert']; $view_mode = $_GET['view_mode']; $view_order = $_GET['view_order']; @@ -264,11 +265,9 @@ else { -#$data = http_get('http://...') -#$response = http_get("'http://village.n4c.eu/portal:8080'. '/router_stage/' . $db_field['req_ID'] . '/' . remove_http($db_field['req_val'] . '?' . 'uid=' . $uid . '&' . 'sid1=' . $sid1 . '&' . 'sid2=' . $sid2"); -#print "View website"; +print "View website"; -print "View website"; +#print "View website"; #print "View website"; #print "View website"; diff -r 52aaf1a838bd -r 7696ae981a3c index.php --- a/index.php Fri Jun 18 15:53:48 2010 +0000 +++ b/index.php Fri Jun 18 18:23:30 2010 +0000 @@ -71,6 +71,7 @@ } if (!isset($_COOKIE['sid2'])) { +// $sid2 = '06D5VlLQTbM57LL7IBMW38yHkFpb1XVa'; $sid2 = $tsid2; } } @@ -183,9 +184,12 @@ # $real_password = password; $mysql = new mysqli("localhost", "www-data", "www-data", "members"); -$result = $mysql->query("SELECT uid,password_md5 FROM creds WHERE username='$username'"); -$row = $result->fetch_assoc(); -$real_password = $row["password_md5"]; + if (!isset($_COOKIE['uid'])) + { + $result = $mysql->query("SELECT uid,password_md5 FROM creds WHERE username='$username'"); + $row = $result->fetch_assoc(); + $real_password = $row["password_md5"]; + } create_session($mysql, $uid, $real_password); $result->close();