本文整理汇总了PHP中ispageadmin函数的典型用法代码示例。如果您正苦于以下问题:PHP ispageadmin函数的具体用法?PHP ispageadmin怎么用?PHP ispageadmin使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ispageadmin函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Clanpackage
# Copyright 2005-2011 by webspell.org #
# #
# visit webSPELL.org, webspell.info to get webSPELL for free #
# - Script runs under the GNU GENERAL PUBLIC LICENSE #
# - It's NOT allowed to remove this copyright-tag #
# -- http://www.fsf.org/licensing/licenses/gpl.html #
# #
# Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at), #
# Far Development by Development Team - webspell.org #
# #
# visit webspell.org #
# #
##########################################################################
*/
$_language->read_module('about');
if (!ispageadmin($userID) or mb_substr(basename($_SERVER['REQUEST_URI']), 0, 15) != "admincenter.php") {
die($_language->module['access_denied']);
}
echo '<h1>¤ ' . $_language->module['about'] . '</h1>';
if (isset($_POST['submit']) != "") {
$about = $_POST['message'];
$CAPCLASS = new Captcha();
if ($CAPCLASS->check_captcha(0, $_POST['captcha_hash'])) {
if (mysql_num_rows(safe_query("SELECT * FROM " . PREFIX . "about"))) {
safe_query("UPDATE " . PREFIX . "about SET about='" . $about . "'");
} else {
safe_query("INSERT INTO " . PREFIX . "about (about) values( '" . $about . "') ");
}
redirect("admincenter.php?site=about", "", 0);
} else {
echo $_language->module['transaction_invalid'];
示例2: if
<td bgcolor="#FFFFFF"><p>• <a href="?site=squads">Squads</a><br>
• <a href="?site=members">Clanmembers</a><br>
• <a href="?site=users">Registered Users</a>
</p></td>
</tr>
</table>
<?php } ?>
<br> <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
<tr>
<td bgcolor="#CCCCCC"><strong>Rubrics</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><p> • <a href="?site=rubrics">News-Rubrics</a>
</p></td>
</tr>
</table> <?php if(ispageadmin($userID)) { ?>
<br> <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
<tr>
<td bgcolor="#CCCCCC"><strong>Pageinhalt</strong></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">• <a href="?site=styles">Styles</a><br>
• <a href="?site=settings">Settings</a></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">• <a href="?site=bosse">Bosse</a><br>• <a href="?site=history">About</a><br>
• <a href="?site=impressum">Impressum</a></td>
</tr>
</table>
<?php } if(isforumadmin($userID)) { ?>
<br> <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#999999">
示例3: eval
}
}
eval("\$faq_answer_head = \"" . gettemplate("faq_answer_head") . "\";");
echo $faq_answer_head;
$bg1 = BG_1;
$date = date("d.m.Y", $ds['date']);
$answer = htmloutput($ds['answer']);
eval("\$faq_answer = \"" . gettemplate("faq_answer") . "\";");
echo $faq_answer;
eval("\$faq_foot = \"" . gettemplate("faq_foot") . "\";");
echo $faq_foot;
} else {
echo $_language->module['no_faq'];
}
} else {
if (ispageadmin($userID)) {
echo '<input type="button" onclick="MM_openBrWindow(\'admin/admincenter.php?site=faq\',\'News\',\'toolbar=yes,status=yes,scrollbars=yes,resizable=yes,width=800,height=600\')" value="' . $_language->module['admin_button'] . '" /><br /><br />';
}
$faqcats = safe_query("SELECT * FROM " . PREFIX . "faq_categories ORDER BY sort");
$anzcats = mysql_num_rows($faqcats);
if ($anzcats) {
eval("\$faq_category_head = \"" . gettemplate("faq_category_head") . "\";");
echo $faq_category_head;
$i = 1;
while ($ds = mysql_fetch_array($faqcats)) {
$anzfaqs = mysql_num_rows(safe_query("SELECT faqID FROM " . PREFIX . "faq WHERE faqcatID='" . $ds['faqcatID'] . "'"));
if ($i % 2) {
$bg1 = BG_1;
$bg2 = BG_2;
} else {
$bg1 = BG_3;
示例4:
if (isclanwaradmin($id)) {
$cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$cwadmin = '<input type="checkbox" name="cwadmin" value="1" onmouseover="showWMTT(\'id6\')" onmouseout="hideWMTT()" />';
}
if (isforumadmin($id)) {
$board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$board = '<input type="checkbox" name="boardadmin" value="1" onmouseover="showWMTT(\'id7\')" onmouseout="hideWMTT()" />';
}
if (isanymoderator($id)) {
$mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$mod = '<input type="checkbox" name="moderator" value="1" onmouseover="showWMTT(\'id8\')" onmouseout="hideWMTT()" />';
}
if (ispageadmin($id)) {
$page = '<input type="checkbox" name="pageadmin" value="1" onmouseover="showWMTT(\'id9\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$page = '<input type="checkbox" name="pageadmin" value="1" onmouseover="showWMTT(\'id9\')" onmouseout="hideWMTT()" />';
}
if (isfileadmin($id)) {
$file = '<input type="checkbox" name="fileadmin" value="1" onmouseover="showWMTT(\'id10\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$file = '<input type="checkbox" name="fileadmin" value="1" onmouseover="showWMTT(\'id10\')" onmouseout="hideWMTT()" />';
}
if (iscashadmin($id)) {
$cash = '<input type="checkbox" name="cashadmin" value="1" onmouseover="showWMTT(\'id11\')" onmouseout="hideWMTT()" checked="checked" />';
} else {
$cash = '<input type="checkbox" name="cashadmin" value="1" onmouseover="showWMTT(\'id11\')" onmouseout="hideWMTT()" />';
}
if (isgalleryadmin($id)) {
示例5: redirect
redirect("admincenter.php?site=lock", $_language->module['transaction_invalid'], 3);
}
} else {
$ergebnis = safe_query("SELECT * FROM `" . PREFIX . "lock`");
$ds = mysql_fetch_array($ergebnis);
$CAPCLASS = new Captcha();
$CAPCLASS->create_transaction();
$hash = $CAPCLASS->get_hash();
echo '<form method="post" action="admincenter.php?site=lock">
<b>' . $_language->module['pagelock'] . '</b><br /><small>' . $_language->module['you_can_use_html'] . '</small><br /><br />
<textarea name="reason" rows="30" cols="" style="width: 100%;">' . getinput($ds['reason']) . '</textarea><br /><br /><input type="hidden" name="captcha_hash" value="' . $hash . '" />
<input type="submit" name="submit" value="' . $_language->module['lock'] . '" />
</form>';
}
} else {
if (isset($_POST['submit']) != "" and isset($_POST['unlock']) and ispageadmin($userID)) {
$CAPCLASS = new Captcha();
if ($CAPCLASS->check_captcha(0, $_POST['captcha_hash'])) {
safe_query("UPDATE `" . PREFIX . "settings` SET closed='0'");
redirect("admincenter.php?site=lock", $_language->module['page_unlocked'], 3);
} else {
redirect("admincenter.php?site=lock", $_language->module['transaction_invalid'], 3);
}
} else {
$ergebnis = safe_query("SELECT * FROM `" . PREFIX . "lock`");
$ds = mysql_fetch_array($ergebnis);
$CAPCLASS = new Captcha();
$CAPCLASS->create_transaction();
$hash = $CAPCLASS->get_hash();
echo '<form method="post" action="admincenter.php?site=lock">
' . $_language->module['locked_since'] . ' ' . date("d.m.Y - H:i", $ds['time']) . '.<br /><br />
示例6: eval
} else {
$adminaction = '';
}
eval("\$links_details = \"" . gettemplate("links_details") . "\";");
echo $links_details;
unset($banner);
}
eval("\$links_foot = \"" . gettemplate("links_foot") . "\";");
echo $links_foot;
} else {
echo $_language->module['no_links'] . '<br /><br />
[ <a href="index.php?site=links">' . $_language->module['go_back'] . '</a> ]';
}
} else {
$_language->read_module('links');
if (ispageadmin($userID) || isnewsadmin($userID)) {
echo '<input type="button" onclick="MM_goToURL(\'parent\',\'index.php?site=links&action=new\');return document.MM_returnValue" value="' . $_language->module['new_link'] . '" /><br /><br />';
}
$cats = safe_query("SELECT * FROM " . PREFIX . "links_categorys ORDER BY name");
if (mysql_num_rows($cats)) {
$anzcats = mysql_num_rows(safe_query("SELECT linkcatID FROM " . PREFIX . "links_categorys"));
$bg1 = BG_1;
eval("\$links_category = \"" . gettemplate("links_category") . "\";");
echo $links_category;
$i = 1;
while ($ds = mysql_fetch_array($cats)) {
$anzlinks = mysql_num_rows(safe_query("SELECT linkID FROM " . PREFIX . "links WHERE linkcatID='" . $ds['linkcatID'] . "'"));
if ($i % 2) {
$bg1 = BG_1;
$bg2 = BG_2;
} else {