update 2024-12-06 20:41:37
This commit is contained in:
parent
f02e763e9f
commit
0e1eb1045b
|
@ -194,6 +194,11 @@ if (isset($_POST['update'])) {
|
|||
$command = "wget -q --show-progress -O {$finalPath} {$url}";
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
|
||||
if ($return_var !== 0) {
|
||||
$command = "curl -s -o {$finalPath} {$url}";
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
}
|
||||
|
||||
if ($return_var === 0) {
|
||||
$_SESSION['update_messages'] = array();
|
||||
$_SESSION['update_messages'][] = '<div class="alert alert-warning" style="margin-bottom: 8px;">
|
||||
|
|
|
@ -205,6 +205,15 @@ if (isset($_POST['saveSubscription'])) {
|
|||
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
|
||||
if ($return_var !== 0) {
|
||||
$command = sprintf(
|
||||
"curl -s -o %s %s",
|
||||
escapeshellarg($finalPath),
|
||||
escapeshellarg($url)
|
||||
);
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
}
|
||||
|
||||
if ($return_var === 0) {
|
||||
outputMessage("订阅链接 {$url} 更新成功!文件已保存到: {$finalPath}");
|
||||
} else {
|
||||
|
@ -277,6 +286,15 @@ if (isset($_POST['update_index'])) {
|
|||
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
|
||||
if ($return_var !== 0) {
|
||||
$command = sprintf(
|
||||
"curl -s -o %s %s",
|
||||
escapeshellarg($finalPath),
|
||||
escapeshellarg($subscriptionUrl)
|
||||
);
|
||||
exec($command . ' 2>&1', $output, $return_var);
|
||||
}
|
||||
|
||||
if ($return_var !== 0) {
|
||||
$message = "订阅 $index 无法下载文件。wget 错误信息: " . implode("\n", $output);
|
||||
} else {
|
||||
|
|
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -9,8 +9,8 @@
|
|||
<link rel="icon" href="./favicon.ico" sizes="48x48">
|
||||
<link rel="icon" href="./favicon.svg" sizes="any" type="image/svg+xml">
|
||||
<meta name="theme-color" content="#FFFFFF">
|
||||
<script type="module" crossorigin src="./assets/index-DarxJzzs.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-ISb_X3ec.css">
|
||||
<script type="module" crossorigin src="./assets/index-B9_y6stv.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="./assets/index-Cy0mJrox.css">
|
||||
<link rel="manifest" href="./manifest.webmanifest"><script id="vite-plugin-pwa:register-sw" src="./registerSW.js"></script></head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
|
|
|
@ -1 +1 @@
|
|||
if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const d=e||("document"in self?document.currentScript.src:"")||location.href;if(i[d])return;let f={};const o=e=>s(e,d),t={module:{uri:d},exports:f,require:o};i[d]=Promise.all(n.map((e=>t[e]||o(e)))).then((e=>(r(...e),f)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-DarxJzzs.js",revision:null},{url:"assets/index-ISb_X3ec.css",revision:null},{url:"index.html",revision:"4d90e45d6938a38596678dee88a88779"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));
|
||||
if(!self.define){let e,i={};const s=(s,n)=>(s=new URL(s+".js",n).href,i[s]||new Promise((i=>{if("document"in self){const e=document.createElement("script");e.src=s,e.onload=i,document.head.appendChild(e)}else e=s,importScripts(s),i()})).then((()=>{let e=i[s];if(!e)throw new Error(`Module ${s} didn’t register its module`);return e})));self.define=(n,r)=>{const f=e||("document"in self?document.currentScript.src:"")||location.href;if(i[f])return;let o={};const t=e=>s(e,f),d={module:{uri:f},exports:o,require:t};i[f]=Promise.all(n.map((e=>d[e]||t(e)))).then((e=>(r(...e),o)))}}define(["./workbox-3e8df8c8"],(function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"assets/index-B9_y6stv.js",revision:null},{url:"assets/index-Cy0mJrox.css",revision:null},{url:"index.html",revision:"3b6e0be13cf22ef54ba2972427e9d911"},{url:"registerSW.js",revision:"402b66900e731ca748771b6fc5e7a068"},{url:"favicon.svg",revision:"7f1c4521acc10694fefef8f72dd2ea5f"},{url:"pwa-192x192.png",revision:"021df52501f4357c03eebd808f40dc6a"},{url:"pwa-512x512.png",revision:"d2f759aaabcb2c44ff52b27fde3de6e0"},{url:"pwa-maskable-192x192.png",revision:"7cd11dc5f0490b349d23eef5591d10e5"},{url:"pwa-maskable-512x512.png",revision:"8c97dc367a85a5a1eba523b24f79d03b"},{url:"manifest.webmanifest",revision:"c452912633990899ffe790f985ad0db9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))}));
|
||||
|
|
|
@ -1 +1 @@
|
|||
v1.15.1
|
||||
v1.18.0
|
Loading…
Reference in New Issue