bomp to 2.1.0
fix bug
This commit is contained in:
14
autopub_ajax.php
Normal file
14
autopub_ajax.php
Normal 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);
|
||||
Reference in New Issue
Block a user