diff --git a/luci-app-neko/htdocs/nekoclash/index.php b/luci-app-neko/htdocs/nekoclash/index.php deleted file mode 100644 index b70ff9d53..000000000 --- a/luci-app-neko/htdocs/nekoclash/index.php +++ /dev/null @@ -1,455 +0,0 @@ - - * - * 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
- - -
- -
-
-
-
-
-
-
-
- - diff --git a/luci-app-neko/htdocs/nekoclash/settings.php b/luci-app-neko/htdocs/nekoclash/settings.php deleted file mode 100644 index c20a3c5ae..000000000 --- a/luci-app-neko/htdocs/nekoclash/settings.php +++ /dev/null @@ -1,280 +0,0 @@ - - * - * 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'; - -$themeDir = "$neko_www/assets/theme"; -$arrFiles = array(); -$arrFiles = glob("$themeDir/*.css"); - -$neko_version = exec("opkg list-installed | grep luci-app-neko | cut -d ' - ' -f3"); -$neko_latest = exec("curl -m 5 -f -s https://raw.githubusercontent.com/nosignals/openwrt-neko/main/luci-app-neko/Makefile | grep PKG_VERSION: | cut -d= -f2"); -$stat = 0; -if ($neko_version == $neko_latest){ - $stat = 0; -} -else { - $stat = 1; -} - -for($x=0;$xUPDATING NEKO TO VERSION ".$neko_latest."
"; - echo "DONT CLOSE THIS TAB
"; - echo "if in 30s not showing notification, you can try again update"; - file_put_contents('/tmp/neko_update', $str_update); - exec("chmod +x /tmp/neko_update"); - shell_exec("/tmp/neko_update"); - echo "

Done Updating, Please reload this tab

"; - shell_exec("rm /tmp/neko_update"); - } - else{ - echo "

Check your Internet Connection!!!.

"; - } -} -$fwstatus=shell_exec("uci get neko.cfg.new_interface"); -?> - - -
-
-
- -
Core Settings
-
-
- - -
- - Core is currently running. Please stop the service first to change the core. -
- - -
-
- - -
- -
-
-
-
-
-
-
- -
Neko Settings
-
-
- -
-
- - -
-
- - -
-
- - -
- -
-
-
-
-
-
-
- -
Software Information
-
-
- - - - - - - - - - - - - - - - - - - -
Auto Reload Firewall
-
- - -
-
Client Version -
-
-
-
- -
-
Core Version -
-
-
- Update -
-
-
-
-
-
-
- -
About
-
-
-
-
NekoClash
-

NekoClash is a family friendly Clash Proxy tool, this tool makes it easy for users to use Clash Proxy, and User can modify your own Theme based Bootstrap, inspired by OpenClash Tools. NekoClash has writen by PHP, and BASH.

-

This tool aims to make it easier to use Clash Proxy

-

If you have questions or feedback about NekoClash you can contact me on the DBAI Discord Server link below

- -
External Links
- - -

Please don't CHANGE or REMOVE this Credit!.

-
-
-
-
- \ No newline at end of file diff --git a/luci-app-nekobox/htdocs/nekobox/ping.php b/luci-app-nekobox/htdocs/nekobox/ping.php deleted file mode 100644 index b9f1b112b..000000000 --- a/luci-app-nekobox/htdocs/nekobox/ping.php +++ /dev/null @@ -1,8023 +0,0 @@ -/dev/null")); - -date_default_timezone_set($timezone ?: 'UTC'); -?> - - false, - 'message' => '' - ]; - - if (is_dir($nekoDir)) { - if (deleteNekoTmpDirectory($nekoDir)) { - $response['success'] = true; - $response['message'] = 'Directory cleared successfully.'; - } else { - $response['message'] = 'Failed to delete the directory.'; - } - } else { - $response['message'] = 'The directory does not exist.'; - } - - header('Content-Type: application/json'); - echo json_encode($response); - exit; -} - -function deleteNekoTmpDirectory($dir) { - if (!file_exists($dir)) { - return true; - } - if (!is_dir($dir)) { - return unlink($dir); - } - - foreach (scandir($dir) as $item) { - if ($item === '.' || $item === '..') { - continue; - } - - if (!deleteNekoTmpDirectory($dir . DIRECTORY_SEPARATOR . $item)) { - return false; - } - } - - return rmdir($dir); -} -?> - -"; - $singbox_autostart = $autostart; -} -?> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file