code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
<h2>修改菜单</h2>
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/menu/edit.phtml | HTML+PHP | asf20 | 51 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Zend Framework Default Application</title>
</head>
<body>
<h1>An error occur... | zwh-web | trunk/wiki/application/core/default/views/scripts/error/error.phtml | HTML+PHP | asf20 | 778 |
<!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>
<title>kimbs.info - 500 error: Internal Server Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name... | zwh-web | trunk/wiki/application/core/default/views/scripts/error/500.phtml | HTML+PHP | asf20 | 768 |
<!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>
<title>kimbs.info - 404 error: Page not found</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="descr... | zwh-web | trunk/wiki/application/core/default/views/scripts/error/404.phtml | HTML+PHP | asf20 | 811 |
<?php if($this->pageCount):?>
<div class="paginationControl">
<?php if( isset($this->first) ):?>
<a href="<?php echo $this->url(array('page'=>$this->first));?>">首页</a>
<?php else: ?>
<span class="disabled">首页</span>
<?php endif;?>
<?php if( isset($this->previous) ):?>
<a href="<?php echo $this->url(array('page'... | zwh-web | trunk/wiki/application/core/default/views/scripts/paginator/pagelist.phtml | HTML+PHP | asf20 | 1,488 |
<section class="login_form clifx">
<form action="" method="post">
<p class="user">
<label for="name" class="optional">用户名</label>
<input name="name" id="name" value="" type="text">
</p>
<p class="pwd">
<label for="password" class="optional">密码</label>
<input name="password" id="password" valu... | zwh-web | trunk/wiki/application/core/default/views/scripts/user/login.phtml | HTML+PHP | asf20 | 605 |
<?php
echo $this->headScript();
?>
<div class="post_edit">
<form method="post" action="<?php echo "/".BLOGGER_NAME; ?>/post/build">
<input type="hidden" name="type" value="<?php echo $this->type?>" />
<p class="content">内容</p>
<textarea name="content" id="kindeditor" cols=40 rows=20><?php echo $this-... | zwh-web | trunk/wiki/application/core/default/views/scripts/post/build.phtml | HTML+PHP | asf20 | 641 |
<?php
echo $this->headScript();
?>
<div class="post_edit">
<form method="post" action="<?php echo "/".BLOGGER_NAME; ?>/post/save">
<input type="hidden" name="pid" value="<?php echo $this->pid; ?>" />
<p class="content">文章内容</p>
<textarea name="content" id="kindeditor" cols=40 rows=20></textarea><br/>... | zwh-web | trunk/wiki/application/core/default/views/scripts/post/new.phtml | HTML+PHP | asf20 | 618 |
<?php
echo $this->headScript();
?>
<div class="post_edit">
<form method="post" action="<?php echo "/".BLOGGER_NAME; ?>/post/update">
<input type="hidden" name="article_id" value="<?php echo $this->article_id;?>" />
<input type="hidden" name="section_id" value="<?php echo $this->section_id;?>" />
<p cl... | zwh-web | trunk/wiki/application/core/default/views/scripts/post/edit.phtml | HTML+PHP | asf20 | 739 |
<form method="post" action="">
<input type="hidden" name="captcha[id]" value="<?php echo $this->code; ?>" />
<input type="text" name="captcha[input]" /><br />
<input type="submit" value="submit" />
<span id="captcha"><img src="<?php echo $this->ImgDir,$this->captchaId ?>.png" border="0" />
</form>
| zwh-web | trunk/wiki/application/core/default/views/scripts/capcha/index.phtml | HTML+PHP | asf20 | 311 |
<h2>Manage Menu Items</h2>
<p>Current Menu: <?php echo $this->menu->name;?></p>
<?php
if($this->items != null) {
?>
<table>
<tr>
<th>Links </th>
<th>Label</th>
<th>Link</th>
<th>浏览权限</th>
</tr>
<?php echo $this->partialLoop('partials/menuItemRow.phtml'... | zwh-web | trunk/wiki/application/core/default/views/scripts/menuitem/index.phtml | HTML+PHP | asf20 | 563 |
<h2>Update Menu Item</h2>
<p>Current Menu: <?php echo $this->menu->name;?></p>
<p>To update this menu item fill out the form below and click submit...</p>
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/menuitem/update.phtml | HTML+PHP | asf20 | 188 |
<h2>Add Menu Item</h2>
<p>Current Menu: <?php echo $this->menu->name;?></p>
<p>To add a menu item fill out the form below and click submit...</p>
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/menuitem/add.phtml | HTML+PHP | asf20 | 179 |
<section class="category">
<table>
<thead>
<tr>
<th class="cate" style="width: 658px">类别</th>
<th style="width: 160px">操作</th>
<th style="width: 160px">排序</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">
<?php if($this->data):?>
<?php foreach($this->data as $data):?... | zwh-web | trunk/wiki/application/core/default/views/scripts/category/index.phtml | HTML+PHP | asf20 | 3,172 |
<h2>新建一个文章分类</h2>
<?php echo $this->form; ?>
| zwh-web | trunk/wiki/application/core/default/views/scripts/category/create.phtml | HTML+PHP | asf20 | 66 |
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/category/edit.phtml | HTML+PHP | asf20 | 26 |
<section class="comlist">
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shCore.js" > </script >
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shBrushes.js" ></script >
<script type= "text/javascript" >
SyntaxHighlighter.config.clipboardSwf= '/lib/synta... | zwh-web | trunk/wiki/application/core/default/views/scripts/blogger/comartlist.phtml | HTML+PHP | asf20 | 4,962 |
<?php
$this->headLink ()->prependStylesheet ( '/lib/jquery-ui/development-bundle/themes/base/jquery.ui.all.css' ); //echo $this->headLink();
?>
<script src="/lib/jquery-ui/js/jquery-ui-1.8.18.custom.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$( "#tabs" ).tabs();... | zwh-web | trunk/wiki/application/core/default/views/scripts/blogger/profile.phtml | HTML+PHP | asf20 | 11,036 |
<section class="comlist">
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shCore.js" > </script >
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shBrushes.js" ></script >
<script type= "text/javascript" >
SyntaxHighlighter.config.clipboardSwf= '/lib/synta... | zwh-web | trunk/wiki/application/core/default/views/scripts/blogger/comlist.phtml | HTML+PHP | asf20 | 4,825 |
<section class="blogger_config">
<form method="post" action="">
<dl>
<dt>博客欢迎语</dt>
<dd>
<input class="text" type="text" name="description" maxlength="20"
value="" />(建议不超过20个字)
</dd>
<dt>博客皮肤</dt>
<dd class="skinlist">
<ul class='clfix'>
<?php foreach($this->skinList as $... | zwh-web | trunk/wiki/application/core/default/views/scripts/blogger/config.phtml | HTML+PHP | asf20 | 987 |
<?php if ($this->pageCount): ?>
<!-- First page link -->
<?php if (isset($this->previous)): ?>
<a href="<?php echo $this->url(array('page' => $this->first)); ?>">
First
</a> |
<?php else: ?>
<span class="disabled">First</span> |
<?php endif; ?>
<!-- Previous page link -->
<?php if (isset($this->pr... | zwh-web | trunk/wiki/application/core/default/views/scripts/partials/pageCut.phtml | HTML+PHP | asf20 | 1,004 |
<tr>
<td class='links handle'>
<a href='<?php echo '/'.BLOGGER_NAME;?>/memfriendlink/update/id/<?php echo $this->id;?>'>修改</a> |
<a href='<?php echo '/'.BLOGGER_NAME;?>/memfriendlink/move/direction/up/id/<?php echo $this->id;?>'>
上移</a> |
<a href='<?php echo '/'.BLOGGER_... | zwh-web | trunk/wiki/application/core/default/views/scripts/partials/memfriendlinkRow.phtml | HTML+PHP | asf20 | 637 |
<tr>
<td class='links'>
<a href='<?php echo '/'.BLOGGER_NAME;?>/menu/edit/id/<?php echo $this->id;?>'>编辑</a> |
<a href='<?php echo '/'.BLOGGER_NAME;?>/menuitem/index/menu/<?php echo $this->id;?>'>管理菜单</a> |
<a href='<?php echo '/'.BLOGGER_NAME;?>/menu/delete/id/<?php echo $this->id;?... | zwh-web | trunk/wiki/application/core/default/views/scripts/partials/menuRow.phtml | HTML+PHP | asf20 | 407 |
<tr>
<td class='links'>
<a href='<?php echo '/'.BLOGGER_NAME;?>/menuitem/update/id/<?php echo $this->id;?>'>Update</a> |
<a href='<?php echo '/'.BLOGGER_NAME;?>/menuitem/move/direction/up/id/<?php echo $this->id;?>'>
Move up</a> |
<a href='<?php echo '/'.BLOGGER_NAME;?>/... | zwh-web | trunk/wiki/application/core/default/views/scripts/partials/menuItemRow.phtml | HTML+PHP | asf20 | 715 |
<section class="category">
<table>
<thead>
<tr>
<th class="cate" style="width: 658px">类别</th>
<th style="width: 160px">操作</th>
<th style="width: 160px">排序</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan="3">
<?php if($this->data):?>
<?php foreach($this->data as $data):?... | zwh-web | trunk/wiki/application/core/default/views/scripts/articlecategory/index.phtml | HTML+PHP | asf20 | 3,250 |
<h2>新建一个文章分类</h2>
<?php echo $this->form; ?>
| zwh-web | trunk/wiki/application/core/default/views/scripts/articlecategory/create.phtml | HTML+PHP | asf20 | 66 |
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/articlecategory/edit.phtml | HTML+PHP | asf20 | 26 |
<table class="friendlink">
<?php if($this->items != null) : ?>
<tr>
<th class="handle" style="width: 300px;">操作 </th>
<th style="width: 200px;">名称</th>
<th style="width: 478px;">链接地址</th>
</tr>
<?php echo $this->partialLoop('partials/memfriendLinkRow.phtml',
... | zwh-web | trunk/wiki/application/core/default/views/scripts/memfriendlink/index.phtml | HTML+PHP | asf20 | 599 |
<h2>更新友情链接</h2>
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/memfriendlink/update.phtml | HTML+PHP | asf20 | 57 |
<h2>添加友情链接</h2>
<?php echo $this->form; ?> | zwh-web | trunk/wiki/application/core/default/views/scripts/memfriendlink/add.phtml | HTML+PHP | asf20 | 58 |
<?php echo $this->navigation($this->container)->menu();?> | zwh-web | trunk/wiki/application/core/default/views/scripts/memfriendlink/render.phtml | HTML+PHP | asf20 | 57 |
<?php
echo $this->headScript();
?>
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shCore.js" > </script >
<script type = "text/javascript" src = "/lib/syntaxhighlighter/scripts/shBrushes.js" ></script >
<script type= "text/javascript" >
SyntaxHighlighter.config.clipboardSw... | zwh-web | trunk/wiki/application/core/default/views/scripts/article/detail.phtml | HTML+PHP | asf20 | 1,902 |
<div class="article_manage">
<div class="article_list">
<?php if(count($this->paginator)):?>
<?php foreach($this->paginator as $key=>$article):?>
<div class="list_item">
<div class="title <?php echo $article['atype']?>"><h2><a href="<?php echo "/".BLOGGER_NAME."/article/detail/id/".$article['id']?>"><?php e... | zwh-web | trunk/wiki/application/core/default/views/scripts/article/list.phtml | HTML+PHP | asf20 | 3,786 |
<div class="article_manage">
<div class="article_list">
<?php if(count($this->paginator)):?>
<?php foreach($this->paginator as $key=>$article):?>
<div class="list_item">
<div class="title <?php echo $article['atype']?>"><h2><a href="<?php echo "/".BLOGGER_NAME."/article/detail/id/".$article['id']."/key/".$t... | zwh-web | trunk/wiki/application/core/default/views/scripts/article/search.phtml | HTML+PHP | asf20 | 3,959 |
<article class="article">
<?php if($this->main_page):?>
<?php echo $this->main_page?>
<?php else:?>
<aside>
<h1 style="font-size:30px;margin-top:90px;">欢迎使用 虫儿飞 开发文档系统!</h1>
</aside>
<?php endif;?>
<aside>
<a href="<?php echo '/'.BLOGGER_NAME.'/post/build/type/main_page'?>">修改</a>
<... | zwh-web | trunk/wiki/application/core/default/views/scripts/article/index.phtml | HTML+PHP | asf20 | 371 |
<div class="article_manage">
<div class="article_list">
<?php if($this->articledata):?>
<?php foreach($this->articledata as $key=>$article):?>
<div class="list_item">
<div class="title <?php echo $article['atype']?>"><h2><a href="<?php echo "/".BLOGGER_NAME."/article/detail/id/".$article['id']?>"><?php echo... | zwh-web | trunk/wiki/application/core/default/views/scripts/article/catespec.phtml | HTML+PHP | asf20 | 3,937 |
<?php
/**
* this class loads the cblog skin
*
*/
class Zend_View_Helper_LoadSkinImage extends Zend_View_Helper_Abstract
{
public function loadSkinImage ($skin)
{
// load the skin config file
$skinData = new Zend_Config_Xml('../skins/' . $skin . '/skin.xml');
$image = $skinDat... | zwh-web | trunk/wiki/application/core/default/views/helpers/LoadSkinImage.php | PHP | asf20 | 396 |
<?php
/**
* this class loads the cblog skin
*
*/
class Zend_View_Helper_LoadSkin extends Zend_View_Helper_Abstract
{
public function loadSkin ($skin)
{
// load the skin config file
$skinData = new Zend_Config_Xml('../skins/' . $skin . '/skin.xml');
$stylesheets = ... | zwh-web | trunk/wiki/application/core/default/views/helpers/LoadSkin.php | PHP | asf20 | 836 |
<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
public function _inintSession()
{
Zend_Session::start();
}
public function _initView(){
$skinData = new Zend_Config_Xml(BLOG_ROOT.'/'.BLOGGER_NAME.'/config/skin.xml');
$skin = $skinData->name;
$view = new Zend_View();
$view->skin = $ski... | zwh-web | trunk/wiki/application/core/default/Bootstrap.php | PHP | asf20 | 1,966 |
<?php
class Application_Model_CategoryMapper
{
protected $_dbTable;
public function setDbTable($dbTable)
{
if (is_string($dbTable)) {
$dbTable = new $dbTable();
}
if (!$dbTable instanceof Zend_Db_Table_Abstract) {
throw new Exception('Invalid tabl... | zwh-web | trunk/wiki/application/core/default/models/CategoryMapper.php | PHP | asf20 | 4,168 |
<?php
class Application_Model_AccountMapper
{
protected $_dbTable;
public function setDbTable($dbTable)
{
if (is_string($dbTable)) {
$dbTable = new $dbTable();
}
if (!$dbTable instanceof Zend_Db_Table_Abstract) {
throw new Exception('Invalid table... | zwh-web | trunk/wiki/application/core/default/models/AccountMapper.php | PHP | asf20 | 1,355 |
<?php
class Application_Model_Comment
{
protected $_id;
protected $_account_id;
protected $_nickname;
protected $_post_time;
protected $_comment_id;
protected $_article_id;
protected $_content;
public function __construct(array $options = null)
{
if (is_ar... | zwh-web | trunk/wiki/application/core/default/models/Comment.php | PHP | asf20 | 2,623 |
<?php
class Application_Model_User
{
protected $_username;
protected $_password;
protected $_id;
public function __construct(array $options = null)
{
if (is_array($options)) {
$this->setOptions($options);
}
}
public function __set($name, $val... | zwh-web | trunk/wiki/application/core/default/models/User.php | PHP | asf20 | 1,755 |
<?php
class Application_Model_Account
{
public function __construct(array $options = null)
{
if (is_array($options)) {
$this->setOptions($options);
}
}
public function __set($name, $value)
{
$method = 'set' . $name;
if (('mapper' == $... | zwh-web | trunk/wiki/application/core/default/models/Account.php | PHP | asf20 | 1,087 |
<?php
class Application_Model_UserMapper
{
protected $_dbTable;
public function setDbTable($dbTable)
{
if (is_string($dbTable)) {
$dbTable = new $dbTable();
}
if (!$dbTable instanceof Zend_Db_Table_Abstract) {
throw new Exception('Invalid table da... | zwh-web | trunk/wiki/application/core/default/models/UserMapper.php | PHP | asf20 | 1,824 |
<?php
class Application_Model_CommentMapper
{
protected $_dbTable;
public function setDbTable($dbTable)
{
if (is_string($dbTable)) {
$dbTable = new $dbTable();
}
if (!$dbTable instanceof Zend_Db_Table_Abstract) {
throw new Exception('Invalid table... | zwh-web | trunk/wiki/application/core/default/models/CommentMapper.php | PHP | asf20 | 4,345 |
<?php
class Application_Model_Category
{
protected $_id;
protected $_cate;
protected $_account_id;
public function __construct(array $options = null)
{
if (is_array($options)) {
$this->setOptions($options);
}
}
public function __set($name, $value)
{
$method = 'set' . $name;
if ((... | zwh-web | trunk/wiki/application/core/default/models/Category.php | PHP | asf20 | 1,421 |
<?php
class Application_Model_DbTable_MenuItem extends Zend_Db_Table_Abstract {
protected $_name = 'menu_items';
protected $_referenceMap = array(
'Menu' => array(
'columns' => array('menu_id'),
'refTableClass' => 'Application_Model_DbTable_Menu',
'refColumns' => array... | zwh-web | trunk/wiki/application/core/default/models/DbTable/MenuItem.php | PHP | asf20 | 3,502 |
<?php
class Application_Model_DbTable_ViewStatistic extends Zend_Db_Table_Abstract {
protected $_name = 'view_statistic';
public function addViewIp($account_id, $ip)
{
$row = $this->createRow();
$row->account_id = $account_id;
$row->ip = $ip;
return $row->save();
}
} | zwh-web | trunk/wiki/application/core/default/models/DbTable/ViewStatistic.php | PHP | asf20 | 295 |
<?php
class Application_Model_DbTable_Article extends Zend_Db_Table_Abstract
{
protected $_name = 'ui_article';
public function getLastPosition ($id)
{
$select = $this->select();
$select->where('parent_id = ?', $id);
$select->order('position DESC');
$row = $this->fetchRow($sel... | zwh-web | trunk/wiki/application/core/default/models/DbTable/Article.php | PHP | asf20 | 425 |
<?php
class Application_Model_DbTable_Comment extends Zend_Db_Table_Abstract
{
protected $_name = 'comment';
}
| zwh-web | trunk/wiki/application/core/default/models/DbTable/Comment.php | PHP | asf20 | 125 |
<?php
class Application_Model_DbTable_User extends Zend_Db_Table_Abstract
{
protected $_name = 'user';
}
| zwh-web | trunk/wiki/application/core/default/models/DbTable/User.php | PHP | asf20 | 112 |
<?php
class Application_Model_DbTable_Atype extends Zend_Db_Table_Abstract
{
protected $_name = 'atype';
}
| zwh-web | trunk/wiki/application/core/default/models/DbTable/Atype.php | PHP | asf20 | 121 |
<?php
class Application_Model_DbTable_Menu extends Zend_Db_Table_Abstract
{
protected $_name = 'menus';
protected $_dependentTables = array('Application_Model_DbTable_MenuItem');
protected $_referenceMap = array(
'Menu' => array(
'columns' => array('parent_id'),
... | zwh-web | trunk/wiki/application/core/default/models/DbTable/Menu.php | PHP | asf20 | 1,396 |
<?php
class Application_Model_DbTable_MemfriendLink extends Zend_Db_Table_Abstract {
protected $_name = 'memfriend_link';
public function getItemsByMenu($accountId)
{
$select = $this->select();
$select->where("account_id = ?", $accountId);
$select->order("position");
$items = $this->fetchAll($select)... | zwh-web | trunk/wiki/application/core/default/models/DbTable/MemfriendLink.php | PHP | asf20 | 3,195 |
<?php
class Application_Model_DbTable_ArticleCategory extends Zend_Db_Table_Abstract
{
protected $_name = 'ui_article_category';
public function createCate($name,$id,$project_id)
{
$row = $this->createRow();
$row->subcate_name = $name;
$row->cate_id = $id;
$row->project_id =... | zwh-web | trunk/wiki/application/core/default/models/DbTable/ArticleCategory.php | PHP | asf20 | 3,033 |
<?php
class Application_Model_DbTable_Account extends Zend_Db_Table_Abstract
{
protected $_name = 'account';
public function getAccount($id)
{
$select = $this->select();
$select->where("id = ?", $id);
$items = $this->fetchRow($select);
return $items;
}
public ... | zwh-web | trunk/wiki/application/core/default/models/DbTable/Account.php | PHP | asf20 | 2,110 |
<?php
class Application_Model_DbTable_Region extends Zend_Db_Table_Abstract
{
protected $_name = 'region';
}
| zwh-web | trunk/wiki/application/core/default/models/DbTable/Region.php | PHP | asf20 | 124 |
<?php
class Application_Model_DbTable_Project extends Zend_Db_Table_Abstract
{
protected $_name = 'ui_Project';
}
| zwh-web | trunk/wiki/application/core/default/models/DbTable/Project.php | PHP | asf20 | 128 |
<?php
class Application_Model_DbTable_Category extends Zend_Db_Table_Abstract
{
protected $_name = 'ui_category';
public function createCate($name,$pro_id)
{
$row = $this->createRow();
$row->name = $name;
$row->project_id = $pro_id;
$row->position = $this->_getLastPosition()... | zwh-web | trunk/wiki/application/core/default/models/DbTable/Category.php | PHP | asf20 | 3,050 |
<?php
class CapchaController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
}
public function indexAction()
{
$this->codeSession = new Zend_Session_Namespace('code'); //在默认构造函数里实例化
$captcha = new Zend_Captcha_Image(... | zwh-web | trunk/wiki/application/core/default/controllers/CapchaController.php | PHP | asf20 | 1,256 |
<?php
class MenuitemController extends Zend_Controller_Action {
public function init() {
/* Initialize action controller here */
}
public function indexAction() {
$menu = $this->_request->getParam ( 'menu' );
$mdlMenu = new Application_Model_DbTable_Menu ();
$mdlMenuItem = new Application_Model_DbTab... | zwh-web | trunk/wiki/application/core/default/controllers/MenuitemController.php | PHP | asf20 | 3,118 |
<?php
class CommentController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
$user = new Zend_Session_Namespace('user');
if(!isset($user->nickname)){
$this->_redirect('/user/login');
}
}
/*
* 功能: 发表评论
* 权限: 需要登陆
*/
public functi... | zwh-web | trunk/wiki/application/core/default/controllers/CommentController.php | PHP | asf20 | 1,481 |
<?php
class ErrorController extends Zend_Controller_Action
{
public function init(){
Zend_Layout::startMvc(APPLICATION_PATH.'/layouts/scripts/error');
$this->_helper->layout->setLayout('layout');
}
/* public function errorAction()
{
$errors = $this->_getParam('error_handler');
switch ($errors->... | zwh-web | trunk/wiki/application/core/default/controllers/ErrorController.php | PHP | asf20 | 2,170 |
<?php
class UserController extends Zend_Controller_Action {
public function init() {
/* Initialize action controller here */
Zend_Layout::startMvc(APPLICATION_PATH.'/layouts/scripts');
$response = $this->getResponse();
$response->insert('logo', '/global/images/logo.jpg');
$this->_helper->layout->... | zwh-web | trunk/wiki/application/core/default/controllers/UserController.php | PHP | asf20 | 2,983 |
<?php
class BloggerController extends Zend_Controller_Action {
private $_numPerPage = 10;
private $_pageRange = 10;
public function init() {
$this->_helper->layout->setLayout ( 'container_layout' );
$user = new Zend_Session_Namespace('user');
if($user->nickname!=BLOGGER_NAME){
$this->_redirect('/use... | zwh-web | trunk/wiki/application/core/default/controllers/BloggerController.php | PHP | asf20 | 12,943 |
<?php
class ArticlecategoryController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
/*
*这里进行用户身份确认
*/
$user = new Zend_Session_Namespace('user');
if($user->name!=BLOGGER_NAME){
$this->_redirect('/user/login');
}
$this->_helper-... | zwh-web | trunk/wiki/application/core/default/controllers/ArticlecategoryController.php | PHP | asf20 | 4,745 |
<?php
class MenuController extends Zend_Controller_Action {
public function init() {
/* Initialize action controller here */
}
public function indexAction() {
// action body
$mdlMenu = new Application_Model_DbTable_Menu ();
$this->view->menus = $mdlMenu->getMenus ();
//$this->_redirect ( '/' );... | zwh-web | trunk/wiki/application/core/default/controllers/MenuController.php | PHP | asf20 | 2,949 |
<?php
class MemfriendlinkController extends Zend_Controller_Action {
public function init() {
/* Initialize action controller here */
$this->_helper->layout->setLayout('container_layout');
}
public function indexAction() {
$mdlMemfriendLink = new Application_Model_DbTable_MemfriendLink();
$this->view... | zwh-web | trunk/wiki/application/core/default/controllers/MemfriendlinkController.php | PHP | asf20 | 3,175 |
<?php
class LoginController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
$this->_helper->layout->setLayout('container_layout');
}
public function indexAction()
{
// action body
}
}
| zwh-web | trunk/wiki/application/core/default/controllers/LoginController.php | PHP | asf20 | 305 |
<?php
class CategoryController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
/*
*这里进行用户身份确认
*/
$user = new Zend_Session_Namespace('user');
if($user->name!=BLOGGER_NAME){
$this->_redirect('/user/login');
}
$this->_helper->layout... | zwh-web | trunk/wiki/application/core/default/controllers/CategoryController.php | PHP | asf20 | 4,675 |
<?php
class PostController extends Zend_Controller_Action
{
public function init()
{
/* Initialize action controller here */
/*
*这里进行用户身份确认
*/
$user = new Zend_Session_Namespace('user');
if($user->name!=BLOGGER_NAME){
$this->_redirect('/user/login');
}
$this->_helper->layout->setL... | zwh-web | trunk/wiki/application/core/default/controllers/PostController.php | PHP | asf20 | 3,704 |
<?php
class ArticleController extends Zend_Controller_Action
{
private $_numPerPage = 15;
private $_pageRange = 10;
public function init()
{
/* Initialize action controller here */
$widget = new Cblog_Widget();
//$widget->get_widgets();
Zend_Layout::startMvc(APPLICATION_PATH.... | zwh-web | trunk/wiki/application/core/default/controllers/ArticleController.php | PHP | asf20 | 6,778 |
<?php
class Application_Form_CategoryEdit extends Zend_Form{
public function init()
{
$this->setMethod('post');
// create new element
$id = $this->createElement('hidden', 'id');
// add the element to the form
$this->addElement($id);
// create new element
$name = $this->createElement('tex... | zwh-web | trunk/wiki/application/core/default/forms/CategoryEdit.php | PHP | asf20 | 735 |
<?php
class Application_Form_MenuItem extends Zend_Form
{
public function init() {
$this->setMethod ( 'post' );
// create new element
$id = $this->createElement ( 'hidden', 'id' );
// element options
$id->setDecorators ( array ('ViewHelper' ) );
// add the element to the form
$this->addElement ( $i... | zwh-web | trunk/wiki/application/core/default/forms/MenuItem.php | PHP | asf20 | 1,440 |
<?php
class Application_Form_Menu extends Zend_Form{
public function init()
{
$this->setMethod('post');
// create new element
$id = $this->createElement('hidden', 'id');
// element options
$id->setDecorators(array('ViewHelper'));
// add the element to the form
$this->addElement($id);
... | zwh-web | trunk/wiki/application/core/default/forms/Menu.php | PHP | asf20 | 763 |
<?php
class Application_Form_BugReportForm extends Zend_Form
{
public function init()
{
$this->setName('contact_us');
$title = new Zend_Form_Element_Select('title');
$title->setLabel('Title')
->setMultiOptions(array('mr'=>'Mr', 'mrs'=>'Mrs'))
... | zwh-web | trunk/wiki/application/core/default/forms/BloggerConfig.php | PHP | asf20 | 2,021 |
<?php
class Application_Form_MemfriendLink extends Zend_Form
{
public function init() {
$this->setMethod ( 'post' );
// create new element
$id = $this->createElement ( 'hidden', 'id' );
// element options
$id->setDecorators ( array ('ViewHelper' ) );
// add the element to the form
$this->addElement... | zwh-web | trunk/wiki/application/core/default/forms/MemfriendLink.php | PHP | asf20 | 1,255 |
<?php
class Application_Form_BugReportForm extends Zend_Form
{
public function init()
{
/* Form Elements & Other Definitions Here ... */
$author = $this->createElement('text', 'author');
$author->setLabel('Enter your name:');
$author->setRequired(TRUE);
$author->setAttrib('size', 3... | zwh-web | trunk/wiki/application/core/default/forms/BugReportForm.php | PHP | asf20 | 641 |
<?php
class Application_Form_Category extends Zend_Form{
public function init()
{
$this->setMethod('post');
// create new element
$idElem = $this->createElement('hidden', 'id');
// add the element to the form
$this->addElement($idElem);
// create new element
$name = $this->createElement(... | zwh-web | trunk/wiki/application/core/default/forms/Category.php | PHP | asf20 | 739 |
<?php
class Application_Form_BugReportForm extends Zend_Form
{
public function init()
{
/* Form Elements & Other Definitions Here ... */
$author = $this->createElement('text', 'author');
$author->setLabel('Enter your name:');
$author->setRequired(TRUE);
$author->setAttrib('size', 3... | zwh-web | trunk/wiki/application/forms/BugReportForm.php | PHP | asf20 | 641 |
<?php
class Application_Form_Login extends Zend_Form
{
public function init()
{
/* Form Elements & Other Definitions Here ... */
$author = $this->createElement('text', 'username');
$author->setLabel('Enter your name');
$this->addElement($author);
$this->addElement('password', 'pa... | zwh-web | trunk/wiki/application/forms/Login.php | PHP | asf20 | 1,129 |
<?php
return array(
'LOGO' => '/global/images/logo.jpg',
'CACHE' => 'false',
'LIFETIME' => 1,
);
?> | zwh-web | trunk/wiki/data/config.inc.php | PHP | asf20 | 120 |
<?php
class Cblog_Mail{
private $_sender;
private $_email;
private $_password;
private $_subject;
private $_message;
private $_username;
private $_config;
private $_server;
private $_transport='smtp';//默认的是smtp
private $_toEmail;
private $_attachment;//这里附件的传值是一个Zend_Form_Element
... | zwh-web | trunk/wiki/library/Cblog/Mail.php | PHP | asf20 | 3,707 |
<?
class Cblog_Smtp
{
/* Public Variables */
var $smtp_port;
var $time_out;
var $host_name;
var $log_file;
var $relay_host;
var $debug;
var $auth;
var $user;
var $pass;
/* Private Variables */
var $sock;
/* Constractor */
function __construct($relay_host = "", $smtp_port = 25,$auth = false,$user,$pa... | zwh-web | trunk/wiki/library/Cblog/Smtp.php | PHP | asf20 | 7,728 |
<?php
| zwh-web | trunk/wiki/library/Cblog/cblog.php | PHP | asf20 | 7 |
<?php
class Cblog_Widget extends Zend_View_Helper_Action{
private $left_component = '';
private $right_component = "";
public function get_right_widgets()
{
$widget_config_path = APPLICATION_PATH.'/../data/init/widgets.config.xml';
$widgetData = simplexml_load_file($widget_config_path);
if(!empty(... | zwh-web | trunk/wiki/library/Cblog/Widget.php | PHP | asf20 | 1,278 |
<?php
class Cblog_RealIp {
public function getIp() {
if (isset ( $_SERVER )) {
if (isset ( $_SERVER ['HTTP_X_FORWARDED_FOR'] )) {
$arr = explode ( ',', $_SERVER ['HTTP_X_FORWARDED_FOR'] );
/* 取X-Forwarded-For中第一个非unknown的有效IP字符串 */
foreach ( $arr as $ip ) {
$ip = trim ( $ip );
... | zwh-web | trunk/wiki/library/Cblog/RealIp.php | PHP | asf20 | 1,108 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
</html> | zwh-web | trunk/wiki/tests/NewFile.html | HTML | asf20 | 258 |
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'testing'... | zwh-web | trunk/wiki/tests/bootstrap.php | PHP | asf20 | 571 |
body{
background:url(../images/body_bg.jpg) 0 0 repeat;
}
.J_TBox{
margin-bottom: 10px;
}
.J_TBox .hd{
border-bottom:none;
color: #393939;
font-size: 12px;
font-weight: normal;
height: 27px;
line-height: 27px;
padding: 0 0 0 15px;
background-color:#FFF;
}
.J_TBox .bd{
... | zwh-web | trunk/wiki/public/skins/default/css/widgets.css | CSS | asf20 | 2,896 |
@CHARSET "UTF-8";
.back_header {
background: url(/global/images/backend_nav.gif) repeat-x 0 0;
height: 90px;
position: relative;
}
.back_header .help_nav{
position: absolute;
right: 20px;
bottom:30px;
}
#menu {
width: 980px;
margin: 0 auto;
padding-top: 20px;
}
#menu ... | zwh-web | trunk/wiki/public/global/css/admin.css | CSS | asf20 | 3,937 |
@CHARSET "UTF-8";
body{
background-color: #FFF;
}
footer .copyright{
border: none;
border-top: 1px solid #CCC;
background-color:#FFF;
}
.login_form{
font: 12px/1.5 Tahoma,Helvetica,Arial,'宋体',sans-serif;
height: 350px;
margin: 80px 0;
background: url(/global/images/notebo... | zwh-web | trunk/wiki/public/global/css/login_layout.css | CSS | asf20 | 2,819 |
@CHARSET "UTF-8";
body {
background-color: #FFF;
}
footer .copyright {
border: none;
border-top: 1px solid #CCC;
background-color: #FFF;
}
/*
* 注册页面
*/
.blogger_profile {
background: url(/global/images/three_leaves.jpg) 650px center no-repeat;
padding-bottom: 60px;
}
.blogger_prof... | zwh-web | trunk/wiki/public/global/css/system.css | CSS | asf20 | 1,867 |
@CHARSET "UTF-8";
body{
background-color: #FFF;
}
footer .copyright{
background-color:#FFF;
}
| zwh-web | trunk/wiki/public/global/css/login.css | CSS | asf20 | 109 |
@CHARSET "UTF-8";
#top_nav {
border: none;
}
#top_nav .help_nav {
margin-top: 5px;
}
.back_header {
background: url(/global/images/backend_nav.gif) repeat-x 0 0;
height: 90px;
}
#menu {
width: 980px;
margin: 0 auto;
padding-top: 10px;
}
#menu ul {
display: inline;
}
#m... | zwh-web | trunk/wiki/public/global/css/backend.css | CSS | asf20 | 3,892 |
@CHARSET "UTF-8";
/*
* body style
*/
body{
background: #FFF;
}
/*
* 分页样式
*/
.paginationControl{
margin-top: 15px;
}
.paginationControl .page_num{
padding: 1px 4px;
border: 1px solid #CCC;
text-decoration: none;
color: #000;
}
.paginationControl a.page_num:hover{
borde... | zwh-web | trunk/wiki/public/global/css/main.css | CSS | asf20 | 11,226 |
@CHARSET "UTF-8";
header, footer, article, section, nav, menu, hgroup {
display: block;
}
body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td {
margin: 0;
padding: 0;
}
body, button, input, select, textarea {
... | zwh-web | trunk/wiki/public/global/css/global.css | CSS | asf20 | 2,889 |
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'product... | zwh-web | trunk/wiki/public/zhouwenhong/index.php | PHP | asf20 | 950 |
<?php
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));
// Define application environment
defined('APPLICATION_ENV')
|| define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'product... | zwh-web | trunk/wiki/public/likai/index.php | PHP | asf20 | 1,016 |