Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 9, 2020
1 parent e776284 commit 0644bd2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions panel/engine/r/task/f.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
$GLOBALS['_']['chops'] = $_['chops'];
$GLOBALS['_']['f'] = \stream_resolve_include_path(\LOT . \DS . \implode(\DS, $_['chops'])) ?: null;

$lot = \e($GLOBALS['_' . ($_SERVER['REQUEST_METHOD'] ?? 'GET')] ?? []);
if (\is_file($_f = __DIR__ . \DS . 'f' . \DS . $fn . '.php')) {
$_ = (function($_f) {
$_ = (function($_f, $lot) {
extract($GLOBALS, \EXTR_SKIP);
$lot = \e($GLOBALS['_' . ($_SERVER['REQUEST_METHOD'] ?? 'GET')] ?? []);
return require $_f;
})($_f);
})($_f, $lot);
} else if (\function_exists($fn = "\\_\\lot\\x\\panel\\task\\f\\" . $fn)) {
$_ = \call_user_func($fn, $_, \e($GLOBALS['_' . ($_SERVER['REQUEST_METHOD'] ?? 'GET')] ?? []));
$_ = \call_user_func($fn, $_, $lot);
}

$GLOBALS['_'] = $_; // Update data
$GLOBALS['_'] = $_; // Update data

0 comments on commit 0644bd2

Please sign in to comment.