當前位置: 首頁>>代碼示例>>PHP>>正文


PHP pageheader函數代碼示例

本文整理匯總了PHP中pageheader函數的典型用法代碼示例。如果您正苦於以下問題:PHP pageheader函數的具體用法?PHP pageheader怎麽用?PHP pageheader使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了pageheader函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: show_memberlist

function show_memberlist()
{
    cpg_db_query("DELETE FROM {$CONFIG['TABLE_USERS']} WHERE user_name = '' LIMIT 1");
    pageheader($lang_usermgr_php['title']);
    list_users();
    pagefooter();
}
開發者ID:CatBerg-TestOrg,項目名稱:coppermine_1.6.x,代碼行數:7,代碼來源:usermgr.php

示例2: message

 function message($title, $message, $link, $time = 2)
 {
     global $CONFIG;
     if ($CONFIG['display_redirection_page'] == 0) {
         header("Location: {$link}&message_id=" . cpgStoreTempMessage($message));
     } else {
         pageheader($title, "<META http-equiv=\"refresh\" content=\"{$time};url={$link}\">");
         msg_box($title, $message, Lang::item('common.continue'), $link);
         pagefooter();
     }
     exit;
 }
開發者ID:phill104,項目名稱:branches,代碼行數:12,代碼來源:forum_helper.php

示例3: fix_ratepic

function fix_ratepic()
{
    //replaces distribution ratepic by function to manage votes
    if (defined("RATEPIC_PHP")) {
        global $CONFIG;
        // Check if required parameters are present
        if (!isset($_GET['pic']) || !isset($_GET['rate'])) {
            return "";
        }
        $pic = (int) $_GET['pic'];
        $rate = (int) $_GET['rate'];
        $rate = min($rate, 10);
        $rate = max($rate, 1);
        // If user does not accept script's cookies, we don't accept the vote
        if (!isset($_COOKIE[$CONFIG['cookie_name'] . '_data'])) {
            header('Location: displayimage.php?pos=' . -$pic);
            exit;
        }
        // If referer is not displayimage.php we don't accept the vote
        if (!eregi("displayimage", $_SERVER["HTTP_REFERER"])) {
            header('Location: displayimage.php?pos=' . -$pic);
            exit;
        }
        // Retrieve picture/album information & check if user can rate picture, and if this is a contest - else let go to normal ratepic
        $sql = "SELECT a.votes as votes_allowed, a.contest, p.votes as votes, pic_rating, owner_id " . "FROM {$CONFIG['TABLE_PICTURES']} AS p, {$CONFIG['TABLE_ALBUMS']} AS a " . "WHERE p.aid = a.aid AND pid = '{$pic}' LIMIT 1";
        $result = cpg_db_query($sql);
        if (!mysql_num_rows($result)) {
            return "";
        }
        $row = mysql_fetch_array($result);
        if (!USER_CAN_RATE_PICTURES || $row['votes_allowed'] == 'NO' || $row['contest'] == 'NO') {
            return "";
        }
        //removed previous votes for USER_ID
        cpg_db_query("DELETE FROM `{$CONFIG['TABLE_PREFIX']}user_votes` WHERE pid = {$pic} AND user_id  = " . USER_ID);
        // insert new vote
        cpg_db_query("INSERT INTO `{$CONFIG['TABLE_PREFIX']}user_votes` SET pid = {$pic}, rating = {$rate},user_id  = " . USER_ID);
        // get average rating and store them with the image
        $result = cpg_db_query("SELECT COUNT(rating), SUM(rating) FROM `{$CONFIG['TABLE_PREFIX']}user_votes` WHERE pid = {$pic}");
        if ($row = mysql_fetch_array($result)) {
            $count = $row[0];
            $average = round($row[1] * 2000.0 / $count);
        } else {
            $count = 0;
            $average = 0;
        }
        $result = cpg_db_query("UPDATE {$CONFIG['TABLE_PICTURES']}  SET pic_rating = '{$average}', votes = {$count}  WHERE pid = '{$pic}' LIMIT 1");
        // record the details of hits for the picture if the option is set in CONFIG
        if ($CONFIG['vote_details']) {
            $client_details = cpg_determine_client();
            $os = $client_details['os'];
            $browser = $client_details['browser'];
            $time = time();
            $referer = addslashes(htmlentities($_SERVER['HTTP_REFERER']));
            cpg_db_query("INSERT INTO {$CONFIG['TABLE_VOTE_STATS']} SET pid = {$pic},rating = {$rate},Ip   = '{$raw_ip}',sdate = '{$time}',referer = '{$referer}',browser = '{$browser}',os = '{$os}'");
        }
        $location = "displayimage.php?pos=" . -$pic;
        $header_location = @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ? 'Refresh: 0; URL=' : 'Location: ';
        header($header_location . $location);
        pageheader($lang_info, "<META http-equiv=\"refresh\" content=\"1;url={$location}\">");
        msg_box($lang_info, $lang_rate_pic_php['rate_ok'], $lang_continue, $location);
        pagefooter();
        ob_end_flush();
    }
    return "";
}
開發者ID:phill104,項目名稱:branches,代碼行數:66,代碼來源:codebase.php

示例4: cpg_die

  $LastChangedBy$
  $Date$
  **************************************************/
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
}
require_once "./plugins/limit_upload/lang/english.php";
if ($CONFIG['lang'] != 'english' && file_exists("./plugins/limit_upload/lang/{$CONFIG['lang']}.php")) {
    require_once "./plugins/limit_upload/lang/{$CONFIG['lang']}.php";
}
$plugin_limit_upload_icon_array['submit'] = cpg_fetch_icon('ok', 1);
if (in_array('js/jquery.spinbutton.js', $JS['includes']) != TRUE) {
    $JS['includes'][] = 'js/jquery.spinbutton.js';
}
$JS['includes'][] = 'plugins/limit_upload/script.js';
pageheader($lang_plugin_limit_upload['limit_upload'] . " - " . $lang_gallery_admin_menu['admin_lnk']);
$superCage = Inspekt::makeSuperCage();
global $lang_common;
if ($superCage->post->keyExists('submit')) {
    if (!checkFormToken()) {
        global $lang_errors;
        cpg_die(ERROR, $lang_errors['invalid_form_token'], __FILE__, __LINE__);
    }
    if (is_numeric($superCage->post->getInt('upload_limit'))) {
        if ($superCage->post->getInt('upload_limit') >= 0) {
            cpg_db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . $superCage->post->getInt('upload_limit') . "' WHERE name = 'limit_upload_upload_limit'");
        }
    }
    if (array_key_exists($superCage->post->getAlpha('time_limit'), $lang_plugin_limit_upload['upload_limit_values'])) {
        cpg_db_query("UPDATE {$CONFIG['TABLE_CONFIG']} SET value = '" . $superCage->post->getAlpha('time_limit') . "' WHERE name = 'limit_upload_time_limit'");
    }
開發者ID:phill104,項目名稱:branches,代碼行數:31,代碼來源:admin.php

示例5: endtable

<table class="pms_legend" cellpadding="0" cellspacing="0" border="0" width="100%" align="center">
<tr><td><img src="{$THEME_DIR}images/s_neg.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['pos']}</td></tr>
<tr><td><img src="{$THEME_DIR}images/s_pos.gif" border="0" alt="" /></td><td class="smallfont">&nbsp;&nbsp;{$lang_photoshop_admin['neg']}</td></tr>


EOT;
    endtable();
    pagefooter();
    ob_end_flush();
} else {
    //display specific order oid
    $result = $cpg_udb->photo_shop_fetch_user($oid);
    $row = mysql_fetch_assoc($result);
    mysql_free_result($result);
    pageheader($lang_photoshop_admin['o_board_title']);
    echo <<<EOT
<form action="index.php?file=photo_shop/photo_shop_myorders" method="post" name="form">
<table class="maintable" cellpadding="0" cellspacing="1" border="0" width="100%" align="center">
<thead>
\t<tr>
\t\t<td class="tableh1" colspan="4" style="padding: 6px 0 6px 6px">
\t\t\t<span class="smallfont" style="float:right">
\t\t\t\t<label for="checkall_all">
\t\t\t\t{$lang_photoshop_admin['order_id']}: <strong>{$oid}</strong>&nbsp;
\t\t\t\t</label>
\t\t\t</span>
\t\t\t<strong>{$lang_photoshop_admin['order_id']}</strong>: {$oid} - <strong>{$lang_photoshop_admin['items']}</strong>: {$row['quantity']} - <strong>{$CONFIG['photo_shop_currency']} {$lang_photoshop_admin['usd_total']}</strong>: {$row['price']} {$lang_photoshop_admin['incl_ship']}<br>
\t\t\t<span style="cursor:pointer" onclick="window.location='profile.php?uid={$row['uid']}';">{$row['user_name']}</span> -
\t\t\t<span style="cursor:pointer" onclick="window.location='mailto:{$row['user_email']}';">{$row['user_email']}</span>
\t\t</td>
開發者ID:phill104,項目名稱:branches,代碼行數:30,代碼來源:photo_shop_myorders.php

示例6: Copyright

<?php

/**************************************************
  Coppermine 1.5.x Plugin - forum
  *************************************************
  Copyright (c) 2010 foulu (Le Hoai Phuong), eenemeenemuu
  *************************************************
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version.
  ********************************************
  $HeadURL$
  $Revision$
  $LastChangedBy$
  $Date$
  **************************************************/
pageheader($fr_title ? $fr_title : Config::item('fr_title'));
print html::spacer();
print table::open(0);
print table::tds(array(array('text' => $fr_title ? $fr_title : Config::item('fr_title')), array('align' => 'right', 'text' => ($authorizer->is_user() ? html::button('forum.php?c=profile', Lang::item('home.fr_profile')) : '') . NBSP . html::button('forum.php?c=search', Lang::item('home.search')))));
print table::close();
print html::spacer();
print table::open();
print form::hidden('c', 'search');
print table::tds(array(array('class' => 'tableb', 'text' => html::span(forum::nagavitor($nagavitor)))));
print table::close();
print html::spacer();
print $fr_contents;
pagefooter();
開發者ID:phill104,項目名稱:branches,代碼行數:30,代碼來源:admin.php

示例7: umask

            if (!is_dir('./plugins/receive')) {
                $mask = umask(0);
                mkdir('./plugins/receive', 0777);
                umask($mask);
            }
            if (!move_uploaded_file($superCage->files->getRaw('plugin/tmp_name'), './plugins/receive/' . $file['name'])) {
                cpg_die(CRITICAL_ERROR, $lang_pluginmgr_php['copy_error'], __FILE__, __LINE__);
            }
            require_once './include/zip.lib.php';
            $zip = new Zip();
            $zip->Extract('./plugins/receive/' . $file['name'], './plugins', array(-1));
            unlink('./plugins/receive/' . $file['name']);
        }
        break;
}
pageheader($lang_pluginmgr_php['pmgr']);
if (isset($lang_pluginmgr_php['confirm_version']) != TRUE) {
    $lang_pluginmgr_php['confirm_version'] = 'Could not determine the version requirements for this plugin. This is usually an indicator that the plugin was not designed for your version of coppermine and might therefore crash your gallery. Continue anway (not recommended)?';
}
echo <<<EOT

<script language="javascript" type="text/javascript">
function confirmUninstall(text)
{
    return confirm("{$lang_pluginmgr_php['confirm_uninstall']} (" + text + ")");
}

function confirmRemove(text)
{
    return confirm("{$lang_pluginmgr_php['confirm_remove']} (" + text + ")");
}
開發者ID:JoseCOCA,項目名稱:baudprint,代碼行數:31,代碼來源:pluginmgr.php

示例8: max

$next_target = URL::index('&amp;file=reviewcom&amp;start=' . ($start + $count) . '&amp;count=' . $count);
$prev_target = URL::index('&amp;file=reviewcom&amp;start=' . max(0, $start - $count) . '&amp;count=' . $count);
$s50 = $count == 50 ? 'selected' : '';
$s75 = $count == 75 ? 'selected' : '';
$s100 = $count == 100 ? 'selected' : '';
if ($start + $count < $comment_count) {
    $next_link = "<a href=\"{$next_target}\"><b>" . R_SEE_NEXT . "</b></a>&nbsp;&nbsp;-&nbsp;&nbsp;";
} else {
    $next_link = '';
}
if ($start > 0) {
    $prev_link = "<a href=\"{$prev_target}\"><b>" . R_SEE_PREV . "</b></a>&nbsp;&nbsp;-&nbsp;&nbsp;";
} else {
    $prev_link = '';
}
pageheader(REVIEW_TITLE);
starttable();
echo '
        <tr>
            <form action="' . URL::index("&amp;file=reviewcom&amp;start=" . $start . "&amp;count=" . $count) . '" method="post" enctype="multipart/form-data" accept-charset="' . _CHARSET . '">
                <td class="tableh1" colspan="3"><h2>' . REVIEW_TITLE . '</h2></td>
        </tr>

';
if ($nb_com_del > 0) {
    $msg_txt = sprintf(N_COMM_DEL, $nb_com_del);
    echo <<<EOT
        <tr>
                <td class="tableh2" colspan="3" align="center">
                        <br /><b>{$msg_txt}</b><br /><br />
                </td>
開發者ID:cbsistem,項目名稱:nexos,代碼行數:31,代碼來源:reviewcom.php

示例9: cpg_die

            cpg_die(ERROR, $lang_catmgr_php['unknown_cat'], __FILE__, __LINE__);
        }
        $del_category = $result->fetchAssoc(true);
        $parent = $del_category['parent'];
        cpg_db_query("UPDATE {$CONFIG['TABLE_CATEGORIES']} SET parent = {$parent}, lft = 0 WHERE parent = {$cid}");
        cpg_db_query("UPDATE {$CONFIG['TABLE_ALBUMS']} SET category = {$parent} WHERE category = {$cid}");
        cpg_db_query("DELETE FROM {$CONFIG['TABLE_CATEGORIES']} WHERE cid = {$cid}");
        //delete from categorymap
        cpg_db_query("DELETE FROM {$CONFIG['TABLE_CATMAP']} WHERE cid = {$cid}");
        break;
}
if ($op) {
    check_rebuild_tree();
}
get_subcat_data(0);
pageheader($lang_catmgr_php['manage_cat']);
starttable('100%', cpg_fetch_icon('cat_mgr', 2) . $lang_catmgr_php['category'] . '&nbsp;' . cpg_display_help('f=categories.htm&amp;as=cat_cp&amp;ae=cat_cp_end&amp;top=1', '800', '600'), 1);
echo <<<EOT
    <tr>
        <td class="tableb">
EOT;
starttable('100%');
// configure sort category alphabetically
$yes_selected = $CONFIG['categories_alpha_sort'] ? 'checked="checked"' : '';
$no_selected = !$CONFIG['categories_alpha_sort'] ? 'checked="checked"' : '';
$help = '&nbsp;' . cpg_display_help('f=configuration.htm&amp;as=admin_album_list_alphasort_start&amp;ae=admin_album_list_alphasort_end&amp;top=1', '600', '250');
echo <<<EOT
        <tr>
            <td class="tablef" colspan="8">
                        <form name="catsortconfig" action="{$CPG_PHP_SELF}" method="post">
                        {$lang_catmgr_php['categories_alpha_sort']}
開發者ID:CatBerg-TestOrg,項目名稱:coppermine,代碼行數:31,代碼來源:catmgr.php

示例10: add_picture

        // Create thumbnail and internediate image and add the image into the DB
        $result = add_picture($album, $filepath, $picture_name, 0, $title, $caption, $keywords, $user1, $user2, $user3, $user4, $category, $raw_ip, $hdr_ip, (int) $_POST['width'], (int) $_POST['height']);
        if (!$result) {
            @unlink($uploaded_pic);
            cpg_die(CRITICAL_ERROR, sprintf($lang_db_input_php['err_insert_pic'], $uploaded_pic) . '<br /><br />' . $ERROR, __FILE__, __LINE__, true);
        } elseif ($PIC_NEED_APPROVAL) {
            pageheader($lang_info);
            msg_box($lang_info, $lang_db_input_php['upload_success'], $lang_continue, 'index.php');
            // start: send admin approval mail added by gaugau: 03-11-09
            if ($CONFIG['upl_notify_admin_email']) {
                include_once 'include/mailer.inc.php';
                cpg_mail('admin', sprintf($lang_db_input_php['notify_admin_email_subject'], $CONFIG['gallery_name']), sprintf($lang_db_input_php['notify_admin_email_body'], USER_NAME, $CONFIG['ecards_more_pic_target'] . (substr($CONFIG["ecards_more_pic_target"], -1) == '/' ? '' : '/') . 'editpics.php?mode=upload_approval'));
            }
            // end: send admin approval mail
            ob_end_flush();
        } else {
            $header_location = @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ? 'Refresh: 0; URL=' : 'Location: ';
            $redirect = "displayimage.php?pos=" . -mysql_insert_id($CONFIG['LINK_ID']);
            header($header_location . $redirect);
            pageheader($lang_info, "<meta http-equiv=\"refresh\" content=\"1;url={$redirect}\" />");
            msg_box($lang_info, $lang_db_input_php['upl_success'], $lang_continue, $redirect);
            pagefooter();
            ob_end_flush();
            exit;
        }
        break;
        // Unknow event
    // Unknow event
    default:
        cpg_die(CRITICAL_ERROR, $lang_errors['param_missing'], __FILE__, __LINE__);
}
開發者ID:alencarmo,項目名稱:OCF,代碼行數:31,代碼來源:db_input.php

示例11: WHERE

$user_id = USER_ID;
// Compose the query
$query_string = "SELECT null FROM {$CONFIG['TABLE_BANNED']} WHERE (";
if (USER_ID) {
    $query_string .= "user_id={$user_id} OR ";
}
if ($raw_ip != $hdr_ip) {
    $query_string .= "'{$raw_ip}' LIKE ip_addr OR '{$hdr_ip}' LIKE ip_addr ";
} elseif ($raw_ip != '') {
    $query_string .= "'{$raw_ip}' LIKE ip_addr ";
}
$query_string .= ") AND brute_force=0 LIMIT 1";
$result = cpg_db_query($query_string);
unset($query_string);
if (mysql_num_rows($result)) {
    pageheader($lang_common['error']);
    msg_box($lang_common['information'], $lang_errors['banned']);
    pagefooter();
    exit;
}
mysql_free_result($result);
// Retrieve the "private" album set
if (!GALLERY_ADMIN_MODE && $CONFIG['allow_private_albums']) {
    get_private_album_set();
}
if (!USER_IS_ADMIN && $CONFIG['offline'] && $CPG_PHP_SELF != 'login.php' && $CPG_PHP_SELF != 'update.php') {
    pageheader($lang_errors['offline_title']);
    msg_box($lang_errors['offline_title'], $lang_errors['offline_text']);
    pagefooter();
    exit;
}
開發者ID:stephenjschaefer,項目名稱:APlusPhotography,代碼行數:31,代碼來源:init.inc.php

示例12: cpg_die

<?php

// If this file is called, all images in the database will be processed
// I don't know, if this causes a problem when there are a lot of images :-)
global $CONFIG, $flf_lang_var;
if (!GALLERY_ADMIN_MODE) {
    cpg_die(ERROR, $lang_errors['perm_denied'], __FILE__, __LINE__);
}
pageheader($flf_lang_var['deleteallhistograms']);
require_once 'include/histotag_histogram_support.php';
starttable("90%");
$insertedvalues = deleteAllHistograms();
print $insertedvalues . " " . $flf_lang_var['deleteallhistograms_success'];
endtable();
pagefooter();
ob_end_flush();
開發者ID:phill104,項目名稱:branches,代碼行數:16,代碼來源:deleteallhistograms.php

示例13: cpg_die

        cpg_die(ERROR, $lang_modifyalb_php['err_no_alb_to_modify'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_array($results);
    $CLEAN['album'] = $ALBUM_DATA['aid'];
} else {
    //$album = (int)$_GET['album'];
    $results = cpg_db_query("SELECT * FROM {$CONFIG['TABLE_ALBUMS']} WHERE aid='{$CLEAN['album']}'");
    if (!mysql_num_rows($results)) {
        cpg_die(CRITICAL_ERROR, $lang_errors['non_exist_ap'], __FILE__, __LINE__);
    }
    $ALBUM_DATA = mysql_fetch_array($results);
}
$cat = $ALBUM_DATA['category'];
$actual_cat = $cat;
//////////// main code start ///////////////////
pageheader(sprintf($lang_modifyalb_php['upd_alb_n'], $ALBUM_DATA['title']));
$album_lb = alb_list_box();
$help = '&nbsp;' . cpg_display_help('f=albums.htm&amp;as=album_prop&amp;ae=album_prop_end&amp;top=1', '600', '400');
starttable("100%", $lang_modifyalb_php['update'] . $help, 2);
echo <<<EOT
        <tr>
            <td class="tableh2" align="center">
                <a href="editpics.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['edit_files']}</a>
                &nbsp;&nbsp;-&nbsp;&nbsp;
                <a href="index.php?cat={$ALBUM_DATA['category']}" class="admin_menu">{$lang_modifyalb_php['parent_category']}</a>
                &nbsp;&nbsp;-&nbsp;&nbsp;
                <a href="thumbnails.php?album={$CLEAN['album']}" class="admin_menu">{$lang_modifyalb_php['thumbnail_view']}</a>
            </td>
            <td class="tableh2" align="right">
            {$album_lb}
            </td>
開發者ID:phill104,項目名稱:branches,代碼行數:31,代碼來源:modifyalb.php

示例14: cpg_die

}
global $db;
if (!USER_ID) {
    cpg_die(_ERROR, ACCESS_DENIED);
}
//, __FILE__, __LINE__
$sql = "SELECT username, user_email, user_regdate as user_regdate_cp, group_name, " . "user_from, user_interests, user_website, user_occ, " . "COUNT(pid) as pic_count, ROUND(SUM(total_filesize)/1024) as disk_usage, group_quota " . "FROM {$CONFIG['TABLE_USERS']} AS u " . "INNER JOIN {$CONFIG['TABLE_USERGROUPS']} AS g ON user_group_cp = group_id " . "LEFT JOIN {$CONFIG['TABLE_ALBUMS']} AS a ON category = " . FIRST_USER_CAT . " + user_id " . "LEFT JOIN {$CONFIG['TABLE_PICTURES']} AS p ON p.aid = a.aid " . "WHERE user_id ='" . USER_ID . "' " . "GROUP BY user_id, username, user_email, user_regdate, group_name, user_from, user_interests, user_website, user_occ, group_quota";
$result = $db->sql_query($sql);
if (!$db->sql_numrows($result)) {
    cpg_die(_ERROR, $lang_register_php['err_unk_user'], __FILE__, __LINE__);
}
$user_data = $db->sql_fetchrow($result);
$db->sql_freeresult($result);
$form_data = array('username' => $user_data['username'], 'reg_date' => localised_date($user_data['user_regdate_cp'], REGISTER_DATE_FMT), 'group' => $user_data['group_name'], 'email' => $user_data['user_email'], 'disk_usage' => $user_data['disk_usage'] ? $user_data['disk_usage'] : 0 . ($user_data['group_quota'] ? '/' . $user_data['group_quota'] : '') . ' ' . $lang_byte_units[1], 'location' => $user_data['user_from'], 'interests' => $user_data['user_interests'], 'website' => $user_data['user_website'], 'occupation' => $user_data['user_occ']);
$title = sprintf(X_S_PROFILE, CPG_USERNAME);
pageheader($title);
starttable(-1, $title, 2);
$chset = _CHARSET;
echo '<form method="post" action="' . URL::index("") . '" enctype="multipart/form-data" accept-charset="$chset">';
make_form($edit_profile_form_param, $form_data);
echo <<<EOT
        
        </form>

EOT;
endtable();
if (defined('CPG_NUKE')) {
    get_lang("Your_Account");
    require_once 'modules/Your_Account/functions.php';
    require "modules/Your_Account/userinfo.php";
    userinfo(USER_ID);
開發者ID:cbsistem,項目名稱:nexos,代碼行數:31,代碼來源:profile.php

示例15: pagefooter

                print '</form>';
            }
            // end if error
            break;
    }
    print "<br />\n";
    pagefooter();
} else {
    // not in gallery admin mode --- start
    if ($CONFIG['bridge_enable'] != 1) {
        cpg_die(ERROR, $lang_errors['access_denied'], __FILE__, __LINE__);
    }
    // initialize vars
    $step = $_POST['step'];
    $new_line = "\n";
    pageheader($lang_bridgemgr_php['title']);
    switch ($step) {
        case "attempt_to_disable":
            // check if the wait time is over; if it isn't, send them back
            $results = cpg_db_query("SELECT value FROM {$CONFIG['TABLE_BRIDGE']} WHERE name = 'recovery_logon_timestamp'");
            if (mysql_num_rows($results)) {
                $row = mysql_fetch_array($results);
            }
            $recovery_logon_timestamp = $row['value'];
            //print $recovery_logon_timestamp;
            $results = cpg_db_query("SELECT value FROM {$CONFIG['TABLE_BRIDGE']} WHERE name = 'recovery_logon_failures'");
            if (mysql_num_rows($results)) {
                $row = mysql_fetch_array($results);
            }
            $recovery_logon_failures = $row['value'];
            $logon_allowed = cpg_check_allowed_emergency_logon($recovery_logon_timestamp, $recovery_logon_failures);
開發者ID:phill104,項目名稱:branches,代碼行數:31,代碼來源:bridgemgr.php


注:本文中的pageheader函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。