code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
class format {
/**
* 日期格式化
*
* @param $timestamp
* @param $showtime
*/
public static function date($timestamp, $showtime = 0) {
if (empty($timestamp)) return false;
$times = intval($timestamp);
if(!$times) return true;
$lang = pc_base::load_config('system','lang');
if($lang == ... | PHP |
<?php
/**
* session mysql 数据库存储类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-8
*/
class session_mysql {
var $lifetime = 1800;
var $db;
var $table;
/**
* 构造函数
*
*/
public function __construct() {
$this->db = pc_base::load_m... | PHP |
<?php
class http {
var $method;
var $cookie;
var $post;
var $header;
var $ContentType;
var $errno;
var $errstr;
function __construct() {
$this->method = 'GET';
$this->cookie = '';
$this->post = '';
$this->header = '';
$this->errno = 0;
$this->errstr = '';
}
function pos... | PHP |
<?php
/**
* model.class.php 数据模型基类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-7
*/
pc_base::load_sys_class('db_factory', '', 0);
class model {
//数据库配置
protected $db_config = '';
//数据库连接
protected $db = '';
//调用数据库的配置项
protec... | PHP |
<?php
/**
* @author wangtiecheng(jim_@live.cn)
* @link http://www.phpcms.cn http://www.ku6.cn
* @copyright 2005-2009 PHPCMS/KU6 Software LLCS
* @license http://www.phpcms.cn/license/
* @datetime Wed Aug 05 18:37:10 CST 2009
* @lastmodify Wed Aug 05 18:37:10 CST 2009
* ---------------------... | PHP |
<?php
/**
* 生成验证码
* @author chenzhouyu
* 类用法
* $checkcode = new checkcode();
* $checkcode->doimage();
* //取得验证
* $_SESSION['code']=$checkcode->get_code();
*/
class checkcode {
//验证码的宽度
public $width=130;
//验证码的高
public $height=50;
//设置字体的地址
public $font;
//设置字体色
public $font_c... | PHP |
<?php
define('CODETABLEDIR', dirname(__FILE__).DIRECTORY_SEPARATOR.'encoding'.DIRECTORY_SEPARATOR);
function utf8_to_gbk($utfstr)
{
global $UC2GBTABLE;
$okstr = '';
if(empty($UC2GBTABLE))
{
$filename = CODETABLEDIR.'gb-unicode.table';
$fp = fopen($filename, 'rb');
while($l = fgets($fp,15))
{ ... | PHP |
<?php
/**
* global.func.php 公共函数库
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
/**
* 返回经addslashes处理过的字符串或数组
* @param $string 需要处理的字符串或数组
* @return mixed
*/
function new_addslashes($string) {
if(!is_array($string)) return addsl... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class messagequeue_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'messagequeue';
paren... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class credit_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'members';
parent::__const... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class admin_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'admin';
parent::__construct... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class session_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'session';
parent::__const... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class uc_model extends model {
public function __construct($db_config) {
$this->db_config = array('ucenter'=>$db_config);
$this->db_setting = 'ucenter';
$this->table_name = 'members';
parent::__cons... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class member_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'members';
parent::__constr... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class member_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'members';
parent::__constr... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class settings_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'settings';
parent::__con... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class applications_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'applications';
paren... | PHP |
<?php
?> | PHP |
<?php
$LANG['nameerror'] = '用户名不能为空。';
$LANG['checkcode'] = '验证码';
$LANG['click_change_validate'] = '单击更换验证码';
$LANG['code_error'] = '验证码错误';
$LANG['input_code'] = '请输入验证码';
$LANG['jump_message'] = '如果您的浏览器没有自动跳转,请点击这里';
$LANG['alert_message'] = '提示信息';
$LANG['go_history'] = '[点这里返回上一页]';
$LANG['register_set... | PHP |
<?php
$LANG['illegal_operation'] = '非法操作!';
$LANG['illegal_action'] = '非法动作参数!请返回';
$LANG['illegal_parameters'] = '非法参数!';
$LANG['operation_success'] = '操作成功!';
$LANG['operation_failure'] = '操作失败!';
$LANG['total'] = '总数:';
$LANG['first'] = '首页';
$LANG['success'] = '成功';
$LANG['previous'] = '上一页';
$LANG['next'... | PHP |
<?php
param::set_cookie('username', '');
param::set_cookie('userid', ''); | PHP |
<?php
$username = isset($_GET['username']) && trim($_GET['username']) ? trim($_GET['username']) : exit('-1');
$password = isset($_GET['password']) && trim($_GET['password']) ? trim($_GET['password']) : exit('-1');
$url = isset($_GET['url']) && trim($_GET['url']) ? trim(urldecode($_GET['url'])) : exit('-1');
$name... | PHP |
<?php
error_reporting(0);
define('PHPCMS_PATH', dirname(__FILE__).'/../');
include PHPCMS_PATH.'/phpcms/base.php';
define('UC_KEY', pc_base::load_config('system', 'uc_key'));
define('API_RETURN_SUCCEED', '1');
define('API_RETURN_FAILED', '-1');
define('API_RETURN_FORBIDDEN', '-2');
$get = $post = array();... | PHP |
<?php
$session_storage = 'session_'.pc_base::load_config('system','session_storage');
pc_base::load_sys_class($session_storage);
session_start();
$checkcode = pc_base::load_sys_class('checkcode');
if (isset($_GET['code_len']) && intval($_GET['code_len'])) $checkcode->code_len = intval($_GET['code_len']);
if (isse... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: mail.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class mailcontrol extends base {
function __construct() {
$this->mailcontrol();
}
function... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: pm.php 836 2008-12-05 02:25:48Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
define('PMLIMIT1DAY_ERROR', -1);
define('PMFLOODCTRL_ERROR', -2);
define('PMMSGTONOTFRIEND', -3);
define(... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: domain.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class domaincontrol extends base {
function __construct() {
$this->domaincontrol();
}
fu... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: user.php 968 2009-10-29 02:06:45Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_USER_CHECK_USERNAME_FAILED', -1);
define('UC_USER_USERNAME_BADWORD', -2);
define('UC_US... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: friend.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class friendcontrol extends base {
function __construct() {
$this->friendcontrol();
}
fu... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: app.php 884 2008-12-16 01:13:31Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class appcontrol extends base {
function __construct() {
$this->appcontrol();
}
function appco... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: feed.php 883 2008-12-16 00:51:21Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class feedcontrol extends base {
function __construct() {
$this->feedcontrol();
}
funct... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: tag.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class tagcontrol extends base {
function __construct() {
$this->tagcontrol();
}
function ta... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: cache.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class cachecontrol extends base {
function __construct() {
$this->cachecontrol();
}
funct... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: client.php 963 2009-09-21 02:40:04Z zhaoxiongfei $
*/
if(!defined('UC_API')) {
exit('Access denied');
}
error_reporting(0);
define('IN_UC', TRUE);
define('UC_CLIENT_VERSION', '1.5.1');
def... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: uccode.class.php 753 2008-11-14 06:48:25Z cnteacher $
*/
class uccode {
var $uccodes;
function uccode() {
$this->uccode = array(
'pcodecount' => -1,
'codecount' => 0,
'codehtml' ... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: db.class.php 922 2009-02-19 01:30:22Z zhaoxiongfei $
*/
class ucclient_db {
var $querynum = 0;
var $link;
var $histories;
var $dbhost;
var $dbuser;
var $dbpw;
var $dbcharset;
var ... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: sendmail.inc.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
if($mail_setting['mailsilent']) {
error_reporting(0);
}
$maildelimiter = $mail_setting['m... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: xml.class.php 972 2009-11-16 02:20:39Z zhaoxiongfei $
*/
function xml_unserialize(&$xml, $isnormal = FALSE) {
$xml_parser = new XML($isnormal);
$data = $xml_parser->parse($xml);
$xml_parser->de... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: mail.php 848 2008-12-08 05:43:39Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_MAIL_REPEAT', 5);
class mailmodel {
var $db;
var $base;
var $apps;
functio... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: base.php 837 2008-12-05 03:14:47Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
if(!function_exists('getgpc')) {
function getgpc($k, $var='G') {
switch($var) {
case 'G': $... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: pm.php 908 2008-12-26 07:27:51Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class pmmodel {
var $db;
var $base;
function __construct(&$base) {
$this->pmmodel($base);
}
... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: domain.php 848 2008-12-08 05:43:39Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class domainmodel {
var $db;
var $base;
function __construct(&$base) {
$this->domainm... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: note.php 916 2009-01-19 05:56:07Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_NOTE_REPEAT', 5);
define('UC_NOTE_TIMEOUT', 15);
define('UC_NOTE_GC', 10000);
define('API_... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: user.php 968 2009-10-29 02:06:45Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class usermodel {
var $db;
var $base;
function __construct(&$base) {
$this->usermodel($... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: friend.php 773 2008-11-26 08:45:08Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class friendmodel {
var $db;
var $base;
function __construct(&$base) {
$this->friendm... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: app.php 846 2008-12-08 05:37:05Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class appmodel {
var $db;
var $base;
function __construct(&$base) {
$this->appmodel($bas... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: misc.php 846 2008-12-08 05:37:05Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_ARRAY_SEP_1', 'UC_ARRAY_SEP_1');
define('UC_ARRAY_SEP_2', 'UC_ARRAY_SEP_2');
class mi... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: tag.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class tagmodel {
var $db;
var $base;
function __construct(&$base) {
$this->tagmodel($base);... | PHP |
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: cache.php 846 2008-12-08 05:37:05Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
if(!function_exists('file_put_contents')) {
function file_put_contents($filename, $s) {
$fp = ... | PHP |
<?php
return array (
'default' => array (
'hostname' => 'localhost',
'database' => '108wo_new',
'username' => 'root',
'password' => '123',
'tablepre' => '108wo_sso_',
'charset' => 'utf8',
'type' => 'mysql',
'debug' => true,
'pconnect' => 0,
'autoconnect' => 0
)
);
?> | PHP |
<?php
/**
* 路由配置文件
* 默认配置为default如下:
* 'default'=>array(
* 'm'=>'phpcms',
* 'c'=>'index',
* 'a'=>'init',
* 'data'=>array(
* 'POST'=>array(
* 'catid'=>1
* ),
* 'GET'=>array(
* 'contentid'=>1
* )
* )
* )
* 基中“m”为模型,“c”为控制器,“a”为事件,“data”为其他附加参数。
* data为一个二维数组,可设置POS... | PHP |
<?php
define('UC_CONNECT', 'mysql');
define('UC_API', 'http://localhost/comsenz/uc');
define('UC_IP', '');
define('UC_DBHOST', 'localhost');
define('UC_DBUSER', 'root');
define('UC_DBPW', 'root');
define('UC_DBNAME', 'ucenter');
define('UC_DBTABLEPRE', 'uc_');
define('UC_DBCHARSET', 'gbk');
define('UC_APPID', '8');
de... | PHP |
<?php
return array(
//网站路径
'web_path' => '/108wo/phpsso_server/',
//Session配置
'session_storage' => 'mysql',
'session_ttl' => 1800,
'session_savepath' => CACHE_PATH.'sessions/',
'session_n' => 0,
//Cookie配置
'cookie_domain' => '', //Cookie 作用域
'cookie_path' => '/', //Cookie 作用路径
'cookie_pre' => 'vAyKg_', //... | PHP |
<?php
return array (
'file1' => array (
'type' => 'file',
'debug' => true,
'pconnect' => 0,
'autoconnect' => 0
),
'template' => array (
'hostname' => '210.78.140.2',
'port' => 11211,
'timeout' => 0,
'type' => 'memcache',
'debug' => true,
'pconnect' => 0,
'autoconnect' => 0
)... | PHP |
<?php
return array (
1 =>
array (
'appid' => '1',
'type' => 'phpcms_v9',
'name' => 'phpcms v9',
'url' => 'http://localhost/108wo_new/',
'authkey' => 'qZdQRVXybU0wdhOnvbUq90PXZt0eF1gg',
'ip' => '',
'apifilename' => 'api.php?op=phpsso',
'charset' => 'utf-8',
'synlogin' => '1',
)... | PHP |
<?php
/**
* index.php API 入口
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-7-26
*/
define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include './phpcms/base.php';
$param = pc_base::load_sys_class('param');
$op = isset($_GET['op']) ... | PHP |
<?php
/**
* index.php PHPCMS 入口
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
//PHPCMS根目录
define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include PHPCMS_PATH.'/phpcms/base.php';
pc_base::creat_app();
?> | PHP |
<?php
header('location:index.php?m=admin');
?> | PHP |
<?php
$filetype['dir'] = "文件夹";
$filetype['gif'] = "GIF 图像";
$filetype['htm'] = "HTML Document";
$filetype['html'] = "HTML Document";
$filetype['shtml'] = "shtmlfile";
$filetype['php'] = "php 脚本";
$filetype['asp'] = "Active Server Page";
$filetype['do'] = "DO 文件";
$filetype['swf'] = "Shockwave Flash Object";
... | PHP |
<?php
/**
* base.php PHPCMS框架入口文件
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-7
*/
define('IN_PHPCMS', true);
//PHPCMS框架路径
define('PC_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
if(!defined('PHPCMS_PATH')) define('PHPCMS_PATH', PC_PAT... | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
return array('tags', 'tags_content');
?> | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
?> | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
$models = getcache('model', 'commons');
$sitelist = getcache('sitelist', 'commons');
$i=0;
foreach($models as $model_v){
$model_arr .= 'model_arr['.$i++.'] = new Array("'.$model_v['modelid'].'","'.$model_v... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<div class="pad-lr-10">
<form action="?m=tags&c=tags&a=edit&tagid=<?php echo $_GET['tagid']?>" method="post" id="myform">
<table width="100%" class="table_form">
<tr>
<th width="120">关键字:</th>
... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header', 'admin');
?>
<div class="pad_10">
<div class="table-list">
<form action="" method="get">
<input type="hidden" name="m" value="tags" />
<input type="hidden" name="c" value="tags" />
<input type="hidden" name="a" id... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class index {
public function __construct(){
$this->db = pc_base::load_model('tags_model');
$this->db_content = pc_base::load_model('tags_content_model');
}
public function init(){
$tag = $_GET['tag'];
$models = getcache('model', 'commo... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class tags extends admin {
private $db;
public function __construct() {
$this->db = pc_base::load_model('tags_model');
parent::__construct();
}
public function init() {
$page = isset($_GET... | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
return array('tags', 'tags_content');
?> | PHP |
<?php
error_reporting(E_ALL);
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$parentid = $menu_db->insert(array('name'=>'tags', 'parentid'=>29, 'm'=>'tags', 'c'=>'tags', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true);
$menu_db->insert(array('name'=>'t... | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$module = 'tags';
$modulename = 'tags 标签';
$introduce = 'tags 标签模块';
$author = '世界首富';
$authorsite = 'http://www.phpcms.cn';
$authoremail = '754157556@qq.com';
?> | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
return '';
?> | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('UNINSTALL') or exit('Access Denied');
$type_db = pc_base::load_model('type_model');
$typeid = $type_db->delete(array('module'=>'upgrade'));
if(!$typeid) return FALSE;
?> | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-lr-10">
<div class="table-list">
<div class="explain-col">
<?php echo L('upgrade_notice');?>
</div>
<div class="bk15"></div>
<form name="myform" action="" method="get" id="my... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-lr-10">
<div class="table-list">
<div class="explain-col">
<?php echo L('check_file_notice');?>
</div>
<div class="bk15"></div>
<table width="100%" cellspacing="0">
<thead>... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_app_class('admin', 'admin', 0);
class index extends admin {
private $_filearr = array('api', 'phpcms', 'statics', '');
//md5验证地址
private $_upgrademd5 = 'http://www.phpcms.cn/upgrademd5/';
//补丁地址
private $_patchurl = 'http://downl... | PHP |
<?php
// --------------------------------------------------------------------------------
// PhpConcept Library - Zip Module 2.8.2
// --------------------------------------------------------------------------------
// License GNU/LGPL - Vincent Blavet - August 2009
// http://www.phpconcept.net
// ----------------... | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
return '';
?> | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$parentid = $menu_db->insert(array('name'=>'upgrade', 'parentid'=>977, 'm'=>'upgrade', 'c'=>'index', 'a'=>'init', 'data'=>'', 'listorder'=>0, 'display'=>'1'), true);
$menu_db->insert(array('name'=>'checkfile', 'parenti... | PHP |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
defined('INSTALL') or exit('Access Denied');
$module = 'upgrade';
$modulename = '在线升级';
$introduce = '在线升级';
$author = 'phpcms Team';
$authorsite = 'http://www.phpcms.cn';
$authoremail = 'admin@phpcms.cn';
?> | PHP |
<?php
$LANG['operation'] = '操作';
$LANG['view'] = '查看';
$LANG['access'] = '访问';
$LANG['upgrade'] = '在线升级';
$LANG['checkfile'] = '文件校验';
$LANG['updatetime'] = '更新日期';
$LANG['updatelist'] = '可升级版本列表';
$LANG['currentversion'] = '当前版本';
$LANG['lastversion'] = '为最新版';
$LANG['covertemplate'] = '覆盖模版?';
$LANG['v... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
//模型缓存路径
define('CACHE_MODEL_PATH',PHPCMS_PATH.'caches'.DIRECTORY_SEPARATOR.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);
pc_base::load_app_class('admin', 'admin', 0);
pc_base::load_sys_class('form', '', 0);
class node ex... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li class="on" id="tab_1"><?php echo L('url_list')?></li>
</ul>
<div class="content pad-10" id="show_div_1" style="height:auto... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-lr-10">
<form name="myform" action="?m=collection&c=node&a=del" method="post" onsubmit="return confirm('<?php echo L('sure_delete')?>')">
<div class="table-list">
<table width="10... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li class="on" id="tab_1"><?php echo L('url_list')?></li>
</ul>
<div class="content pad-10" id="show_div_1" style="height:auto... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li class="on" id="tab_1"><?php echo L('url_list')?></li>
</ul>
<div class="content pad-10" id="show_div_1" style="height:auto... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<style>
<!--
#show_funcs_div{position:absolute ;background-color:#fff;border:#D0D0D0 solid 1px; border-top-style:none;display:none}
.show_funcs_div{height:200px;overflow-y:scroll;}
#show_funcs_div... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="pad-lr-10">
<fieldset>
<legend><?php echo L('the_new_publication_solutions')?></legend>
<form name="myform" action="?" method="get" id="myform">
<table width="100%" class="table... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:... | PHP |
<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<div class="subnav">
<h1 class="title-2 line-x"><?php echo $node['name']?> - <?php echo L('content_list')?></h1>
</div>
<div class="pad-lr-10">
<div class="col-tab">
<ul class="tabBut cu-li">... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
$spider_funs = array(
'trim'=>'过滤空格',
'spider_photos'=>'处理为组图',
'spider_downurls'=>'处理为下载列表',
'spider_keywords'=>'获取关键字',
); | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
function spider_photos($str) {
$field = $GLOBALS['field'];
$_POST[$field.'_url'] = array();
preg_match_all('/<img[^>]*src=[\'"]?([^>\'"\s]*)[\'"]?[^>]*>/i', $str, $out);
$array = array();
if (isset($out[1]))foreach ($out[1] as $v) {
$_POST[$... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
function spider_keywords($data) {
$http = pc_base::load_sys_class('http');
if(CHARSET == 'utf-8') {
$data = iconv('utf-8', 'gbk', $data);
}
$http->post('http://tool.phpcms.cn/api/get_keywords.php', array('siteurl'=>APP_PATH, 'charset'=>CHARSET... | PHP |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class collection {
protected static $url,$config;
/**
* 采集内容
* @param string $url 采集地址
* @param array $config 配置参数
* @param integer $page 分页采集模式
*/
public static function get_content($url, $config, $page = 0) {
set_t... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-lr-10">
<form name="myform" action="?m=vote&c=vote&a=delete" method="post" onsubmit="checkuid();return false;">
<div class="table-list">
<table width="100%" cellspacin... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
?>
<form style="border: medium none;" id="voteform<?php echo $subjectid;?>" method="post" action="{APP_PATH}index.php?m=vote&c=index&a=post&subjectid=<?php echo $subjectid;?>">
<dl>
<dt><?php echo $subject;?></dt>
</dl>
<dl>
<?php
if(... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<div class="col-tab">
<ul class="tabBut cu-li">
<li class="on"><a href="?m=vote&c=vote&a=statistics_userlist&subjectid=<?php echo $subjectid;?... | PHP |
<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_header = $show_validator = $show_scroll = 1;
include $this->admin_tpl('header', 'admin');
?>
<div class="pad-10">
<h2 class="title-1 f14 lh28">(<?php echo $r['subject'];?>)<?php echo L('vote_call')?></h2>
<div class="bk10"></div>
<div class=... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.