本文整理汇总了PHP中check_admin_pass函数的典型用法代码示例。如果您正苦于以下问题:PHP check_admin_pass函数的具体用法?PHP check_admin_pass怎么用?PHP check_admin_pass使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了check_admin_pass函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_favicons
echo "<link rel='stylesheet' href='" . INCLUDES . "fonts/font-awesome/css/font-awesome.min.css' type='text/css' />\n";
}
// Default CSS styling which applies to all themes but can be overriden
echo "<link href='" . THEMES . "templates/default.css' rel='stylesheet' type='text/css' media='screen' />";
// Admin Panel Theme CSS
echo "<link href='" . THEMES . "admin_themes/" . $settings['admin_theme'] . "/acp_styles.css' rel='stylesheet' type='text/css' media='screen' />";
// jQuery related includes
echo "<script type='text/javascript' src='" . INCLUDES . "jquery/jquery.js'></script>";
echo "<script type='text/javascript' src='" . INCLUDES . "jscript.js'></script>";
echo render_favicons(IMAGES);
if (function_exists("get_head_tags")) {
echo get_head_tags();
}
echo "</head><body>";
// Check if the user is logged in
if (!check_admin_pass('')) {
render_admin_login();
} else {
render_admin_panel();
}
if ($footerError) {
echo "<div class='p-15 m-t-10 error-message'>" . $footerError . "</div>";
}
echo "<script type='text/javascript' src='" . INCLUDES . "jquery/admin-msg.js'></script>\n";
echo "<script src='" . INCLUDES . "jscripts/html-inspector.js'></script>\n<script> HTMLInspector.inspect() </script>\n";
// Output lines added with add_to_footer()
echo $fusion_page_footer_tags;
// Output lines added with add_to_jquery()
if (!empty($fusion_jquery_tags)) {
$fusion_jquery_tags = \PHPFusion\Minifier::minify($fusion_jquery_tags, array('flaggedComments' => false));
echo "<script type='text/javascript'>\n\t\t\$(function() { {$fusion_jquery_tags}; });\n\t\t</script>\n";
示例2: while
echo "<table cellpadding='0' cellspacing='1' width='450' class='tbl-border center'>\n";
$i = 0;
$users = "";
while ($data = dbarray($result)) {
$row_color = $i % 2 == 0 ? "tbl1" : "tbl2";
$i++;
$users .= "<tr>\n<td class='{$row_color}'><label><input type='radio' name='user_id' value='" . $data['user_id'] . "' /> " . $data['user_name'] . "</label></td>\n</tr>";
}
if ($i > 0) {
echo "<tr>\n<td class='tbl2'><strong>" . $locale['413'] . "</strong></td>\n</tr>\n";
echo $users . "<tr>\n<td align='center' class='tbl'>\n";
echo "<label><input type='checkbox' name='all_rights' value='1' /> " . $locale['415'] . "</label><span style='color:red;font-weight:bold;margin-left:5px;'>*</span><br />\n";
if ($userdata['user_level'] == 103) {
echo "<label><input type='checkbox' name='make_super' value='1' /> " . $locale['416'] . "</label><span style='color:red;font-weight:bold;margin-left:5px;'>*</span><br />\n";
}
if (!check_admin_pass(isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "")) {
echo $locale['447'] . " <input type='password' name='admin_password' class='textbox' style='width:150px;' autocomplete='off' /><br /><br />\n";
}
echo "<br />\n<input type='submit' name='add_admin' value='" . $locale['417'] . "' class='button' onclick=\"return confirm('" . $locale['461'] . "');\" />\n";
echo "</td>\n</tr>\n";
echo "<tr>\n<td class='tbl' style='font-weight:bold;text-align:left; color:black !important; background-color:#FFDBDB;'><span style='color:red;font-weight:bold;margin-right:5px;'>*</span>" . $locale['462'] . "</td>\n</tr>\n";
} else {
echo "<tr>\n<td align='center' class='tbl'>" . $locale['418'] . "<br /><br />\n";
echo "<a href='" . FUSION_SELF . $aidlink . "'>" . $locale['419'] . "</a>\n</td>\n</tr>\n";
}
echo "</table>\n</form>\n";
} else {
echo "<table cellpadding='0' cellspacing='1' width='450' class='tbl-border center'>\n";
echo "<tr>\n<td align='center' class='tbl'>" . $locale['418'] . "<br /><br />\n";
echo "<a href='" . FUSION_SELF . $aidlink . "'>" . $locale['419'] . "</a>\n</td>\n</tr>\n</table>\n";
}
示例3: while
while ($data = dbarray($result)) {
$reset_opts .= "<option value='" . $data['user_id'] . "'>" . $data['user_name'] . " " . ($data['user_level'] == 102 ? "(A)" : "(SA)") . "</option>\n";
}
opentable($locale['apw_title']);
echo "<form name='admin_reset' method='post' action='" . FUSION_SELF . $aidlink . "'>\n";
echo "<table cellpadding='0' cellspacing='0' width='70%' class='admin-reset tbl-border center'>\n<tr>\n";
echo "<td class='tbl1' width='250'><label for='reset_admin'>" . $locale['400'] . "</label></td>\n";
echo "<td class='tbl1'><select id='reset_admin' name='reset_admin' class='textbox'>" . $reset_opts . "</select></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1' width='250' valign='top'><label for='reset_message'>" . $locale['404'] . "</label></td>\n";
echo "<td class='tbl1'><textarea id='reset_message' name='reset_message' cols='70' rows='4' style='width:300px;' class='textbox'></textarea></td>\n";
echo "</tr>\n<tr>\n";
echo "<td class='tbl1' width='250' valign='top'></td>\n";
echo "<td class='tbl1'><label><input type='checkbox' name='reset_login' value='1' /> " . $locale['405'] . "</label></td>\n";
$admin_password = isset($_POST['admin_password']) ? stripinput($_POST['admin_password']) : "";
if (!check_admin_pass($admin_password)) {
echo "</tr>\n<tr>\n";
echo "<td class='tbl1'>" . $locale['412'] . "</td>\n";
echo "<td class='tbl1'><input type='password' name='admin_password' value='" . $admin_password . "' class='textbox' style='width:150px;' autocomplete='off' /></td>\n";
}
echo "</tr>\n<tr>\n";
echo "<td class='tbl1' width='250' valign='top'></td>\n";
echo "<td class='tbl1'><input type='submit' name='reset_admins' value='" . $locale['406'] . "' class='button' /></td>\n";
echo "</tr>\n</table>\n</form>\n";
closetable();
$titles = array("all" => $locale['401'], "sa" => $locale['402'], "a" => $locale['403']);
opentable($locale['415']);
echo "<table cellpadding='0' cellspacing='0' width='70%' class='admin-reset tbl-border center'>\n<tr>\n";
echo "<td class='tbl2' valign='top'><strong>" . $locale['417'] . "</strong></td>\n";
echo "<td class='tbl2' valign='top'><strong>" . $locale['418'] . "</strong></td>\n";
echo "<td class='tbl2' valign='top'><strong>" . $locale['419'] . "</strong></td>\n";