Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Template Shares (http://www.bvlist.com/forumdisplay.php?f=26)
-   -   [FIX] TSSE 5.4.1 Extra Fixes (http://www.bvlist.com/showthread.php?t=2837)

mmisu120000 16th June 2009 10:23

[FIX] TSSE 5.4.1 Extra Fixes
 
1. Forum: bbcodes, html codes not working (i looked at the code and the forum version is 5.3);
2. (solved) When entering Staff Panel or Tracker settings, after redirect the link is wrong (.../admin/admin/settings.php - 2 /"admin")
3. (solved) In UserCP, when you change the theme, after redirect the link is wrong ... if you click Back in your browser it's OK

How i solved problem 3:

find:
PHP Code:

redirect ($_SERVER['SCRIPT_NAME'] . '?act=edit_privacy'$lang->usercp['saved6']); 

and replace it with:
PHP Code:

redirect ('/usercp.php' '?act=edit_privacy'$lang->usercp['saved6']); 

find:
PHP Code:

redirect ($_SERVER['SCRIPT_NAME'] . '?act=edit_theme_language'$lang->usercp['saved8']); 

and replace it with:
PHP Code:

redirect ('/usercp.php' '?act=edit_theme_language'$lang->usercp['saved8']); 

find:
PHP Code:

redirect ($_SERVER['SCRIPT_NAME'] . '?act=edit_details'$lang->usercp['saved1']); 

and replace it with:
PHP Code:

redirect ('/usercp.php' '?act=edit_details'$lang->usercp['saved1']); 

find:
PHP Code:

redirect ($_SERVER['SCRIPT_NAME'] . '?act=edit_signature'$lang->usercp['saved2']); 

and replace it with:
PHP Code:

redirect ('/usercp.php' '?act=edit_signature'$lang->usercp['saved2']); 


PS. By the way, the tracker works for 2 years now, no problems encountered.
Last month I decided to reopen it for "bussiness", but it seems there are very few uploaders ... who wants to be a member in the WDW Staff, can register at WDW Tracker and become an uploader, first, and a member of staff, maybe, afterwords...

Ashur 16th June 2009 23:48

if anybody still using 5.4.1 please test it out too also check if it will fix ver 5.6

thanks for sharing :)

mmisu120000 17th June 2009 10:08

you're wellcome, Ashur...

Now, for the record, the solution I gave it's for problem 3 , not 2, my bad ... please edit the post accordingly.

I'll post the problem 2 solution today

I did'nt test them on 5.6, but i guess it will work there too. (It's a problem of cache and sessions management)

Ashur 18th June 2009 03:56

Fynnon beat me to it and edited the post
but cool work buddy, will look into forward for other fixes from you :D

fireman 22nd June 2009 04:32

what is the exact file that we need to fix with these lines :coffee:

mmisu120000 22nd June 2009 12:19

Quote:

Originally Posted by fireman (Post 12579)
what is the exact file that we need to fix with these lines :coffee:

usercp.php

Syn 22nd June 2009 19:31

anyone can attach final fixed file?

mmisu120000 22nd June 2009 22:24

1 Attachment(s)
Quote:

Originally Posted by Syn (Post 12605)
anyone can attach final fixed file?

Here it is:
Attachment 1460

Ashur 22nd June 2009 23:34

Quote:

Originally Posted by mmisu120000 (Post 12612)
Here it is:
Attachment 1460

man you spoil these users hehe :D

btw I didn't apply the fixes but still working ok on my side weird aye?

mmisu120000 25th June 2009 21:41

Quote:

Originally Posted by Ashur (Post 12613)
man you spoil these users hehe :D

btw I didn't apply the fixes but still working ok on my side weird aye?

It depends of the server ... on linux it allmost allways works fine without fix ... because of the kernel used

On windows ... viceversa :) it doesn't allways work, so you need to fix usercp ...

It's exactly like the bbcodes in forums and comments ... some work, some not, don't ask me why (ask xamshit, maybe ... :wallbash:)

btw, i've found that if you use the align bbcodes codes in texts and comments, they appear fine eventualy .... I'm digging hard on this, so far no result .. but i'll keep on trying .....

ahemd 14th May 2014 08:26

anyone can attach final fixed file?

Daz 20th June 2019 23:05

1 Attachment(s)
The fix for the built in captcha is simple, replace your ./include/class_captcha.php with the one below. This should work in v5.6 as well. Must have been an error in decoding.


I haven't tested as I do not have a copy installed as of now so just let me know if you have an issue.


Kind Regards.


PHP Code:

<?php/* * ******************************************** *//*     TS Special Edition v.5.4.1 [Nulled]     *//*              Special Thanks To              *//*        DrNet - wWw.SpecialCoders.CoM        *//*          Vinson - wWw.Decode4u.CoM          *//*    MrDecoder - wWw.Fearless-Releases.CoM    *//*         Fynnon - wWw.BvList.CoM             *//* * ******************************************** */class tscaptcha {  function tscaptcha($width$height$characters) {    $font dirname(__FILE__) . '/captcha_fonts/monofont.ttf';    $code $this->generateCode($characters);    $font_size $height 0.75;    if (!$image = @imagecreate($width$height)) {      exit('Cannot initialize new GD image stream');    }    $background_color imagecolorallocate($image255255255);    $text_color imagecolorallocate($image2040100);    $noise_color imagecolorallocate($image100120180);    $i 0;    while ($i $width $height 3) {      imagefilledellipse($imagemt_rand(0$width), mt_rand(0$height), 11$noise_color);      ++$i;    }    $i 0;    while ($i $width $height 150) {      imageline($imagemt_rand(0$width), mt_rand(0$height), mt_rand(0$width), mt_rand(0$height), $noise_color);      ++$i;    }    if (!$textbox imagettfbbox($font_size0$font$code)) {      exit('Error in imagettfbbox function');    }    $x = ($width $textbox[4]) / 2;    $y = ($height $textbox[5]) / 2;    if (!imagettftext($image$font_size0$x$y$text_color$font$code)) {      exit('Error in imagettftext function');    }    header('Expires: Mon, 01 Jan 1990 00:00:00 GMT');    header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');    header('Cache-Control: no-store, no-cache, must-revalidate');    header('Cache-Control: post-check=0, pre-check=0'false);    header('Pragma: no-cache');    header('Content-Type: image/jpeg');    imagejpeg($image);    imagedestroy($image);    $_SESSION['security_code'] = $code;  }  function generatecode($characters) {    unset($_SESSION);    $possible 'abcdfghjkmnpqrstvwxyzABCDFGHJKMNPQRSTVWXYZ';    $code '';    $i 0;    while ($i $characters) {      $code .= substr($possiblemt_rand(0strlen($possible) - 1), 1);      ++$i;    }    return $code;  }}class tscaptcha2 extends tscaptcha {  function tscaptcha2($width$height$characters) {    $code $this->generateCode($characters);    if (!$im = @imagecreate($width$height)) {      exit('Cannot Initialize new GD image stream');    }    $background_color imagecolorallocate($im000);    $text_color imagecolorallocate($im2331491);    $font_size $height 0.75;    $bottom $height 2;    $center $width 2;    imagestring($im$font_size$center$bottom$code$text_color);    header('Expires: Mon, 01 Jan 1990 00:00:00 GMT');    header('Last-Modified: ' gmdate('D, d M Y H:i:s') . ' GMT');    header('Cache-Control: no-store, no-cache, must-revalidate');    header('Cache-Control: post-check=0, pre-check=0'false);    header('Pragma: no-cache');    header('Content-Type: image/png');    imagepng($im);    imagedestroy($im);  }}function gd_version() {  static $gd_version;  if ($gd_version) {    return $gd_version;  }  if (!extension_loaded('gd')) {    exit();  }  ob_start();  phpinfo(8);  $info ob_get_contents();  ob_end_clean();  $info stristr($info'gd version');  preg_match('/\\d/'$info$gd);  $gd_version $gd[0];  return $gd_version;}@error_reporting(E_ALL & ~E_NOTICE);@ini_set('error_reporting'E_ALL & ~E_NOTICE);@ini_set('display_errors''0');@ini_set('session.gc_maxlifetime''18000');@session_cache_expire(1440);@set_time_limit(0);@set_magic_quotes_runtime(0);@ini_set('magic_quotes_sybase'0);@session_name('TSSE_Session');@session_start();define('CTSC_VERSION''0.1 by');$width = (isset($_GET['width']) ? intval($_GET['width']) : '200');$height = (isset($_GET['height']) ? intval($_GET['height']) : '60');$characters rand(4,6); // fix the bug$gd_version = gd_version();if ((((function_exists('imagettftext') AND function_exists('imagettfbbox')) AND 2 <= gd_version()) AND ! isset($_GET['type']))) {  $captcha = new TsCaptcha($width, $height, $characters);  return 1;}$captcha = new TsCaptcha2($width, $height, $characters);?>

Bump: The updated fix attached below, I also aded a fix for another captcha (when certain funcs arent available).

Also fixed a silly bug where the captcha could be bypassed.

Unfortunately, the code tag didnt format the code properly in my last post, sorry about that.


:relax:

Bump: The updated fix attached below, I also aded a fix for another captcha (when certain funcs arent available).

Also fixed a silly bug where the captcha could be bypassed.

Unfortunately, the code tag didnt format the code properly in my last post, sorry about that.


:relax:

Bump: The updated fix attached below, I also aded a fix for another captcha (when certain funcs arent available).

Also fixed a silly bug where the captcha could be bypassed.

Unfortunately, the code tag didnt format the code properly in my last post, sorry about that.


:relax:


All times are GMT +2. The time now is 18:34.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.