|
||
Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30 Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30 Notice: Undefined index: codedivider in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30 Notice: Undefined index: codeselectall in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 30 Notice: Undefined index: codedivider in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Notice: Undefined index: codecopytoclipboard in /home/trforum/public_html/forum/Sources/Subs.php(1222) : runtime-created function on line 31 Bu ipucu sayesinde yönetici grupları olarak belirlediğimiz gruplara dahil olan kullanıcıların mesajları, bu grubun dışında kalan üyeler tarafından -herhangi bir mesajı editleme izni olsa dahi- değiştirilemez. (Eğer admin grubunu eklemezseniz, o bile değiştiremez. )Yönetici grupları birbirlerinin mesajlarını değiştirebilir. '1', '2', '3' yerine yönetici gruplarını aralarına virgül koyarak, aynı düzende yazmalısınız. ../Sources/Post.php Bul: elseif (isset($_REQUEST['msg'])) { checkSession('get'); Değiştir: elseif (isset($_REQUEST['msg'])) { checkSession('get'); $request = db_query(" SELECT m.ID_MEMBER, mem.ID_GROUP FROM {$db_prefix}messages as m LEFT JOIN {$db_prefix}members AS mem ON (mem.ID_MEMBER = m.ID_MEMBER) WHERE m.ID_MSG = $_REQUEST[msg] LIMIT 1", __FILE__, __LINE__); list ($poster, $group) = mysql_fetch_row($request); mysql_free_result($request); $staff_groups = array('1', '2', '3'); $permit = false; foreach ($staff_groups as $groups) { if(in_array($groups, $user_info['groups'])) $permit = true; } if (in_array($group, $staff_groups) && $permit == false) fatal_error('Yönetici mesajlarını değiştiremezsiniz.', false); Tamamiyle [SiNaN] yapımıdır. |
||