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 @@
// generates a hash for an user
function mkhash() {
- //$hash = getenv('HTTP_USER_AGENT');
- //$hash .= getenv('REMOTE_ADDR').time().rand(1,9);
- //return md5($hash);
//return substr(time(),-6,3).preg_replace('/([ ])/e', 'chr(rand(97,122))', ' ').substr(time(),-3);
return substr(uniqid(), 0, 11);
}
diff --git a/include/mysql.class.php b/include/mysql.class.php
index 49eefd8..aac569b 100644
--- a/include/mysql.class.php
+++ b/include/mysql.class.php
@@ -26,14 +26,11 @@ class MySQL
die('Unable to connect to database [' . $this->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;
-// }
}
?>