This commit is contained in:
2013-04-02 01:03:02 +08:00
parent d5f3b47056
commit 047cf974e6
3 changed files with 44 additions and 44 deletions

View File

@@ -1,13 +1,13 @@
<?php
/**
* 自动发布插件
* @copyright (c) xiaosong.org All Rights Reserved
*/
!defined('EMLOG_ROOT') && exit('access deined!');
$isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strstr($_SERVER['HTTP_X_REQUESTED_WITH'], 'XMLHttpRequest')) ? 1 : 0;
if ($isAjax) {
doPub();
exit();
}
emDirect(BLOG_URL);
<?php
/**
* 自动发布插件
* @copyright (c) xiaosong.org All Rights Reserved
*/
!defined('EMLOG_ROOT') && exit('access deined!');
$isAjax = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strstr($_SERVER['HTTP_X_REQUESTED_WITH'], 'XMLHttpRequest')) ? 1 : 0;
if ($isAjax) {
doPub();
exit();
}
emDirect(BLOG_URL);
?>