From 3efaaa98e0e46553e07b92fd1f1844d481d5fddb Mon Sep 17 00:00:00 2001 From: Tim Windelschmidt Date: Tue, 19 Jul 2016 02:13:08 +0200 Subject: [PATCH] Removed unused Code --- asciitrash.php | 3 --- include/functions.inc.php | 3 --- include/mysql.class.php | 33 --------------------------------- 3 files changed, 39 deletions(-) diff --git a/asciitrash.php b/asciitrash.php index 25c280e..1817ecb 100644 --- a/asciitrash.php +++ b/asciitrash.php @@ -55,7 +55,6 @@ if(isset($_POST['action'])) { $com_path = dirname($_SERVER['SCRIPT_NAME']); if($com_path == "/") $com_path = ""; - //$compatible_url = "http://{$_SERVER['SERVER_NAME']}{$com_path}/getp/{$_GET['fileid']}"; $compatible_url = $base_url."a/{$_GET['fileid']}"; echo "{$compatible_url}"; @@ -78,8 +77,6 @@ if(isset($_POST['action'])) { echo "
"; $language = $row['syntax']; $geshi = new GeSHi(stripslashes($row['payload']), $language, "geshi/"); - //$geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS, 37); - //$geshi->set_line_style('background: #fcfcfc;', 'background: #f0f0f0;'); echo $geshi->parse_code(); echo "
\n"; diff --git a/include/functions.inc.php b/include/functions.inc.php index d6796d8..95a2dc4 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -1,9 +1,6 @@ db->connect_error . ']'); } $this->connections++; - // return $db_link for other functions - //return $db; } function query($sql) { $db = $this->db; - //echo $sql . "
"; if (!isset($this->db)) { $this->connect(); } @@ -66,14 +63,6 @@ class MySQL return $row; } -// function fetch_row($result) -// { -// // create an array called $row -// $row = mysql_fetch_row($result); -// // return the array $row or false if none found -// return $row; -// } - function num_rows($result) { // determine row count @@ -84,8 +73,6 @@ class MySQL function insert_id() { - // connect to the database - //$link = $this->connect(); // Get the ID generated from the previous INSERT operation $last_id = mysqli_insert_id($this->db); // return last ID @@ -97,26 +84,6 @@ class MySQL $result = mysqli_num_fields($result); return $result; } - -// function field_name($result, $index) -// { -// // query with the return of $result -// $result = mysql_field_name($result, $index); -// return $result; -// } -// -// function tablename($result, $index) -// { -// // query with the return of $result -// $result = mysql_tablename($result, $index); -// return $result; -// } -// -// function list_tables($dbase) -// { -// $result = mysql_list_tables($dbase); -// return $result; -// } } ?>