本文整理汇总了PHP中atksession函数的典型用法代码示例。如果您正苦于以下问题:PHP atksession函数的具体用法?PHP atksession怎么用?PHP atksession使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了atksession函数的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
<?php
header("Content-Type: text/css");
$config_atkroot = "./";
include_once "atk.inc";
// dummy namespace. if we don't use dummy here, the session is corrupted
// because style.php is loaded between two dispatch.php calls.
atksession("dummy");
atksecure();
include_once "./theme.inc";
?>
BODY
{
font-family: <?php
echo $g_theme["FontFamily"];
?>
;
font-size: <?php
echo $g_theme["FontSize"];
?>
pt;
font-weight: <?php
echo $g_theme["FontWeight"];
?>
;
background-color: <?php
echo $g_theme["BgColor"];
?>
;
color: <?php
示例2: atksession
*
* @author Ivo Jansch <ivo@achievo.org>
* @author Peter C. Verhage <peter@ibuildings.nl>
*
* @copyright (c)2000-2004 Ibuildings.nl BV
* @license http://www.achievo.org/atk/licensing ATK Open Source License
*
* @version $Revision$
* $Id$
*/
/**
* @internal includes
*/
$config_atkroot = "./";
include_once "atk.inc";
atksession();
atksecure();
require "theme.inc";
atkimport("atk.ui.atktheme");
$output =& atkOutput::getInstance();
$page =& atkinstance("atk.ui.atkpage");
$page->unregister_all_scripts();
$theme =& atkTheme::getInstance();
$ui =& atkinstance("atk.ui.atkui");
/* general menu stuff */
/* load menu layout */
atkimport("atk.menu.atkmenu");
$menu =& atkMenu::getMenu();
if (is_object($menu)) {
$output->output($menu->render());
} else {
示例3: moduleDir
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Achievo 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.
*
*/
/* Setup the system */
$config_atkroot = "./";
include_once "atk.inc";
include_once "theme.inc";
include_once moduleDir("graph") . "jpgraph/jpgraph.php";
atksession("img", false);
atksecure();
// Create attribute.
$plottersource = $ATK_VARS["plotter"];
useattrib($plottersource);
list($module, $attribname) = explode(".", $plottersource);
$plotterclass = $attribname . "Plotter";
$res = false;
if (class_exists($plotterclass)) {
// Since php does not support calling static methods
// on a 'dynamic' class (where the name is inside a
// variable), we use a companion plotter class to
// plot stuff.
$plotter = new $plotterclass();
$res = $plotter->plot($ATK_VARS);
} else {