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


PHP adm_page_header函数代码示例

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


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

示例1: trigger_error

            trigger_error($user->lang['NO_WORD']);
        }
        $sql = 'SELECT word
				FROM ' . WORDS_TABLE . "\r\n\t\t\t\tWHERE word_id = {$word_id}";
        $result = $db->sql_query($sql);
        $deleted_word = $db->sql_fetchfield('word', 0, $result);
        $db->sql_freeresult($result);
        $sql = 'DELETE FROM ' . WORDS_TABLE . "\r\n\t\t\t\tWHERE word_id = {$word_id}";
        $db->sql_query($sql);
        $cache->destroy('word_censors');
        add_log('admin', 'LOG_DELETE_WORD', $deleted_word);
        $message = $user->lang['WORD_REMOVE'];
        trigger_error($message);
        break;
    default:
        adm_page_header($user->lang['WORDS_TITLE']);
        ?>

<h1><?php 
        echo $user->lang['WORDS_TITLE'];
        ?>
</h1>

<p><?php 
        echo $user->lang['WORDS_EXPLAIN'];
        ?>
</p>

<form method="post" action="admin_words.<?php 
        echo $phpEx . $SID;
        ?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_words.php

示例2: action_progress_bar

 /**
  * Display progress bar for syncinc categories
  *
  * @return null
  */
 public function action_progress_bar()
 {
     $start = $this->request->variable('start', 0);
     $total = $this->request->variable('total', 0);
     adm_page_header($this->user->lang['SYNC_IN_PROGRESS']);
     $this->template->set_filenames(array('body' => 'progress_bar.html'));
     $this->template->assign_vars(array('L_PROGRESS' => $this->user->lang['SYNC_IN_PROGRESS'], 'L_PROGRESS_EXPLAIN' => $start && $total ? $this->user->lang('SYNC_IN_PROGRESS_EXPLAIN', $start, $total) : $this->user->lang['SYNC_IN_PROGRESS']));
     adm_page_footer();
 }
开发者ID:rmcgirr83,项目名称:ext-phpbb-directory,代码行数:14,代码来源:cat.php

示例3: adm_page_footer

        echo $_CLASS['core_user']->lang['NO_PRUNE'];
        ?>
</td>
	</tr>
<?php 
    }
    $_CLASS['core_db']->sql_freeresult($result);
    ?>
</table>

<br clear="all" />

<?php 
    adm_page_footer();
}
adm_page_header($_CLASS['core_user']->lang['PRUNE']);
?>

<h1><?php 
echo $_CLASS['core_user']->lang['PRUNE'];
?>
</h1>

<p><?php 
echo $_CLASS['core_user']->lang['FORUM_PRUNE_EXPLAIN'];
?>
</p>

<?php 
// If they haven't selected a forum for pruning yet then
// display a select box to use for pruning.
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_prune.php

示例4: adm_page_footer

        ?>

<h1><?php 
        echo $_CLASS['core_user']->lang['SEARCH_INDEX'];
        ?>
</h1>

<p><?php 
        echo $_CLASS['core_user']->lang['SEARCH_INDEX_CANCEL'];
        ?>
</p>

<?php 
        adm_page_footer();
    } else {
        adm_page_header($_CLASS['core_user']->lang['SEARCH_INDEX']);
        ?>

<h1><?php 
        echo $_CLASS['core_user']->lang['SEARCH_INDEX'];
        ?>
</h1>

<p><?php 
        echo $_CLASS['core_user']->lang['SEARCH_INDEX_EXPLAIN'];
        ?>
</p>

<form method="post" action="<?php 
        echo adminlink('forums&amp;file=admin_search');
        ?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_search.php

示例5: display_progress_bar

 /**
  * Display progress bar for syncinc forums
  */
 function display_progress_bar($start, $total)
 {
     global $template, $user;
     adm_page_header($user->lang['SYNC_IN_PROGRESS']);
     $template->set_filenames(array('body' => 'progress_bar.html'));
     $template->assign_vars(array('L_PROGRESS' => $user->lang['SYNC_IN_PROGRESS'], 'L_PROGRESS_EXPLAIN' => $start && $total ? sprintf($user->lang['SYNC_IN_PROGRESS_EXPLAIN'], $start, $total) : $user->lang['SYNC_IN_PROGRESS']));
     adm_page_footer();
 }
开发者ID:PetsFundation,项目名称:Pets,代码行数:11,代码来源:acp_forums.php

示例6: msg_handler


//.........这里部分代码省略.........
            }
            if ((defined('IN_CRON') || defined('IMAGE_OUTPUT')) && isset($db)) {
                // let's avoid loops
                $db->sql_return_on_error(true);
                add_log('critical', 'LOG_GENERAL_ERROR', $msg_title, $log_text);
                $db->sql_return_on_error(false);
            }
            // Do not send 200 OK, but service unavailable on errors
            send_status_line(503, 'Service Unavailable');
            garbage_collection();
            // Try to not call the adm page data...
            echo '<!DOCTYPE html>';
            echo '<html dir="ltr">';
            echo '<head>';
            echo '<meta charset="utf-8">';
            echo '<meta http-equiv="X-UA-Compatible" content="IE=edge">';
            echo '<title>' . $msg_title . '</title>';
            echo '<style type="text/css">' . "\n" . '/* <![CDATA[ */' . "\n";
            echo '* { margin: 0; padding: 0; } html { font-size: 100%; height: 100%; margin-bottom: 1px; background-color: #E4EDF0; } body { font-family: "Lucida Grande", Verdana, Helvetica, Arial, sans-serif; color: #536482; background: #E4EDF0; font-size: 62.5%; margin: 0; } ';
            echo 'a:link, a:active, a:visited { color: #006699; text-decoration: none; } a:hover { color: #DD6900; text-decoration: underline; } ';
            echo '#wrap { padding: 0 20px 15px 20px; min-width: 615px; } #page-header { text-align: right; height: 40px; } #page-footer { clear: both; font-size: 1em; text-align: center; } ';
            echo '.panel { margin: 4px 0; background-color: #FFFFFF; border: solid 1px  #A9B8C2; } ';
            echo '#errorpage #page-header a { font-weight: bold; line-height: 6em; } #errorpage #content { padding: 10px; } #errorpage #content h1 { line-height: 1.2em; margin-bottom: 0; color: #DF075C; } ';
            echo '#errorpage #content div { margin-top: 20px; margin-bottom: 5px; border-bottom: 1px solid #CCCCCC; padding-bottom: 5px; color: #333333; font: bold 1.2em "Lucida Grande", Arial, Helvetica, sans-serif; text-decoration: none; line-height: 120%; text-align: left; } ';
            echo "\n" . '/* ]]> */' . "\n";
            echo '</style>';
            echo '</head>';
            echo '<body id="errorpage">';
            echo '<div id="wrap">';
            echo '	<div id="page-header">';
            echo '		' . $l_return_index;
            echo '	</div>';
            echo '	<div id="acp">';
            echo '	<div class="panel">';
            echo '		<div id="content">';
            echo '			<h1>' . $msg_title . '</h1>';
            echo '			<div>' . $msg_text . '</div>';
            echo $l_notify;
            echo '		</div>';
            echo '	</div>';
            echo '	</div>';
            echo '	<div id="page-footer">';
            echo '		Powered by <a href="https://www.phpbb.com/">phpBB</a>&reg; Forum Software &copy; phpBB Limited';
            echo '	</div>';
            echo '</div>';
            echo '</body>';
            echo '</html>';
            exit_handler();
            // On a fatal error (and E_USER_ERROR *is* fatal) we never want other scripts to continue and force an exit here.
            exit;
            break;
        case E_USER_WARNING:
        case E_USER_NOTICE:
            define('IN_ERROR_HANDLER', true);
            if (empty($user->data)) {
                $user->session_begin();
            }
            // We re-init the auth array to get correct results on login/logout
            $auth->acl($user->data);
            if (empty($user->lang)) {
                $user->setup();
            }
            if ($msg_text == 'ERROR_NO_ATTACHMENT' || $msg_text == 'NO_FORUM' || $msg_text == 'NO_TOPIC' || $msg_text == 'NO_USER') {
                send_status_line(404, 'Not Found');
            }
            $msg_text = !empty($user->lang[$msg_text]) ? $user->lang[$msg_text] : $msg_text;
            $msg_title = !isset($msg_title) ? $user->lang['INFORMATION'] : (!empty($user->lang[$msg_title]) ? $user->lang[$msg_title] : $msg_title);
            if (!defined('HEADER_INC')) {
                if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin']) {
                    adm_page_header($msg_title);
                } else {
                    page_header($msg_title);
                }
            }
            $template->set_filenames(array('body' => 'message_body.html'));
            $template->assign_vars(array('MESSAGE_TITLE' => $msg_title, 'MESSAGE_TEXT' => $msg_text, 'S_USER_WARNING' => $errno == E_USER_WARNING ? true : false, 'S_USER_NOTICE' => $errno == E_USER_NOTICE ? true : false));
            if ($request->is_ajax()) {
                global $refresh_data;
                $json_response = new \phpbb\json_response();
                $json_response->send(array('MESSAGE_TITLE' => $msg_title, 'MESSAGE_TEXT' => $msg_text, 'S_USER_WARNING' => $errno == E_USER_WARNING ? true : false, 'S_USER_NOTICE' => $errno == E_USER_NOTICE ? true : false, 'REFRESH_DATA' => !empty($refresh_data) ? $refresh_data : null));
            }
            // We do not want the cron script to be called on error messages
            define('IN_CRON', true);
            if (defined('IN_ADMIN') && isset($user->data['session_admin']) && $user->data['session_admin']) {
                adm_page_footer();
            } else {
                page_footer();
            }
            exit_handler();
            break;
            // PHP4 compatibility
        // PHP4 compatibility
        case E_DEPRECATED:
            return true;
            break;
    }
    // If we notice an error not handled here we pass this back to PHP by returning false
    // This may not work for all php versions
    return false;
}
开发者ID:WarriorMachines,项目名称:warriormachines-phpbb,代码行数:101,代码来源:functions.php

示例7: while

    default:
        // By default, check that image_order is valid and fix it if necessary
        $sql = "SELECT {$fields}_id AS order_id, {$fields}_order AS fields_order\r\n\t\t\tFROM {$table}\r\n\t\t\tORDER BY {$fields}_order";
        $result = $_CLASS['core_db']->query($sql);
        if ($row = $_CLASS['core_db']->fetch_row_assoc($result)) {
            $order = 0;
            do {
                ++$order;
                if ($row['fields_order'] != $order) {
                    $_CLASS['core_db']->query("UPDATE {$table}\r\n\t\t\t\t\t\tSET {$fields}_order = {$order}\r\n\t\t\t\t\t\tWHERE {$fields}_id = " . $row['order_id']);
                }
            } while ($row = $_CLASS['core_db']->fetch_row_assoc($result));
        }
        $_CLASS['core_db']->free_result($result);
        // Output the page
        adm_page_header($_CLASS['core_user']->lang[$lang]);
        ?>

<h1><?php 
        echo $_CLASS['core_user']->lang[$lang];
        ?>
</h1>

<p><?php 
        echo $_CLASS['core_user']->lang[$lang . '_EXPLAIN'];
        ?>
</p>

<?php 
        if ($notice != '') {
            ?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_icons.php

示例8: p_master

$template->assign_var('T_TEMPLATE_PATH', $phpbb_admin_path . 'style');
// the acp template is never stored in the database
$user->theme['template_storedb'] = false;
// Instantiate new module
$module = new p_master();
// Instantiate module system and generate list of available modules
$module->list_modules('acp');
// Select the active module
$module->set_active($module_id, $mode);
// Assign data to the template engine for the list of modules
// We do this before loading the active module for correct menu display in trigger_error
$module->assign_tpl_vars(append_sid("{$phpbb_admin_path}index.{$phpEx}"));
// Load and execute the relevant module
$module->load_active();
// Generate the page
adm_page_header($module->get_page_title());
$template->set_filenames(array('body' => $module->get_tpl_name()));
adm_page_footer();
/**
* Header for acp pages
*/
function adm_page_header($page_title)
{
    global $config, $db, $user, $template;
    global $phpbb_root_path, $phpbb_admin_path, $phpEx, $SID, $_SID;
    if (defined('HEADER_INC')) {
        return;
    }
    define('HEADER_INC', true);
    // gzip_compression
    if ($config['gzip_compress']) {
开发者ID:PetsFundation,项目名称:Pets,代码行数:31,代码来源:index.php

示例9: array

    $selected = $key == 'eq' ? ' selected="selected"' : '';
    $s_find_count .= '<option value="' . $key . '"' . $selected . '>' . $value . '</option>';
}
$find_time = array('lt' => $user->lang['BEFORE'], 'gt' => $user->lang['AFTER']);
$s_find_join_time = '';
foreach ($find_time as $key => $value) {
    $s_find_join_time .= '<option value="' . $key . '">' . $value . '</option>';
}
$s_find_active_time = '';
foreach ($find_time as $key => $value) {
    $s_find_active_time .= '<option value="' . $key . '">' . $value . '</option>';
}
//
//
//
adm_page_header($user->lang['PRUNE_USERS']);
?>

<h1><?php 
echo $user->lang['PRUNE_USERS'];
?>
</h1>

<p><?php 
echo $user->lang['PRUNE_USERS_EXPLAIN'];
?>
</p>

<form method="post" name="post" action="<?php 
echo "admin_prune_users.{$phpEx}{$SID}";
?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_prune_users.php

示例10: while

$sql = 'SELECT group_id, group_type, group_name
	FROM ' . GROUPS_TABLE . ' 
	ORDER BY group_type DESC, group_name ASC';
$result = $_CLASS['core_db']->sql_query($sql);
$select_list = '<option value="0"' . (!$group_id ? ' selected="selected"' : '') . '>' . $_CLASS['core_user']->lang['ALL_USERS'] . '</option>';
if ($row = $_CLASS['core_db']->sql_fetchrow($result)) {
    do {
        $selected = $group_id == $row['group_id'] ? ' selected="selected"' : '';
        $select_list .= '<option value = "' . $row['group_id'] . '"' . ($row['group_type'] == GROUP_SPECIAL ? ' class="blue"' : '') . $selected . '>' . ($row['group_type'] == GROUP_SPECIAL ? $_CLASS['core_user']->lang['G_' . $row['group_name']] : $row['group_name']) . '</option>';
    } while ($row = $_CLASS['core_db']->sql_fetchrow($result));
}
$_CLASS['core_db']->sql_freeresult($result);
$s_priority_options = '<option value="' . MAIL_LOW_PRIORITY . '">' . $_CLASS['core_user']->lang['MAIL_LOW_PRIORITY'] . '</option>';
$s_priority_options .= '<option value="' . MAIL_NORMAL_PRIORITY . '" selected="selected">' . $_CLASS['core_user']->lang['MAIL_NORMAL_PRIORITY'] . '</option>';
$s_priority_options .= '<option value="' . MAIL_HIGH_PRIORITY . '">' . $_CLASS['core_user']->lang['MAIL_HIGH_PRIORITY'] . '</option>';
adm_page_header($_CLASS['core_user']->lang['MASS_EMAIL']);
?>

<h1><?php 
echo $_CLASS['core_user']->lang['MASS_EMAIL'];
?>
</h1>

<p><?php 
echo $_CLASS['core_user']->lang['MASS_EMAIL_EXPLAIN'];
?>
</p>

<form method="post" action="<?php 
echo generate_link('Forums&amp;file=admin_email', array('admin' => true));
?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_email.php

示例11: empty

        continue;
    }
    $config_value = $cfg_array[$config_name];
    $new[$config_name] = $config_value;
    if ($config_name == 'email_function_name') {
        $new['email_function_name'] = empty($new['email_function_name']) || !function_exists($new['email_function_name']) ? 'mail' : str_replace(array('(', ')'), array('', ''), trim($new['email_function_name']));
    }
    if ($submit) {
        set_config($config_name, $config_value);
    }
}
if ($submit) {
    add_log('admin', 'LOG_' . strtoupper($mode) . '_CONFIG');
    trigger_error($_CLASS['core_user']->lang['CONFIG_UPDATED']);
}
adm_page_header($_CLASS['core_user']->lang[$display_vars['title']]);
?>

<h1><?php 
echo $_CLASS['core_user']->lang[$display_vars['title']];
?>
</h1>

<p><?php 
echo $_CLASS['core_user']->lang[$display_vars['title'] . '_EXPLAIN'];
?>
</p>

<form action="<?php 
echo generate_link('forums&amp;file=admin_board&amp;mode=' . $mode, array('admin' => true));
?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_board.php

示例12: adm_page_header

}
if ($posts_per_day > $total_posts) {
    $posts_per_day = $total_posts;
}
if ($topics_per_day > $total_topics) {
    $topics_per_day = $total_topics;
}
if ($users_per_day > $total_users) {
    $users_per_day = $total_users;
}
if ($files_per_day > $total_files) {
    $files_per_day = $total_files;
}
// Remove
$dbsize = $_CLASS['core_user']->lang['NOT_AVAILABLE'];
adm_page_header($_CLASS['core_user']->lang['ADMIN_INDEX']);
?>

<script language="Javascript" type="text/javascript">
<!--
	function marklist(status)
	{
		for (i = 0; i < document.inactive.length; i++)
		{
			document.inactive.elements[i].checked = status;
		}
	}
//-->
</script>

<h1><?php 
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:main.php

示例13: split_sql_file

                $pieces = split_sql_file($sql_query, ';');
                $sql_count = count($pieces);
                for ($i = 0; $i < $sql_count; $i++) {
                    $sql = trim($pieces[$i]);
                    if (!empty($sql) && $sql[0] != '#') {
                        $db->sql_query($sql);
                    }
                }
            }
            add_log('admin', 'log_db_restore');
            trigger_error($user->lang['Restore_success']);
        }
        //
        // Restore page
        //
        adm_page_header($user->lang['DB_RESTORE']);
        ?>

<h1><?php 
        echo $user->lang['DB_RESTORE'];
        ?>
</h1>

<p><?php 
        echo $user->lang['Restore_explain'];
        ?>
</p>

<form enctype="multipart/form-data" method="post" action="<?php 
        echo "admin_database.{$phpEx}{$SID}&amp;mode={$mode}";
        ?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_database.php

示例14: output_response

 /**
  * Outputs the page as Ajax response.
  *
  * @param string $status Page status.
  * @param string $action Page action.
  */
 protected function output_response($status, $action)
 {
     adm_page_header('');
     $output = ob_get_contents();
     @ob_end_clean();
     $json_response = new \phpbb\json_response();
     $json_response->send(array('status' => $status, 'action' => $action, 'result' => objects::$template->assign_display($this->tpl_name . '.html', '', true), 'output' => $output));
 }
开发者ID:boardtools,项目名称:upload,代码行数:14,代码来源:upload_module.php

示例15: isset

    case 'delete':
        // Ok, they want to delete their rank
        $rank_id = isset($_REQUEST['id']) ? intval($_REQUEST['id']) : 0;
        if ($rank_id) {
            $sql = "DELETE FROM " . FORUMS_RANKS_TABLE . "\r\n\t\t\t\tWHERE rank_id = {$rank_id}";
            $_CLASS['core_db']->query($sql);
            $sql = "UPDATE " . USERS_TABLE . "\r\n\t\t\t\tSET user_rank = 0\r\n\t\t\t\tWHERE user_rank = {$rank_id}";
            $_CLASS['core_db']->query($sql);
            $_CLASS['core_cache']->destroy('ranks');
            trigger_error($_CLASS['core_user']->lang['RANK_REMOVED']);
        } else {
            trigger_error($_CLASS['core_user']->lang['MUST_SELECT_RANK']);
        }
        break;
    default:
        adm_page_header($_CLASS['core_user']->lang['RANKS']);
        ?>

<h1><?php 
        echo $_CLASS['core_user']->lang['RANKS'];
        ?>
</h1>

<p><?php 
        echo $_CLASS['core_user']->lang['RANKS_EXPLAIN'];
        ?>
</p>

<form method="post" action="<?php 
        echo generate_link('forums&amp;file=admin_ranks', array('admin' => true));
        ?>
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_ranks.php


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