bomp to 2.1.0

fix bug
This commit is contained in:
岳松
2013-08-25 18:31:23 +08:00
parent 047cf974e6
commit 0153b4b632
4 changed files with 54 additions and 57 deletions

14
autopub_ajax.php Normal file
View File

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