• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP xoops_header函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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 <[email protected]>
 * @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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP xoops_load函数代码示例发布时间:2022-05-23
下一篇:
PHP xoops_getrequest函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap