Removed unused Code

This commit is contained in:
Tim Windelschmidt 2016-07-19 02:13:08 +02:00
parent 10bad65fa1
commit 3efaaa98e0
3 changed files with 0 additions and 39 deletions

View File

@ -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 "<a href=\"{$compatible_url}\">{$compatible_url}</a>";
@ -78,8 +77,6 @@ if(isset($_POST['action'])) {
echo "<div id=\"binoutput\">";
$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 "</div>\n";

View File

@ -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);
}

View File

@ -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 . "<br>";
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;
// }
}
?>