Bravo List
Register
Go Back   > Bravo List > Torrents Trackers > Free Torrent Source
Reply
  #1  
Old 29-12-09, 11:42
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
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; 02-01-10 at 21:52.
Reply With Quote
The Following 2 Users Say Thank You to benjaminbih For This Useful Post:
Edgein (29-12-09), yoligim (03-01-10)
  #2  
Old 29-12-09, 19:23
yoligim's Avatar
yoligim yoligim is offline
Senior Member
 
Join Date: Nov 2009
Spain
Posts: 43
Default
Thank you
Reply With Quote
  #3  
Old 31-12-09, 20:53
Edgein's Avatar
Edgein Edgein is offline
Staff
 
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 31-12-09, 22:00
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
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 02-01-10, 21:46
Edgein's Avatar
Edgein Edgein is offline
Staff
 
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 02-01-10, 21:51
benjaminbih's Avatar
benjaminbih benjaminbih is offline
Hobby Coder
 
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 02-01-10, 21:54
Edgein's Avatar
Edgein Edgein is offline
Staff
 
Join Date: Sep 2008
Netherlands
Posts: 154
Default
Yess thats the one
works perfect

thx
Reply With Quote
  #8  
Old 06-08-11, 08:10
essayyweb1's Avatar
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 06-09-09 11:34
staff panel TheArcadeMaster TBDev 1 30-04-09 18:35
staff panel ( TS5.1 ) rytisp Template Shares 7 11-11-08 03:39
Staff Panel I can not come TS v.5.1 zenja777 Template Shares 5 19-08-08 23:10
Manage templates in settings panel Bronsa Template Shares 1 24-07-08 15:37



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