* * Contributors: * - bobbyunknown * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ include './cfg.php'; include './devinfo.php'; $str_cfg=substr($selected_config, strlen("$neko_dir/config")+1); $core_mode = exec("uci -q get neko.cfg.core_mode"); if(isset($_POST['neko'])){ $dt = $_POST['neko']; if ($core_mode == 'mihomo') { if ($dt == 'start') shell_exec("$neko_dir/core/neko -s"); if ($dt == 'disable') shell_exec("$neko_dir/core/neko -k"); if ($dt == 'restart') shell_exec("$neko_dir/core/neko -r"); if ($dt == 'clear') { shell_exec("echo 'Log cleared...' > $neko_dir/tmp/log.txt"); shell_exec("echo 'Log cleared...' > $neko_dir/tmp/neko_log.txt"); } } elseif ($core_mode == 'singbox') { if ($dt == 'start') shell_exec("$neko_dir/core/singbox -s"); if ($dt == 'disable') shell_exec("$neko_dir/core/singbox -k"); if ($dt == 'restart') shell_exec("$neko_dir/core/singbox -r"); if ($dt == 'clear') { shell_exec("echo 'Log cleared...' > $neko_dir/tmp/log.txt"); shell_exec("echo 'Log cleared...' > $neko_dir/tmp/singbox_log.txt"); } } } $neko_status=exec("uci -q get neko.cfg.enabled"); if ($core_mode == 'mihomo') { $binary_log = "$neko_dir/tmp/mihomo_log.txt"; } elseif ($core_mode == 'singbox') { $binary_log = "$neko_dir/tmp/singbox_log.txt"; } if ($core_mode == 'mihomo') { } elseif ($core_mode == 'singbox') { } ?>
Neko Home
Active Core
System Information
IP Address
Loading...
ISP
Loading...
Devices
RAM
OS Version
Kernel Version
Uptime
Neko
Status
RUNNING\n"; else echo "\n"; echo "\n"; ?>
Control
Enable Mihomo '; echo ''; echo ''; } elseif ($core_mode == 'singbox') { echo ''; echo ''; echo ''; } ?>
Running Mode
" disabled>
Traffic Statistics

-

Download

-

Upload
Binary Log