色んな修正

このコミットが含まれているのは:
守矢諏訪子 2022-05-20 21:57:09 +09:00
コミット ce09abf802
1個のファイルの変更3行の追加3行の削除

ファイルの表示

@ -16,7 +16,7 @@
'datagrid', 'datalist', 'dd', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt',
'em', 'embed', 'eventsource',
'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'frame', 'frameset',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html',
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', /*'html',*/
'i', /*'iframe',*/ 'img', 'input', 'ins', 'isindex', 'kbd', 'keygen',
'label', 'legend', 'li', 'link',
'map', 'mark', 'menu', 'meta', 'meter',
@ -40,7 +40,7 @@
$file = striptags($file); // 危険なタグの削除
// ヘッダーの追加
$file = "<div style=\"background-color: #320202; display: block; border: 4px #ff3b3b groove; color: #ea8181; padding: 10px; z-index: 999999; position: fixed; left: 0; top: 0; width: 100%;\">保存サイトでアーカイブしました。Archived with Hozon Site.<br /><a style=\"color: #ffeb3b;\" href=\"/\">トップページへ</a></div><div style=\"padding-top: 74px;\">".$file.'</div>';
$file = "<!DOCTYPE html><html><head><meta charset=\"utf-8\" /><head><body><div style=\"background-color: #320202; display: block; border: 4px #ff3b3b groove; color: #ea8181; padding: 10px; z-index: 999999; position: fixed; left: 0; top: 0; width: 100%;\">保存サイトでアーカイブしました。Archived with Hozon Site.<br /><a style=\"color: #ffeb3b;\" href=\"/\">トップページへ</a></div><div style=\"padding-top: 74px;\">".$file.'</div></body></html>';
// 保存
file_put_contents($path, $file);
@ -113,7 +113,7 @@
既に保存されたページ:<br />
<?php
foreach ($exists as $e) {
echo '<a href="/archive/'.$e.'/'.$url.'index.html">'.date('Y年-m月-d日 H:i:s', $e).'</a>';
echo '<a href="/archive/'.$e.'/'.$url.'/index.html">'.date('Y年m月d日 H:i:s', $e).'</a>';
echo "<br />";
}
?>