| Falken | 2006-10-29 19:14:00 | |||||||||||||||||||||||||||||||
![]() Posts: 137 Topics participated: 74 Topics started: 24 First post: 2006-10-12 20:44:00 Last post: 2009-01-01 16:14:00 |
don't find where to change so sysop can edit sysop, but don't want admins to edit sysop of course:) require "include/bittorrent.php"; dbconn(false); loggedinorreturn(); function bark($msg) { stdhead(); stdmsg("Error", $msg); stdfoot(); exit; } function maketable($res) { $ret = "
return $ret; } $id = $_GET["id"]; if (!is_valid_id($id)) bark("Bad ID $id."); $r = @mysql_query("SELECT * FROM users WHERE id=$id") or sqlerr(); $user = mysql_fetch_array($r) or bark("No user with ID $id."); if ($user["status"] == "pending") die; $r = mysql_query("SELECT id, name, seeders, leechers, category FROM torrents WHERE owner=$id ORDER BY name") or sqlerr(); if (mysql_num_rows($r) > 0) { $torrents = "
} if ($user["ip"] && (get_user_class() >= UC_MODERATOR || $user["id"] == $CURUSER["id"])) { $ip = $user["ip"]; $dom = @gethostbyaddr($user["ip"]); if ($dom == $user["ip"] || @gethostbyname($dom) != $user["ip"]) $addr = $ip; else { $dom = strtoupper($dom); $domparts = explode(".", $dom); $domain = $domparts[count($domparts) - 2]; if ($domain == "COM" || $domain == "CO" || $domain == "NET" || $domain == "NE" || $domain == "ORG" || $domain == "OR" ) $l = 2; else $l = 1; $addr = "$ip ($dom)"; } } if ($user[added] == "0000-00-00 00:00:00") $joindate = 'N/A'; else $joindate = "$user[added] (" . get_elapsed_time(sql_timestamp_to_unix_timestamp($user["added"])) . " sen)"; $lastseen = $user["last_access"]; if ($lastseen == "0000-00-00 00:00:00") $lastseen = "never"; else { $lastseen .= " (" . get_elapsed_time(sql_timestamp_to_unix_timestamp($lastseen)) . " sen)"; } $res = mysql_query("SELECT COUNT(*) FROM comments WHERE user=" . $user[id]) or sqlerr(); $arr3 = mysql_fetch_row($res); $torrentcomments = $arr3[0]; $res = mysql_query("SELECT COUNT(*) FROM posts WHERE userid=" . $user[id]) or sqlerr(); $arr3 = mysql_fetch_row($res); $forumposts = $arr3[0]; //if ($user['donated'] > 0) // $don = " ";$res = mysql_query("SELECT name,flagpic FROM countries WHERE id=$user[country] LIMIT 1") or sqlerr(); if (mysql_num_rows($res) == 1) { $arr = mysql_fetch_assoc($res); $country = " | ";} if ($user["donor"] == "yes") $donor = " | ";![]() if ($user["warned"] == "yes") $warned = " | ";![]() if ($user["gender"] == "Man") $gender = " | ";elseif ($user["gender"] == "Kvinna") $gender = " | ";elseif ($user["gender"] == " |
||||||||||||||||||||||||||
![]() |
edit sysop in userdetails
| modtang | 2006-11-06 23:24:00 |
![]() Posts: 161 Topics participated: 97 Topics started: 13 First post: 2006-03-10 01:11:00 Last post: 2008-12-17 02:24:00 |
I'd say this line has something to do with it... if (get_user_class() >= UC_MODERATOR && $user["class"] < get_user_class()) Try replacing it with: if (get_user_class() >= UC_MODERATOR) |
![]() |
| dokty | 2006-11-07 12:03:00 |
![]() Posts: 2607 Topics participated: 1470 Topics started: 2 First post: 2006-07-10 10:45:00 Last post: 2008-06-13 17:08:00 |
no dont do that, than mods will be able to edit other mods and admins too, just edit too - if (get_user_class() >= UC_MODERATOR && $user["class"] < get_user_class() || get_user_class() == UC_SYSOP) and you need to edit maybe modtask cuz it have a place for kill same rank update |
![]() |
| Falken | 2006-11-07 09:27:00 |
![]() Posts: 137 Topics participated: 74 Topics started: 24 First post: 2006-10-12 20:44:00 Last post: 2009-01-01 16:14:00 |
ok thx dokty, i will try this:) |
![]() |
Similar threads
| Topic | Posts | Last post |
|---|---|---|
| pm user when edit userdetails | 2 | 2007-04-17 07:26:00 |
| sysop | 4 | 2008-02-26 00:42:00 |
| SysOp deleted ^^ | 9 | 2008-09-28 08:23:00 |
| Making a new SysOp | 7 | 2007-12-29 05:30:00 |
| SysOp only cat | 2 | 2008-12-19 14:55:00 |
Statistics
| Today's active topics · | |
|---|---|
| User(s) active in the past 30 minutes | |
| 40 Guests, 8 Members kumi, FuNk, andyburm, pumpin, Ghanso, robo85, taxick, cata odzyskiwanie danych , Produkcja ekologiczna , W Warszawie , koral , fotograf weselny gotta sing hotele spa Inwestowanie Avatary Młodzieżowe konta bankowe | |
| Often viewed topics | |
| · Warned users (o... · torrent uppload... · Question about ... · new Message · Invite With Bonus · ballon tooltip · Browse.php · Preliminary XSS... · RSS feed passke... · Save PMs to temp! · Rating using ajax · action script · Torrent Inline ... · Similar torrent... · Ratio Master · Nice signup usi... · New BBCode · Pre-time withou... · last 10 forum ... · Null Announce. | |
| Forthcoming Calendar Events within the next 5 days | |
| There are no forthcoming calendar events | |

";


