update url scurity 2
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// filename: /www/wwwroot/bilspro/load/check_voucher_all/check_voucher.php
|
||||
// filename: /www/wwwroot/manjapro-clean/load/check_voucher_all/check_voucher.php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
@@ -18,8 +18,8 @@ $start_time = microtime(true);
|
||||
// ============================
|
||||
file_put_contents("/tmp/debug_check_voucher.log", date('Y-m-d H:i:s') . " RUN\n", FILE_APPEND);
|
||||
|
||||
include "/www/wwwroot/bilspro/config/connect.php";
|
||||
include "/www/wwwroot/bilspro/config/routeros_api.class.php";
|
||||
include "/www/wwwroot/manjapro-clean/config/connect.php";
|
||||
include "/www/wwwroot/manjapro-clean/config/routeros_api.class.php";
|
||||
|
||||
// ============================
|
||||
// PARAMETER CLI
|
||||
@@ -47,7 +47,7 @@ if (!$nama_safe) {
|
||||
$nama_safe = 'unknown';
|
||||
}
|
||||
|
||||
$logDir = "/www/wwwroot/bilspro/load/check_voucher_all/logs";
|
||||
$logDir = "/www/wwwroot/manjapro-clean/load/check_voucher_all/logs";
|
||||
|
||||
if (!is_dir($logDir)) {
|
||||
mkdir($logDir, 0777, true);
|
||||
@@ -58,7 +58,7 @@ $logFile = "{$logDir}/voucher_{$nama_safe}.log";
|
||||
// ============================
|
||||
// GLOBAL SUMMARY LOG
|
||||
// ============================
|
||||
$mainLogFile = "/www/wwwroot/bilspro/load/check_voucher_all/main_cli.log";
|
||||
$mainLogFile = "/www/wwwroot/manjapro-clean/load/check_voucher_all/main_cli.log";
|
||||
|
||||
// ============================
|
||||
// FUNCTION LOG (NEW TOP + LIMIT 5000)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
// filename: /www/wwwroot/bilspro/load/check_voucher_all/load_multi_cek.php
|
||||
// filename: /www/wwwroot/manjapro-clean/load/check_voucher_all/load_multi_cek.php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
@@ -25,7 +25,7 @@ register_shutdown_function(function () use ($lockFile) {
|
||||
@unlink($lockFile);
|
||||
});
|
||||
|
||||
include "/www/wwwroot/bilspro/config/connect.php";
|
||||
include "/www/wwwroot/manjapro-clean/config/connect.php";
|
||||
|
||||
$max_process = 5;
|
||||
|
||||
@@ -62,9 +62,9 @@ try {
|
||||
// ============================
|
||||
// COMMAND FIX (NO MULTILINE)
|
||||
// ============================
|
||||
$command = "/usr/bin/php /www/wwwroot/bilspro/load/check_voucher_all/check_voucher.php "
|
||||
$command = "/usr/bin/php /www/wwwroot/manjapro-clean/load/check_voucher_all/check_voucher.php "
|
||||
. "{$m_ip} {$m_user} {$m_pass} {$m_port} {$idsm} {$nama} "
|
||||
. ">> /www/wwwroot/bilspro/load/check_voucher_all/log_worker.log 2>&1 &";
|
||||
. ">> /www/wwwroot/manjapro-clean/load/check_voucher_all/log_worker.log 2>&1 &";
|
||||
|
||||
exec($command);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user