Merge branch 'master' of gitler.moe:TechnicalSuwako/hozon.site
このコミットが含まれているのは:
コミット
bae8507622
|
@ -33,7 +33,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function archiving (string $url): array {
|
function archiving (string $url): array {
|
||||||
system("cd ".$url." && wget -N -p -x -E -r -l 1 --no-remove-listing --no-check-certificate --restrict-file-names=windows --max-redirect=3 --default-page=index.html --reject js,json,mp4,mov,mkv,mp3,ogg,ogv ".$_POST['hozonsite']);
|
system("cd ".$url." && wget -N -p -x -E -r -l 1 --user-agent=\"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36\" --no-remove-listing --no-check-certificate --restrict-file-names=windows --max-redirect=3 --default-page=index.html --reject js,json,mp4,mov,mkv,mp3,ogg,ogv ".$_POST['hozonsite']);
|
||||||
if (count(array_diff(scandir($url), array('..', '.'))) == 0) {
|
if (count(array_diff(scandir($url), array('..', '.'))) == 0) {
|
||||||
return ['code' => 0, 'err' => LOC_ERROR_HOZON_NI_SIPPAI];
|
return ['code' => 0, 'err' => LOC_ERROR_HOZON_NI_SIPPAI];
|
||||||
}
|
}
|
||||||
|
|
新しいイシューから参照