更新markdown,加上nofollow,修正链接自动识别

更新消息机制,将后台cookie识别改为前台js cookie识别
更新session机制
This commit is contained in:
joyqi
2013-11-22 12:34:00 +08:00
parent b7d24401f0
commit c86c007dca
27 changed files with 173 additions and 252 deletions
+2 -2
View File
@@ -196,7 +196,7 @@ class Widget_Contents_Attachment_Edit extends Widget_Contents_Post_Edit implemen
/** 提示信息 */
$this->widget('Widget_Notice')->set('publish' == $this->status ?
_t('文件 <a href="%s">%s</a> 已经被更新', $this->permalink, $this->title) :
_t('未归档文件 %s 已经被更新', $this->title), NULL, 'success');
_t('未归档文件 %s 已经被更新', $this->title), 'success');
}
@@ -250,7 +250,7 @@ class Widget_Contents_Attachment_Edit extends Widget_Contents_Post_Edit implemen
: array('code' => 500, 'message' => _t('没有文件被删除')));
} else {
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('文件已经被删除') : _t('没有文件被删除'), NULL,
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('文件已经被删除') : _t('没有文件被删除'),
$deleteCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
+4 -5
View File
@@ -81,8 +81,7 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
$this->widget('Widget_Service')->sendPing($this->cid);
/** 设置提示信息 */
$this->widget('Widget_Notice')->set(_t('页面 "<a href="%s">%s</a>" 已经发布', $this->permalink, $this->title),
NULL, 'success');
$this->widget('Widget_Notice')->set(_t('页面 "<a href="%s">%s</a>" 已经发布', $this->permalink, $this->title), 'success');
/** 设置高亮 */
$this->widget('Widget_Notice')->highlight($this->theId);
@@ -103,7 +102,7 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
));
} else {
/** 设置提示信息 */
$this->widget('Widget_Notice')->set(_t('草稿 "%s" 已经被保存', $this->title), NULL, 'success');
$this->widget('Widget_Notice')->set(_t('草稿 "%s" 已经被保存', $this->title), 'success');
/** 返回原页面 */
$this->response->redirect(Typecho_Common::url('write-page.php?cid=' . $this->cid, $this->options->adminUrl));
@@ -158,7 +157,7 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
}
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('页面已经被删除') : _t('没有页面被删除'), NULL,
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('页面已经被删除') : _t('没有页面被删除'),
$deleteCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
@@ -196,7 +195,7 @@ class Widget_Contents_Page_Edit extends Widget_Contents_Post_Edit implements Wid
}
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('草稿已经被删除') : _t('没有草稿被删除'), NULL,
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('草稿已经被删除') : _t('没有草稿被删除'),
$deleteCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
+4 -4
View File
@@ -581,7 +581,7 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
/** 设置提示信息 */
$this->widget('Widget_Notice')->set('post' == $this->type ?
_t('文章 "<a href="%s">%s</a>" 已经发布', $this->permalink, $this->title) :
_t('文章 "%s" 等待审核', $this->title), NULL, 'success');
_t('文章 "%s" 等待审核', $this->title), 'success');
/** 设置高亮 */
$this->widget('Widget_Notice')->highlight($this->theId);
@@ -605,7 +605,7 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
));
} else {
/** 设置提示信息 */
$this->widget('Widget_Notice')->set(_t('草稿 "%s" 已经被保存', $this->title), NULL, 'success');
$this->widget('Widget_Notice')->set(_t('草稿 "%s" 已经被保存', $this->title), 'success');
/** 返回原页面 */
$this->response->redirect(Typecho_Common::url('write-post.php?cid=' . $this->cid, $this->options->adminUrl));
@@ -671,7 +671,7 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
}
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('文章已经被删除') : _t('没有文章被删除'), NULL,
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('文章已经被删除') : _t('没有文章被删除'),
$deleteCount > 0 ? 'success' : 'notice');
/** 返回原网页 */
@@ -709,7 +709,7 @@ class Widget_Contents_Post_Edit extends Widget_Abstract_Contents implements Widg
}
/** 设置提示信息 */
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('草稿已经被删除') : _t('没有草稿被删除'), NULL,
$this->widget('Widget_Notice')->set($deleteCount > 0 ? _t('草稿已经被删除') : _t('没有草稿被删除'),
$deleteCount > 0 ? 'success' : 'notice');
/** 返回原网页 */