当前位置: 首页>>代码示例>>PHP>>正文


PHP show_admin_header函数代码示例

本文整理汇总了PHP中show_admin_header函数的典型用法代码示例。如果您正苦于以下问题:PHP show_admin_header函数的具体用法?PHP show_admin_header怎么用?PHP show_admin_header使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了show_admin_header函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: define

 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/
define('IN_CP', 1);
define('ROOT_PATH', './../');
require 'admin_global.php';
if ($redirect != "") {
    if (strpos($redirect, '://') === false) {
        show_admin_header("<meta http-equiv=\"Refresh\" content=\"0; URL=" . $site_sess->url($redirect) . "\">");
        echo "<p><a href=\"" . $site_sess->url($redirect) . "\">" . $lang['admin_login_redirect'] . "</a></p>";
        show_admin_footer();
    } else {
        redirect('home.php');
    }
    exit;
}
if ($action == "") {
    $action = "frames";
}
if ($action == "frames") {
    if ($goto != "" && strpos($goto, '://') === false) {
        $framesrc = $site_sess->url($goto);
    } else {
        $framesrc = $site_sess->url("home.php");
开发者ID:abhinay100,项目名称:fourimages_app,代码行数:31,代码来源:index.php

示例2: while

        while (file_exists($file_name . $copy . "." . $file_ext)) {
            $copy = "_" . $n;
            $n++;
        }
    }
    $file = $file_name . $copy . "." . $file_ext;
    $ok = rename($file_src, $file);
    chdir($oldwd);
    return $ok ? $file : false;
}
// END FUNCTIONS
if ($action == "") {
    $action = "checkimages";
}
$status = 0;
show_admin_header();
if ($action == "savenewimages") {
    @(include ROOT_PATH . "includes/db_field_definitions.php");
    $date = time();
    $error = array();
    $num_newimages = $HTTP_POST_VARS['num_newimages'];
    $detailed = $HTTP_POST_VARS['detailed'];
    $auto_resize = isset($HTTP_POST_VARS['auto_resize']) && $HTTP_POST_VARS['auto_resize'] == 1 ? 1 : 0;
    $auto_thumbs = isset($HTTP_POST_VARS['auto_thumbs']) && $HTTP_POST_VARS['auto_thumbs'] == 1 ? 1 : 0;
    $dimension = isset($HTTP_POST_VARS['dimension']) ? intval($HTTP_POST_VARS['dimension']) : $dimension_default;
    $resize_type = isset($HTTP_POST_VARS['resize_type']) ? intval($HTTP_POST_VARS['resize_type']) : 1;
    $quality = isset($HTTP_POST_VARS['quality']) && intval($HTTP_POST_VARS['quality']) && intval($HTTP_POST_VARS['quality']) <= 100 ? intval($HTTP_POST_VARS['quality']) : $quality_default;
    $dimension_thumbs = isset($HTTP_POST_VARS['dimension_thumbs']) ? intval($HTTP_POST_VARS['dimension_thumbs']) : $dimension_thumbs_default;
    $resize_type_thumbs = isset($HTTP_POST_VARS['resize_type_thumbs']) ? intval($HTTP_POST_VARS['resize_type_thumbs']) : 1;
    $quality_thumbs = isset($HTTP_POST_VARS['quality_thumbs']) && intval($HTTP_POST_VARS['quality_thumbs']) && intval($HTTP_POST_VARS['quality_thumbs']) <= 100 ? intval($HTTP_POST_VARS['quality_thumbs']) : $quality_thumbs_default;
    $big = isset($HTTP_POST_VARS['big']) && $HTTP_POST_VARS['big'] == 1 ? 1 : $big_default;
开发者ID:4images,项目名称:4images,代码行数:31,代码来源:checkimages.php

示例3: array

        $group_id = $row['group_id'];
    }
    $sql = "SELECT group_id\n          FROM " . GROUP_MATCH_TABLE . "\n          WHERE group_id = {$group_id} AND user_id = {$user_id}";
    if ($site_db->is_empty($sql)) {
        $sql = "INSERT INTO " . GROUP_MATCH_TABLE . "\n            (group_id, user_id, groupmatch_startdate, groupmatch_enddate)\n            VALUES\n            ({$group_id}, {$user_id}, 0, 0)";
        $site_db->query($sql);
    }
    return array("group_id" => $group_id, "group_name" => $group_name);
}
show_admin_header('
    <script language="JavaScript">
    <!--
    function CheckAllCats(el, type) {
      for (var i=0;i<document.form.elements.length;i++) {
        var e = document.form.elements[i];
        if (e.name != el && e.name.indexOf("["+type+"]") > 0) {
          e.checked = el.checked;
        }
      }
    }
    // -->
    </script>
');
if ($action == "updateuser") {
    $user_groups = isset($HTTP_POST_VARS['user_groups']) ? $HTTP_POST_VARS['user_groups'] : "";
    $user_id = intval($HTTP_POST_VARS['user_id']);
    if (!empty($user_groups)) {
        $group_delete_sql = "";
        foreach ($user_groups as $key => $val) {
            $group_delete_sql .= ($group_delete_sql != "" ? ", " : "") . $key;
        }
        if (!empty($group_delete_sql)) {
开发者ID:abhinay100,项目名称:fourimages_app,代码行数:32,代码来源:usergroups.php


注:本文中的show_admin_header函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。