From 6857bed98146997240ec8505931813a6eef0a7d1 Mon Sep 17 00:00:00 2001 From: gareth Date: Wed, 14 Mar 2007 03:37:26 +0000 Subject: Cleaned up PHP --- ogs/assetserver/assetserver_config.inc.php | 16 ------ ogs/assetserver/index.php | 25 --------- ogs/gridserver/gridserver_config.inc.php | 0 ogs/gridserver/index.php | 0 ogs/gridserver/usersessions/.htaccess | 5 -- ogs/gridserver/usersessions/index.php | 85 ------------------------------ 6 files changed, 131 deletions(-) delete mode 100644 ogs/assetserver/assetserver_config.inc.php delete mode 100644 ogs/assetserver/index.php delete mode 100644 ogs/gridserver/gridserver_config.inc.php delete mode 100644 ogs/gridserver/index.php delete mode 100644 ogs/gridserver/usersessions/.htaccess delete mode 100644 ogs/gridserver/usersessions/index.php diff --git a/ogs/assetserver/assetserver_config.inc.php b/ogs/assetserver/assetserver_config.inc.php deleted file mode 100644 index b2199f3..0000000 --- a/ogs/assetserver/assetserver_config.inc.php +++ /dev/null @@ -1,16 +0,0 @@ - diff --git a/ogs/assetserver/index.php b/ogs/assetserver/index.php deleted file mode 100644 index ee20229..0000000 --- a/ogs/assetserver/index.php +++ /dev/null @@ -1,25 +0,0 @@ - diff --git a/ogs/gridserver/gridserver_config.inc.php b/ogs/gridserver/gridserver_config.inc.php deleted file mode 100644 index e69de29..0000000 diff --git a/ogs/gridserver/index.php b/ogs/gridserver/index.php deleted file mode 100644 index e69de29..0000000 diff --git a/ogs/gridserver/usersessions/.htaccess b/ogs/gridserver/usersessions/.htaccess deleted file mode 100644 index 3b76a74..0000000 --- a/ogs/gridserver/usersessions/.htaccess +++ /dev/null @@ -1,5 +0,0 @@ -Options +FollowSymlinks - -RewriteEngine on -RewriteOptions MaxRedirects=1 -RewriteRule .* index.php [L] diff --git a/ogs/gridserver/usersessions/index.php b/ogs/gridserver/usersessions/index.php deleted file mode 100644 index e7a3817..0000000 --- a/ogs/gridserver/usersessions/index.php +++ /dev/null @@ -1,85 +0,0 @@ -0) { - $info=mysql_fetch_assoc($result); - $circuit_code = $info['circuit_code']; - if($circuit_code == 0) $circuit_code=$params['4']; - $secure_session_id=$info['secure_session_id']; - $session_id=$info['session_id']; - - $query = "SELECT * FROM local_user_profiles WHERE userprofile_LLUUID='$agent_id'"; - $result=mysql_query($query); - $userinfo=mysql_fetch_assoc($result); - $firstname=$userinfo['profile_firstname']; - $lastname=$userinfo['profile_lastname']; - $agent_id=$userinfo['userprofile_LLUUID']; - $exists=1; -} else { - $exists=0; -} - -// if only 3 params, assume we are sending an XML response -if(count($params)==3) { - output_xml_block("usersession",Array( - 'authkey' => $sim_sendkey, - 'circuit_code' => $circuit_code, - 'agent_id' => $agent_id, - 'session_id' => $session_id, - 'secure_session_id' => $secure_session_id, - 'firstname' => $firstname, - 'lastname' => $lastname - )); -} - -switch($cmd) { - case 'exists': - echo $exists; - break; - case 'delete': - $query = "UPDATE sessions SET session_active=0, session_end=NOW() WHERE agent_id='$agent_id' LIMIT 1"; - $deleteresult = mysql_query($query); - break; -} -?> -- cgit v1.1