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

PHP exponent_sessions_set函数代码示例

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

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



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

示例1: exponent_flow_set

function exponent_flow_set($access_level, $url_type)
{
    global $SYS_FLOW_REDIRECTIONPATH;
    if ($access_level == SYS_FLOW_PUBLIC) {
        exponent_sessions_set($SYS_FLOW_REDIRECTIONPATH . '_flow_' . SYS_FLOW_PROTECTED . '_' . $url_type, 'http://' . HOSTNAME . $_SERVER['REQUEST_URI']);
        exponent_sessions_set($SYS_FLOW_REDIRECTIONPATH . '_flow_last_' . SYS_FLOW_PROTECTED, 'http://' . HOSTNAME . $_SERVER['REQUEST_URI']);
    }
    exponent_sessions_set($SYS_FLOW_REDIRECTIONPATH . '_flow_' . $access_level . '_' . $url_type, 'http://' . HOSTNAME . $_SERVER['REQUEST_URI']);
    exponent_sessions_set($SYS_FLOW_REDIRECTIONPATH . '_flow_last_' . $access_level, 'http://' . HOSTNAME . $_SERVER['REQUEST_URI']);
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:10,代码来源:flow.php


示例2: Copyright

<?php

##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent 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 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
// Part of the Extensions category
if (!defined('EXPONENT')) {
    exit('');
}
if (exponent_permissions_check('extensions', exponent_core_makeLocation('administrationmodule'))) {
    exponent_sessions_set('display_theme', $_GET['theme']);
    exponent_flow_redirect();
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:28,代码来源:theme_preview.php


示例3: update

 function update($values, $object)
 {
     if ($object == null) {
         $object = new TimeControl();
         $object->default = 0;
         //This will force the control to always show the current time as default
     }
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/TimeControl.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->showControl = isset($values['showControl']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:19,代码来源:TimeControl.php


示例4: update

 function update($values, $object)
 {
     if (isset($values['_db_config'])) {
         $i18n = exponent_lang_loadFile('datatypes/sharedcore_site.php');
         // Test configuration, and return NULL if it doesn't work.
         if (preg_match('/[^A-Za-z0-9]/', $values['db_table_prefix'])) {
             $post = $values;
             $post['_formError'] = $i18n['bad_prefix'] . '<br />';
             exponent_sessions_set('last_POST', $post);
             return null;
         }
         $linkdb = exponent_database_connect($values['db_user'], $values['db_pass'], $values['db_host'] . ':' . $values['db_port'], $values['db_name'], $values['db_engine'], true);
         $linkdb->prefix = $values['db_table_prefix'] . '_';
         if (!$linkdb->isValid()) {
             $post = $values;
             $post['_formError'] = $i18n['cant_connect'] . '<br />';
             exponent_sessions_set('last_POST', $post);
             return null;
         }
         $status = $linkdb->testPrivileges();
         $failed = false;
         $errors = '';
         foreach ($status as $type => $flag) {
             if (!$flag) {
                 $failed = true;
                 $errors .= sprintf($i18n['perm_denied'], $type) . '<br />';
             }
         }
         if ($failed) {
             $post = $values;
             $post['_formError'] = $errors;
             exponent_sessions_set('last_POST', $post);
             return null;
         }
     }
     $object->name = $values['name'];
     $object->core_id = $values['core_id'];
     if (!isset($object->id)) {
         $object->path = $values['path'];
         if ($object->path[0] != '/') {
             $object->path = '/' . $object->path;
         }
         if (substr($object->path, -1, 1) != '/') {
             $object->path = $object->path . '/';
         }
         $object->relpath = $values['relpath'];
         if ($object->relpath[0] != '/') {
             $object->relpath = '/' . $object->relpath;
         }
         if (substr($object->relpath, -1, 1) != '/') {
             $object->relpath = $object->relpath . '/';
         }
         $object->host = $values['host'];
         if (substr($object->host, 0, 7) != 'http://' && substr($object->host, 0, 8) != 'https://') {
             $object->host = 'http://' . $object->host;
         }
         if (substr($object->host, -1, 1) == '/') {
             $object->host = substr($object->host, 0, -1);
         }
     }
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:62,代码来源:sharedcore_site.php


示例5: Copyright

<?php

##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent 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 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined("EXPONENT")) {
    exit("");
}
exponent_sessions_set("uilevel", 0);
exponent_flow_redirect();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:23,代码来源:preview.php


示例6: fopen

	$post['_formError'] = "File is not a delimited text file.";
	exponent_sessions_set("last_POST",$post);
	header("Location: " . $_SERVER['HTTP_REFERER']);
	exit("");
}
*/
//split the line into its columns
$fh = fopen(BASE . $directory . "/" . $file->filename, "r");
for ($x = 0; $x < $_POST["rowstart"]; $x++) {
    $lineInfo = fgetcsv($fh, 2000, $_POST["delimiter"]);
}
$colNames = array("none" => $i18n['col_none'], "username" => $i18n['col_username'], "password" => $i18n['col_password'], "firstname" => $i18n['col_firstname'], "lastname" => $i18n['col_lastname'], "email" => $i18n['col_email']);
//Check to see if the line got split, otherwise throw an error
if ($lineInfo == null) {
    $post['_formError'] = sprintf($i18n['delimiter_error'], $_POST["delimiter"]);
    exponent_sessions_set("last_POST", $post);
    header("Location: " . $_SERVER['HTTP_REFERER']);
    exit("");
} else {
    //initialize the for stuff
    exponent_forms_initialize();
    //Setup the mete data (hidden values)
    $form = new form();
    $form->meta("module", "importer");
    $form->meta("action", "page");
    $form->meta("page", "process");
    $form->meta("rowstart", $_POST["rowstart"]);
    $form->meta("importer", "usercsv");
    $form->meta("filename", $directory . "/" . $file->filename);
    $form->meta("delimiter", $_POST["delimiter"]);
    for ($i = 0; $i < count($lineInfo); $i++) {
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:mapper.php


示例7: exit

##################################################
// Part of the User Management category
if (!defined('EXPONENT')) {
    exit('');
}
if (exponent_permissions_check('user_management', exponent_core_makeLocation('administrationmodule'))) {
    if (!defined('SYS_USERS')) {
        require_once BASE . 'subsystems/users.php';
    }
    if (isset($_POST['id'])) {
        // Existing user profile edit
        $g = exponent_users_getGroupById($_POST['id']);
        $g = exponent_users_groupUpdate($_POST, $g);
        exponent_users_saveGroup($g);
        exponent_flow_redirect();
    } else {
        if (exponent_users_getGroupByName($_POST['name']) != null) {
            $i18n = exponent_lang_loadFile('modules/administrationmodule/actions/gmgr_savegroup.php');
            $post = $_POST;
            $post['_formError'] = $i18n['name_taken'];
            exponent_sessions_set('last_POST', $post);
            header('Location: ' . $_SERVER['HTTP_REFERER']);
        } else {
            $g = exponent_users_groupUpdate($_POST, null);
            exponent_users_saveGroup($g);
            exponent_flow_redirect();
        }
    }
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:gmgr_savegroup.php


示例8: update

 function update($values, $object)
 {
     if ($object == null) {
         $object = new checkboxcontrol();
     }
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/checkboxcontrol.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_required'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->default = isset($values['default']);
     $object->flip = isset($values['flip']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:18,代码来源:checkboxcontrol.php


示例9: define

define('SCRIPT_FILENAME', 'edit_page.php');
ob_start();
include_once '../../../exponent.php';
if (!defined('SYS_THEME')) {
    include_once BASE . 'subsystems/theme.php';
}
$id = -1;
if (isset($_GET['sitetemplate_id'])) {
    exponent_sessions_set('sitetemplate_id', intval($_GET['sitetemplate_id']));
    $id = intval($_GET['sitetemplate_id']);
} else {
    if (exponent_sessions_isset('sitetemplate_id')) {
        $id = exponent_sessions_get('sitetemplate_id');
    }
}
$template = $db->selectObject('section_template', 'id=' . $id);
$page = $template && $template->subtheme != '' && is_readable(BASE . 'themes/' . DISPLAY_THEME . '/subthemes/' . $template->subtheme . '.php') ? 'themes/' . DISPLAY_THEME . '/subthemes/' . $template->subtheme . '.php' : 'themes/' . DISPLAY_THEME . '/index.php';
$i18n = exponent_lang_loadFile('modules/NavigationModule/actions/edit_page.php');
exponent_sessions_set('themeopt_override', array('src_prefix' => '@st' . $id, 'ignore_mods' => array('NavigationModule', 'LoginModule'), 'mainpage' => PATH_RELATIVE . 'modules/NavigationModule/actions/edit_page.php', 'backlinktext' => $i18n['back']));
#define('PREVIEW_READONLY',1);
$REDIRECTIONPATH = 'section_template';
if ($user && $user->is_acting_admin == 1) {
    if (is_readable(BASE . $page)) {
        include_once BASE . $page;
    } else {
        echo sprintf($i18n['err_not_readable'], BASE . $page);
    }
    exponent_sessions_unset('themeopt_override');
} else {
    echo SITE_403_HTML;
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:edit_page.php


示例10: Copyright

<?php

##################################################
#
# Copyright (c) 2004-2006 OIC Group, Inc.
# Written and Designed by James Hunt
#
# This file is part of Exponent
#
# Exponent 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 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined("EXPONENT")) {
    exit("");
}
$levels = exponent_sessions_get('uilevels');
exponent_sessions_set('uilevel', max(array_keys($levels)));
exponent_flow_redirect();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:24,代码来源:normal.php


示例11: update

 function update($values, $object)
 {
     if ($values['identifier'] == "") {
         $post = $_POST;
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/SelectMultipleControl.php');
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     if (!defined("SYS_FORMS")) {
         require_once BASE . "subsystems/forms.php";
     }
     exponent_forms_initialize();
     if ($object == null) {
         $object = new SelectMultipleControl();
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->default = $values['default'];
     $object->items = SelectMultipleControl::parseData($values, 'items', true);
     $object->size = intval($values['size']) <= 0 ? 1 : intval($values['size']);
     $object->required = isset($values['required']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:24,代码来源:SelectMultipleControl.php


示例12: echoFailure

    echo '</td></tr>';
}
function echoFailure($msg = "")
{
    global $i18n;
    echo '<span class="failed">' . $i18n['failed'] . '</span>';
    if ($msg != "") {
        echo ' : ' . $msg;
    }
    echo '</td></tr>';
}
function isAllGood($str)
{
    return !preg_match("/[^A-Za-z0-9]/", $str);
}
exponent_sessions_set("installer_config", $_POST['c']);
$config = $_POST['c'];
$passed = true;
if (preg_match('/[^A-Za-z0-9]/', $config['db_table_prefix'])) {
    echoFailure($i18n['bad_prefix']);
    $passed = false;
}
if ($passed) {
    $db = exponent_database_connect($config['db_user'], $config['db_pass'], $config['db_host'], $config['db_name'], $config['db_engine'], 1);
    $db->prefix = $config['db_table_prefix'] . '_';
    $status = array();
    echoStart($i18n['connecting'] . ':');
    if ($db->connection == null) {
        echoFailure($db->error());
        // FIXME:BETTER ERROR CHECKING
        $passed = false;
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:dbcheck.php


示例13: update

 function update($values, $object)
 {
     if ($object == null) {
         $object = new textcontrol();
     }
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/textcontrol.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->default = $values['default'];
     $object->size = intval($values['size']);
     $object->maxlength = intval($values['maxlength']);
     $object->required = isset($values['required']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:20,代码来源:textcontrol.php


示例14: or

# Exponent 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 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) {
    exit('');
}
$dest_dir = $_POST['dest_dir'];
$files = array();
if (!defined('SYS_FILES')) {
    require_once BASE . 'subsystems/files.php';
}
foreach (array_keys($_POST['mods']) as $mod) {
    $files[$mod] = array('', array());
    if (class_exists($mod)) {
        $files[$mod][0] = call_user_func(array($mod, 'name'));
    }
    foreach (array_keys(exponent_files_listFlat($dest_dir . '/files/' . $mod, 1, null, array(), $dest_dir . '/files/' . $mod . '/')) as $file) {
        $files[$mod][1][$file] = exponent_files_canCreate(BASE . 'files/' . $mod . '/' . $file);
    }
}
exponent_sessions_set('dest_dir', $dest_dir);
exponent_sessions_set('files_data', $files);
$template = new template('importer', '_files_verifyFiles');
$template->assign('files_data', $files);
$template->output();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:extract.php


示例15: or

# it and/or modify 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.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
if (!defined('EXPONENT')) {
    exit('');
}
ob_start();
if (isset($_GET['redirecturl'])) {
    $redirect = urldecode($_GET['redirecturl']);
    if (substr($redirect, 0, 4) != 'http') {
        $redirect = URL_FULL . $redirect;
    }
    exponent_sessions_set('redirecturl', $redirect);
}
//$SYS_FLOW_REDIRECTIONPATH = 'loginredirect';
exponent_flow_set(SYS_FLOW_PUBLIC, SYS_FLOW_ACTION);
if (exponent_sessions_loggedIn()) {
    header('Location: ' . exponent_sessions_get('redirecturl'));
    exit('Redirecting...');
}
$i18n = exponent_lang_loadFile('modules/loginmodule/actions/loginredirect.php');
loginmodule::show('Default', null, $i18n['login']);
$template = new template('loginmodule', '_login_redirect');
$template->assign('output', ob_get_contents());
ob_end_clean();
$template->output();
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:loginredirect.php


示例16: update

 function update($values, $object)
 {
     if ($object == null) {
         $object = new popupdatetimecontrol();
         $object->default = 0;
     }
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/popupdatetimecontrol.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->showtime = isset($values['showtime']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:18,代码来源:popupdatetimecontrol.php


示例17: update

 function update($values, $object)
 {
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/listbuildercontrol.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:13,代码来源:listbuildercontrol.php


示例18: update

 function update($values, $object)
 {
     if ($object == null) {
         $object = new radiogroupcontrol();
     }
     if ($values['identifier'] == "") {
         $i18n = exponent_lang_loadFile('subsystems/forms/controls/radiogroupcontrol.php');
         $post = $_POST;
         $post['_formError'] = $i18n['id_req'];
         exponent_sessions_set("last_POST", $post);
         return null;
     }
     if (!defined("SYS_FORMS")) {
         require_once BASE . "subsystems/forms.php";
     }
     exponent_forms_initialize();
     $object->identifier = $values['identifier'];
     $object->caption = $values['caption'];
     $object->default = $values['default'];
     $object->items = listbuildercontrol::parseData($values, 'items', true);
     $object->flip = isset($values['flip']);
     $object->cols = intval($values['cols']);
     $object->spacing = intval($values['spacing']);
     $object->required = isset($values['required']);
     return $object;
 }
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:26,代码来源:radiogroupcontrol.php


示例19: or

#
# This file is part of Exponent
#
# Exponent 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 of the
# License, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
include_once dirname(realpath(__FILE__)) . '/exponent.php';
include_once dirname(realpath(__FILE__)) . '/subsystems/image.php';
$w = isset($_GET['w']) ? $_GET['w'] : 200;
$h = isset($_GET['h']) ? $_GET['h'] : 50;
$name = isset($_GET['name']) ? $_GET['name'] : 'capcha_string';
if (exponent_sessions_isset($name)) {
    $str = exponent_sessions_get($name);
} else {
    $str = strtoupper(substr(md5(rand()), 17, 6));
    exponent_sessions_set($name, $str);
}
if (intval($w) > 0 && intval($h > 0)) {
    $img = exponent_image_captcha($w, $h, $str);
}
if ($img) {
    $sizeinfo = array('mime' => 'image/png');
    ob_end_clean();
    exponent_image_output($img, $sizeinfo);
}
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:captcha.php


示例20: exponent_sessions_set

}
if (isset($_REQUEST['dest'])) {
    $source_select['dest'] = $_REQUEST['dest'];
} else {
    if (!isset($source_select['dest'])) {
        $source_select['dest'] = null;
    }
}
if (isset($_REQUEST['hideOthers'])) {
    $source_select['hideOthers'] = $_REQUEST['hideOthers'];
} else {
    if (!isset($source_select['hideOthers'])) {
        $source_select['hideOthers'] = 0;
    }
}
exponent_sessions_set('source_select', $source_select);
$template = new standalonetemplate('orphaned_content');
ob_start();
// Include the orphans_modules action of the container, to get a list of modules types with orhpans.
include_once BASE . 'modules/ContainerModule/actions/orphans_modules.php';
$template->assign('modules_output', ob_get_contents());
ob_end_clean();
if (isset($_GET['module'])) {
    ob_start();
    // Include the orphans_content action of the container module, to show all modules of the specified type.
    include_once BASE . 'modules/ContainerModule/actions/orphans_content.php';
    $template->assign('main_output', ob_get_contents());
    $template->assign('error', '');
    ob_end_clean();
} else {
    if ($db->countObjects('locationref', 'refcount = 0')) {
开发者ID:BackupTheBerlios,项目名称:exponentva-svn,代码行数:31,代码来源:orphan_source_selector.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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