function itemoptions($item_type, $item_id) {
global $locale, $aidlink; /*$user_id == $news_name, $user_id == $article_name*/$res = "";
if ($item_type == "N") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_news_opts--> · <a href='".ADMIN."news.php".$aidlink."&action=edit&news_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
} elseif ($item_type == "A") {
if (iADMIN && checkrights($item_type)) { $res .= "<!--article_admin_opts--> · <a href='".ADMIN."articles.php".$aidlink."&action=edit&article_id=".$item_id."'><img src='".get_image("edit")."' alt='".$locale['global_076']."' title='".$locale['global_076']."' style='vertical-align:middle;border:0;' /></a>\n"; }
}
return $res;
}
$user_id == $article_name, $user_id == $news_name
Category Forum
System Administration - 8Labels
None yet
Statistics
1 participant
Notifications
You are not receiving notifications from this thread.
Related Questions