...
This commit is contained in:
parent
2b20cf08b7
commit
4c4bae1fc1
10
xsaf3.php
10
xsaf3.php
|
@ -1,11 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
define('DEBUG', false);
|
define('DEBUG', true);
|
||||||
define('XSAF_VERSION', 3);
|
define('XSAF_VERSION', 3);
|
||||||
define('AUTOBLOG_FILE_NAME', 'autoblog.php');
|
define('AUTOBLOG_FILE_NAME', 'autoblog.php');
|
||||||
define('ALLOW_REMOTE_DB_DL', false);
|
define('ALLOW_REMOTE_DB_DL', true);
|
||||||
define('ALLOW_REMOTE_MEDIA_DL', false);
|
define('ALLOW_REMOTE_MEDIA_DL', true);
|
||||||
define('EXEC_TIME', 5);
|
define('EXEC_TIME', 10);
|
||||||
|
|
||||||
header("HTTP/1.0 403 Forbidden"); /* Uncivilized method to prevent bot indexing, huh :) */
|
header("HTTP/1.0 403 Forbidden"); /* Uncivilized method to prevent bot indexing, huh :) */
|
||||||
header('X-Robots-Tag: noindex'); /* more civilized method, but bots may not all take into account */
|
header('X-Robots-Tag: noindex'); /* more civilized method, but bots may not all take into account */
|
||||||
|
@ -120,7 +120,7 @@ function xsafimport($xsafremote, $max_exec_time) {
|
||||||
$json_media_import = file_get_contents($remote_media);
|
$json_media_import = file_get_contents($remote_media);
|
||||||
if(DEBUG)
|
if(DEBUG)
|
||||||
debug($json_media_import);
|
debug($json_media_import);
|
||||||
if(!empty($json_media_import) && !&& !strpos($json_media_import, '[]}"'))
|
if(!empty($json_media_import) && !strpos($json_media_import, '[]}"'))
|
||||||
{
|
{
|
||||||
file_put_contents('./'. $foldername .'/import.json', $json_media_import);
|
file_put_contents('./'. $foldername .'/import.json', $json_media_import);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue