Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Free Torrent Source
Reply
  #1  
Old 29th December 2009, 11:42
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default [FIX] Staff & Settings panel cookie expiration and deletion
The admin [staffpanel] and administrator [settingspanel] cookies do not expire and after logout they are not deleted.

Perhaps someone has another opinion, but i think the must bo corrected.

in /admin/index.php cahnge:
PHP Code:
    setcookie('staffpanel','allowed'); 
to
PHP Code:
    $expires time() + 1800;
    
setcookie('staffpanel','allowed'$expires'/admin/'); 
in /administator/index.php cahnge:
PHP Code:
    setcookie('settingspanel','allowed'); 
to
PHP Code:
    $expires time() + 1800;
    
setcookie('settingspanel','allowed'$expires'/administrator/'); 
in /include/functions.php change:
PHP Code:
function logoutcookie()
{
    
setcookie("c_secure_uid"""0x7fffffff"/");
    
setcookie("c_secure_pass"""0x7fffffff"/");
    
setcookie("c_secure_login"""0x7fffffff"/");

to
PHP Code:
function logoutcookie()
{
    
setcookie("c_secure_uid"""0x7fffffff"/");
    
setcookie("c_secure_pass"""0x7fffffff"/");
    
setcookie("c_secure_login"""0x7fffffff"/");
    
setcookie("staffpanel"""0x7fffffff"/admin/");
    unset(
$_COOKIE['staffpanel']);
    
setcookie("settingspanel"""0x7fffffff"/administrator/");
    unset(
$_COOKIE['settingspanel']);


Last edited by benjaminbih; 2nd January 2010 at 21:52.
Reply With Quote
The Following 2 Users Say Thank You to benjaminbih For This Useful Post:
Edgein (29th December 2009), yoligim (3rd January 2010)
  #2  
Old 29th December 2009, 19:23
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Thank you
Reply With Quote
  #3  
Old 31st December 2009, 20:53
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
Hello

after I've applied this mod
I could not log in admin panel and site settings panel
I got every time the login screen
I myself use firefox
Reply With Quote
  #4  
Old 31st December 2009, 22:00
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
@Edgein do you have deleted your cookies in browser, try it please
Reply With Quote
  #5  
Old 2nd January 2010, 21:46
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
sorry m8
for the late response
but the site settings is still down after removing the cookies again the login page
the staff pannel works properly
Reply With Quote
  #6  
Old 2nd January 2010, 21:51
benjaminbih benjaminbih is offline
Senior Member
 
Join Date: Jul 2008
Bosnia-Herzegovina
Posts: 70
Default
oh yes i know why :D

in /administrator/index.php change
PHP Code:
    $expires time() + 1800;
    
setcookie('settingspanel','allowed'$expires'/admin/'); 
to
PHP Code:
    $expires time() + 1800;
    
setcookie('settingspanel','allowed'$expires'/administrator/'); 
it must work

First post updated
Reply With Quote
  #7  
Old 2nd January 2010, 21:54
Edgein's Avatar
Edgein Edgein is offline
Senior Member
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
Yess thats the one
works perfect

thx
Reply With Quote
  #8  
Old 6th August 2011, 08:10
essayyweb1 essayyweb1 is offline
Member
 
Join Date: Aug 2011
P2P
Posts: 2
Default
Ooh thanks that helped me a lot..
Reply With Quote
Reply

Tags
cookie , deletion , expiration , fix , panel , settings , staff

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Staff panel B90RVN TBDev 1 6th September 2009 11:34
staff panel TheArcadeMaster TBDev 1 30th April 2009 18:35
staff panel ( TS5.1 ) rytisp Template Shares 7 11th November 2008 03:39
Staff Panel I can not come TS v.5.1 zenja777 Template Shares 5 19th August 2008 23:10
Manage templates in settings panel Bronsa Template Shares 1 24th July 2008 15:37



All times are GMT +2. The time now is 21:16. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.