code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
{template 'content', 'header'}
<!--main-->
<div class="main special-channel">
<div class="col-left">
<div class="box-hots">
<div class="icon"></div>
<div class="content">
<div class="special-slide">
{pc:special action="lists" siteid="$siteid" elite="1" listorde... | 108wo | phpcms/templates/default/special/special_list.html | HTML | asf20 | 2,376 |
fweffjsdfjlsakdfksadjfosadfoiasiofsaiodfjisodhfioshfosfhoshjfos | 108wo | phpcms/templates/default/special/index_2.html | HTML | asf20 | 63 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{if isse... | 108wo | phpcms/templates/default/special/header.html | HTML | asf20 | 1,541 |
{template 'search', 'header'}
<div class="clr sr_body sr_list">
<div class="sr_main">
<div class="sr_head">
<div class="l" id="search">
{php $j=0}
{loop $search_model $k=>$v}
{php $j++;}
<a href="javascript:;" onclick="setmodel({$v['typeid']}, $(this),{$siteid}, '{$q... | 108wo | phpcms/templates/default/search/list.html | HTML | asf20 | 4,995 |
{template 'search', 'header'}
<div class="clr sr_body">
<div class="sr_main">
<div class="sr_head">
<div class="l" id="search">
{php $j=0}
{loop $search_model $k=>$v}
{php $j++;}
<a href="javascript:;" onclick="setmodel({$v['typeid']}, $(this));" {if $j==1 && $typeid... | 108wo | phpcms/templates/default/search/index.html | HTML | asf20 | 1,879 |
<div class="sr_footer">
{pc:content action="category" catid="1" num="15" siteid="$siteid" order="listorder ASC"}
{loop $data $r}
<a href="{$r[url]}" target="_blank">{$r[catname]}</a> |
{/loop}
{/pc}
<a href="{APP_PATH}index.php?m=link" target="_blank">友情链接</a>
<p class="cp">Powered by <strong><a href="http:... | 108wo | phpcms/templates/default/search/footer.html | HTML | asf20 | 670 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{$search_q} ... | 108wo | phpcms/templates/default/search/header.html | HTML | asf20 | 647 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/templates/default/message/inbox.html | HTML | asf20 | 3,033 |
{template 'member', 'header'}
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#subject").formValidator({empty:true,onshow:"标题,可以为空",onfocus:"请输入标题",oncorrect:"输入正确!",onempty:"不填替标题了吗?"}).inputValidator({min:1,onerror:"请输入标题... | 108wo | phpcms/templates/default/message/read_group.html | HTML | asf20 | 2,257 |
{template 'member', 'header'}
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#subject").formValidator({empty:true,onshow:"标题,可以为空",onfocus:"请输入标题",oncorrect:"输入正确!",onempty:"不填替标题了吗?"}).inputValidator({min:1,onerror:"请输入标题... | 108wo | phpcms/templates/default/message/read.html | HTML | asf20 | 3,908 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/templates/default/message/group.html | HTML | asf20 | 2,011 |
{template 'member', 'header'}
<script language="javascript" type="text/javascript" src="{JS_PATH}admin_common.js"></script>
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<div id="memberArea">
{template... | 108wo | phpcms/templates/default/message/outbox.html | HTML | asf20 | 2,914 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">发送短消息</h6>
<div class="content">
<form name="myform" action="{APP_PATH}index.php?m=message&c=index&a=send" method="post" id="myform">
<table width="100%" cellspacing="0" ... | 108wo | phpcms/templates/default/message/send.html | HTML | asf20 | 3,130 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">查看已发消息</h6>
<div class="content">
<table width="100%" cellspacing="0" class="table_form">
{php $userid = get_memberinfo_buyusername($infos['send_from_id'],userid)... | 108wo | phpcms/templates/default/message/read_only.html | HTML | asf20 | 1,501 |
{template "content","header"}
<div class="main">
<iframe id="frame_content" src="{$url}" scrolling="no" frameborder="0" width="{$width}" height="{$height}"></iframe>
</div>
{template "content","footer"} | 108wo | phpcms/templates/default/plugin/iframe.html | HTML | asf20 | 206 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h5 class="title">支付确认</h5>
<div class="content">
<table width="100%" cellspacing="0" class="table-list nHover">
<tr>
<td width="120">费用:</td>
<td>{$factory_info['money']}元</td>
</tr>... | 108wo | phpcms/templates/default/pay/payment_cofirm.html | HTML | asf20 | 1,031 |
{template 'member', 'header'}
<script type="text/javascript">
<!--
$(function(){
$.formValidator.initConfig({autotip:true,formid:"myform",onerror:function(msg){}});
$("#price").formValidator({onshow:"请输入要充值的金额",onfocus:"充值金额不能为空"}).inputValidator({min:1,max:999,onerror:"充值金额不能为空"}).regexValidator({regexp:"^(([1-... | 108wo | phpcms/templates/default/pay/deposit.html | HTML | asf20 | 4,379 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">支付记录</h6>
<div class="content">
<form name="searchform" action="{APP_PATH}index.php?m=pay&c=deposit" method="get" >
<input type="hidden" value="pay" name="m">
<input typ... | 108wo | phpcms/templates/default/pay/pay_list.html | HTML | asf20 | 1,818 |
{template 'member', 'header'}
<div id="memberArea">
{template 'member', 'left'}
<div class="col-auto">
<div class="col-1 ">
<h6 class="title">消费记录</h6>
<div class="content">
<form name="searchform" action="{APP_PATH}index.php?m=pay&c=spend_list&a=init" method="get" >
<input type="hidden" value="pay" name="m">
... | 108wo | phpcms/templates/default/pay/spend_list.html | HTML | asf20 | 1,629 |
{template "content","header"}
<!--main-->
<div class="main">
<div class="col-left">
<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span>表单向导 列表</div>
<ul class="list lh24 f14">
{loop $datas $r}
<li><span class="rt">{date('Y-m-d H:i:s',$r[addtime])}</span>·<a href="{APP_PATH}in... | 108wo | phpcms/templates/default/formguide/index.html | HTML | asf20 | 1,506 |
{template "content","header"}
<link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<div class="main">
<div class="col-left">
<div class="crumbs"><a href="{siteurl($siteid)}">首页</a><span> > </span><a href="{APP_PAT... | 108wo | phpcms/templates/default/formguide/show.html | HTML | asf20 | 4,146 |
<script language="javascript" type="text/javascript" src="{JS_PATH}dialog.js"></script>
<link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}dialog.css" rel="stylesheet" type="text/css" />
<div class="box">
<h5>表单向导</h5>
<div class="content">
<form method="po... | 108wo | phpcms/templates/default/formguide/show_js.html | HTML | asf20 | 1,429 |
{template "wap","min_header"}
<div class="wrap" id="hd">
<div class="adds">{wap_pos($typeid)}</div>
<div>
{loop $list $v}
<a href="{show_url($v[catid],$v[id],$typeid)}" title="{$v['title']}">{str_cut($v['title'],26,'')}</a><br/>
{/loop}
</div>
<div class="pages">{$pages}</div>
{template "wap","min_footer"} | 108wo | phpcms/templates/default/wap/list.html | HTML | asf20 | 319 |
{template "wap","header"}
<h2><a href="#" class="cat">焦点推荐</a> <span style="color:#999; font-size:12px; font-weight:100;">{date('Y-m-d',SYS_TIME)}</span></h2>
<div>
{pc:wap action="position" posid="12" order="listorder DESC" num="6"}
{loop $data $r}
<a href="{$r[url]}">{str_cut($r['title'],26,'')}</a><br/>... | 108wo | phpcms/templates/default/wap/index.html | HTML | asf20 | 976 |
{template "wap","min_header"}
<div class="wrap" id="hd">
<div class="adds">{wap_pos($typeid)}</div>
<h1>{$title}</h1>
<div class="tm">作者:{$username} 日期:{date('m-d',strtotime($inputtime))}<br/>来源:{$copyfrom}</div>
<div class="content">
{if $pictureurl}{$pictureurl}<br>{$pages}{/if}
{$content}
</div>
... | 108wo | phpcms/templates/default/wap/show.html | HTML | asf20 | 1,465 |
<div class="tc"><a href="#hd"><img src="{IMG_PATH}wap/top.gif" alt="" width="46" height="16" /></a></div>
<div class="ft">
<a href="{WAP_SITEURL}">{$WAP['sitename']}</a>-<a href="{APP_PATH}index.php?m=wap&c=index&a=maps">导航</a>
</div>
</div>
</body>
</html> | 108wo | phpcms/templates/default/wap/footer.html | HTML | asf20 | 292 |
{php wmlHeader();}
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<... | 108wo | phpcms/templates/default/wap/min_header.html | HTML | asf20 | 2,024 |
{template "wap","min_header"}
<div class="wrap" id="hd">
<div class="content">
<img src="{$new_url}"><br>
图片下载选择:
<a href="{bigimg_url($url,320)}">高清(320x480)</a>.<a href="{bigimg_url($url,240)}">大(240x320)</a>.<a href="{bigimg_url($url,176)}">中(176x220)</a>.<a href="{bigimg_url($url,128)}">小(128x160)</a>
</div>
... | 108wo | phpcms/templates/default/wap/big_image.html | HTML | asf20 | 376 |
<div class="catlist">
{loop subtype($TYPE[$typeid]['parentid']) $s}<a href="{list_url($s[typeid])}">{$s[typename]}</a>|{if $n%4==0}<br/>{/if}{/loop}
</div>
<div class="tc"><a href="#hd"><img src="{IMG_PATH}wap/top.gif" alt="" width="46" height="16" /></a></div>
<div class="b_adds" id="hd">{wap_p... | 108wo | phpcms/templates/default/wap/min_footer.html | HTML | asf20 | 521 |
{template "wap","header"}
<div class="adds" id="hd">{wap_pos($typeid)}</div>
{loop subtype($typeid) $type}
{pc:wap action="lists" typeid="$type[typeid]" num="10" order="id DESC" return="info"}
<h2><a href="{list_url($type['typeid'])}" class="cat">{$type['typename']}</a></h2>
<div>
{loop $info $v}
<a href="... | 108wo | phpcms/templates/default/wap/category.html | HTML | asf20 | 488 |
{template "wap","min_header"}
<body>
<div class="wrap">
<div class="adds" id="hd">{wap_pos($typeid)}</div>
<h1><a href="{show_url($catid,$contentid,$typeid)}">{$title}</a></h1>
<div class="b_adds">网友评论:</div>
{pc:comment action="lists" commentid="$commentid" siteid="$siteid" page="$_GET[page]" hot="$hot" num... | 108wo | phpcms/templates/default/wap/comment_list.html | HTML | asf20 | 653 |
{php wmlHeader();}
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-cache"/>
<... | 108wo | phpcms/templates/default/wap/header.html | HTML | asf20 | 2,083 |
{template "wap","min_header"}
<div class="wrap">
<div class="adds" id="hd">{$WAP['sitename']} - 导航</div>
<div class="cts">
{php $i=1}
{loop subtype(0) $s}
<a href="{list_url($s[typeid])}">[{$s[typename]}]</a>
{loop subtype($s[typeid]) $r}
<a href="{list_url($r[typeid])}">{$r[typename]}</a>
{i... | 108wo | phpcms/templates/default/wap/maps.html | HTML | asf20 | 438 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
class plugin_admin {
function __construct($pluginid) {
$this->pluginid = $pluginid;
$this->op = pc_base::load_app_class('plugin_op');
$this->auth_db = pc_base::load_plugin_model('weibo_auth_info_model');
}
public function o... | 108wo | phpcms/plugin/weibo/plugin_admin.class.php | PHP | asf20 | 2,142 |
<?php
/**
* cache_factory.class.php 缓存工厂类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
final class cache_factory {
/**
* 当前缓存工厂类静态实例
*/
private static $cache_factory;
/**
* 缓存配置列表
*/
protected $cache_config = arr... | 108wo | phpcms/libs/classes/cache_factory.class.php | PHP | asf20 | 2,347 |
<?php
/**
* mysql.class.php 数据库实现类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
final class mysql {
/**
* 数据库配置信息
*/
private $config = null;
/**
* 数据库连接资源句柄
*/
public $link = null;
/**
* 最近一次查询资源句柄
*/
... | 108wo | phpcms/libs/classes/mysql.class.php | PHP | asf20 | 12,526 |
<?php
/**
* access.class.php 数据库实现类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
final class db_access {
/**
* 数据库配置信息
*/
private $config = null;
/**
* 数据库连接资源句柄
*/
public $link = null;
/**
* 最近一次查询资源句柄
... | 108wo | phpcms/libs/classes/db_access.class.php | PHP | asf20 | 4,125 |
<?php
class hook {
static function glogal_header() {}
static function glogal_footer() {}
static function glogal_menu() {}
static function admin_content_init() {}
static function admin_top_left_menu() {}
}
?> | 108wo | phpcms/libs/classes/hook.class.php | PHP | asf20 | 227 |
<?php
class cache_file {
/*缓存默认配置*/
protected $_setting = array(
'suf' => '.cache.php', /*缓存文件后缀*/
'type' => 'array', /*缓存格式:array数组,serialize序列化,null字符串*/
);
/*缓存路径*/
protected $filepath = '';
/**
* 构造函数
* @param array $setting 缓存配置
* @return void
*/
public function __const... | 108wo | phpcms/libs/classes/cache_file.class.php | PHP | asf20 | 4,789 |
<?php
class import_test {
/**
* 通用数据转换程序
*
* @param $timestamp
* @param $showtime
*/
var $con;
/*
* 测试数据库连接
*/
public static function testdb($dbtype, $dbhost, $dbuser, $dbpw, $dbname) {
global $con;
$db_conf = array();
$db_conf['import_array'] = array();
$db_conf['im... | 108wo | phpcms/libs/classes/import_test.class.php | PHP | asf20 | 958 |
<?php
class form {
/**
* 编辑器
* @param int $textareaid
* @param int $toolbar
* @param string $module 模块名称
* @param int $catid 栏目id
* @param int $color 编辑器颜色
* @param boole $allowupload 是否允许上传
* @param boole $allowbrowser 是否允许浏览文件
* @param string $alowuploadexts 允许上传类型
* @param string $... | 108wo | phpcms/libs/classes/form.class.php | PHP | asf20 | 17,053 |
<?php
class cache_memcache {
private $memcache = null;
public function __construct() {
$this->memcache = new Memcache;
$this->memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT, MEMCACHE_TIMEOUT);
}
public function memcache() {
$this->__construct();
}
public function get($name) {
$value = ... | 108wo | phpcms/libs/classes/cache_memcache.class.php | PHP | asf20 | 664 |
<?php
/**
* 通用的树型类,可以生成任何树型结构
*/
class tree {
/**
* 生成树型结构所需要的2维数组
* @var array
*/
public $arr = array();
/**
* 生成树型结构所需修饰符号,可以换成图片
* @var array
*/
public $icon = array('│','├','└');
public $nbsp = " ";
/**
* @access private
*/
public $ret = '';
/**
* 构造函数,初始化类
* @para... | 108wo | phpcms/libs/classes/tree.class.php | PHP | asf20 | 8,422 |
<?php
/**
* db_factory.class.php 数据库工厂类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
final class db_factory {
/**
* 当前数据库工厂类静态实例
*/
private static $db_factory;
/**
* 数据库配置列表
*/
protected $db_config = array();
... | 108wo | phpcms/libs/classes/db_factory.class.php | PHP | asf20 | 2,293 |
<?php
/**
* 模板解析缓存
*/
final class template_cache {
/**
* 编译模板
*
* @param $module 模块名称
* @param $template 模板文件名
* @param $istag 是否为标签模板
* @return unknown
*/
public function template_compile($module, $template, $style = 'default') {
if(strpos($module, '/')=== false) {
$tplfile ... | 108wo | phpcms/libs/classes/template_cache.class.php | PHP | asf20 | 10,518 |
<?php
/**
* param.class.php 参数处理类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-7
*/
class param {
//路由配置
private $route_config = '';
public function __construct() {
if(!get_magic_quotes_gpc()) {
$_POST = new_addslashes($_POST);... | 108wo | phpcms/libs/classes/param.class.php | PHP | asf20 | 3,277 |
<?php
/**
* 中文分词操作类
* @author wangcanjia
*
*/
class segment {
public $rank_dic = array();
public $one_name_dic = array();
public $two_name_dic = array();
public $new_word = array();
public $source_string = '';
public $result_string = '';
public $split_char = ' '; //分隔符
public $SplitLen = 4; //... | 108wo | phpcms/libs/classes/segment.class.php | PHP | asf20 | 14,415 |
<?php
/**
* application.class.php PHPCMS应用程序创建类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-7
*/
class application {
/**
* 构造函数
*/
public function __construct() {
$param = pc_base::load_sys_class('param');
define('ROUTE_M', $... | 108wo | phpcms/libs/classes/application.class.php | PHP | asf20 | 1,482 |
<?php
defined('IN_PHPCMS') or exit('Access Denied');
class access{
var $querynum = 0;
var $conn;
var $insertid = 0;
var $cursor = 0;
//var $ADODB_FETCH_MODE = ADODB_FETCH_BOTH;
/**
* 最近一次查询资源句柄
*/
public $lastqueryid = null;
function connect($dbhost, $dbuser = '', $dbpw = '', $dbname = '', $pc... | 108wo | phpcms/libs/classes/access.class.php | PHP | asf20 | 3,195 |
<?php
/**
* 图像处理
*/
class image {
var $w_pct = 100;
var $w_quality = 80;
var $w_minwidth = 300;
var $w_minheight = 300;
var $thumb_enable;
var $watermark_enable;
var $interlace = 0;
var $siteinfo = array();
function __construct($thumb_enable = 0 ,$siteid) {
$this->thumb_enable = $thum... | 108wo | phpcms/libs/classes/image.class.php | PHP | asf20 | 8,495 |
<?php
class attachment {
var $contentid;
var $module;
var $catid;
var $attachments;
var $field;
var $imageexts = array('gif', 'jpg', 'jpeg', 'png', 'bmp');
var $uploadedfiles = array();
var $downloadedfiles = array();
var $error;
var $upload_root;
var $siteid;
var $site = array();
functio... | 108wo | phpcms/libs/classes/attachment.class.php | PHP | asf20 | 13,441 |
<?php
class session_files {
function __construct() {
$path = pc_base::load_config('system', 'session_n') > 0 ? pc_base::load_config('system', 'session_n').';'.pc_base::load_config('system', 'session_savepath') : pc_base::load_config('system', 'session_savepath');
ini_set('session.save_handler', 'files');
... | 108wo | phpcms/libs/classes/session_files.class.php | PHP | asf20 | 382 |
<?php
class format {
/**
* 日期格式化
*
* @param $timestamp
* @param $showtime
*/
public static function date($timestamp, $showtime = 0) {
$times = intval($timestamp);
if(!$times) return true;
$lang = pc_base::load_config('system','lang');
if($lang == 'zh-cn') {
$str = $showtime ? date('... | 108wo | phpcms/libs/classes/format.class.php | PHP | asf20 | 830 |
<?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... | 108wo | phpcms/libs/classes/session_mysql.class.php | PHP | asf20 | 2,530 |
<?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... | 108wo | phpcms/libs/classes/http.class.php | PHP | asf20 | 12,888 |
<?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... | 108wo | phpcms/libs/classes/model.class.php | PHP | asf20 | 7,010 |
<?php
class update {
var $modules;
var $update_url;
var $http;
function __construct() {
$this->update_url = 'http://update.v9.phpcms.cn/index.php';
$this->http = pc_base::load_sys_class('http','',1);
$this->uuid = $this->check_uuid();
}
function check(){
$url = $this->url('check');
... | 108wo | phpcms/libs/classes/update.class.php | PHP | asf20 | 1,922 |
<?php
/**
* FTP操作类
* @author chenzhouyu
*
*使用$ftps = pc_base::load_sys_class('ftps');进行初始化。
*首先通过 $ftps->connect($host,$username,$password,$post,$pasv,$ssl,$timeout);进行FTP服务器连接。
*通过具体的函数进行FTP的操作。
*$ftps->mkdir() 创建目录,可以创建多级目录以“/abc/def/higk”的形式进行多级目录的创建。
*$ftps->put()上传文件
*$ftps->rmdir()删除目录
*$ftps... | 108wo | phpcms/libs/classes/ftps.class.php | PHP | asf20 | 5,297 |
<?php
/**
* ip_area.class.php 根据ip地址获取ip所在地区的类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-7
*/
class ip_area {
public $fp = NULL; //定义文件指针
public $func; //处理的方法
private $offset;
private $index;
/**
* 构造函数
*
*/
... | 108wo | phpcms/libs/classes/ip_area.class.php | PHP | asf20 | 8,578 |
<?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
* ---------------------... | 108wo | phpcms/libs/classes/xml.class.php | PHP | asf20 | 4,401 |
<?php
/**
* push_factory.class.php 推送信息工厂类
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-8-2
*/
final class push_factory {
/**
* 推送信息工厂类静态实例
*/
private static $push_factory;
/**
* 接口实例化列表
*/
protected $api_list = array(... | 108wo | phpcms/libs/classes/push_factory.class.php | PHP | asf20 | 1,050 |
<?php
/**
* 生成验证码
* @author chenzhouyu
* 类用法
* $checkcode = new checkcode();
* $checkcode->doimage();
* //取得验证
* $_SESSION['code']=$checkcode->get_code();
*/
class checkcode {
//验证码的宽度
public $width=130;
//验证码的高
public $height=50;
//设置字体的地址
private $font;
//设置字体色
public $font_... | 108wo | phpcms/libs/classes/checkcode.class.php | PHP | asf20 | 3,731 |
<?php
define('CODETABLEDIR', dirname(__FILE__).DIRECTORY_SEPARATOR.'encoding'.DIRECTORY_SEPARATOR);
/**
* utf8转gbk
* @param $utfstr
*/
function utf8_to_gbk($utfstr) {
global $UC2GBTABLE;
$okstr = '';
if(empty($UC2GBTABLE)) {
$filename = CODETABLEDIR.'gb-unicode.table';
$fp = fopen($filename, 'rb');... | 108wo | phpcms/libs/functions/iconv.func.php | PHP | asf20 | 5,082 |
<?php
/**
* 转化 \ 为 /
*
* @param string $path 路径
* @return string 路径
*/
function dir_path($path) {
$path = str_replace('\\', '/', $path);
if(substr($path, -1) != '/') $path = $path.'/';
return $path;
}
/**
* 创建目录
*
* @param string $path 路径
* @param string $mode 属性
* @return string 如果已经存在则返回true,否则... | 108wo | phpcms/libs/functions/dir.func.php | PHP | asf20 | 4,114 |
<?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 addsla... | 108wo | phpcms/libs/functions/global.func.php | PHP | asf20 | 52,727 |
<?php
/**
* 邮件发送函数
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
function runlog($mode = 'SMTP',$b = '',$c = '',$d='') {
}
/**
* 发送邮件
* @param $toemail 收件人email
* @param $subject 邮件主题
* @param $message 正文
* @param $from 发件人
* @... | 108wo | phpcms/libs/functions/mail.func.php | PHP | asf20 | 6,112 |
<?php
/**
* plugin.func.php 公共函数库
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-6-1
*/
function pluginkey_check($key) {
return preg_match("/^[a-z]+[a-z0-9_]*$/i", $key);
}
/**
* 插件语言包
* Enter description here ...
* @param unknown_type... | 108wo | phpcms/libs/functions/autoload/plugin.func.php | PHP | asf20 | 5,101 |
<?php
/**
* extention.func.php 用户自定义函数库
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-10-27
*/
/**
* 获取指定分类下的产品数量
*/
function getProductNum($catids, $modelid, $bid="")
{
$db = pc_base::load_model('content_model');
$db->set_model($model... | 108wo | phpcms/libs/functions/extention.func.php | PHP | asf20 | 3,279 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class comment_model extends model {
public $table_name;
public $old_table_name;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'comment';
$... | 108wo | phpcms/model/comment_model.class.php | PHP | asf20 | 410 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class comment_check_model extends model {
public $table_name;
public $old_table_name;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'comment'... | 108wo | phpcms/model/comment_check_model.class.php | PHP | asf20 | 422 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class sitemodel_field_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_n... | 108wo | phpcms/model/sitemodel_field_model.class.php | PHP | asf20 | 914 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class workflow_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'workflow';
parent::__con... | 108wo | phpcms/model/workflow_model.class.php | PHP | asf20 | 340 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class attachment_index_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'attachment_index';
... | 108wo | phpcms/model/attachment_index_model.class.php | PHP | asf20 | 356 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class position_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = '... | 108wo | phpcms/model/position_model.class.php | PHP | asf20 | 367 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class sso_members_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'sso_members';
parent:... | 108wo | phpcms/model/sso_members_model.class.php | PHP | asf20 | 346 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class extend_setting_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'extend_setting';
p... | 108wo | phpcms/model/extend_setting_model.class.php | PHP | asf20 | 352 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
if(!defined('CACHE_MODEL_PATH')) define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);
/**
* 内容模型数据库操作类
*/
pc_base::load_sys_class('model', '', 0);
class MY_content_model extends model {
pu... | 108wo | phpcms/model/MY_content_model.class.php | PHP | asf20 | 20,448 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class poster_stat_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'poster_'.date('Ym');
parent:... | 108wo | phpcms/model/poster_stat_model.class.php | PHP | asf20 | 2,497 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class hits_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'hits... | 108wo | phpcms/model/hits_model.class.php | PHP | asf20 | 359 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class attachment_model extends model {
private $att_index_db;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = '... | 108wo | phpcms/model/attachment_model.class.php | PHP | asf20 | 4,031 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class tag_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'tag';
parent::__construct();
... | 108wo | phpcms/model/tag_model.class.php | PHP | asf20 | 330 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class plugin_model extends model {
public $table_name;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'plug... | 108wo | phpcms/model/plugin_model.class.php | PHP | asf20 | 361 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class times_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'times';
parent::__construct... | 108wo | phpcms/model/times_model.class.php | PHP | asf20 | 334 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class myhelp_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'myhelp';
parent::__construct();
}... | 108wo | phpcms/model/myhelp_model.class.php | PHP | asf20 | 322 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class block_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'block';
parent::__construct... | 108wo | phpcms/model/block_model.class.php | PHP | asf20 | 334 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class message_data_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'message_data';
$this->_user... | 108wo | phpcms/model/message_data_model.class.php | PHP | asf20 | 445 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class admin_role_priv_model extends model {
public $table_name = '';
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = '... | 108wo | phpcms/model/admin_role_priv_model.class.php | PHP | asf20 | 374 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class vote_data_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'vote_data';
parent::__construc... | 108wo | phpcms/model/vote_data_model.class.php | PHP | asf20 | 611 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class ps_members_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'phpsso';
$this->table_name = 'members';
parent::__con... | 108wo | phpcms/model/ps_members_model.class.php | PHP | asf20 | 340 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class copyfrom_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'copyfrom';
parent::__construct(... | 108wo | phpcms/model/copyfrom_model.class.php | PHP | asf20 | 333 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class badword_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'b... | 108wo | phpcms/model/badword_model.class.php | PHP | asf20 | 925 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class message_group_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'message_group';
$this->_us... | 108wo | phpcms/model/message_group_model.class.php | PHP | asf20 | 447 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class search_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'se... | 108wo | phpcms/model/search_model.class.php | PHP | asf20 | 1,522 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class pay_payment_model extends model {
public $table_name = '';
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name ... | 108wo | phpcms/model/pay_payment_model.class.php | PHP | asf20 | 373 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class order_detail_model extends model {
function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'order_detail';
parent::__co... | 108wo | phpcms/model/order_detail_model.class.php | PHP | asf20 | 344 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class content_check_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'content_check';
par... | 108wo | phpcms/model/content_check_model.class.php | PHP | asf20 | 350 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class block_history_model extends model {
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'block_history';
par... | 108wo | phpcms/model/block_history_model.class.php | PHP | asf20 | 350 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class wap_model extends model {
public $table_name;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'default';
$this->table_name = 'wap';
... | 108wo | phpcms/model/wap_model.class.php | PHP | asf20 | 355 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
if(!defined('CACHE_MODEL_PATH')) define('CACHE_MODEL_PATH',CACHE_PATH.'caches_model'.DIRECTORY_SEPARATOR.'caches_data'.DIRECTORY_SEPARATOR);
/**
* 内容模型数据库操作类
*/
pc_base::load_sys_class('model', '', 0);
class content_model extends model {
publi... | 108wo | phpcms/model/content_model.class.php | PHP | asf20 | 17,779 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
pc_base::load_sys_class('model', '', 0);
class comment_setting_model extends model {
public $table_name;
public function __construct() {
$this->db_config = pc_base::load_config('database');
$this->db_setting = 'comment';
$this->table_name =... | 108wo | phpcms/model/comment_setting_model.class.php | PHP | asf20 | 559 |