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


PHP xoops_header函数代码示例

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


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

示例1: show_no_permission_error_page

 /**
  * show error message and close button
  */
 function show_no_permission_error_page()
 {
     xoops_header();
     echo _MD_XOONIPS_ITEM_FORBIDDEN . '<br /><input type="button"' . ' onclick="javascript:window.close();" value="' . _CLOSE . '" />';
     xoops_footer();
     exit;
 }
开发者ID:XoopsModules25x,项目名称:xcl-module-xoonips,代码行数:10,代码来源:transfer_user_detail_item.class.php

示例2: render

 function render()
 {
     global $xoopsConfig;
     require_once XOOPS_ROOT_PATH . '/class/template.php';
     $xoopsTpl = new XoopsTpl();
     xoops_header(false);
     $xoopsTpl->assign('template_file_name', 'db:' . $this->_params['template_file_name']);
     $xoopsTpl->assign('template_vars', $this->_params['template_vars']);
     $xoopsTpl->display('db:xoonips_transfer_user_requested_item_detail.html');
     xoops_footer();
 }
开发者ID:XoopsModules25x,项目名称:xcl-module-xoonips,代码行数:11,代码来源:transfer_user_requested_item_detail.class.php

示例3: xoops_header

 function &start()
 {
     global $xoopsConfig, $xoopsOption, $xoopsModule, $xoopsTpl, $xoopsUser, $xoopsUserIsAdmin, $xoopsLogger;
     if (!empty($this->mTemplate)) {
         $GLOBALS['xoopsOption']['template_main'] = $this->mTemplate;
     }
     if (!$this->mAction->mDialogMode) {
         include XOOPS_ROOT_PATH . '/header.php';
     } else {
         if (class_exists('XCube_Root')) {
             $root =& XCube_Root::getSingleton();
             $root->mController->setDialogMode(true);
             include XOOPS_ROOT_PATH . '/header.php';
         } else {
             xoops_header(false);
             require_once XOOPS_ROOT_PATH . '/class/template.php';
             $GLOBALS['xoopsTpl'] = new XoopsTpl();
         }
     }
     $this->mXoopsTpl =& $GLOBALS['xoopsTpl'];
     $this->_addSmartyPugin();
     return $this->mXoopsTpl;
 }
开发者ID:nobunobuta,项目名称:xoopscube_NBFrame,代码行数:23,代码来源:NBFrameModuleRender.class.php

示例4: dirname

 * You may not change or alter any portion of this comment or credits
 * of supporting developers from this source code or any supporting source code
 * which is considered copyrighted (c) material of the original comment or credit authors.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *
 * @copyright       The XOOPS Project http://sourceforge.net/projects/xoops/
 * @license         GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
 * @package         kernel
 * @since           2.3.0
 * @author          Taiwen Jiang <phppp@users.sourceforge.net>
 * @version         $Id$
 */
include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'mainfile.php';
xoops_header(false);
$denied = true;
if (!empty($_REQUEST['token'])) {
    if ($GLOBALS['xoopsSecurity']->validateToken($_REQUEST['token'], false)) {
        $denied = false;
    }
} else {
    if (is_object($xoopsUser) && $xoopsUser->isAdmin()) {
        $denied = false;
    }
}
if ($denied) {
    xoops_error(_NOPERM);
    exit;
}
$token = isset($_REQUEST['token']) ? $_REQUEST['token'] : '';
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:findusers.php

示例5: time

$to_userid = !empty($_GET['to_userid']) ? (int) $_GET['to_userid'] : 0;
$msg_id = !empty($_GET['msg_id']) ? (int) $_GET['msg_id'] : 0;
if (empty($_GET['refresh']) && isset($_POST['op']) && $_POST['op'] != "submit") {
    $jump = "pmlite.php?refresh=" . time() . "";
    if ($send == 1) {
        $jump .= "&amp;send=" . $send . "";
    } elseif ($send2 == 1) {
        $jump .= "&amp;send2=" . $send2 . "&amp;to_userid=" . $to_userid . "";
    } elseif ($reply == 1) {
        $jump .= "&amp;reply=" . $reply . "&amp;msg_id=" . $msg_id . "";
    } else {
    }
    echo "<html><head><meta http-equiv='Refresh' content='0; url=" . $jump . "' /></head><body></body></html>";
    exit;
}
xoops_header();
if (icms::$user) {
    if (isset($_POST['op']) && $_POST['op'] == "submit") {
        if (!icms::$security->check()) {
            $security_error = true;
        }
        $res = icms::$xoopsDB->query("SELECT COUNT(*) FROM " . icms::$xoopsDB->prefix("users") . " WHERE uid='" . (int) $_POST['to_userid'] . "'");
        list($count) = icms::$xoopsDB->fetchRow($res);
        if ($count != 1) {
            echo "<br /><br /><div><h4>" . _PM_USERNOEXIST . "<br />";
            echo _PM_PLZTRYAGAIN . "</h4><br />";
            if (isset($security_error) && $security_error == true) {
                echo implode('<br />', icms::$security->getErrors());
            }
            echo "[ <a href='javascript:history.go(-1)'>" . _PM_GOBACK . "</a> ]</div>";
        } else {
开发者ID:LeeGlendenning,项目名称:formulize,代码行数:31,代码来源:pmlite.php

示例6: isset

    case 'attachment':
        $file_id = isset($_GET['file_id']) ? intval($_GET['file_id']) : 0;
        if ($file_id == 0) {
            exit(_MYSHOP_ERROR13);
        }
        $attachedFile = null;
        $attachedFile = $h_myshop_files->get($file_id);
        if (!is_object($attachedFile)) {
            exit(_MYSHOP_ERROR19);
        }
        header("Content-Type: " . $attachedFile->getVar('file_mimetype'));
        header('Content-disposition: inline; filename="' . $attachedFile->getVar('file_filename') . '"');
        readfile($attachedFile->getPath());
        break;
    case 'picture':
        xoops_header(true);
        echo "<div align='center' style='font-weight: bold;'><a href=\"javascript:self.close();\" title=\"" . _CLOSE . "\">";
        if ($product->pictureExists()) {
            echo "<img src='" . $product->getPictureUrl() . "' alt='' />";
        } else {
            echo _MYSHOP_SORRY_NOPICTURE;
        }
        ?>
		</a></div><br />
		<br />
		<div align='center'><input value="<?php 
        echo _CLOSE;
        ?>
" type="button" onclick="javascript:window.close();" /></div>
<?php 
        xoops_footer();
开发者ID:naao,项目名称:myshop,代码行数:31,代码来源:media.php


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