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


PHP do_footer函数代码示例

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


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

示例1: view_article

function view_article()
{
    do_header();
    include "templates/index_viewarticle.inc.php";
    build_matrix('news', $_REQUEST['id']);
    do_footer();
}
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:7,代码来源:index.php

示例2: main

 function main()
 {
     global $db;
     if (isset($_REQUEST['id'])) {
         $result = $db->Execute("SELECT * FROM `Obsedb_Mods` WHERE `id` = '{$_REQUEST['id']}' LIMIT 1");
         while ($row = $result->FetchNextObject()) {
             do_header();
             $header = new Template();
             $header->open_template('cheats_header');
             $header->addvar('{id}', $row->ID);
             $header->addvar('{title}', stripslashes($row->TITLE));
             $header->parse_template();
             $header->print_template();
             $cheats = $db->Execute("SELECT id,Modid,title,cheat FROM `Obsedb_cheats` WHERE `Modid` = '{$_REQUEST['id']}' ORDER BY `title`");
             while ($cheat = $cheats->FetchNextObject()) {
                 // CHEAT HTML
                 echo "<b>" . clean($cheat->TITLE) . "</b><br />\n      \t\t\t        " . stripslashes($cheat->CHEAT) . "<br /><br />";
                 // END CHEAT HTML
             }
             do_footer();
         }
     } else {
         do_header();
         echo "<b>System Error Message</b><br />";
         echo "You cannot access this page directly, please go back and select a Mod.<br />";
         echo "If the problem persists, please contact the webmaster.";
         do_footer();
     }
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:29,代码来源:modCheatsClass.php

示例3: awshit

function awshit($deathmessage)
{
    global $headerisprinted;
    if (!$headerisprinted) {
        do_header('Barf Report', true);
    }
    printf('<div class="message_box">%s</div>', $deathmessage);
    do_footer();
    exit;
}
开发者ID:bonkersinc,项目名称:phux0red,代码行数:10,代码来源:inc.common.php

示例4: _display_password_form

function _display_password_form()
{
    bindtextdomain('postfixadmin', SM_PATH . 'plugins/postfixadmin/locale');
    textdomain('postfixadmin');
    do_header('Postfixadmin Squirrelmail - Login');
    echo _('The PostfixAdmin plugin needs your current mailbox password');
    echo "<form action='' method='post'>";
    echo _('Password for');
    echo " " . $_SESSION['username'] . " :";
    echo "<input type='password' name='password' value=''>";
    echo "<input type='submit' value='" . _('Submit') . "'></form>";
    do_footer();
}
开发者ID:mpietruschka,项目名称:postfixadmin,代码行数:13,代码来源:functions.inc.php

示例5: handle_error

function handle_error($status = '404 Not Found', $header, $text)
{
    global $config;
    header('HTTP/1.0 ' . $status);
    header('Status: ' . $status);
    do_header();
    echo '<h3>' . $header . '</h3>';
    echo '<p class="warning">Sorry :-(</p>';
    echo '<p>' . $text . '</p>';
    echo '<p class="leave"><a href="' . $config['base'] . '">Go to ' . $config['shortener'] . '</a></p>';
    do_footer();
    die;
}
开发者ID:neiko,项目名称:nsamblr,代码行数:13,代码来源:go.php

示例6: view

 function view()
 {
     global $db;
     if (!is_numeric($_REQUEST['id'])) {
         die("Critical Error: Aborting script operations.");
     }
     $result = $db->Execute("SELECT * FROM Obsedb_companies WHERE id = {$_REQUEST['id']} LIMIT 1");
     $company = array();
     $company['title'] = stripslashes($result->fields['title']);
     $company['description'] = clean($result->fields['description']);
     if (!empty($result->fields['homepage'])) {
         $company['homepage'] = '<a href="' . stripslashes($result->fields['homepage']) . '" target="_blank">' . stripslashes($result->fields['homepage']) . '</a>';
     }
     if (!empty($result->fields['logo'])) {
         $company['logo'] .= "<img src=\"";
         $company['logo'] .= stripslashes($result->fields['logo']);
         $company['logo'] .= "\" alt=\"" . $company['title'] . " align=\"right\" hspace=\"2\" vspace=\"2\">";
     }
     $result = $db->Execute("\n\t\t\tSELECT id, title, section, developer\n\t\t\tFROM Obsedb_Mods\n\t\t\tWHERE developer = " . $_REQUEST['id'] . "\n\t\t\tORDER BY title;");
     while ($row = $result->FetchNextObject()) {
         $company['dev_links'] .= '<a href="Moddetails.php?id=' . $row->ID . '">' . stripslashes($row->TITLE) . '</a><br />';
     }
     $result = $db->Execute("\n\t\t\tSELECT id, title, section, publisher\n\t\t\tFROM Obsedb_Mods\n\t\t\tWHERE publisher = " . $_REQUEST['id'] . "\n\t\t\tORDER BY title;");
     while ($row = $result->FetchNextObject()) {
         $company['pub_links'] .= '<a href="Moddetails.php?id=' . $row->ID . '">' . stripslashes($row->TITLE) . '</a><br />';
     }
     do_header();
     $template = new Template();
     $template->open_template('company_profile');
     $template->addvar('{title}', $company['title']);
     $template->addvar('{homepage}', $company['homepage']);
     $template->addvar('{logo}', $company['logo']);
     $template->addvar('{description}', $company['description']);
     $template->parse_template();
     $template->print_template();
     if (!empty($company['dev_links'])) {
         $company_profile_devlinks = new Template();
         $company_profile_devlinks->open_template('company_profile_devlinks');
         $company_profile_devlinks->addvar('{links}', $company['dev_links']);
         $company_profile_devlinks->parse_template();
         $company_profile_devlinks->print_template();
     }
     if (!empty($company['pub_links'])) {
         $company_profile_publinks = new Template();
         $company_profile_publinks->open_template('company_profile_publinks');
         $company_profile_publinks->addvar('{links}', $company['pub_links']);
         $company_profile_publinks->parse_template();
         $company_profile_publinks->print_template();
     }
     do_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:51,代码来源:modCompaniesClass.php

示例7: main

 function main()
 {
     global $db;
     do_header();
     if (!empty($_REQUEST['id'])) {
         $poll = $db->Execute("\n\t\t\t\tSELECT id,title\n\t\t\t\tFROM `Obsedb_polls`\n\t\t\t\tWHERE `id` = '" . $_REQUEST['id'] . "'");
         $result = $db->Execute("SELECT * FROM Obsedb_polls_options WHERE poll_id = '{$_REQUEST['id']}' ORDER BY id");
         while ($row = $result->FetchNextObject()) {
             $poll_options .= "<tr><td bgcolor='#FFFFFF'>" . stripslashes($row->TEXT) . " - {$row->COUNT} votes</td></tr>";
         }
         if ($poll->RecordCount() < 1) {
             include "templates/poll_error.inc.php";
         } else {
             include "templates/poll_view.inc.php";
         }
     }
     do_footer();
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:18,代码来源:modPollsClass.php

示例8: main

 function main()
 {
     global $db;
     // Get Mod Info
     if (isset($_REQUEST['id'])) {
         $result = $db->Execute("SELECT * FROM `Obsedb_Mods` WHERE `id` = '{$_REQUEST['id']}' LIMIT 1");
         while ($row = $result->FetchNextObject()) {
             $cheats = $db->Execute("SELECT id,Modid FROM `Obsedb_cheats` WHERE Modid = {$_REQUEST['id']} LIMIT 1");
             if ($cheats->RecordCount() >= 1) {
                 $cheat_link = "<a href=\"cheats.php?id={$row->ID}\">Cheats</a>";
             } else {
                 $cheat_link = "Cheats";
             }
             do_header();
             $tplHeader = new Template();
             $tplHeader->open_template('downloads_header');
             $tplHeader->addvar('{title}', stripslashes($row->TITLE));
             $tplHeader->addvar('{id}', $row->ID);
             $tplHeader->addvar('{cheat_link}', $cheat_link);
             $tplHeader->parse_template();
             $tplHeader->print_template();
             $downloads = $db->Execute("SELECT id,Modid,title,download FROM `Obsedb_downloads` WHERE `Modid` = '{$_REQUEST['id']}' ORDER BY `title`");
             while ($download = $downloads->FetchNextObject()) {
                 // DOWNLOAD HTML
                 echo "<a href='" . stripslashes($download->DOWNLOAD) . "'>" . clean($download->TITLE) . "</a><br /><br />";
                 // END DOWNLOAD HTML
             }
             $tplFooter = new Template();
             $tplFooter->open_template('downloads_footer');
             $tplFooter->parse_template();
             $tplFooter->print_template();
             do_footer();
         }
     } else {
         do_header();
         echo "<b>System Error Message</b><br />";
         echo "You cannot access this page directly, please go back and select a Mod.<br />";
         echo "If the problem persists, please contact the webmaster.";
         do_footer();
     }
 }
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:41,代码来源:modDownloadsClass.php

示例9: mailbag_main

function mailbag_main()
{
    global $db;
    do_header();
    $tplHeader = new Template();
    $tplHeader->open_template('mailbag_header');
    $tplHeader->print_template();
    $tplItem = new Template();
    $tplItem->open_template('mailbag_item');
    $result = $db->Execute("SELECT * FROM `Obsedb_mailbag` ORDER BY `id` DESC");
    while ($row = $result->FetchNextObject()) {
        $tplItem->addvar('{title}', stripslashes($row->TITLE));
        $tplItem->addvar('{message}', clean($row->MESSAGE));
        $tplItem->addvar('{reply}', clean($row->REPLY));
        $tplItem->parse_template();
        $tplItem->print_template();
    }
    $tplFooter = new Template();
    $tplFooter->open_template('mailbag_footer');
    $tplFooter->print_template();
    do_footer();
}
开发者ID:raziel23x,项目名称:Obsedb_CMS,代码行数:22,代码来源:mailbag.php

示例10: do_site


//.........这里部分代码省略.........
    if ($GLOBALS['IS_ACTUALLY_ADMIN']) {
        $unsu_link = get_self_url(true, true, array('keep_su' => NULL));
        $su_username = $GLOBALS['FORUM_DRIVER']->get_username(get_member());
        $additional->attach(do_template('ADDITIONAL', array('_GUID' => '13a41a91606b3ad05330e7d6f3e741c1', 'TYPE' => 'notice', 'MESSAGE' => do_lang_tempcode('USING_SU', escape_html($unsu_link), escape_html($su_username)))));
    }
    $out = new ocp_tempcode();
    // This is important - it makes sure the tempcode tree appears nicely
    $middle->handle_symbol_preprocessing();
    // Due to the '->evaluate()' below, plus so that some symbol preprocessing can be passed into header
    $out->attach(do_header());
    if (function_exists('memory_get_usage') && get_param('special_page_type', '') == 'memory') {
        if (function_exists('memory_get_peak_usage')) {
            $memory_usage = memory_get_peak_usage();
        } else {
            $memory_usage = memory_get_usage();
        }
        $additional->attach(do_template('ADDITIONAL', array('_GUID' => 'd605c0d111742a8cd2d4ef270a1e5fe1', 'TYPE' => 'inform', 'MESSAGE' => do_lang_tempcode('MEMORY_USAGE', float_format(round(floatval($memory_usage) / 1024.0 / 1024.0, 2))))));
    }
    // Whack it into our global template
    global $ATTACHED_MESSAGES;
    $global_template = 'GLOBAL';
    if (get_option('show_docs') == '0') {
        $GLOBALS['HELPER_PANEL_TUTORIAL'] = '';
    }
    $helper_panel_pic = $GLOBALS['HELPER_PANEL_PIC'];
    if ($helper_panel_pic != '') {
        if (find_theme_image($helper_panel_pic, true) == '') {
            $helper_panel_pic = '';
        }
    }
    $global = do_template($global_template, array('HELPER_PANEL_TUTORIAL' => $GLOBALS['HELPER_PANEL_TUTORIAL'], 'HELPER_PANEL_HTML' => $GLOBALS['HELPER_PANEL_HTML'], 'HELPER_PANEL_TEXT' => $GLOBALS['HELPER_PANEL_TEXT'], 'HELPER_PANEL_PIC' => $helper_panel_pic, 'MIDDLE' => $doing_special_page_type ? $middle : $middle->evaluate(), 'MESSAGE_TOP' => $ATTACHED_MESSAGES, 'MESSAGE' => $additional, 'BREADCRUMBS' => breadcrumbs()));
    unset($middle);
    $out->attach($global);
    $out->attach(do_footer());
    $out->handle_symbol_preprocessing();
    if (get_value('xhtml_strict') === '1') {
        $out = make_xhtml_strict($out);
    }
    // Validation
    $novalidate = get_param_integer('keep_novalidate', get_param_integer('novalidate', 0));
    $show_edit_links = get_param_integer('show_edit_links', 0);
    if ((in_array(ocp_srv('HTTP_HOST'), array('localhost', 'test.ocportal.com')) || $GLOBALS['FORUM_DRIVER']->is_staff(get_member())) && ($special_page_type == 'code' || $novalidate == 0 && get_option('validation') == '1') && $GLOBALS['REFRESH_URL'][0] == '' && $show_edit_links == 0) {
        require_code('view_modes');
        $out_evaluated = $out->evaluate(NULL, false);
        do_xhtml_validation($out_evaluated, $special_page_type == 'code' && get_param_integer('preview_mode', NULL) === NULL, get_param_integer('preview_mode', 0));
    }
    // Cacheing for spiders
    if (running_script('index') && count($_POST) == 0 && isset($GLOBALS['SITE_INFO']['fast_spider_cache']) && $GLOBALS['SITE_INFO']['fast_spider_cache'] == '1' && is_guest()) {
        $bot_type = get_bot_type();
        if (($bot_type !== NULL || isset($GLOBALS['SITE_INFO']['any_guest_cached_too']) && $GLOBALS['SITE_INFO']['any_guest_cached_too'] == '1') && can_fast_spider_cache()) {
            $fast_cache_path = get_custom_file_base() . '/persistant_cache/' . md5(serialize(get_self_url_easy()));
            if ($bot_type === NULL) {
                $fast_cache_path .= '__non-bot';
            }
            if (!array_key_exists('js_on', $_COOKIE)) {
                $fast_cache_path .= '__no-js';
            }
            if (is_mobile()) {
                $fast_cache_path .= '_mobile';
            }
            $fast_cache_path .= '.gcd';
            if (!is_dir(get_custom_file_base() . '/persistant_cache/')) {
                if (@mkdir(get_custom_file_base() . '/persistant_cache/', 0777)) {
                    fix_permissions(get_custom_file_base() . '/persistant_cache/', 0777);
                    sync_file(get_custom_file_base() . '/persistant_cache/');
                } else {
开发者ID:erico-deh,项目名称:ocPortal,代码行数:67,代码来源:site.php

示例11: do_error

function do_error($mess = false, $error = false, $send_status = true)
{
    global $globals;
    $globals['ads'] = false;
    if (!$mess) {
        $mess = _('algún error nos ha petado');
    }
    if ($error && $send_status) {
        header("HTTP/1.0 {$error} {$mess}");
        header("Status: {$error} {$mess}");
    }
    do_header(_('error'));
    echo '<STYLE TYPE="text/css" MEDIA=screen>' . "\n";
    echo '<!--' . "\n";
    echo '.errt { text-align:center; padding-top:20px; font-size:150%; color:#FF6400;}' . "\n";
    echo '.errl { text-align:center; margin-top:20px; margin-bottom:20px; }' . "\n";
    echo '-->' . "\n";
    echo '</STYLE>' . "\n";
    echo '<div class="errt">' . $mess . '<br />' . "\n";
    if ($error) {
        echo '(' . _('error') . ' ' . $error . ')</div>' . "\n";
    }
    do_footer_menu();
    do_footer();
    die;
}
开发者ID:brainsqueezer,项目名称:fffff,代码行数:26,代码来源:html1-mobile.php

示例12: do_error_message

function do_error_message($message)
{
    echo '<h2 class="alert">' . $message . '</h2><br/><br/><a href="/">Home Page</a><br/><br/>';
    do_footer();
    exit;
}
开发者ID:alexstrandberg,项目名称:Electronics-Power-Management-System,代码行数:6,代码来源:output_fns.php

示例13: display_validation_results


//.........这里部分代码省略.........
                $escaped_code->evaluate_echo();
            } else {
                $escaped_code = do_template('VALIDATE_LINE', array('_GUID' => '4994f4748c3cd0cbf4e9278ca0e9b1fc', 'NUMBER' => integer_format($number)));
                $escaped_code->evaluate_echo();
            }
            ++$number;
        }
        // Marker
        $end_markers = new ocp_tempcode();
        if (isset($error_lines[$number])) {
            foreach ($error['errors'] as $_error) {
                if ($i == $_error['global_pos']) {
                    $_text = do_template('VALIDATE_MARKER_START');
                    $_text->evaluate_echo();
                    if ($char == chr(13) || $char == chr(10)) {
                        $__text = '!' . do_lang('HERE') . '!';
                        if (function_exists('ocp_mark_as_escaped')) {
                            ocp_mark_as_escaped($__text);
                        }
                        echo $__text;
                    }
                    $end_markers->attach(do_template('VALIDATE_MARKER_END'));
                }
            }
        }
        // Escaping
        if ($char == '&') {
            $char = '&amp;';
        }
        if ($char == '<') {
            $char = '&lt;';
        }
        if ($char == '>') {
            $char = '&gt;';
        }
        if ($char == '"') {
            $char = '&quot;';
        }
        if ($char == '\'') {
            $char = '&#039;';
        }
        if (is_null($level_ranges) && $char == ' ') {
            $char = '&nbsp;';
        }
        if (is_null($level_ranges) && $char == "\t") {
            $char = '&nbsp;&nbsp;&nbsp;';
        }
        //			if ($char==' ') $char='&nbsp;';
        if (function_exists('ocp_mark_as_escaped')) {
            ocp_mark_as_escaped($char);
        }
        echo $char;
        // Marker
        $end_markers->evaluate_echo();
        if (isset($value_ranges[$current_value])) {
            $end = $value_ranges[$current_value][1];
            if ($i == $end - 1) {
                if ($in_at) {
                    $text = do_template('VALIDATE_ATTRIBUTE_END');
                    $text->evaluate_echo();
                }
                $in_at = false;
                ++$current_value;
            }
        }
        if (isset($level_ranges[$current_range])) {
            $end = $level_ranges[$current_range][2];
            if ($i == $end - 1) {
                $string = do_template('VALIDATE_TAG_END');
                $string->evaluate_echo();
                ++$current_range;
                while (isset($level_ranges[$current_range]) && $level_ranges[$current_range][1] <= $i) {
                    ++$current_range;
                }
            }
        }
        if (isset($tag_ranges[$current_tag])) {
            $end = $tag_ranges[$current_tag][1];
            if ($i == $end - 1) {
                $string = do_template('VALIDATE_TAG_NAME_END');
                $string->evaluate_echo();
                ++$current_tag;
            }
        }
    }
    if ($number > 1) {
        $escaped_code = do_template('VALIDATE_LINE_END');
        $escaped_code->evaluate_echo();
    }
    $echo = do_template('VALIDATE_SCREEN_END', array('_GUID' => '739514a06ae65252293fc62b1c7cec40', 'RET' => $ret));
    $echo->evaluate_echo();
    if (!$ret) {
        $echo = do_footer();
        $echo->evaluate_echo();
        exit;
    }
    $out = ob_get_contents();
    ob_end_clean();
    return $out;
}
开发者ID:erico-deh,项目名称:ocPortal,代码行数:101,代码来源:view_modes.php

示例14: do_error

function do_error($mess = false, $error = false, $send_status = true)
{
    global $globals;
    $globals['ads'] = false;
    if (!$mess) {
        $mess = _('algún error nos ha petado');
    }
    if ($error && $send_status) {
        header("HTTP/1.0 {$error} {$mess}");
        header("Status: {$error} {$mess}");
    }
    do_header(_('error'));
    echo '<STYLE TYPE="text/css" MEDIA=screen>' . "\n";
    echo '<!--' . "\n";
    echo '.errt { text-align:center; padding-top:50px; font-size:300%; color:#FF6400;}' . "\n";
    echo '.errl { text-align:center; margin-top:50px; margin-bottom:100px; }' . "\n";
    echo '-->' . "\n";
    echo '</STYLE>' . "\n";
    echo '<p class="errt">' . $mess . '<br />' . "\n";
    if ($error) {
        echo '(' . _('error') . ' ' . $error . ')</p>' . "\n";
    }
    echo '<div class="errl"><img src="' . $globals['base_url'] . 'img/mnm/lame_excuse_01.png" width="362" height="100" alt="ooops logo" /></div>' . "\n";
    do_footer_menu();
    do_footer();
    die;
}
开发者ID:brainsqueezer,项目名称:fffff,代码行数:27,代码来源:html1.php

示例15: error

function error($text, $ver)
{
    echo '
<div class="notice">
<p align="left" style="padding-left:15px;"><b>error occured:</b></p></div>
<div class="notice" style="margin-bottom:0px; border-bottom:2px solid #222;">
<textarea cols="100" rows="15" style="width:98%;" class="txt"> ';
    echo $text;
    echo '</textarea></div>';
    do_footer($ver);
    die;
}
开发者ID:Gr3yR0n1n,项目名称:web-malware-collection,代码行数:12,代码来源:cihshell_fix.php


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