code
stringlengths
1
2.01M
language
stringclasses
1 value
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Get path to file from include_path * * @param string $file_path * @param string $new_file_path * @return boolean * @staticvar array|null */ // $file_path, &$new_file_path function smarty_core_get_include_path(&$params, &$smarty) {...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Replace nocache-tags by results of the corresponding non-cacheable * functions and return it * * @param string $compiled_tpl * @param string $cached_source * @return string */ function smarty_core_process_compiled_include($params, &...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Get seconds and microseconds * @return double */ function smarty_core_get_microtime($params, &$smarty) { $mtime = microtime(); $mtime = explode(" ", $mtime); $mtime = (double)($mtime[1]) + (double)($mtime[0]); return ($mt...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty assign_smarty_interface core plugin * * Type: core<br> * Name: assign_smarty_interface<br> * Purpose: assign the $smarty interface variable * @param array Format: null * @param Smarty */ function smarty_core_assign_s...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Prepend the cache information to the cache file * and write it * * @param string $tpl_file * @param string $cache_id * @param string $compile_id * @param string $results * @return true|null */ // $tpl_file, $cache_id, $compile_id...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Load requested plugins * * @param array $plugins */ // $plugins function smarty_core_load_plugins($params, &$smarty) { foreach ($params['plugins'] as $_plugin_info) { list($_type, $_name, $_tpl_file, $_tpl_line, $_delayed...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * read a cache file, determine if it needs to be * regenerated or not * * @param string $tpl_file * @param string $cache_id * @param string $compile_id * @param string $results * @return boolean */ // $tpl_file, $cache_id, $compile...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * determines if a resource is secure or not. * * @param string $resource_type * @param string $resource_name * @return boolean */ // $resource_type, $resource_name function smarty_core_is_secure($params, &$smarty) { if (!$smarty-...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Handle insert tags * * @param array $args * @return string */ function smarty_core_run_insert_handler($params, &$smarty) { require_once(SMARTY_CORE_DIR . 'core.get_microtime.php'); if ($smarty->debugging) { $_params = ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * write the compiled resource * * @param string $compile_path * @param string $compiled_content * @return true */ function smarty_core_write_compiled_resource($params, &$smarty) { if(!@is_writable($smarty->compile_dir)) { //...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {config_load} function plugin * * Type: function<br> * Name: config_load<br> * Purpose: load config file vars * @link http://smarty.php.net/manual/en/language.function.config.load.php {config_load} * (Smarty onl...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_table} function plugin * * Type: function<br> * Name: html_table<br> * Date: Feb 17, 2003<br> * Purpose: make an html table from an array of data<br> * Input:<br> * - loop = array t...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {assign} compiler function plugin * * Type: compiler function<br> * Name: assign<br> * Purpose: assign a value to a template variable * @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCT...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty count_words modifier plugin * * Type: modifier<br> * Name: count_words<br> * Purpose: count the number of words in a text * @link http://smarty.php.net/manual/en/language.modifier.count.words.php * count_wor...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty count_sentences modifier plugin * * Type: modifier<br> * Name: count_sentences * Purpose: count the number of sentences in a text * @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php * ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_checkboxes} function plugin * * File: function.html_checkboxes.php<br> * Type: function<br> * Name: html_checkboxes<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of checkbox input t...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty wordwrap modifier plugin * * Type: modifier<br> * Name: wordwrap<br> * Purpose: wrap a string of text at a given length * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php * wordwrap (Smar...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {cycle} function plugin * * Type: function<br> * Name: cycle<br> * Date: May 3, 2002<br> * Purpose: cycle through given values<br> * Input: * - name = name of cycle (optional) * - values = comma ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty strip_tags modifier plugin * * Type: modifier<br> * Name: strip_tags<br> * Purpose: strip html tags from text * @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php * strip_tags (Smarty onl...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {debug} function plugin * * Type: function<br> * Name: debug<br> * Date: July 1, 2002<br> * Purpose: popup debug window * @link http://smarty.php.net/manual/en/language.function.debug.php {debug} * (Smarty...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty default modifier plugin * * Type: modifier<br> * Name: default<br> * Purpose: designate default value for empty variables * @link http://smarty.php.net/manual/en/language.modifier.default.php * default (Smar...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty spacify modifier plugin * * Type: modifier<br> * Name: spacify<br> * Purpose: add spaces between characters in a string * @link http://smarty.php.net/manual/en/language.modifier.spacify.php * spacify (Smarty...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_radios} function plugin * * File: function.html_radios.php<br> * Type: function<br> * Name: html_radios<br> * Date: 24.Feb.2003<br> * Purpose: Prints out a list of radio input types<br> * Inp...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {textformat}{/textformat} block plugin * * Type: block function<br> * Name: textformat<br> * Purpose: format text a certain way with preset styles * or custom wrap/indent settings<br> * @link http://smarty.p...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty capitalize modifier plugin * * Type: modifier<br> * Name: capitalize<br> * Purpose: capitalize words in the string * @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE * ca...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty debug_print_var modifier plugin * * Type: modifier<br> * Name: debug_print_var<br> * Purpose: formats variable contents for display in the console * @link http://smarty.php.net/manual/en/language.modifier.debug.print....
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty indent modifier plugin * * Type: modifier<br> * Name: indent<br> * Purpose: indent lines of text * @link http://smarty.php.net/manual/en/language.modifier.indent.php * indent (Smarty online manual) * @autho...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {eval} function plugin * * Type: function<br> * Name: eval<br> * Purpose: evaluate a template variable as a template<br> * @link http://smarty.php.net/manual/en/language.function.eval.php {eval} * (Smarty onlin...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty strip modifier plugin * * Type: modifier<br> * Name: strip<br> * Purpose: Replace all repeated spaces, newlines, tabs * with a single space or supplied replacement string.<br> * Example: {$var|strip} {$var...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {fetch} plugin * * Type: function<br> * Name: fetch<br> * Purpose: fetch file, web or ftp data and display results * @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch} * (S...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty plugin * * Type: modifier<br> * Name: nl2br<br> * Date: Feb 26, 2003 * Purpose: convert \r\n, \r or \n to <<br>> * Input:<br> * - contents = contents to replace * - preceed_test = if true, inclu...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty count_paragraphs modifier plugin * * Type: modifier<br> * Name: count_paragraphs<br> * Purpose: count the number of paragraphs in a text * @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php ...
PHP
<?php /** * Smarty shared plugin * @package Smarty * @subpackage plugins */ /** * Function: smarty_make_timestamp<br> * Purpose: used by other smarty functions to make a timestamp * from a string. * @author Monte Ohrt <monte at ohrt dot com> * @param string * @return string */ function smarty_...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_select_date} plugin * * Type: function<br> * Name: html_select_date<br> * Purpose: Prints the dropdowns for date selection. * * ChangeLog:<br> * - 1.0 initial release * - 1.1 added support ...
PHP
<?php /** * Smarty shared plugin * @package Smarty * @subpackage plugins */ /** * escape_special_chars common function * * Function: smarty_function_escape_special_chars<br> * Purpose: used by other smarty functions to escape * special chars except for already escaped ones * @author Monte Ohrt ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {popup} function plugin * * Type: function<br> * Name: popup<br> * Purpose: make text pop up in windows via overlib * @link http://smarty.php.net/manual/en/language.function.popup.php {popup} * (Smarty onlin...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_options} function plugin * * Type: function<br> * Name: html_options<br> * Input:<br> * - name (optional) - string default "select" * - values (required if no options supplied) - ar...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {popup_init} function plugin * * Type: function<br> * Name: popup_init<br> * Purpose: initialize overlib * @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init} * (Smarty online...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty upper modifier plugin * * Type: modifier<br> * Name: upper<br> * Purpose: convert string to uppercase * @link http://smarty.php.net/manual/en/language.modifier.upper.php * upper (Smarty online manual) * @au...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_image} function plugin * * Type: function<br> * Name: html_image<br> * Date: Feb 24, 2003<br> * Purpose: format HTML tags for the image<br> * Input:<br> * - file = file (and path) of image (require...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {counter} function plugin * * Type: function<br> * Name: counter<br> * Purpose: print out a counter value * @author Monte Ohrt <monte at ohrt dot com> * @link http://smarty.php.net/manual/en/language.function.counter...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty count_characters modifier plugin * * Type: modifier<br> * Name: count_characteres<br> * Purpose: count the number of characters in a text * @link http://smarty.php.net/manual/en/language.modifier.count.characters.php ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Include the {@link shared.make_timestamp.php} plugin */ require_once $smarty->_get_plugin_filepath('shared', 'make_timestamp'); /** * Smarty date_format modifier plugin * * Type: modifier<br> * Name: date_format...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty replace modifier plugin * * Type: modifier<br> * Name: replace<br> * Purpose: simple search/replace * @link http://smarty.php.net/manual/en/language.modifier.replace.php * replace (Smarty online manual) * @...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty string_format modifier plugin * * Type: modifier<br> * Name: string_format<br> * Purpose: format strings via sprintf * @link http://smarty.php.net/manual/en/language.modifier.string.format.php * string_forma...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty cat modifier plugin * * Type: modifier<br> * Name: cat<br> * Date: Feb 24, 2003 * Purpose: catenate a value to a variable * Input: string to catenate * Example: {$var|cat:"foo"} * @link http://smarty.php.ne...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty truncate modifier plugin * * Type: modifier<br> * Name: truncate<br> * Purpose: Truncate a string to a certain length if necessary, * optionally splitting in the middle of a word, and * appending ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {assign_debug_info} function plugin * * Type: function<br> * Name: assign_debug_info<br> * Purpose: assign debug info to the template<br> * @author Monte Ohrt <monte at ohrt dot com> * @param array unused in this plug...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty escape modifier plugin * * Type: modifier<br> * Name: escape<br> * Purpose: Escape the string according to escapement type * @link http://smarty.php.net/manual/en/language.modifier.escape.php * escape (Smart...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {math} function plugin * * Type: function<br> * Name: math<br> * Purpose: handle math computations in template<br> * @link http://smarty.php.net/manual/en/language.function.math.php {math} * (Smarty online m...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty regex_replace modifier plugin * * Type: modifier<br> * Name: regex_replace<br> * Purpose: regular expression search/replace * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php * regex...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty trimwhitespace outputfilter plugin * * File: outputfilter.trimwhitespace.php<br> * Type: outputfilter<br> * Name: trimwhitespace<br> * Date: Jan 25, 2003<br> * Purpose: trim leading white space a...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty lower modifier plugin * * Type: modifier<br> * Name: lower<br> * Purpose: convert string to lowercase * @link http://smarty.php.net/manual/en/language.modifier.lower.php * lower (Smarty online manual) * @au...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {html_select_time} function plugin * * Type: function<br> * Name: html_select_time<br> * Purpose: Prints the dropdowns for time selection * @link http://smarty.php.net/manual/en/language.function.html.select.time.php ...
PHP
<?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Smarty {mailto} function plugin * * Type: function<br> * Name: mailto<br> * Date: May 21, 2002 * Purpose: automate mailto address link creation, and optionally * encode them.<br> * Input:<br> ...
PHP
<?php /** * Project: Smarty: the PHP compiling template engine * File: Smarty_Compiler.class.php * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * ver...
PHP
<?php /** * Config_File class. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This li...
PHP
<?php /** * 基类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Base { private static $instance; protected function __construct () { self::$instance = & $this; } publ...
PHP
<?php /** * 文件上传类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Upload { public $maxSize = 0; public $maxWidth = 0; public $maxHeight = 0; public $allowedTypes = ""; pub...
PHP
<?php /** * 验证 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Filter { /** * 检查Email地址 * * @param string $value * @return bool */ public static function isEma...
PHP
<?php /** * 动态分页类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Pagination { public $baseUrl = ''; public $totalRows = ''; public $pageSize = 20; public $numLinks = 5; public ...
PHP
<?php /** * 数据库常规动作类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Action { public $goUrl; private $data; private $id; private $Base; private $stayTime; private $te...
PHP
<?php /** * 程序测试类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Test { public $startTime = 0; public $stopTime = 0; public $spentTime = 0; /** * 初始化 * * @return void * @access ...
PHP
<?php /** * 控制器基类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Controller extends Base { function __construct () { parent::__construct(); $this->Load = & $GLOBALS['Load']; $this->U...
PHP
<?php /** * URI分析类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Uri { private $className; private $methodName; private $param; private $pathInfo = ''; function __construct ...
PHP
<?php /** * 文档模型 - 模型类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class ChannelModel { public $id; public $data; /** * 调用getAddData()方法后,文档分页内容的总页数会缓存到这个属性 * * @var ...
PHP
<?php /** * 系统设置模型类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class HtmlModel { private $Db; function __construct () { $this->Db = model('Db'); } /** * 获取HTML ...
PHP
<?php /** * 用户抽像模型 - 模型类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ abstract class UserAbstractModel { private $error; protected $prefix; protected $Db; public $fields; ...
PHP
<?php /** * 文档 - 数据模型 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class ArchiveModel { public $id; public $data; private $Db; function __construct ($id = 0) { $thi...
PHP
<?php /** * 文档栏目 - 数据模型 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class CategoryModel { public $id; public $data; /** * 栏目递归获取父类目时,栏目数据累加到这个属性 * * @var int */...
PHP
<?php /** * 单页文档 - 数据模型 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class SingleModel { public $id; public $data; private $Db; function __construct ($id = 0) { $th...
PHP
<?php /** * 数据库 - 模型类 * * @package 01CMS * @subpackage system * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class DbModel extends Base { public $debug = FALSE; public $prefix; public $insertId = 0; public $table; public $...
PHP
<?php /** * 通用控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class CommonController extends Controller { function __construct () { parent::__construct(); } /** * 验证...
PHP
<?php /** * 前台访问控制器类 * * @package 01CMS * @subpackage www * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class DataController extends Controller { public $keyWord; public $templateDir; function __construct() { pa...
PHP
<?php /** * 前台访问控制器类 * * @package 01CMS * @subpackage www * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class MemberController extends Controller { public $Member; public $templateDir; function __construct () { pare...
PHP
<?php /** * 后台用户模型 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class MemberModel extends UserAbstractModel { /** * 设置用户类型前缀 * * @return void */ protected function setUs...
PHP
<?php /** * 前台动态访问首页 - 入口文件 * * 入口文件须定义以下常量: * * ROOT_PATH 服务器上的安装路径 * ROOT_DIR 用于访问的安装目录 * BOOT_DIR 用于访问的入口目录 * BOOT_URL 用于访问的入口地址 * PUBLIC_PATH 服务器上的站点公共静态资源路径 * PUBLIC_DIR 用于访问的站点公共静态资源目录 * APP_PATH 定义APP路径 * SYS_PATH 定义01MVC框架路径 * * @package 01CMS * @s...
PHP
<?php /** * 前台动态访问首页 - 入口文件 * * 入口文件须定义以下常量: * * ROOT_PATH 服务器上的安装路径 * ROOT_DIR 用于访问的安装目录 * BOOT_DIR 用于访问的入口目录 * BOOT_URL 用于访问的入口地址 * PUBLIC_PATH 服务器上的站点公共静态资源路径 * PUBLIC_DIR 用于访问的站点公共静态资源目录 * APP_PATH 定义APP路径 * SYS_PATH 定义01MVC框架路径 * * @package 01CMS * @s...
PHP
<?php /** * 后台 - 入口文件 * * 入口文件须定义以下常量: * * ROOT_PATH 服务器上的安装路径 * ROOT_DIR 用于访问的安装目录 * BOOT_DIR 用于访问的入口目录 * BOOT_URL 用于访问的入口地址 * PUBLIC_PATH 服务器上的站点公共静态资源路径 * PUBLIC_DIR 用于访问的站点公共静态资源目录 * APP_PATH 定义APP路径 * SYS_PATH 定义01MVC框架路径 * * @package 01CMS * @subpack...
PHP
<?php /** * HTML生成控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class HtmlController extends Controller { public $title = '更新内容'; public $Db; public $Model; public $all = FALSE; ...
PHP
<?php /** * 通用控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class CommonController extends Controller { function __construct () { parent::__construct(); } /** * 验证...
PHP
<?php /** * 默认控制器 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class IndexController extends Controller { function index () { redirect('admin'); } } //END
PHP
<?php /** * 后台系统管理 - 控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class AdminController extends Controller { public $title = '后台系统管理'; public $User; function __construct () { ...
PHP
<?php /** * 文件上传控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class FileController extends Controller { public $title = '文件管理'; function __construct () { parent::__construct();...
PHP
<?php /** * 文档系统 - 控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class ArchiveController extends Controller { public $title = '文档系统'; public $Db; function __construct () { ...
PHP
<?php /** * 系统设置控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class SettingController extends Controller { public $title = '全局设置'; function __construct () { parent::__construct...
PHP
<?php /** * 数据库管理控制器类 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class DatabaseController extends Controller { public $title = '数据库管理'; private $outputNum = 0; function __construct () ...
PHP
<?php /** * 列出模型自定义字段 * * @package 01CMS * @subpackage plugin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ function smarty_block_field ($params, $content, $smarty, &$repeat) { static $fields; if (is_null($content)) { ...
PHP
<?php /** * FCKeditor * * @package 01CMS * @subpackage admin * @return bool */ function FCKeditor_IsCompatibleBrowser () { if (isset($_SERVER)) { $sAgent = $_SERVER['HTTP_USER_AGENT']; } else { global $HTTP_SERVER_VARS; if (isset($HTTP_SERVE...
PHP
<?php /** * 文档 - 函数 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class Archive { public static function check($status) { } }
PHP
<?php /** * 后台用户模型 * * @package 01CMS * @subpackage admin * @author rolong at vip.qq.com * @version 1.0.0 * @link http://www.01cms.com */ class UserModel extends UserAbstractModel { /** * 设置用户类型前缀 * * @return void */ protected function setUser...
PHP
<?php header('Content-type: text/html; charset=utf-8'); // The following variables values must reflect your installation needs. $aspell_prog = '"C:\Program Files\Aspell\bin\aspell.exe"'; // by FredCK (for Windows) //$aspell_prog = 'aspell'; // by FredCK (for Linux) $lang = 'en_US'; $aspell_opts =...
PHP
<?php if ( !isset( $_SERVER ) ) { $_SERVER = $HTTP_SERVER_VARS ; } if ( !isset( $_GET ) ) { $_GET = $HTTP_GET_VARS ; } if ( !isset( $_FILES ) ) { $_FILES = $HTTP_POST_FILES ; } if ( !defined( 'DIRECTORY_SEPARATOR' ) ) { define( 'DIRECTORY_SEPARATOR', strtoupper(substr(PHP_OS, 0, ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP
<?php /* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") ...
PHP