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


PHP page_open函数代码示例

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


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

示例1: before_filter

 /**
  *
  **/
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     # initialize Stud.IP-Session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     $this->set_layout(null);
 }
开发者ID:ratbird,项目名称:hope,代码行数:10,代码来源:oauth.php

示例2: before_filter

 /**
  * Callback function being called before an action is executed.
  */
 function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     // open session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     // set up user session
     include 'lib/seminar_open.php';
     $this->set_content_type('text/html; charset=windows-1252');
     $this->area_structure = ['global' => ['title' => _('Stud.IP (systemweit)'), 'icon' => 'home'], 'inst' => ['title' => _('Einrichtungen'), 'icon' => 'institute'], 'sem' => ['title' => _('Veranstaltungen'), 'icon' => 'seminar'], 'user' => ['title' => _('Profile'), 'icon' => 'person']];
 }
开发者ID:ratbird,项目名称:hope,代码行数:13,代码来源:news.php

示例3: phplib_load

function phplib_load($features = null){

	if (is_null($features)) $features = array('sess', 'auth', 'perm');
	if (is_string($features)) $features = array($features);

	if (isset($GLOBALS['_phplib_page_open'])){
		if (in_array('sess', $features)) put_headers();

		page_open ($GLOBALS['_phplib_page_open'], $features);
	}

}
开发者ID:BackupTheBerlios,项目名称:serweb-frmwrk,代码行数:12,代码来源:load_phplib.php

示例4: before_filter

 function before_filter(&$action, &$args)
 {
     $this->current_action = $action;
     // allow only "word" characters in arguments
     $this->validate_args($args);
     parent::before_filter($action, $args);
     if ($this->with_session) {
         # open session
         page_open(array('sess' => 'Seminar_Session', 'auth' => $this->allow_nobody ? 'Seminar_Default_Auth' : 'Seminar_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
         // show login-screen, if authentication is "nobody"
         $GLOBALS['auth']->login_if((Request::get('again') || !$this->allow_nobody) && $GLOBALS['user']->id == 'nobody');
         // Setup flash instance
         $this->flash = Trails_Flash::instance();
         // set up user session
         include 'lib/seminar_open.php';
     }
     # Set base layout
     #
     # If your controller needs another layout, overwrite your controller's
     # before filter:
     #
     #   class YourController extends AuthenticatedController {
     #     function before_filter(&$action, &$args) {
     #       parent::before_filter($action, $args);
     #       $this->set_layout("your_layout");
     #     }
     #   }
     #
     # or unset layout by sending:
     #
     #   $this->set_layout(NULL)
     #
     $layout_file = Request::isXhr() ? 'layouts/dialog.php' : 'layouts/base.php';
     $layout = $GLOBALS['template_factory']->open($layout_file);
     $this->set_layout($layout);
     if ($this->encoding) {
         $this->set_content_type('text/html;charset=' . $this->encoding);
     }
     if (Request::isXhr() && $this->utf8decode_xhr) {
         $request = Request::getInstance();
         foreach ($request as $key => $value) {
             $request[$key] = studip_utf8decode($value);
         }
     }
 }
开发者ID:ratbird,项目名称:hope,代码行数:45,代码来源:studip_controller.php

示例5: display_done

function display_done()
{
    global $kat, $auth, $uid, $perm, $sess;
    if (!defined("COMMON_PERMISSIONS_INC")) {
        include "commonapi/common_permissions.inc";
    }
    /*
     auth_preauth() will authenticatge the user since logon_now_as is registered and set to true
    */
    page_close();
    page_open(array("sess" => "Linktrail_Session", "auth" => "Linktrail_Auth", "perm" => "Linktrail_Perm"));
    $caps = get_caps($perm, '/');
    if (!defined("LAY_MYPAGE_INC")) {
        include "layout/lay_mypage.inc";
    }
    if (!defined("LAY_DIRECTORY_INC")) {
        include "layout/lay_directory.inc";
    }
    $pl = build_pathlist($kat, false);
    $plf = build_pathlist($kat, true);
    $restriction_list = build_restriction_list($kat);
    //$username = $auth->auth['uname'];
    $in_login = false;
    include "template.inc";
    include "commonheader2.html";
    $tpl = new Template(APPLICATION_HOME . "/templates/login", "keep");
    $tpl->set_file(array("main" => "regdone.html"));
    //$tpl->set_var("IWANTTO", print_mypage_iwantto($caps, $auth->auth['uname']));
    $tpl->set_var("USERNAME", $auth->auth['uname']);
    $tpl->set_var("MYPAGEURL", $sess->url(build_good_url("/Experts/" . $auth->auth['uname'])));
    $tpl->set_var("SETTINGSURL", $sess->url(build_good_url("/Experts/" . $auth->auth['uname'] . '/Settings')));
    $tpl->set_var("TOURURL", $sess->url("/Tour/"));
    $tpl->set_var("IWANTTO", print_iwantto('/', $caps));
    $tpl->set_var("HOME_URL", $sess->url("/"));
    $tpl->parse("main", "main");
    $tpl->p("main");
    include "commonfooter2.html";
    page_close();
    exit;
}
开发者ID:pilif,项目名称:linktrail,代码行数:40,代码来源:adduser.php

示例6: before_filter

 /**
  * Before filter, set up the page by initializing the session and checking
  * all conditions.
  *
  * @param String $action Name of the action to be invoked
  * @param Array  $args   Arguments to be passed to the action method
  */
 public function before_filter(&$action, &$args)
 {
     parent::before_filter($action, $args);
     // open session
     page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
     // set up user session
     include 'lib/seminar_open.php';
     if (!Config::Get()->SCM_ENABLE) {
         throw new AccessDeniedException(_('Die freien Informationsseiten sind nicht aktiviert.'));
     }
     $GLOBALS['auth']->login_if(Request::get('again') && $GLOBALS['auth']->auth['uid'] == 'nobody');
     $this->priviledged = $GLOBALS['perm']->have_studip_perm('tutor', $GLOBALS['SessSemName'][1]);
     if (Request::isXhr()) {
         $this->set_content_type('text/html;charset=Windows-1252');
     } else {
         $this->set_layout($GLOBALS['template_factory']->open('layouts/base'));
     }
     if (!in_array($action, words('index create edit move delete'))) {
         array_unshift($args, $action);
         $action = 'index';
     }
     if (in_array($action, words('create edit move delete')) && !$this->priviledged) {
         throw new AccessDeniedException();
     }
     if ($GLOBALS['perm']->have_studip_perm('tutor', $GLOBALS['SessSemName'][1])) {
         $widget = new ActionsWidget();
         $widget->addLink(_('Neuen Eintrag anlegen'), URLHelper::getLink('dispatch.php/course/scm/create'), Icon::create('add', 'clickable'))->asDialog();
         Sidebar::get()->addWidget($widget);
     }
     PageLayout::setHelpKeyword('Basis.Informationsseite');
     Navigation::activateItem('/course/scm');
     checkObject();
     // do we have an open object?
     checkObjectModule('scm');
     object_set_visit_module('scm');
     // Set sidebar image
     $sidebar = Sidebar::get();
     $sidebar->setImage('sidebar/info-sidebar.png');
 }
开发者ID:ratbird,项目名称:hope,代码行数:46,代码来源:scm.php

示例7: Henckel

#                Lutz Henckel (lutz.henckel@fokus.fraunhofer.de)
#
# BerliOS SourceBiz: http://sourcewell.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# This is the customers administration file
#
# 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 2 or later of the GPL.
#
# $Id: cusupd.php,v 1.2 2003/02/25 11:45:44 helix Exp $
#
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceBiz_Session", "auth" => "SourceBiz_Auth", "perm" => "SourceBiz_Perm"));
require "./include/header.inc";
require "./include/entlib.inc";
require "./include/cuslib.inc";
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
if (isset($id)) {
    $columns = "*";
    $tables = "customers,enterprise";
    $where = "enterprise.entid = customers.entid_cus AND customers.cusid = '{$id}'";
    if (!$db->query("SELECT {$columns} FROM {$tables} WHERE {$where}")) {
        mysql_die($db);
开发者ID:BackupTheBerlios,项目名称:sourcebiz,代码行数:31,代码来源:cusupd.php

示例8: Copyright

#
# Copyright (c) 2001 by
#                Lutz Henckel (lutz.henckel@fokus.gmd.de) and
#                Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceLines: http://sourcelines.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# Enables (authenticated) users to change their parameters
#
# 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 2 or later of the GPL.
######################################################################
require "./include/prepend.php3";
page_open(array("sess" => "SourceLines_Session", "auth" => "SourceLines_Auth", "perm" => "SourceLines_Perm"));
require "./include/header.inc";
$bx = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$bi = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
?>

<!-- content -->
<?php 
###
### Submit Handler
###
## Get a database connection
$db = new DB_SourceLines();
// Check if there was a submission
while (is_array($HTTP_POST_VARS) && (list($key, $val) = each($HTTP_POST_VARS))) {
开发者ID:BackupTheBerlios,项目名称:sourcelines,代码行数:31,代码来源:chguser.php

示例9: page_open

<?php

include "../include/phplib/prepend.php3";
$cancel_login = 1;
page_open(array("sess" => "Thesaurus_Session", "auth" => "Thesaurus_Default_Auth"));
include "../include/tool.php";
$db = new DB_Thesaurus();
$inner_db = new DB_Thesaurus();
if (!array_key_exists('word', $_GET)) {
    print "Illegal arguments";
    return;
}
$title = sprintf(_("No synonyms found for '%s'"), escape($_GET['word']));
include "../include/top.php";
?>

<?php 
// =================== Search again ======================================
?>

<form action="synset.php" method="get" name="f">
	<input type="hidden" name="search" value="1" />
	<table border="0">
	<tr>
		<td><strong><?php 
print _("New search");
?>
:</strong></td>
		<td><input type="text" size="18" name="word" value="<?php 
print escape($_GET['word']);
?>
开发者ID:BackupTheBerlios,项目名称:openthes-es-svn,代码行数:31,代码来源:suggestions.php

示例10: getenv

?>
<?php
///////////////////////////////////////////////////////////////////////////////
// OBM - File : userpattern_index.php                                        //
//     - Desc : User Pattern Index File                                      //
// 2010-01-21 Vincent ALQUIER                                                //
///////////////////////////////////////////////////////////////////////////////

$path = '..';
$module = 'userpattern';
$obminclude = getenv('OBM_INCLUDE_VAR');
if ($obminclude == '') $obminclude = 'obminclude';
include("$obminclude/global.inc");
$params = get_userpattern_params();

page_open(array('sess' => 'OBM_Session', 'auth' => $auth_class_name, 'perm' => 'OBM_Perm'));
$user_lang_file = "$obminclude/lang/".strtolower(get_lang()).'/user.inc';
if (file_exists("$path/../".$user_lang_file)) include_once("$user_lang_file");
include("$obminclude/global_pref.inc");

require('userpattern_display.inc');
require('userpattern_query.inc');
require('userpattern_js.inc');
include_once("$path/../app/default/models/UserPattern.php");
include("$obminclude/of/of_category.inc");
$params = get_userpattern_params();

get_userpattern_action();
$perm->check_permissions($module, $action);

//update_last_visit('userpattern', $params['userpattern_id'], $action);
开发者ID:Kervinou,项目名称:OBM,代码行数:31,代码来源:userpattern_index.php

示例11: Robles

#                Gregorio Robles (grex@scouts-es.org)
#
# BerliOS SourceAgency: http://sourceagency.berlios.de
# BerliOS - The OpenSource Mediator: http://www.berlios.de
#
# This file inserts a new license
#
# 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 2 or later of the GPL.
######################################################################
require "include/prepend.php3";
page_open(array('sess' => 'SourceAgency_Session'));
if (isset($auth) && !empty($auth->auth['perm'])) {
    page_close();
    page_open(array('sess' => 'SourceAgency_Session', 'auth' => 'SourceAgency_Auth', 'perm' => 'SourceAgency_Perm'));
}
require 'include/header.inc';
$bx = new box('97%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box('80%', $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
start_content();
if ($config_perm_admlicens != 'all' && (!isset($perm) || !$perm->have_perm($config_perm_admlicens))) {
    $be->box_full($t->translate('Error'), $t->translate('Access denied'));
} else {
    if (isset($license) && !empty($license)) {
        // Look if License is already in table
        $db->query("SELECT * FROM licenses WHERE license='{$license}'");
        if ($db->num_rows() > 0) {
            if (isset($new_license)) {
                // If license in database and a new name is given, then rename
                if (!empty($new_license)) {
开发者ID:BackupTheBerlios,项目名称:sourceagency,代码行数:31,代码来源:inslic.php

示例12: page_open

<?php

/**
 * datenschutz.php
 *
 * privacy guidelines for Stud.IP
 *
 * PHP version 5
 *
 * @author      Elmar Ludwig
 * @author      Michael Riehemann <michael.riehemann@uni-oldenburg.de>
 * @copyright   2009 Stud.IP
 * @license     http://www.gnu.org/licenses/gpl.html GPL Licence 3
 * @package     studip_core
 * @access      public
 */
require '../lib/bootstrap.php';
page_open(array('sess' => 'Seminar_Session', 'auth' => 'Seminar_Default_Auth', 'perm' => 'Seminar_Perm', 'user' => 'Seminar_User'));
// set up user session
include 'lib/seminar_open.php';
// this page must be accessible during visibility decision
$USER_VISIBILITY_CHECK = false;
PageLayout::setTitle(_('Erläuterungen zum Datenschutz'));
$template = $template_factory->open('privacy');
$template->set_layout('layouts/base_without_infobox');
echo $template->render();
开发者ID:ratbird,项目名称:hope,代码行数:26,代码来源:datenschutz.php

示例13: page_open

<?php

include 'phplib/prepend.php';
page_open(array("sess" => "hotspot_Session", "auth" => "hotspot_Auth", "perm" => "hotspot_Perm"));
echo "<script language=JavaScript src=/js/currency.js></script>\n";
echo "<script language=JavaScript src=/js/datefunc.js>\n//Parts taken from ts_picker.js\n//Script by Denis Gritcyuk: tspicker@yahoo.com\n//Submitted to JavaScript Kit (http://javascriptkit.com)\n//Visit http://javascriptkit.com for this script\n</script>\n<script language=JavaScript>\nfunction DoCustomChecks(f) {\n        if (f.bulk.value) {\n                if (!f.access.value) f.access.value=' ';\n                if (!f.address.value) f.address.value=' ';\n        }\n        if (!f.access.value) {\n                if (f.acc.selectedIndex) {\n                        f.access.value=f.acc.options[f.acc.selectedIndex].value;\n                } else {\n                        alert('Please select or enter Access');\n                        f.access.focus();\n                        return false;\n                }\n        }\n        return true;\n}\n</script> \n";
include "postfix.inc";
class my_postfix_sender_accessform extends postfix_sender_accessform
{
    var $classname = "my_postfix_sender_accessform";
}
$f = new my_postfix_sender_accessform();
if ($submit) {
    switch ($submit) {
        case "Save":
            if ($id) {
                $submit = "Edit";
            } else {
                $submit = "Add";
            }
        case "Add":
        case "Edit":
            if (isset($auth)) {
                if (!$f->validate($result)) {
                    $cmd = $submit;
                    echo "<font class=bigTextBold>{$cmd} postfix _sender _access</font>\n";
                    $f->display();
                    page_close();
                    exit;
                } else {
                    echo "Saving....";
开发者ID:TaylorMonacelli,项目名称:phplib,代码行数:31,代码来源:postfix_sender_access.php

示例14: page_open

<?php

/**
 * setup of new user accounts and account info maintenance, and viewing old orders
 *
 * $Id: profile.php,v 1.8 2008/02/05 16:35:21 sbeam Exp $
 */
require_once CONFIG_DIR . 'cshop.config.php';
require_once 'formex.class.php';
require_once CSHOP_CLASSES_USER . '.class.php';
// init page auth objects
page_open(array('sess' => CSHOP_CLASSES_AUTH_SESSION, 'auth' => 'defaultAuth'));
// flag for smarty
$smarty->assign('page_id', 'user_profile');
/* the cart and the user. That's what its all about */
$c = CSHOP_CLASSES_USER;
$user = new $c($pdb);
$user->set_auth($auth);
$auth_logged_in = $auth->is_logged_in() && !$auth->has_bypass_flag();
$smarty->assign('auth_logged_in', $auth_logged_in);
$smarty->assign('user', $user->fetch());
if ($auth_logged_in) {
    $userinfo = $user->fetch();
    // empty unless they are logged in
} else {
    $userinfo = null;
}
// control flags
$ACTION = null;
$SHOWFORM = false;
$SUCCESS = null;
开发者ID:sbeam,项目名称:cshop,代码行数:31,代码来源:profile.php

示例15: page_open

  the Free Software Foundation, either version 3 of the License, or
  (at your option) any later version.
  
  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.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
require_once "prepend.php";
require_once "configuracion.php";
require_once "UI.php";
require_once "clienteNewsService.php";
page_open(array("sess" => "Sesion_Blufeedme"));
global $userp;
global $passp;
global $categoriasS;
global $noticiasS;
if (isset($_POST['usuario']) && isset($_POST['password']) && !empty($_POST['usuario']) && !empty($_POST['password'])) {
    try {
        $cliente = new ClienteNewsService($_POST['usuario'], $_POST['password']);
    } catch (Exception $e) {
        echo "<script type=\"text/javascript\"> \n\t\t\t\t\$.ajax({\n\t\t\t\t\t\ttype: \"POST\",\n\t\t\t\t\t\tdata: \"error=WebService no disponible\",\n\t\t\t\t\t\turl: 'alerta.php',\n\t\t\t\t\t\tsuccess: function(data){\n\t\t\t\t\t\t\t\$('#central').html(data);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t</script>";
        exit(1);
    }
    try {
        $cat = $cliente->getCategory();
        unset($categoriasS);
        if (!is_null($cat)) {
开发者ID:sephierot,项目名称:BlufeedMe,代码行数:31,代码来源:login.php


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