From effab9c158b7103955dadf72b98ab1601b457030 Mon Sep 17 00:00:00 2001 From: Git Date: Thu, 22 Sep 2011 08:00:12 +0000 Subject: [PATCH] Empty commit --- sections/forums/thread.php | 7 +++++++ sections/user/user.php | 10 +++++++++- static/styles/proton/style.css | 5 +++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/sections/forums/thread.php b/sections/forums/thread.php index 1f920ab6..226a5cfc 100644 --- a/sections/forums/thread.php +++ b/sections/forums/thread.php @@ -334,6 +334,13 @@ foreach($Thread as $Key => $Post){ list($PostID, $AuthorID, $AddedTime, $Body, $EditedUserID, $EditedTime, $EditedUsername) = array_values($Post); list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(user_info($AuthorID)); + + // Image proxy CTs + if(check_perms('site_proxy_images') && !empty($UserTitle)) { + $UserTitle = preg_replace_callback('~src=("?)(.+?)(["\s>])~', function($Matches) { + return 'src='.$Matches[1].'http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&i='.urlencode($Matches[2]).$Matches[3]; + }, $UserTitle); + } ?> diff --git a/sections/user/user.php b/sections/user/user.php index 2079a969..795a35b4 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -111,6 +111,14 @@ list($Username, $Email, $LastAccess, $IP, $Class, $Uploaded, $Downloaded, $RequiredRatio, $Enabled, $Paranoia, $Invites, $CustomTitle, $torrent_pass, $DisableLeech, $JoinDate, $Info, $Avatar, $Country, $Donor, $Warned, $ForumPosts, $InviterID, $DisableInvites, $InviterName, $RatioWatchEnds, $RatioWatchDownload) = $DB->next_record(MYSQLI_NUM, array(9,11)); } +// Image proxy CTs +$DisplayCustomTitle = $CustomTitle; +if(check_perms('site_proxy_images') && !empty($CustomTitle)) { + $DisplayCustomTitle = preg_replace_callback('~src=("?)(.+?)(["\s>])~', function($Matches) { + return 'src='.$Matches[1].'http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&i='.urlencode($Matches[2]).$Matches[3]; + }, $CustomTitle); +} + $Paranoia = unserialize($Paranoia); if(!is_array($Paranoia)) { $Paranoia = array(); @@ -537,7 +545,7 @@ function check_paranoia_here($Setting) {
- Profile + Profile  
diff --git a/static/styles/proton/style.css b/static/styles/proton/style.css index bee05d13..6ae3fb2a 100644 --- a/static/styles/proton/style.css +++ b/static/styles/proton/style.css @@ -1709,6 +1709,11 @@ div.box[style=""] .head{ margin: 0 auto 20px auto; } +div.invitetree ul.invitetree { + margin: 0; + padding-left: 10px; +} + .last_read { width: 15px; height: 15px; background: url('images/go_last_read.png') no-repeat center center; margin-left: 5px; margin-left: 5px;} .last_read a { border: none; width: 100%; height: 100%; display: block; } .last_read a:hover { border: none; }