This commit is contained in:
@@ -289,7 +289,7 @@ function set_output($op,$output) {
|
|||||||
redis_set($op,$output);
|
redis_set($op,$output);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
file_put_contents($SHARED_DIR."/input/".$op,$output);
|
file_put_contents($SHARED_DIR."/input/".$op.".json",$output);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -299,8 +299,9 @@ function check_files($dir,$key) {
|
|||||||
|
|
||||||
global $SHARED_DIR;
|
global $SHARED_DIR;
|
||||||
|
|
||||||
if (file_exists($SHARED_DIR."/{$dir}/".$key)) {
|
$input_file = $SHARED_DIR."/{$dir}/".$key.".json";
|
||||||
$arr[$key] = file_get_contents($SHARED_DIR."/{$dir}/".$key);
|
if (file_exists($input_file)) {
|
||||||
|
$arr[$key] = file_get_contents($input_file);
|
||||||
}
|
}
|
||||||
else $arr = "";
|
else $arr = "";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user