changeset 28 | 18e8d88f9253 |
parent 26 | e8da4f096fde |
27:d25474ce42fa | 28:18e8d88f9253 |
---|---|
1 <?php |
1 <?php |
2 |
|
2 function remove_http($url = '') |
3 function remove_http($url = '') |
3 { |
4 { |
4 if ($url == 'http://' OR $url == 'https://') |
5 if ($url == 'http://' OR $url == 'https://') |
5 { |
6 { |
6 return $url; |
7 return $url; |
47 { |
48 { |
48 # $sid2 = $tsid2; |
49 # $sid2 = $tsid2; |
49 $sid2 = '06D5VlLQTbM57LL7IBMW38yHkFpb1XVa'; |
50 $sid2 = '06D5VlLQTbM57LL7IBMW38yHkFpb1XVa'; |
50 $currSID2 = $sid2; |
51 $currSID2 = $sid2; |
51 } |
52 } |
52 # $view_mode = "public" |
53 // $order_sql = "req_response ASC"; |
53 # $view_order = "pend" |
54 // $view_mode = "all"; |
54 $status = $_GET['alert']; |
55 $status = $_GET['alert']; |
55 $view_mode = $_GET['view_mode']; |
56 $view_mode = $_GET['view_mode']; |
56 $view_order = $_GET['view_order']; |
57 $view_order = $_GET['view_order']; |
57 |
58 |
59 |
|
58 |
60 |
59 // connect to the database |
61 // connect to the database |
60 $conn = mysql_connect('localhost','www-data','www-data') or die(mysql_error()); |
62 $conn = mysql_connect('localhost','www-data','www-data') or die(mysql_error()); |
61 mysql_select_db('members'); |
63 mysql_select_db('members'); |
62 |
64 |
63 // search server cache for received websites |
65 // search server cache for received websites |
64 // anonymous uid=1, sid1=06D5VlLQTbM57LL7IBMW38yHkFpb1XVa & sid2 =06D5VlLQTbM57LL7IBMW38yHkFpb1XVa |
66 // anonymous uid=1, sid1=06D5VlLQTbM57LL7IBMW38yHkFpb1XVa & sid2 =06D5VlLQTbM57LL7IBMW38yHkFpb1XVa |
65 // if (($currID != 1) && ($currSID1 != "06D5VlLQTbM57LL7IBMW38yHkFpb1XVa")) |
67 // if (($currID != 1) && ($currSID1 != "06D5VlLQTbM57LL7IBMW38yHkFpb1XVa")) |
66 if ($currID != 1) |
68 if ($currID != 1) |
67 |
69 |
103 } |
105 } |
104 |
106 |
105 } |
107 } |
106 } |
108 } |
107 */ |
109 */ |
110 |
|
108 while ($db_fieldcache = mysql_fetch_assoc($query_cache)) |
111 while ($db_fieldcache = mysql_fetch_assoc($query_cache)) |
109 { |
112 { |
110 $curr_reqID = $db_fieldcache["req_ID"]; |
113 $curr_reqID = $db_fieldcache["req_ID"]; |
111 $filename = "/data/www/private/HTMLrequester/router_stage/{$db_fieldcache["req_ID"]}/"; |
114 $filename = "/data/www/private/HTMLrequester/router_stage/{$db_fieldcache["req_ID"]}/"; |
112 if (file_exists($filename)) |
115 if (file_exists($filename)) |
119 } |
122 } |
120 } |
123 } |
121 |
124 |
122 |
125 |
123 // pick order to show (user specified) |
126 // pick order to show (user specified) |
124 |
|
125 if ($view_order == "pend") |
127 if ($view_order == "pend") |
126 { |
128 { |
127 $order_sql = "req_response ASC"; |
129 $order_sql = "req_response ASC"; |
128 } |
130 } |
129 else if ($view_order == "date_asc") |
131 else if ($view_order == "date_asc") |