From 134f86e8d5c414409631b25b8c6f0ee45fbd8631 Mon Sep 17 00:00:00 2001
From: David Walter Seikel
Date: Thu, 3 Nov 2016 21:44:39 +1000
Subject: Initial update to OpenSim 0.8.2.1 source code.
---
web/offline_mysql.php | 112 --------------------------------------------------
1 file changed, 112 deletions(-)
delete mode 100644 web/offline_mysql.php
(limited to 'web/offline_mysql.php')
diff --git a/web/offline_mysql.php b/web/offline_mysql.php
deleted file mode 100644
index fe0eb3e..0000000
--- a/web/offline_mysql.php
+++ /dev/null
@@ -1,112 +0,0 @@
-Database error: $msg
\n");
- echo("MySQL error: $this->Errno ($this->Error)
\n");
- die("Session halted.");
- }
-
- function connect()
- {
- if($this->Link_ID == 0)
- {
- $this->Link_ID = mysql_connect($this->Host, $this->User, $this->Password);
- if (!$this->Link_ID)
- {
- $this->halt("Link_ID == false, connect failed");
- }
- $SelectResult = mysql_select_db($this->Database, $this->Link_ID);
- if(!$SelectResult)
- {
- $this->Errno = mysql_errno($this->Link_ID);
- $this->Error = mysql_error($this->Link_ID);
- $this->halt("cannot select database ".$this->Database."");
- }
- }
- }
-
- function escape($String)
- {
- return mysql_escape_string($String);
- }
-
- function query($Query_String)
- {
- $this->connect();
- $this->Query_ID = mysql_query($Query_String,$this->Link_ID);
- $this->Row = 0;
- $this->Errno = mysql_errno();
- $this->Error = mysql_error();
- if (!$this->Query_ID)
- {
- $this->halt("Invalid SQL: ".$Query_String);
- }
- return $this->Query_ID;
- }
-
- function next_record()
- {
- $this->Record = @mysql_fetch_array($this->Query_ID);
- $this->Row += 1;
- $this->Errno = mysql_errno();
- $this->Error = mysql_error();
- $stat = is_array($this->Record);
- if (!$stat)
- {
- @mysql_free_result($this->Query_ID);
- $this->Query_ID = 0;
- }
- return $this->Record;
- }
-
- function num_rows()
- {
- return mysql_num_rows($this->Query_ID);
- }
-
- function affected_rows()
- {
- return mysql_affected_rows($this->Link_ID);
- }
-
- function optimize($tbl_name)
- {
- $this->connect();
- $this->Query_ID = @mysql_query("OPTIMIZE TABLE $tbl_name",$this->Link_ID);
- }
-
- function clean_results()
- {
- if($this->Query_ID != 0) mysql_freeresult($this->Query_ID);
- }
-
- function close()
- {
- if($this->Link_ID != 0) mysql_close($this->Link_ID);
- }
-}
-?>
--
cgit v1.1