Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[Addon] Stop Mods Editing Admin / proble
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-01-24 01:42:54
In torrenttrader V2.XX there are a security hole, that lets mods and super mods see and edit admin details, to correct that make the changes bellow:

No torrenttrader V2.XX existe um problema de seguran
Unknown User
2009-01-24 23:31:39
thank you. i have been doing it like below as a temporary fix which does not let a lower class view a higher classes details or somebody of the same class details because my staff was demoting higher and getting themselves automatically demoted for some reason but when i want to change my settings or another owners then i have to use phpadmin and that is the only drawback that i see. is there anything to change in admin-modtasks.php?

this here is what i use and is here only as an example. it is better if you use nightmare's code

if ($CURUSER["class"] <= $user["class"]){

show_error_msg("Error","You do not have right to edit this account.",1);

}

begin_frame("Staff Only Information");
Unknown User
2009-01-24 23:45:57
yes nightmare fixed for me so i got him 2 post it

if u copy some of the code stick it in admincp thats what ive done :D
Unknown User
2009-02-09 12:38:46
Merci a toi  cool reponse rapide ;)
Unknown User
2009-03-15 15:22:47
Thank you for this mod :rolleyes:
Unknown User
2009-03-23 02:34:07
Another nice addition thank you very much indeed.
Unknown User
2009-03-23 10:44:47
thnx m8!!! very nice!!
Unknown User
2009-11-01 12:53:46
Merci beaucoup pour ce corrig
Unknown User
2009-12-30 23:44:38
tnx it worked great.

;)  ;)
Unknown User
2010-10-27 08:50:56
Thanks once again nightmare :D
Unknown User
2012-01-12 14:50:18
Thanks nightmare
Unknown User
2012-01-13 09:59:08
ok thanks for this, but i have been trying to make it so the mod and super mod cannot give admin warnings or delete the admin's account, has anyone got a fix for this they would please share?i will keep battling with it myself and i will share results if i get any, but im not hopeful.

thanks everyone.
Unknown User
2012-01-13 11:43:01
this will stop staff being able to see or edit anybody above there rank hope it helps

if($CURUSER["edit_users"]=="yes" && ($CURUSER['class'] > $user['class'] || $CURUSER['class'] >= 7)){
Unknown User
2012-01-13 12:17:06
"thedarklord, post: 77962":
this will stop staff being able to see or edit anybody above there rank hope it helps


if($CURUSER["edit_users"]=="yes" && ($CURUSER['class'] > $user['class'] || $CURUSER['class'] >= 7)){

tried it, and super mod could still give admin warnings, i didnt try deleting the account like i did earlier  :)  :D .but thanks for the help anyway  :) :D
Unknown User
2012-01-13 12:57:35
if($CURUSER["edit_users"]=="yes"){

begin_frame(T_("BANS_WARNINGS"));





change to









if($CURUSER["edit_users"]=="yes" && $CURUSER["class"] > $user["class"] && $CURUSER["id"] != $user["id"]){

begin_frame(T_("BANS_WARNINGS"));
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728