保存サイトでアーカイブしました。Archived with Hozon Site.
トップページへ
".$file.'
'; // 保存 file_put_contents($path, $file); } if (count($_POST) > 0) { // HTTPかHTTPSじゃない場合 if (!str_starts_with($_POST['hozonsite'], 'https://') && !str_starts_with($_POST['hozonsite'], 'http://')) { $err = 'URLは「http://」又は「https://」で始めます。'; } else { $url = str_replace('https://', '', $_POST['hozonsite']); $url = str_replace('http://', '', $url); if ( !str_ends_with($url, '.html') && !str_ends_with($url, '/') && !str_ends_with($url, '.htm') && !str_ends_with($url, '.xhtml') && !str_ends_with($url, '.php') && !str_ends_with($url, '.asp') && !str_ends_with($url, '.aspx') ) $url = $url.'/'; $fullurl = 'archive/'.time(); $exists = glob('archive/*/'.$url); if ($exists) { $tmp = []; foreach ($exists as $k => $v) { $tmp[$k] = explode('/', $v)[1]; } $exists = $tmp; unset($tmp); } if (count($exists) == 0 || (count($exists) > 0 && isset($_POST['agree']))) { if (!mkdir('./'.$fullurl, 0755, true)) die('エラー'); // ダイレクトリーを作成出来なければ、死ね archiving('./'.$fullurl); // ウエブページのダウンロード // URL if (!str_ends_with($url, '.html') && !str_ends_with($url, '.htm') && !str_ends_with($url, '.php')) { if (str_ends_with($url, '/')) $url .= 'index.html'; else $url .= '.html'; } sanitize_archive($fullurl.'/'.$url); // 危険なタグの削除 header('Location: '.$fullurl.'/'.$url); // 移転 die(); } } } ?> 保存サイト
注意:JavsScriptはONです。安全・安心の為、JavaScriptをOFFにしてお願い致します。

保存サイト

トップ | β版です。バグの報告はこちらです。


0 && count($exists) > 0) { ?>

既に保存されたページ:
'.date('Y年m月d日 H:i:s', $e).''; echo "
"; } ?>

このページが既に保存されているみたいです。
本当に手続きましょうか?

どのページを保存しますか?
ソースコード | 匿名自営業076