| @@ -1,27 +0,0 @@ | |||||
| <?php | |||||
| require "${_SERVER['DOCUMENT_ROOT']}/database.php"; | |||||
| $mysqli = set_mysql ('miteruzo_bbs'); | |||||
| $mysqli -> set_charset ('utf8'); | |||||
| $thread = $_GET['thread']; | |||||
| $id = $_GET['id']; | |||||
| $pass = $_GET['pass']; | |||||
| if ($result = $mysqli -> query (" | |||||
| SELECT | |||||
| pass | |||||
| FROM | |||||
| responses | |||||
| WHERE | |||||
| (thread_id = {$_GET['thread']}) AND (response_id = {$_GET['id']})")): | |||||
| $row = $result -> fetch_assoc (); | |||||
| if ($_GET['pass'] == $row['pass']): | |||||
| else: | |||||
| echo "残念.\n削除用パスワードが違います.<script>setTimeout (function () {window.location.href = `./?thread=$thread`}, 5000)</script>"; | |||||
| endif; | |||||
| endif; | |||||
| @@ -1,79 +0,0 @@ | |||||
| body | |||||
| { | |||||
| background-color: aquamarine; | |||||
| } | |||||
| table | |||||
| { | |||||
| margin: 24px auto 40px; | |||||
| } | |||||
| td | |||||
| { | |||||
| padding: 8px; | |||||
| } | |||||
| table, td | |||||
| { | |||||
| border: solid 1px; | |||||
| background-color: white; | |||||
| } | |||||
| #paint | |||||
| { | |||||
| margin-bottom: 64px; | |||||
| } | |||||
| #paint > div | |||||
| { | |||||
| margin: 24px auto; | |||||
| } | |||||
| h1, .illust | |||||
| { | |||||
| text-align: center; | |||||
| } | |||||
| .radio | |||||
| { | |||||
| /* width: 704px; */ | |||||
| /* display: inline-block; */ | |||||
| align-items: flex-start; | |||||
| vertical-align: middle; | |||||
| line-height: 1.5em; | |||||
| margin: auto; | |||||
| } | |||||
| .button-area, .canvas-area | |||||
| { | |||||
| text-align: center; | |||||
| } | |||||
| .canvas-area | |||||
| { | |||||
| width: 480px; | |||||
| max-width: 100%; | |||||
| position: relative; | |||||
| padding: 0; | |||||
| box-sizing: content-box; | |||||
| } | |||||
| .canvas-area:before | |||||
| { | |||||
| content: ""; | |||||
| display: block; | |||||
| padding-top: 100%; | |||||
| } | |||||
| .canvas-area > canvas | |||||
| { | |||||
| position: absolute; | |||||
| left: 0; | |||||
| top: 0; | |||||
| border: 1px solid; | |||||
| max-width: 100%; | |||||
| box-sizing: content-box; | |||||
| padding: 0; | |||||
| margin: 0; | |||||
| } | |||||
| @@ -1,16 +0,0 @@ | |||||
| <?php | |||||
| if(isset($_POST["save"])): | |||||
| echo "<script>alert('保存しました')</script>"; | |||||
| $name = htmlspecialchars($_POST["name"], ENT_QUOTES); | |||||
| $address = htmlspecialchars($_POST["address"], ENT_QUOTES); | |||||
| else: | |||||
| ?> | |||||
| <form action="" method="post"> | |||||
| <input type="text" name="name" value="<?= $name;?>"> | |||||
| <input type="text" name="address" value="<?= $address;?>"> | |||||
| <input type="submit" name="save" value="保存"> | |||||
| </form> | |||||
| <?php | |||||
| endif; | |||||
| ?> | |||||