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


PHP e107::coreLan方法代码示例

本文整理汇总了PHP中e107::coreLan方法的典型用法代码示例。如果您正苦于以下问题:PHP e107::coreLan方法的具体用法?PHP e107::coreLan怎么用?PHP e107::coreLan使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在e107的用法示例。


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

示例1: setDefaultRankData

 protected function setDefaultRankData()
 {
     e107::coreLan('userclass');
     $this->ranks = array('data' => array(), 'special' => array());
     $this->ranks['data'][1] = array('name' => '', 'thresh' => 20, 'image' => 'lev1.png', 'lan_pfx' => '', 'id' => 1);
     $this->ranks['data'][2] = array('name' => '', 'thresh' => 100, 'image' => 'lev2.png', 'lan_pfx' => '', 'id' => 2);
     $this->ranks['data'][3] = array('name' => '', 'thresh' => 250, 'image' => 'lev3.png', 'lan_pfx' => '', 'id' => 3);
     $this->ranks['data'][4] = array('name' => '', 'thresh' => 410, 'image' => 'lev4.png', 'lan_pfx' => '', 'id' => 4);
     $this->ranks['data'][5] = array('name' => '', 'thresh' => 580, 'image' => 'lev5.png', 'lan_pfx' => '', 'id' => 5);
     $this->ranks['data'][6] = array('name' => '', 'thresh' => 760, 'image' => 'lev6.png', 'lan_pfx' => '', 'id' => 6);
     $this->ranks['data'][7] = array('name' => '', 'thresh' => 950, 'image' => 'lev7.png', 'lan_pfx' => '', 'id' => 7);
     $this->ranks['data'][8] = array('name' => '', 'thresh' => 1150, 'image' => 'lev8.png', 'lan_pfx' => '', 'id' => 8);
     $this->ranks['data'][9] = array('name' => '', 'thresh' => 1370, 'image' => 'lev9.png', 'lan_pfx' => '', 'id' => 9);
     $this->ranks['data'][10] = array('name' => '', 'thresh' => 1371, 'image' => 'lev10.png', 'lan_pfx' => '', 'id' => 10);
     // special
     $this->ranks['special'][1] = array('name' => UC_LAN_6, 'thresh' => 1, 'image' => 'English_main_admin.png', 'lan_pfx' => '1', 'id' => 11);
     $this->ranks['special'][2] = array('name' => UC_LAN_5, 'thresh' => 2, 'image' => 'English_admin.png', 'lan_pfx' => '1', 'id' => 12);
     $this->ranks['special'][3] = array('name' => UC_LAN_7, 'thresh' => 3, 'image' => 'English_moderator.png', 'lan_pfx' => '1', 'id' => 13);
 }
开发者ID:notzen,项目名称:e107,代码行数:19,代码来源:e_ranks_class.php

示例2: array

 *
 * Copyright (C) e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * URL and front controller Management
 *
 * $URL$
 * $Id$
*/
require_once '../class2.php';
if (!ADMIN || !getperms('L')) {
    e107::redirect('admin');
    exit;
}
e107::coreLan('eurl', true);
// TODO - admin interface support, remove it from globals
$e_sub_cat = 'eurl';
e107::css('inline', " span.e-help { cursor: help } ");
class eurl_admin extends e_admin_dispatcher
{
    protected $modes = array('main' => array('controller' => 'eurl_admin_ui', 'path' => null, 'ui' => 'eurl_admin_form_ui', 'uipath' => null));
    protected $adminMenu = array('main/config' => array('caption' => LAN_EURL_MENU_CONFIG, 'perm' => 'L'), 'main/alias' => array('caption' => LAN_EURL_MENU_ALIASES, 'perm' => 'L'), 'main/settings' => array('caption' => LAN_EURL_MENU_SETTINGS, 'perm' => 'L'), 'main/simple' => array('caption' => LAN_EURL_MENU_REDIRECTS, 'perm' => 'L'));
    protected $adminMenuAliases = array();
    protected $defaultAction = 'config';
    protected $menuTitle = LAN_EURL_MENU;
}
class eurl_admin_ui extends e_admin_controller_ui
{
    public $api;
    protected $prefs = array('url_disable_pathinfo' => array('title' => LAN_EURL_SETTINGS_PATHINFO, 'type' => 'boolean', 'help' => LAN_EURL_MODREWR_DESCR), 'url_main_module' => array('title' => LAN_EURL_SETTINGS_MAINMODULE, 'type' => 'dropdown', 'data' => 'string', 'help' => LAN_EURL_SETTINGS_MAINMODULE_HELP), 'url_error_redirect' => array('title' => LAN_EURL_SETTINGS_REDIRECT, 'type' => 'boolean', 'help' => LAN_EURL_SETTINGS_REDIRECT_HELP), 'url_sef_translate' => array('title' => LAN_EURL_SETTINGS_SEFTRANSLATE, 'type' => 'dropdown', 'data' => 'string', 'help' => LAN_EURL_SETTINGS_SEFTRANSLATE_HELP));
开发者ID:KonzolozZ,项目名称:e107,代码行数:31,代码来源:eurl.php

示例3: preAction

 function preAction()
 {
     e107::coreLan('error');
 }
开发者ID:armpit,项目名称:e107,代码行数:4,代码来源:error.php

示例4: header

<?php

/*
* e107 website system
*
* Copyright 2008-2014 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* Interface for users who have forgotten their password
*
*/
require_once 'class2.php';
e107::coreLan('fpw');
$tp = e107::getParser();
if (USER && !getperms('0')) {
    header('location:' . e_BASE . 'index.php');
    exit;
}
if ($pref['fpwcode'] && extension_loaded('gd')) {
    define('USE_IMAGECODE', TRUE);
    $sec_img = e107::getSecureImg();
} else {
    define('USE_IMAGECODE', FALSE);
}
class fpw_shortcodes extends e_shortcode
{
    private $secImg;
    function __construct()
    {
        global $sec_img;
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:fpw.php

示例5: switch

 * e107 website system
 *
 * Copyright (C) 2008-2012 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 *
 *
 * $URL$
 * $Id$
 */
// Mods to show extended field categories
if (!defined('e107_INIT')) {
    exit;
}
e107::coreLan('signup');
class signup_shortcodes extends e_shortcode
{
    function sc_signup_coppa_form()
    {
        if (strpos(LAN_SIGNUP_77, "stage") !== FALSE) {
            return "";
        } else {
            return "\n\t\t\t<form method='post' action='" . e_SELF . "?stage1' autocomplete='off'>\n\n\t\t\t<div><br />\n\t\t\t<input type='radio' name='coppa' value='0' checked='checked' /> " . LAN_NO . "\n\t\t\t<input type='radio' name='coppa' value='1' /> " . LAN_YES . "<br />\n\t\t\t<br />\n\t\t\t<input class='btn btn-primary button' type='submit' name='newver' value=\"" . LAN_CONTINUE . "\" />\n\t\t\t</div></form>\n\t\t";
        }
    }
    function sc_signup_xup($param)
    {
        switch ($param) {
            case 'login':
                return $this->sc_signup_xup_login($param);
开发者ID:JBeezygit,项目名称:e107,代码行数:31,代码来源:signup_shortcodes.php

示例6: nextprev_shortcode

/**
 * Core NEXTPREV shortcode
 * Comma separated parameters are now deprecated.
 * Parameter string should be formatted as if it were the query string passed via a URL:
 * <code>$parm = 'total=10&amount=5&current=0&type=...'</code>
 *
 * Parameter list:
 * - total (integer) [required]: total records/pages
 * - amount (integer| string 'all') [required]: Records per page, always 1 when we counting pages (see 'type' parameter), ignored where tmpl_prefix is not set and 'old_np' pref is false
 * - current (integer)[required]: Current record/page
 * - type (string page|record) [optional]: What kind of navigation logic we need, default is 'record' (the old way)
 *
 * - url (rawurlencode'd string) [required]: URL template, will be rawurldecode'd after parameters are parsed to array, '--AMP--' strings will be replaced with '&amp;'
 * 	NOTE: URL should be DOUBLE encoded, which means you need to encode the query only of passed URL (W3C standards) and rawurlencode the whole URL string
 * The reason to do this is to not break the whole shortcode $parm string, shortcode itself is doing decode once, which means we'll end up with correct, W3C compliant URL string
 * 'url' now supports url::module/controller/action?id=xxx--AMP--name=yyy--AMP--page=--FROM--::full=1 and route::news/list/category::id=xxx--AMP--name=yyy--AMP--page=--FROM--::full=1 formats
 *
 * Preffered 'FROM' template is now '--FROM--' (instead '[FROM]')
 * - caption (rawurlencode'd string) [optional]: Label, rawurldecode'd after parameters are parsed to array, language constants are supported
 * - pagetitle (rawurlencode'd string) [optional]: Page labels, rawurldecode'd after parameters are parsed to array,
 * separated by '|', if present they will be used as lablels instead page numbers; language constants are supported
 * - plugin (string) [optional]: plugin name used for template loading
 * - tmpl_prefix (string) [optional]: template keys prefix; core supported are 'default' and 'dropdown', default depends on 'old_np' pref
 * - navcount (integer) [optional]: number of navigation items to be shown, minimal allowed value is 4, default is 10
 * - nonavcount (no value) [optional]: if is set it'll disable navigation counting (navcount will be ignored)
 * - bullet (string) [optional]: currently it should contain the markup to be prepended to the navigation item title
 *
 * WARNING: You have to do rawuldecode() on url, caption and title parameter values (before passing them to the shortcode)
 * or you'll break the whole script
 *
 * TODO - add create URL support when new URL handler is ready
 *
 * @param string $parm
 * @return string page navigation bar HTML
 */
function nextprev_shortcode($parm = '')
{
    $e107 = e107::getInstance();
    $pref = e107::getPref();
    $tp = e107::getParser();
    e107::coreLan('np');
    /**
     * The NEW way.
     * New parameter requirements formatted as a GET string.
     * Template support.
     */
    if (strpos($parm, 'total=') !== false) {
        parse_str($parm, $parm);
        // Calculate
        $total_items = intval($parm['total']);
        $check_render = true;
        if (vartrue($parm['glyphs']) && deftrue('BOOTSTRAP')) {
            $LAN_NP_FIRST = $tp->toGlyph("icon-fast-backward.glyph", false);
            $LAN_NP_PREVIOUS = $tp->toGlyph("icon-backward.glyph", false);
            $LAN_NP_NEXT = $tp->toGlyph("icon-forward.glyph", false);
            $LAN_NP_LAST = $tp->toGlyph("icon-fast-forward", false);
        } else {
            $LAN_NP_FIRST = LAN_NP_FIRST;
            $LAN_NP_PREVIOUS = LAN_NP_PREVIOUS;
            $LAN_NP_NEXT = LAN_NP_NEXT;
            $LAN_NP_LAST = LAN_NP_LAST;
        }
        // search for template keys - default_start, default_end etc.
        if (isset($parm['tmpl_prefix'])) {
            // forced
            $tprefix = vartrue($parm['tmpl_prefix'], 'default');
            //$perpage = $parm['amount'] !== 'all' ? intval($parm['amount']) : $total_items;
        } elseif (isset($parm['tmpl'])) {
            // forced
            $tprefix = vartrue($parm['tmpl'], 'default');
            //$perpage = $parm['amount'] !== 'all' ? intval($parm['amount']) : $total_items;
        } elseif ($pref['old_np']) {
            $tprefix = 'default';
            //$perpage = $parm['amount'] !== 'all' ? intval($parm['amount']) : $total_items;
        } else {
            $tprefix = 'dropdown';
            //$parm['amount'] = 'all';
        }
        if ($tprefix == 'default' && deftrue('BOOTSTRAP')) {
            $tprefix = 'bootstrap';
        }
        $tprefix .= '_';
        if ($parm['amount'] === 'all') {
            $perpage = 1;
            // amount is ignored
            $check_render = $total_items > 1;
        } else {
            $perpage = intval($parm['amount']);
        }
        if (!$check_render) {
            return '';
        }
        // TODO - rename old_np to something more meaningful
        $current_start = intval($parm['current']);
        $nptype = varset($parm['type'], 'record');
        switch ($nptype) {
            case 'page':
                $perpage = 1;
                $current_page = $current_start;
                $first_page = 1;
//.........这里部分代码省略.........
开发者ID:KonzolozZ,项目名称:e107,代码行数:101,代码来源:nextprev.php

示例7: user_extended_validate_entry

 *	@version 	$Id$;
 *
 *	Extended user field handler
 *
 *	@todo: - change some routines to access the cached variables rather than DB
 *	@todo: Remove setting up of _FIELD_TYPES array (may be necessary, since UEF data structure not fixed)
 *	@todo: Consider changing field type constants to class constants
 *	@todo - cache field structure (already done in a different way in e107::user() in class2.php line 1387 or so)
 *	@todo - class variables - confirm whether public/protected assignments are correct
 *	@todo - consider whether to split system and non-system fields
Code uses two tables:
	user_extended_struct - individual field definitions, one record per field
	user_extended - actual field data, one record per user
@todo: Should user_extended_validate_entry() check DB for DB-type fields?
*/
e107::coreLan('user_extended');
class e107_user_extended
{
    public $user_extended_types;
    // Text description corresponding to each field type
    private $extended_xml = FALSE;
    public $typeArray;
    // Cross-reference between names of field types, and numeric ID (must be public)
    private $reserved_names;
    // List of field names used in main user DB - not allowed in extended DB
    public $fieldDefinitions;
    // Array initialised from DB by constructor - currently all fields
    public $catDefinitions;
    // Categories
    private $nameIndex;
    // Array for field name lookup - initialised by constructor
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:user_extended_class.php

示例8: logout

    }
    public function logout()
    {
        if (!e107::getPref('social_login_active', false) || !$this->adapter || !Hybrid_Auth::isConnectedWith($this->getProvider())) {
            return true;
        }
        try {
            $this->adapter->logout();
            $this->adapter = null;
        } catch (Exception $e) {
            return $e->getMessage();
        }
        return true;
    }
}
e107::coreLan('administrator', true);
class e_userperms
{
    protected $core_perms = array();
    protected $plugin_perms = array();
    protected $language_perms = array();
    protected $main_perms = array();
    protected $full_perms = array();
    protected $permSectionDiz = array('core' => LAN_GENERAL, 'plugin' => ADLAN_CL_7, 'language' => ADLAN_132, 'main' => ADMSLAN_58);
    function __construct()
    {
        $this->core_perms = array("C" => array(ADLAN_74, E_16_CACHE, E_32_CACHE), "F" => array(ADLAN_58, E_16_EMOTE, E_32_EMOTE), "G" => array(ADLAN_60, E_16_FRONT, E_32_FRONT), "L" => array(ADLAN_132, E_16_LANGUAGE, E_32_LANGUAGE), "T" => array(ADLAN_66, E_16_META, E_32_META), "1" => array(LAN_PREFS, E_16_PREFS, E_32_PREFS), "X" => array(LAN_SEARCH, E_16_SEARCH, E_32_SEARCH), "I" => array(ADLAN_138, E_16_LINKS, E_32_LINKS), "8" => array(ADMSLAN_27, E_16_LINKS, E_32_LINKS), "K" => array(ADLAN_159, E_16_EURL, E_32_EURL), "3" => array(ADLAN_8, E_16_ADMIN, E_32_ADMIN), "4" => array(LAN_USER_MANAGEALL, E_16_USER, E_32_USER), "U0" => array(ADLAN_34, E_16_USER, E_32_USER), "U1" => array(LAN_USER_QUICKADD, E_16_USER, E_32_USER), "U2" => array(LAN_USER_OPTIONS, E_16_USER, E_32_USER), "U3" => array(LAN_USER_RANKS, E_16_USER, E_32_USER), "W" => array(ADLAN_136, E_16_MAIL, E_32_MAIL), "5" => array(ADLAN_42, E_16_CUST, E_32_CUST), "J" => array(ADLAN_42, E_16_CUST, E_32_CUST), "H" => array(ADLAN_0, E_16_NEWS, E_32_NEWS), "H0" => array(ADLAN_0 . " (" . LAN_CREATE . ")", E_16_NEWS, E_32_NEWS), "H1" => array(ADLAN_0 . " (" . LAN_EDIT . ")", E_16_NEWS, E_32_NEWS), "H2" => array(ADLAN_0 . " (" . LAN_DELETE . ")", E_16_NEWS, E_32_NEWS), "H3" => array(ADLAN_0 . " (" . LAN_CATEGORY . " - " . LAN_CREATE . ")", E_16_NEWS, E_32_NEWS), "H4" => array(ADLAN_0 . " (" . LAN_CATEGORY . " - " . LAN_EDIT . ")", E_16_NEWS, E_32_NEWS), "H5" => array(ADLAN_0 . " (" . LAN_CATEGORY . " - " . LAN_DELETE . ")", E_16_NEWS, E_32_NEWS), "N" => array(ADLAN_0 . " (" . LAN_SUBMITTED . ")", E_16_NEWS, E_32_NEWS), "V" => array(ADLAN_31, E_16_UPLOADS, E_32_UPLOADS), "M" => array(ADLAN_28, E_16_WELCOME, E_32_WELCOME), "Y" => array(ADLAN_147, E_16_INSPECT, E_32_INSPECT), "9" => array(ADLAN_40, E_16_MAINTAIN, E_32_MAINTAIN), "O" => array(ADLAN_149, E_16_NOTIFY, E_32_NOTIFY), "U" => array(ADLAN_157, E_16_CRON, E_32_CRON), "S" => array(ADLAN_155, E_16_ADMINLOG, E_32_ADMINLOG), "B" => array(LAN_COMMENTMAN, E_16_COMMENT, E_32_COMMENT), "6" => array(LAN_MEDIAMANAGER, E_16_FILE, E_32_FILE), "A" => array(LAN_MEDIAMANAGER . " (" . LAN_ALL . ")", E_16_IMAGES, E_32_IMAGES), "A1" => array(LAN_MEDIAMANAGER . " (" . LAN_UPLOAD . "/" . LAN_IMPORT . ")", E_16_IMAGES, E_32_IMAGES), "A2" => array(LAN_MEDIAMANAGER . " (" . LAN_CATEGORIES . ")", E_16_IMAGES, E_32_IMAGES), "2" => array(ADLAN_6, E_16_MENUS, E_32_MENUS));
        $sql = e107::getDb('sql2');
        $tp = e107::getParser();
        $plg = e107::getPlugin();
        $allPlugins = $plg->getall(1);
开发者ID:armpit,项目名称:e107,代码行数:31,代码来源:user_handler.php

示例9: comment

/*
 * e107 website system
 *
 * Copyright (C) 2008-2011 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * User posts page
 *
 * $URL$
 * $Id$
 *
*/
require_once 'class2.php';
e107::coreLan('userposts');
require_once e_HANDLER . 'comment_class.php';
$cobj = new comment();
$e107 = e107::getInstance();
$sql = e107::getDb();
$pref = e107::getPref();
$tp = e107::getParser();
$ns = e107::getRender();
require_once HEADERF;
$action = 'exit';
if (e_QUERY) {
    $tmp = explode('.', e_QUERY);
    $from = intval($tmp[0]);
    // Always defined
    $action = varset($tmp[1], 'exit');
    if (!isset($tmp[2])) {
开发者ID:gitye,项目名称:e107,代码行数:30,代码来源:userposts.php

示例10: header

 * $URL$
 * $Id$
 */
/**
 * @package e107
 * @subpackage	admin
 * @version $Id$
 *
 * Manage site navigation links
 */
require_once "../class2.php";
if (!getperms("I")) {
    header("location:" . e_BASE . "index.php");
    exit;
}
e107::coreLan('links', true);
class links_admin extends e_admin_dispatcher
{
    protected $modes = array('main' => array('controller' => 'links_admin_ui', 'path' => null, 'ui' => 'links_admin_form_ui', 'uipath' => null));
    protected $adminMenu = array('main/list' => array('caption' => LCLAN_62, 'perm' => 'I'), 'main/create' => array('caption' => LCLAN_63, 'perm' => 'I'), 'main/prefs' => array('caption' => LAN_OPTIONS, 'perm' => 'I'), 'main/sublinks' => array('caption' => LINKLAN_4, 'perm' => 'I'));
    protected $adminMenuAliases = array('main/edit' => 'main/list');
    protected $menuTitle = 'links';
}
class links_admin_ui extends e_admin_ui
{
    protected $pluginTitle = "Site links";
    protected $pluginName = 'core';
    protected $table = "links";
    protected $listQry = '';
    protected $pid = "link_id";
    protected $perPage = 0;
开发者ID:notzen,项目名称:e107,代码行数:31,代码来源:links.php

示例11: init

 function init()
 {
     $sql = e107::getDb();
     $tp = e107::getParser();
     if (!empty($_POST['resendToAll'])) {
         $resetPasswords = !empty($_POST['resetPasswords']);
         $age = vartrue($_POST['resendAge'], 24);
         $class = vartrue($_POST['resendClass'], false);
         $this->resend_to_all($resetPasswords, $age, $class);
     }
     if ($this->getAction() == 'edit') {
         $this->fields['user_class']['noedit'] = true;
     }
     // Extended fields - FIXME - better field types
     if ($sql->select('user_extended_struct', '*', "user_extended_struct_type > 0 AND user_extended_struct_text != '_system_' ORDER BY user_extended_struct_parent ASC")) {
         // TODO FIXME use the handler to build fields and field attributes
         // FIXME a way to load 3rd party language files for extended user fields
         e107::coreLan('user_extended');
         while ($row = $sql->fetch()) {
             $field = "user_" . $row['user_extended_struct_name'];
             // $title = ucfirst(str_replace("user_","",$field));
             $label = $tp->toHtml($row['user_extended_struct_text'], false, 'defs');
             $this->fields[$field] = array('title' => $label, 'width' => 'auto', 'type' => 'method', 'method' => 'user_extended', 'data' => false, 'tab' => 1, 'noedit' => false);
             $this->extended[] = $field;
             $this->extendedData[$field] = $row;
         }
     }
     $this->fields['user_signature']['writeParms']['data'] = e107::getUserClass()->uc_required_class_list("classes");
     $this->fields['user_signature'] = array('title' => LAN_USER_09, 'type' => 'textarea', 'data' => 'str', 'width' => 'auto');
     $this->fields['options'] = array('title' => LAN_OPTIONS, 'type' => 'method', 'forced' => TRUE, 'width' => '10%', 'thclass' => 'center last', 'class' => 'left');
     if (!getperms('4|U0')) {
         unset($this->fields['checkboxes']);
         unset($this->fields['options']);
     }
     $this->fields['user_image']['writeParms'] = $this->getAvatarList();
     if (!empty($_GET['readonly'])) {
         foreach ($this->fields as $key => $v) {
             if ($key == 'options' || $key == 'checkboxes') {
                 continue;
             }
             $this->fields[$key]['readonly'] = 2;
         }
     }
     //	print_a($this->fields);
     if (!empty($_GET['iframe'])) {
         define('e_IFRAME', true);
     }
     //FIXME - handle user extended search...
     //$this->_alias_parsed = false;
     //$this->parseAliases();
     // if(isset ($_POST['adduser']))
     // {
     // addUser();
     // }
 }
开发者ID:armpit,项目名称:e107,代码行数:55,代码来源:users.php

示例12: Copyright

|     Copyright (C) 2008-2009 e107 Inc 
|     http://e107.org
|
|
|     Released under the terms and conditions of the
|     GNU General Public License (http://gnu.org).
|
|     $Source: /cvs_backup/e107_0.8/print.php,v $
|     $Revision$
|     $Date$
|     $Author$
+----------------------------------------------------------------------------+
*/
require_once "class2.php";
//include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
e107::coreLan('print');
$qs = explode(".", e_QUERY, 2);
if ($qs[0] == "") {
    header("location:" . e_BASE . "index.php");
    exit;
}
$CSS = <<<CSS

\tbody { background: #fff; color: #000 }

@media print {

\timg {
        display: block;
    }
    img, table, ul, ol, .code-snippet {
开发者ID:OSUser,项目名称:e107,代码行数:31,代码来源:print.php

示例13: preg_replace

 *
 */
if (isset($_GET['configure'])) {
    //Switch to Front-end
    $_GET['configure'] = preg_replace('[^a-z0-9_-]', '', $_GET['configure']);
    define("USER_AREA", true);
    //Switch to desired layout
    define('THEME_LAYOUT', $_GET['configure']);
}
require_once "../class2.php";
if (!getperms("2")) {
    e107::redirect('admin');
    exit;
}
e107::coreLan('menus', true);
e107::coreLan('admin', true);
if (strpos(e_QUERY, 'configure') !== FALSE || vartrue($_GET['enc'])) {
    //e107::js('core', 	'core/jquery.elastic.source.js', 'jquery', 2);
    //e107::js('core', 	'plupload/plupload.full.js', 'jquery', 2);
    //e107::css('core', 	'plupload/jquery.plupload.queue/css/jquery.plupload.queue.css', 'jquery');
    //e107::js('core', 	'plupload/jquery.plupload.queue/jquery.plupload.queue.js', 'jquery', 2);
    //e107::css('core', 	'chosen/chosen.css', 'jquery');
    //e107::js('core', 	'chosen/chosen.jquery.min.js', 'jquery', 2);
    //e107::css('core', 	'password/style.css', 'jquery');
    //e107::js('core', 	'password/jquery.pwdMeter.js', 'jquery', 2);
    //
    //e107::js("core",	"plupload/customUpload.js","jquery",3);
    //e107::js("core",	"core/mediaManager.js","jquery",3);
    // e107::css('core', 	'core/admin.css', 'jquery');
    //	e107::js('core', 	'core/admin.jquery.js', 'jquery', 4);
    e107::js('core', 'bootstrap/js/bootstrap-tooltip.js');
开发者ID:gitter-badger,项目名称:e107,代码行数:31,代码来源:menus.php

示例14: pluginManager

/*
 * e107 website system
 *
 * Copyright (C) 2008-2013 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * Plugin administration area
 *
 */
require_once "../class2.php";
if (!getperms("Z")) {
    e107::redirect('admin');
    exit;
}
e107::coreLan('plugin', true);
$e_sub_cat = 'plug_manage';
define('PLUGIN_SHOW_REFRESH', FALSE);
define('PLUGIN_SCAN_INTERVAL', !empty($_SERVER['E_DEV']) ? 0 : 360);
global $user_pref;
require_once e_HANDLER . 'plugin_class.php';
require_once e_HANDLER . 'file_class.php';
$plugin = new e107plugin();
$pman = new pluginManager();
define("e_PAGETITLE", ADLAN_98 . " - " . $pman->pagetitle);
if (e_AJAX_REQUEST) {
    print_a($_POST);
    print_a($_GET);
    exit;
}
if (e_AJAX_REQUEST && isset($_GET['action'])) {
开发者ID:KonzolozZ,项目名称:e107,代码行数:31,代码来源:plugin.php

示例15: explode

 *
 * User signup
 * 
 */
require_once "class2.php";
if (vartrue($_POST['email2'])) {
    exit;
}
$qs = explode(".", e_QUERY);
if ($qs[0] != 'activate') {
    // multi-language fix.
    e107::coreLan('signup');
    //include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
    //	include_lan(e_LANGUAGEDIR.e_LANGUAGE."/lan_usersettings.php");		Shouldn't need this now
}
e107::coreLan('user');
// Generic user-related language defines
define('SIGNUP_DEBUG', FALSE);
e107::js('core', 'jquery.mailcheck.min.js', 'jquery', 2);
include_once e_HANDLER . 'user_extended_class.php';
$usere = new e107_user_extended();
require_once e_HANDLER . 'validator_class.php';
// require_once(e_HANDLER.'user_handler.php');
$userMethods = e107::getUserSession();
$userMethods->deleteExpired();
// Delete time-expired partial registrations
require_once e107::coreTemplatePath('signup');
//correct way to load a core template.
$signup_shortcodes = e107::getScBatch('signup');
// $facebook_shortcodes = e107::getScBatch('facebook',TRUE);
$signup_imagecode = $pref['signcode'] && extension_loaded('gd');
开发者ID:gitye,项目名称:e107,代码行数:31,代码来源:signup.php


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