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 |
|---|---|---|---|---|---|
<?php
class ManagerModel extends Model
{
public $_validate = array(
array('name','/^[a-z]\w{2,}$/i','帐号格式错误'),
array('password','6,12','密码长度必须在6-12位之间',Model::VALUE_VAILIDATE,'length'),
array('repwd','require','确认密码必须'),
array('repwd','password','确认密码不一致',self::EXISTS_VAILIDATE,'confirm'),
... | zzgcms | ZGCMS/Admin/Lib/Model/ManagerModel.class.php | PHP | art | 1,072 |
<?php
class RotationModel extends Model{
public $_validate = array(
array('state',array(1,2),'请确保是否轮播类型合法!',Model::MUST_VALIDATE,'in'),
array('link','require','链接必须填写!'),
array('title','0,20','标题不得大于20位',Model::VALUE_VAILIDATE,'length'),
array('info','0,200','内容简介不得大于20位',Model::VALUE_VAILIDATE... | zzgcms | ZGCMS/Admin/Lib/Model/RotationModel.class.php | PHP | art | 734 |
<?php
class PermissionModel extends Model{
public $_validate = array(
array('name','2,100','等级名称必须在2-100位之间',Model::MUST_VALIDATE,'length',Model:: MODEL_BOTH),
array('info','0,200','等级描述不得大于200位',Model::MUST_VALIDATE,'length',Model:: MODEL_BOTH),
);
}
?> | zzgcms | ZGCMS/Admin/Lib/Model/PermissionModel.class.php | PHP | art | 313 |
<?php
class ArticleModel extends Model{
public $_validate = array(
array('title','2,30','标题必须在2-30位之间',Model::MUST_VALIDATE,'length',Model:: MODEL_BOTH),
array('tag','0,30','标签描述不得大于30位',Model::MUST_VALIDATE,'length',Model:: MODEL_BOTH),
array('keyword','0,30','关键字描述不得大于30位',Model::MUST_VALIDATE,'le... | zzgcms | ZGCMS/Admin/Lib/Model/ArticleModel.class.php | PHP | art | 1,120 |
<?php
class AdverAction extends BaseAction{
private $fileName;
private $width;//缩略图宽
private $height;//缩略图高
private $prefix;//缩略图前缀
public function index(){
$adver = M('Adver');
import("ORG.Util.Page");
$where = array();
//广告类型筛选显示
if(empty($_GET) || 0 == $_GET['kind']){
$count... | zzgcms | ZGCMS/Admin/Lib/Action/AdverAction.class.php | PHP | art | 9,620 |
<?php
class ArticleAction extends BaseAction{
private $fileName;//上传图片名字,用上传图片的大小的md5值作为其名字
public function index(){
$article = M("Article");
import("ORG.Util.Page");
//显示所有分类
$cat = M("Category");
$category = $cat->field("category_name,id,pid,concat(path,'-',id) as bpath")
->ord... | zzgcms | ZGCMS/Admin/Lib/Action/ArticleAction.class.php | PHP | art | 6,748 |
<?php
class CommentAction extends BaseAction{
public function index()
{
$comment = M("Comment");
import("ORG.Util.Page");
$count = $comment->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $comment->limit($page->firstRow.','.$page->listRows)
->join... | zzgcms | ZGCMS/Admin/Lib/Action/CommentAction.class.php | PHP | art | 2,912 |
<?php
class IndexAction extends BaseAction {
public function index(){
$this->display();
}
} | zzgcms | ZGCMS/Admin/Lib/Action/IndexAction.class.php | PHP | art | 106 |
<?php
class LevelAction extends BaseAction{
public function index(){
$level = M("Level");
import("ORG.Util.Page");
$count = $level->count();
$page = new Page($count,c("PAGESIZE"));
$show = $page->show();
$data = $level->field(true)
->limit($page->firstRow.','.$page->listRows)
->... | zzgcms | ZGCMS/Admin/Lib/Action/LevelAction.class.php | PHP | art | 2,382 |
<?php
class linkAction extends BaseAction{
public function index(){
$link = M('Link');
import("ORG.Util.Page");
$count = $link->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $link->limit($page->firstRow.','.$page->listRows)
->field(true)
->s... | zzgcms | ZGCMS/Admin/Lib/Action/LinkAction.class.php | PHP | art | 2,903 |
<?php
class VoteAction extends BaseAction{
public function index(){
$voteSubject = M('VoteSubject');
import("ORG.Util.Page");
$count = $voteSubject->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $voteSubject->limit($page->firstRow.','.$page->listRows)
... | zzgcms | ZGCMS/Admin/Lib/Action/VoteAction.class.php | PHP | art | 5,824 |
<?php
class RotationAction extends BaseAction{
private $fileName;
public function index(){
$rotation = M('Rotation');
import("ORG.Util.Page");
$count = $rotation->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $rotation->limit($page->firstRow.','.$page->l... | zzgcms | ZGCMS/Admin/Lib/Action/RotationAction.class.php | PHP | art | 7,097 |
<?php
class SystemAction extends BaseAction{
public function index(){
$sys = M('System');
$data = $sys->field(true)
->find();
$this->assign('data',$data);
$this->display();
}
//更新系统配置
public function update(){
$sys = D('System');
if($sys->create()){
if($sys->save())... | zzgcms | ZGCMS/Admin/Lib/Action/SystemAction.class.php | PHP | art | 1,907 |
<?php
class PermissionAction extends BaseAction{
public function index(){
$permission = M('Permission');
import('ORG.Util.Page');
$count = $permission->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $permission->field(true)
->limit($page->firstRow.','... | zzgcms | ZGCMS/Admin/Lib/Action/PermissionAction.class.php | PHP | art | 1,868 |
<?php
class ManagerAction extends BaseAction{
public function index()
{
$manager = M("Manager");
import("ORG.Util.Page");
$count = $manager->count();
$page = new Page($count,C('PAGESIZE'));
$show = $page->show();
$data = $manager->limit($page->firstRow.','.$page->listRows)
->fiel... | zzgcms | ZGCMS/Admin/Lib/Action/ManagerAction.class.php | PHP | art | 2,235 |
<?php
class BaseAction extends Action{
function _initialize(){
// header("Content-Type:text/html; charset=utf-8");
if(!isset($_SESSION[C('USER_AUTH_KEY')])){
$this->assign("jumpUrl","__APP__/Public/login");
$this->error('请先登陆!');
}
//对各个模块统一检查权限
$actionName = null == $this->getAc... | zzgcms | ZGCMS/Admin/Lib/Action/BaseAction.class.php | PHP | art | 1,502 |
<?php
class UserAction extends BaseAction{
public function index()
{
$user = M("User");
import("ORG.Util.Page");
$count = $user->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $user->limit($page->firstRow.','.$page->listRows)
->field("user,id,logi... | zzgcms | ZGCMS/Admin/Lib/Action/UserAction.class.php | PHP | art | 2,190 |
<?php
class PublicAction extends Action{
//后台头部
public function top()
{
$this->assign('name',$_SESSION['name']);
$this->assign('levelName',$_SESSION['levelName']);
$this->display();
}
//后台首页侧边栏(管理首页)
public function siderbari()
{
$this->display();
}
//后台首页
public function main(... | zzgcms | ZGCMS/Admin/Lib/Action/PublicAction.class.php | PHP | art | 3,106 |
<?php
class CategoryAction extends BaseAction{
public function index(){
$category = M("Category");
import("ORG.Util.Page");
$count = $category->count();
$page = new Page($count,c('PAGESIZE'));
$show = $page->show();
$data = $category->limit($page->firstRow.','.$page->listRows)
->fie... | zzgcms | ZGCMS/Admin/Lib/Action/CategoryAction.class.php | PHP | art | 7,138 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>
<... | zzgcms | ZGCMS/Admin/Tpl/System/index.html | HTML | art | 1,820 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Comment/index.html | HTML | art | 1,900 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Article/index.html | HTML | art | 1,883 |
<!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" />
<title>上传缩略图</title>
<link rel="stylesheet" type="text/css" href="../sty... | zzgcms | ZGCMS/Admin/Tpl/Article/showUploadFile.html | HTML | art | 821 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Article/edit.html | HTML | art | 5,492 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Article/add.html | HTML | art | 4,190 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Manager/index.html | HTML | art | 1,875 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Manager/edit.html | HTML | art | 1,685 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Manager/add.html | HTML | art | 1,498 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Level/index.html | HTML | art | 1,168 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Level/edit.html | HTML | art | 1,745 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Level/add.html | HTML | art | 1,383 |
<!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" />
<title>sidebar</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>... | zzgcms | ZGCMS/Admin/Tpl/Public/sidebars.html | HTML | art | 473 |
<!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" />
<title>sidebar</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>... | zzgcms | ZGCMS/Admin/Tpl/Public/sidebarc.html | HTML | art | 891 |
<!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" />
<title>sidebar</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>... | zzgcms | ZGCMS/Admin/Tpl/Public/sidebaru.html | HTML | art | 471 |
<!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" />
<title>登录CMS后台管理系统</title>
<load href='__PUBLIC__/Css/admin.css' />
<lo... | zzgcms | ZGCMS/Admin/Tpl/Public/login.html | HTML | art | 1,146 |
<!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" />
<title>sidebar</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>... | zzgcms | ZGCMS/Admin/Tpl/Public/sidebari.html | HTML | art | 680 |
<!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" />
<title>top</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href=... | zzgcms | ZGCMS/Admin/Tpl/Public/top.html | HTML | art | 1,073 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
</head>
<... | zzgcms | ZGCMS/Admin/Tpl/Public/main.html | HTML | art | 693 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/editItem.html | HTML | art | 1,558 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/addItem.html | HTML | art | 1,486 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/showItem.html | HTML | art | 1,518 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/index.html | HTML | art | 1,616 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/edit.html | HTML | art | 1,410 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Vote/add.html | HTML | art | 1,222 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Category/index.html | HTML | art | 1,578 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Category/edit.html | HTML | art | 2,001 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Category/add.html | HTML | art | 1,557 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/User/index.html | HTML | art | 1,187 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/User/edit.html | HTML | art | 2,705 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/User/add.html | HTML | art | 2,294 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Adver/index.html | HTML | art | 2,806 |
<!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" />
<title>上传缩略图</title>
<link rel="stylesheet" type="text/css" href="../sty... | zzgcms | ZGCMS/Admin/Tpl/Adver/showUploadFile.html | HTML | art | 847 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Adver/edit.html | HTML | art | 2,525 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Adver/add.html | HTML | art | 1,935 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎光临CMS内容管理系统后台操作</title>
<load href='__PUBLIC__/Css/index.css' />
</hea... | zzgcms | ZGCMS/Admin/Tpl/Index/index.html | HTML | art | 686 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Link/index.html | HTML | art | 1,650 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Link/edit.html | HTML | art | 2,223 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Link/add.html | HTML | art | 1,847 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Permission/index.html | HTML | art | 1,115 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Permission/edit.html | HTML | art | 1,333 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Permission/add.html | HTML | art | 1,188 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Rotation/index.html | HTML | art | 2,178 |
<!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" />
<title>上传缩略图</title>
<link rel="stylesheet" type="text/css" href="../sty... | zzgcms | ZGCMS/Admin/Tpl/Rotation/showUploadFile.html | HTML | art | 730 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Rotation/edit.html | HTML | art | 2,258 |
<!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" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href... | zzgcms | ZGCMS/Admin/Tpl/Rotation/add.html | HTML | art | 1,662 |
<?php
if(!defined('THINK_PATH'))
exit();
$configInc = require './config.inc.php';
$config = array(
//'配置项'=>'配置值'
// 'PAGESIZE' => 100,
// 'TEXT_ADVER_NUM' => 3,//文字广告显示数目
// 'HEADER_ADVER_NUM' => 3,//头部图片广告显示数目
// 'SIDERBAR_ADVER_NUM' => 3,//侧边栏图片广告显示数目
// 'USER_AUTH_KEY' => 'authId',//设置认证SESSION的标记名称
);
ret... | zzgcms | ZGCMS/Admin/Conf/config.php | PHP | art | 447 |
MKSHELL=$PLAN9/bin/rc
<$PLAN9/src/mkhdr
<mkconfig
LIB=$PREFIX/lib/libveb.a
CFLAGS='-std=c99'
OFILES=\
veb.$O\
CFILES=\
veb.c\
mach.c\
HFILES=\
veb.h\
<$PLAN9/src/mklib
install:QV: $HFILES
for (t in $HFILES)
cp $t $PREFIX/include
| zzfukai-veb | mkfile | Makefile | mit | 248 |
<$PLAN9/src/mkhdr
MKSHELL=$PLAN9/bin/rc
CFLAGS=-Wall -g -O0 -std=c99 -I$PREFIX/include
LDFLAGS=-L$PREFIX/lib -lveb
CFILES=`{ls *.c >[2] /dev/null}
TARG=${CFILES:%.c=%}
DIRS=`{ls -d */ >[2] /dev/null}
default:V: all
<$PLAN9/src/mkdirs
<$PLAN9/src/mkmany
| zzfukai-veb | ut/mkfile | Makefile | mit | 257 |
<$BASE/mkfile
| zzfukai-veb | ut/empty/mkfile | Makefile | mit | 14 |
<$BASE/mkfile
| zzfukai-veb | ut/empty/pred/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,0);
vebput(T,0xf000);
test(vebpred(T,0xf000) == 0xf000);
vebput(T,0x0f00);
test(vebpred(T,0x0f00) == 0x0f00);
vebput(T,0x00f0);
test(vebpred(T,0x00f0) == 0x00f0);
vebput(T,0x000f);
test(vebpred(T,0x000f)... | zzfukai-veb | ut/empty/pred/test2.c | C | mit | 563 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,0);
vebput(T,0xf000);
test(vebpred(T,0xf000) == 0xf000);
vebput(T,0x0f00);
test(vebpred(T,0x0f00) == 0x0f00);
vebput(T,0x00f0);
test(vebpred(T,0x00f0) == 0x00f0);
vebput(T,0x000f);
test(vebpred(T,0x000f)... | zzfukai-veb | ut/empty/pred/test1.c | C | mit | 579 |
<$BASE/mkfile
| zzfukai-veb | ut/empty/pred/load/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
uint
fill(Veb T, uint m)
{
uint n = 0;
for (int i = 0; i < m; ++i) {
uint x = rand()%T.M;
if (vebpred(T,x) != x) {
vebput(T,x);
++n;
}
}
return n;
}
int
main(void)
{
srand(83843);
uint M = rand()%(1<<16);
Veb T = vebnew(M,0);
uint m = fill(T,... | zzfukai-veb | ut/empty/pred/load/test2.c | C | mit | 456 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
Veb
fill(uint M)
{
Veb T = vebnew(M,0);
for (int i = 0; i < 1000; ++i) {
uint x = rand()%M;
vebput(T,x);
}
return T;
}
int
main(void)
{
srand(433849);
uint M = rand()%(1<<16);
Veb T = fill(M);
uint i = i = vebpred(T,M-1);
while (i < M) {
vebdel(T,... | zzfukai-veb | ut/empty/pred/load/test1.c | C | mit | 402 |
<$BASE/mkfile
| zzfukai-veb | ut/empty/succ/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,0);
vebput(T,0x000f);
test(vebsucc(T,0x000f) == 0x000f);
vebput(T,0x00f0);
test(vebsucc(T,0x00f0) == 0x00f0);
vebput(T,0x0f00);
test(vebsucc(T,0x0f00) == 0x0f00);
vebput(T,0xf000);
test(vebsucc(T,0xf000)... | zzfukai-veb | ut/empty/succ/test2.c | C | mit | 561 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,0);
vebput(T,0x000f);
test(vebsucc(T,0x000f) == 0x000f);
vebput(T,0x00f0);
test(vebsucc(T,0x00f0) == 0x00f0);
vebput(T,0x0f00);
test(vebsucc(T,0x0f00) == 0x0f00);
vebput(T,0xf000);
test(vebsucc(T,0xf000)... | zzfukai-veb | ut/empty/succ/test1.c | C | mit | 579 |
<$BASE/mkfile
| zzfukai-veb | ut/empty/succ/load/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
uint
fill(Veb T, uint m)
{
uint n = 0;
for (int i = 0; i < m; ++i) {
uint x = rand()%T.M;
if (vebsucc(T,x) != x) {
vebput(T,x);
++n;
}
}
return n;
}
int
main(void)
{
srand(83843);
uint M = rand()%(1<<16);
Veb T = vebnew(M,0);
uint m = fill(T,... | zzfukai-veb | ut/empty/succ/load/test2.c | C | mit | 454 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
Veb
fill(uint M)
{
Veb T = vebnew(M,0);
for (int i = 0; i < 0xff; ++i) {
uint x = rand()%M;
vebput(T,x);
test(vebsucc(T,x) == x);
}
return T;
}
int
main(void)
{
srand(438749);
uint M = rand()%(1<<16);
Veb T = fill(M);
uint i = i = vebsucc(T,0);
wh... | zzfukai-veb | ut/empty/succ/load/test1.c | C | mit | 427 |
#include <stdio.h>
#define test(x) \
while (!(x)) { \
fprintf(stderr, "%s:%d\n", __FILE__, __LINE__); \
exit(1); \
}
| zzfukai-veb | ut/9unit.h | C | mit | 124 |
<$BASE/mkfile
| zzfukai-veb | ut/full/mkfile | Makefile | mit | 14 |
<$BASE/mkfile
| zzfukai-veb | ut/full/pred/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,1);
vebdel(T,0xf000);
test(vebpred(T,0xf000) != 0xf000);
vebdel(T,0x0f00);
test(vebpred(T,0x0f00) != 0x0f00);
vebdel(T,0x00f0);
test(vebpred(T,0x00f0) != 0x00f0);
vebdel(T,0x000f);
test(vebpred(T,0x000f)... | zzfukai-veb | ut/full/pred/test1.c | C | mit | 579 |
<$BASE/mkfile
| zzfukai-veb | ut/full/pred/load/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
uint
reduce(Veb T, uint m)
{
uint n = 0;
for (int i = 0; i < m; ++i) {
uint x = rand()%T.M;
if (vebpred(T,x) == x) {
vebdel(T,x);
++n;
}
}
return n;
}
int
main(void)
{
srand(83843);
uint M = rand()%(1<<16);
Veb T = vebnew(M,1);
uint m = reduc... | zzfukai-veb | ut/full/pred/load/test2.c | C | mit | 462 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
Veb
fill(uint M)
{
Veb T = vebnew(M,1);
for (int i = 0; i < 0xff; ++i) {
uint x = rand()%M;
vebdel(T,x);
test(vebpred(T,x) != x);
}
return T;
}
int
main(void)
{
srand(438749);
uint M = rand()%(1<<16);
Veb T = fill(M);
uint i = i = vebpred(T,M-1);
... | zzfukai-veb | ut/full/pred/load/test1.c | C | mit | 429 |
<$BASE/mkfile
| zzfukai-veb | ut/full/succ/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
int
main(void)
{
uint M = 1<<16;
Veb T = vebnew(M,1);
vebdel(T,0x000f);
test(vebsucc(T,0x000f) != 0x000f);
vebdel(T,0x00f0);
test(vebsucc(T,0x00f0) != 0x00f0);
vebdel(T,0x0f00);
test(vebsucc(T,0x0f00) != 0x0f00);
vebdel(T,0xf000);
test(vebsucc(T,0xf000)... | zzfukai-veb | ut/full/succ/test1.c | C | mit | 579 |
<$BASE/mkfile
| zzfukai-veb | ut/full/succ/load/mkfile | Makefile | mit | 14 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
uint
reduce(Veb T, uint m)
{
uint n = 0;
for (int i = 0; i < m; ++i) {
uint x = rand()%T.M;
if (vebsucc(T,x) == x) {
vebdel(T,x);
++n;
}
}
return n;
}
int
main(void)
{
srand(83843);
uint M = rand()%(1<<16);
Veb T = vebnew(M,1);
uint m = reduc... | zzfukai-veb | ut/full/succ/load/test2.c | C | mit | 460 |
#include <stdlib.h>
#include <veb.h>
#include <9unit.h>
Veb
fill(uint M)
{
Veb T = vebnew(M,1);
for (int i = 0; i < 0xff; ++i) {
uint x = rand()%M;
vebdel(T,x);
test(vebsucc(T,x) != x);
}
return T;
}
int
main(void)
{
srand(438749);
uint M = rand()%(1<<16);
Veb T = fill(M);
uint i = i = vebsucc(T,0);
wh... | zzfukai-veb | ut/full/succ/load/test1.c | C | mit | 427 |
#!/usr/local/bin/rc
leak=0
recurse=0
while (! ~ $#* 0 && ~ $1 -*) {
switch ($1) {
case -c; shift; leak=1
case -r; shift; recurse=1
case -*; echo 'usage:' `{basename $0} '[-r] [-c] files' >[1=2]
exit 1
}
}
fn check {
if (~ $leak 1)
valgrind -q ./$1
if not
./$1
}
fn tst {
if (check $1)
echo 'pass ... | zzfukai-veb | ut/check | Shell | mit | 614 |
#ifndef LIBVEB_H
#define LIBVEB_H
typedef unsigned int uint;
typedef unsigned char uchar;
typedef struct Veb Veb;
struct Veb
{
uchar *D;
uint k;
uint M;
};
Veb vebnew(uint, int);
uint vebsize(uint);
void vebdel(Veb, uint);
void vebput(Veb, uint);
uint vebsucc(Veb, uint);
uint vebpred(Veb, uint);
#endif
| zzfukai-veb | veb.h | C | mit | 311 |
#include <stdlib.h>
#include "veb.h"
#include "mach.c"
static uint
bytes(uint x)
{
return x/8+(x%8>0);
}
static uint
zeros(uint k)
{
return ~0<<k;
}
static uint
ones(uint k)
{
return ~zeros(k);
}
static uint
ipow(uint k)
{
return 1<<k;
}
static uint
lowbits(uint x, uint k)
{
return x&ones(k);
}
static uint
h... | zzfukai-veb | veb.c | C | mit | 5,097 |
.TH VEB 3
.SH NAME
Veb, vebnew, vebsize, vebput, vebdel, vebsucc, vebpred
\- Van Emde Boas tree structure for efficient storing and traversal of integer sets over a fixed universe of elements.
.SH SYNOPSIS
.B #include <veb.h>
.br
.PP
.B typedef unsigned char uchar;
.br
.B typedef unsigned int uint;
.br
.B typedef struc... | zzfukai-veb | man/veb.3 | Roff Manpage | mit | 2,858 |
#define WORD \
sizeof(uint)*8
static uint
clz(uint x)
{
return __builtin_clz(x);
}
static uint
ctz(uint x)
{
return __builtin_ctz(x);
}
static uint
fls(uint x)
{
return WORD-clz(x);
}
| zzfukai-veb | mach.c | C | mit | 191 |
#define WORD \
sizeof(int)*8
static const unsigned char LOG[] =
{
1, 1, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4,
5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
7, 7, ... | zzfukai-veb | alt/mach.c | C | mit | 1,496 |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... | zzhhhhh-android-gps | OpenGPSTracker/application/src/nl/sogeti/android/gpstracker/actions/Statistics.java | Java | gpl3 | 16,181 |