diff --git a/classes/class_debug.php b/classes/class_debug.php index 1991159c..c2443416 100644 --- a/classes/class_debug.php +++ b/classes/class_debug.php @@ -72,7 +72,7 @@ public function analysis($Message, $Report='', $Time=43200) { ), $Time ); - send_irc('PRIVMSG '.LAB_CHAN.' :'.$Message.' '.$Document.' '.' http://'.NONSSL_SITE_URL.'/tools.php?action=analysis&case='.$Identifier.' http://'.NONSSL_SITE_URL.$_SERVER['REQUEST_URI']); + send_irc('PRIVMSG '.LAB_CHAN.' :'.$Message.' '.$Document.' '.' https://'.SSL_SITE_URL.'/tools.php?action=analysis&case='.$Identifier.' https://'.SSL_SITE_URL.$_SERVER['REQUEST_URI']); } public function log_var($Var, $VarName = FALSE) { diff --git a/classes/class_text.php b/classes/class_text.php index b2373704..10af9b84 100644 --- a/classes/class_text.php +++ b/classes/class_text.php @@ -426,6 +426,7 @@ function parse($Str) { } function to_html($Array) { + global $SSL; $this->Levels++; if($this->Levels>10) { return $Block['Val']; } // Hax prevention $Str = ''; diff --git a/classes/script_start.php b/classes/script_start.php index 1b353570..db3c0e0f 100644 --- a/classes/script_start.php +++ b/classes/script_start.php @@ -264,7 +264,7 @@ * @param $UserID int The UserID to get info for */ function user_info($UserID) { - global $DB, $Cache, $Classes; + global $DB, $Cache, $Classes, $SSL; $UserInfo = $Cache->get_value('user_info_'.$UserID); // the !isset($UserInfo['Paranoia']) can be removed after a transition period if(empty($UserInfo) || empty($UserInfo['ID']) || !isset($UserInfo['Paranoia']) || empty($UserInfo['Class'])) { diff --git a/sections/error/index.php b/sections/error/index.php index 2fd2680a..60096a85 100644 --- a/sections/error/index.php +++ b/sections/error/index.php @@ -2,7 +2,7 @@ function notify ($Channel, $Message) { global $LoggedUser; - send_irc("PRIVMSG ".$Channel." :".$Message." error by ".(!empty($LoggedUser['ID']) ? "http://".NONSSL_SITE_URL."/user.php?id=".$LoggedUser['ID'] ." (".$LoggedUser['Username'].")" : $_SERVER['REMOTE_ADDR']." (".geoip($_SERVER['REMOTE_ADDR']).")")." accessing http://".NONSSL_SITE_URL."".$_SERVER['REQUEST_URI'].(!empty($_SERVER['HTTP_REFERER'])? " from ".$_SERVER['HTTP_REFERER'] : '')); + send_irc("PRIVMSG ".$Channel." :".$Message." error by ".(!empty($LoggedUser['ID']) ? "https://".SSL_SITE_URL."/user.php?id=".$LoggedUser['ID'] ." (".$LoggedUser['Username'].")" : $_SERVER['REMOTE_ADDR']." (".geoip($_SERVER['REMOTE_ADDR']).")")." accessing https://".SSL_SITE_URL."".$_SERVER['REQUEST_URI'].(!empty($_SERVER['HTTP_REFERER'])? " from ".$_SERVER['HTTP_REFERER'] : '')); } $Errors = array('403','404','413','504'); diff --git a/sections/schedule/index.php b/sections/schedule/index.php index e5508416..8791686c 100644 --- a/sections/schedule/index.php +++ b/sections/schedule/index.php @@ -297,23 +297,25 @@ function next_hour() { $DB->query("SELECT ID FROM users_info AS i JOIN users_main AS m ON m.ID=i.UserID WHERE i.RatioWatchEnds!='0000-00-00 00:00:00' AND i.RatioWatchDownload+10*1024*1024*1024collect('ID' ); if(count($UserIDs) > 0) { $Subject = 'Leeching Disabled'; - $Message = 'You have downloaded more then 10gb while on Ratio Watch. Your Leeching privleges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio https://ssl.what.cd/wiki.php?action=article&id=110'; + $Message = 'You have downloaded more then 10gb while on Ratio Watch. Your Leeching privileges have been disabled. Please reread the rules and refer to this guide on how to improve your ratio https://ssl.what.cd/wiki.php?action=article&id=110'; foreach($UserIDs as $UserID) { - send_pm($UserID,0,db_string($Subject),db_string($Message)); + send_pm($UserID,0,db_string($Subject),db_string($Message)); + send_irc("PRIVMSG #reports : Leeching Disabled. Downloaded 10GB+ on Ratio Watch. https://what.cd/user.php?id=$UserID"); } $DB->query("UPDATE users_info AS i JOIN users_main AS m ON m.ID=i.UserID SET m.can_leech='0', - i.AdminComment=CONCAT('$sqltime - Leeching ability disabled by ratio watch system - required ratio: ', m.RequiredRatio,' + i.AdminComment=CONCAT('$sqltime - Leech disabled by ratio watch system for downloading more than 10 gigs on ratio watch. - required ratio: ', m.RequiredRatio,' ' , i.AdminComment) - WHERE m.ID IN(".implode(',',$UserIDs).")"); +WHERE m.ID IN(".implode(',',$UserIDs).")"); } } diff --git a/sections/userhistory/ip_history.php b/sections/userhistory/ip_history.php index 1a07bbb4..908a2b83 100644 --- a/sections/userhistory/ip_history.php +++ b/sections/userhistory/ip_history.php @@ -24,6 +24,11 @@ $UsersOnly = $_GET['usersonly']; +if(isset($_POST['ip'])) { + $SearchIP = db_string($_POST['ip']); + $SearchIPQuery = " AND h1.IP = '$SearchIP' "; +} + show_header("IP history for $Username"); ?>