diff --git a/delete.php b/delete.php index b7229830..609d34a5 100644 --- a/delete.php +++ b/delete.php @@ -71,7 +71,7 @@ if ($CURUSER["id"] != $row["owner"]){ $dt = sqlesc(date("Y-m-d H:i:s")); $subject = sqlesc($lang_delete_target[get_user_lang($row["owner"])]['msg_torrent_deleted']); $msg = sqlesc($lang_delete_target[get_user_lang($row["owner"])]['msg_the_torrent_you_uploaded'].$row['name'].$lang_delete_target[get_user_lang($row["owner"])]['msg_was_deleted_by']."[url=userdetails.php?id=".$CURUSER['id']."]".$CURUSER['username']."[/url]".$lang_delete_target[get_user_lang($row["owner"])]['msg_reason_is'].$reasonstr); - sql_query("INSERT INTO messages (sender, receiver, subject, added, msg) VALUES(0, $row[owner], $subject, $dt, $msg)") or sqlerr(__FILE__, __LINE__); + sql_query("INSERT INTO messages (sender, receiver, subject, added, msg) VALUES(0, {$row['owner']}, $subject, $dt, $msg)") or sqlerr(__FILE__, __LINE__); } stdhead($lang_delete['head_torrent_deleted']); diff --git a/imdb/imdb.class.php b/imdb/imdb.class.php index 543267f8..8324c871 100644 --- a/imdb/imdb.class.php +++ b/imdb/imdb.class.php @@ -272,7 +272,7 @@ $responseBody = $response->getBody(); * @constructor imdb * @param string id */ - function imdb ($id) { + function __construct ($id) { $this->imdb_config(); $this->setid($id); //if ($this->storecache && ($this->cache_expire > 0)) $this->purge(); @@ -1159,7 +1159,7 @@ $responseBody = $response->getBody(); /** Read the config * @constructor imdbsearch */ - function imdbsearch() { + function __construct() { $this->imdb_config(); } @@ -1213,7 +1213,6 @@ $responseBody = $response->getBody(); if ($header = $be->getResponseHeader("Location")){ if (strpos($header,$this->imdbsite."/find?")) { return $this->results($header); - break(4); } #--- @moonface variant (not tested) # $idpos = strpos($header, "/Title?") + 7; diff --git a/imdb/imdb_config.php b/imdb/imdb_config.php index 5493cdbc..90b8b9e8 100644 --- a/imdb/imdb_config.php +++ b/imdb/imdb_config.php @@ -37,7 +37,7 @@ class imdb_config { * configuration data here. * @constructor imdb_config */ - function imdb_config(){ + function __construct(){ // protocol prefix $this->protocol_prefix = "http://"; // the imdb server to use. @@ -80,7 +80,7 @@ require_once ("HTTP/Request2.php"); class IMDB_Request extends HTTP_Request2 { - function IMDB_Request($url){ + function __construct($url){ parent::__construct($url); if ( PROXY != ""){ $this->setConfig(array('proxy_host' => PROXY, 'proxy_port' => PROXY_PORT)); diff --git a/include/browser/browseremulator.class.php b/include/browser/browseremulator.class.php index 0ca81524..6c9a44d8 100644 --- a/include/browser/browseremulator.class.php +++ b/include/browser/browseremulator.class.php @@ -57,7 +57,7 @@ v1.0 var $port; var $lastResponse = Array (); - function BrowserEmulator () { + function __construct () { $this->resetHeaderLines (); $this->resetPort (); } diff --git a/include/browser/info_extractor.php b/include/browser/info_extractor.php index 2f6c5233..00caa8b4 100644 --- a/include/browser/info_extractor.php +++ b/include/browser/info_extractor.php @@ -1,7 +1,7 @@ ".htmlspecialchars($configname)." doesn't exist!
Before the setup starts, please ensure that you have properly configured file and directory access permissions. Please see below.

chmod 777 config/
chmod 777 config/".$configname); } diff --git a/modrules.php b/modrules.php index f00a75ef..c8b4b56d 100644 --- a/modrules.php +++ b/modrules.php @@ -46,8 +46,8 @@ elseif (isset($_GET["act"]) && $_GET["act"] == "edit"){ print("

Edit Rules

"); print("
"); print("\n"); - print("\n"); - print("\n"); + print("\n"); + print("\n"); $s = ""); - if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"]) - print(""); + if ((isset($_GET["returnto"]) && $_GET["returnto"]) || $_SERVER["HTTP_REFERER"]) + print(""); $title = $lang_sendmessage['text_message_to'].get_username($receiver); begin_compose($title, ($replyto ? "reply" : "new"), $body, true, $subject); print("
Title:
Rules:
Title:
Rules:
");