/ Published in: Other
Expand |
Embed | Plain Text
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>BTMX IMAGES</title> </head> <body> <?php $pass = 'btmx' ?> <?php if ($_GET['delete']): ?> <?php if ($_GET['passwd'] == $pass): ?> <?php if (unlink($_GET['file'])): ?> <div style="color:white;background:red"><?php echo $_GET['file'] ?> DELETED.</div><br /> <?php endif ?> <?php endif ?> <?php if ($_GET['passwd'] && $_GET['passwd'] != $pass): ?> <div style="color:white;background:red">INVALID PASSWORD</div><br /> <?php endif ?> <form action="./index.php" method="get" accept-charset="utf-8"> <input type="hidden" name="delete" value="true" id="delete"> <input type="hidden" name="file" value="<?php echo $_GET['file'] ?>" id="file"> <p>pass:<input type="password" name="passwd" value="" id="passwd"></p> <p><input type="submit" value="Continue →"></p> </form> DELETE THIS↓ ?<hr /> <img src="<?php echo $_GET['file'] ?>"/><br/><br/> <a href="./index.php">戻る</a> <hr /> <?php endif ?> <?php if ($handle = opendir('./')): ?> <?php while (false !== ($file = readdir($handle))): ?> <?php if (strpos($file, '.jpg') !== false || strpos($file, '.png') !== false || strpos($file, '.gif') !== false): ?> <img src="<?php echo $file ?>" /><br /> <?php echo $file ?> → <a href="./index.php?delete=true&file=<?php echo $file ?>">[DELETE]</a><br /> <br /> <?php endif ?> <?php endwhile ?> <?php endif ?> </body> </html>
You need to login to post a comment.
