code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?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
*/
... | 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 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 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 UserController extends Controller
{
public $User;
public $templateDir;
function __construct ()
{
parent::... | 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
/**
* 前台动态访问首页 - 入口文件
*
* 入口文件须定义以下常量:
*
* 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 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 |
<?php
/**
* 安装程序入口文件
*
* @package 01CMS
* @subpackage install
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
//开发期间去掉以下两行注释
ini_set('display_errors', 'on');
error_reporting(E_ALL);
//设定编码
header('Content-Type: text/html; charset=utf-8');
//... | PHP |
<?php
/**
* 01CMS安装程序
*
* @package 01CMS
* @subpackage install
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
class IndexController extends Controller
{
function __construct ()
{
parent::__construct();
if (fi... | PHP |
<?php
/**
* 全局配置文件
*
* secret:安装时自动生成的加密字符串,请勿修改
* urlSuffix:URL伪后缀,用于URL重写时去掉入口文件名
*/
return array (
'secret' => 'f0767113f405339ff7c22055c7bd000a',
'urlSuffix' => '',
'mysql' =>
array (
'hostname' => 'localhost',
'username' => 'root',
'password' => 'feawadsx',
'database' => '01cms',
... | PHP |
<?php
return array (
'siteName' => '01CMS 网站内容管理系统',
'pageDelimiter' => '<div style="page-break-after: always;"><span style="display: none;">01cms</span></div>',
'pagesContentChannel' => 'article',
'pageSize' => '20',
'htmlSaveDir' => '/html',
'homepageTemplateName' => 'index.tpl',
'homepageFileName' => '... | PHP |
<?php
return array (
'uploadPath' => 'Y/md',
'allowedTypes' => 'jpg|png|gif|rar|zip|doc|txt',
'maxSize' => '2048',
'createThumb' => '1',
'thumbWidth' => '200',
'thumbHeight' => '150',
'thumbPadColor' => '#FFFFFF',
'thumbMarker' => '_thumb',
'width' => '1024',
'height' => '768',
'wmText' => 'www.01... | PHP |
<?php
return array( 'hqx' => 'application/mac-binhex40',
'cpt' => 'application/mac-compactpro',
'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel')... | PHP |
<?php
return array (
1 =>
array (
'name' => '经典童话',
'isHidden' => '0',
'type' => '2',
'alias' => 'jingdiantonghua',
'channelId' => '0',
'pageSize' => '20',
'categoryTemplateName' => 'categoryIndex.tpl',
'archiveTemplateName' => '',
'archiveUrl' => '/html/[alias]/%Y/%m%d/[id].htm... | PHP |
<?php
return array (
1 =>
array (
'name' => '文章',
'tableId' => 'article',
'fieldList' => 'content|文章内容不能为空',
'categoryIds' => '2,3,4,5,6,7',
),
2 =>
array (
'name' => '图集',
'tableId' => 'picture',
'fieldList' => 'content|图片内容不能为空',
'categoryIds' => '8,9,10',
),
3 =>
ar... | PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>01CMS 提示信息</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<style>
body { font-family: Verdana; font-size:13px; }
h1... | PHP |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>01CMS ERROR</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<style>
body { font-family: Verdana; font-size:13px; }
h... | PHP |
<?php
/**
* 系统引导文件
*
* @package 01CMS
* @subpackage system
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
if (! defined('SYS_PATH'))
{
exit('SYS_PATH ERROR');
}
try
{
require (SYS_PATH . '/lib/Load.php');
$Load = new Load(... | PHP |
<?php
/**
* 全局函数和设置
*
* @package 01CMS
* @subpackage system
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
//设定编码
header('Content-Type: text/html; charset=utf-8');
//设置时区
if (function_exists('date_default_timezone_set'))
{
date_default_ti... | PHP |
<?php
/**
* 栏目列表
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_block_category ($params, $content, $smarty, &$repeat)
{
static $category = array();
if (is_null($content))
... | PHP |
<?php
/**
* 列出所有栏目的文档
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_block_block ($params, $content, $smarty, &$repeat)
{
static $category = array();
if (is_null($content))
{
... | PHP |
<?php
/**
* 调用文档
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_block_archive ($params, $content, $smarty, &$repeat)
{
static $data = array();
if (is_null($content))
{
... | PHP |
<?php
/**
* 打印HTML
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_modifier_printHtml ($string)
{
return htmlspecialchars(stripslashes($string));
}
| PHP |
<?php
/**
* 当前位置
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_function_categoryPosition ($params)
{
if (! isset($params['isLink']))
{
$params['isLink'] = 1;
}
... | PHP |
<?php
/**
* 获取缩略图地址
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_modifier_thumb ($url)
{
return getThumb($url);
}
| PHP |
<?php
/**
* 输出应用于title里的HTML
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_modifier_tipHtml ($string)
{
return nl2br(str_replace('"','\'',$string));
} | PHP |
<?php
/**
* 栏目别名
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_modifier_alias ($id)
{
$category = Base::i()->Load->data('category');
return $category[$id]['alias'];
}
| PHP |
<?php
/**
* 转换ID
*
* @package 01CMS
* @subpackage plugin
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
function smarty_modifier_translateId ($id,$var)
{
if (isset(Base::i()->{$var}[$id]))
{
return Base::i()->{$var}[$id];
}
... | PHP |
<?php
/**
* 加载数据类
*
* @package 01CMS
* @subpackage system
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
class Load
{
public $config = array();
public $var = array();
private $object = array();
private $conf = array();
... | PHP |
<?php
/**
* 静态分页类
*
* @package 01CMS
* @subpackage system
* @author rolong at vip.qq.com
* @version 1.0.0
* @link http://www.01cms.com
*/
class StaticPages
{
public $baseUrl = '';
public $firstFileName = '';
public $fileId = '';
public $fileExt = '.html';
... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.