Forum Topic Owner
Dosya işerisinde
FORUM klasşrşnde uygulamanşn yapşlşş şekilleri vardşr.
///////////////////////////////////////////////////
Kodlar şizgi arasşna alşnmşştşr.
Nasşl ekleyeceşinizi ordan gşrebilirsiniz.
///////////////////////////////////////////////////
system/core/forums/forums.editpost.inc.php
Kod:
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('forums', $s);
/* === Hook === */
$extp = sed_getextplugins('forums.editpost.rights');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include_once('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */
if (!$usr['isadmin'] && $fp_posterid!=$usr['id'])
system/core/forums/forums.inc.php
Kod:
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('forums', 'any');
/* === Hook === */
$extp = sed_getextplugins('forums.sections.rights');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include_once('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */
sed_block($usr['auth_read']);
system/core/forums/forums.newtopic.inc.php
Kod:
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('forums', $s);
/* === Hook === */
$extp = sed_getextplugins('forums.newtopic.rights');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include_once('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */
sed_block($usr['auth_write']);
}
system/core/forums/forums.posts.inc.php
Kod:
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('forums', $s);
/* === Hook === */
$extp = sed_getextplugins('forums.posts.rights');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include_once('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */
sed_block($usr['auth_read']);
system/core/forums/forums.topics.inc.php
Kod:
list($usr['auth_read'], $usr['auth_write'], $usr['isadmin']) = sed_auth('forums', $s);
/* === Hook === */
$extp = sed_getextplugins('forums.topics.rights');
if (is_array($extp))
{ foreach($extp as $k => $pl) { include_once('plugins/'.$pl['pl_code'].'/'.$pl['pl_file'].'.php'); } }
/* ===== */
sed_block($usr['auth_read']);