Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (50 sloc) 1.19 KB
if (!file_exists("urls.txt")) {
file_put_contents("urls.txt", "\n");
$urls = file("urls.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
if (isset($_POST['url'])) {
array_unshift($urls, $_POST['url']);
$urls = array_unique($urls);
file_put_contents("urls.txt", implode("\n", $urls));
header("Location: ./admin.php");
<!DOCTYPE html>
<script src=""></script>
<meta charset=utf-8 />
<title>iframe-remoting - nothing loaded, yet</title>
<script type="text/javascript">
$(function() {
$("#history").click( function() {
$("#url").val( $(this).val() );
<style type="text/css">
<form method="post">
<legend>Enter a url or select from history, then submit.</legend>
<input id="url" name="url" value="<?php echo $urls[0] ?>" />
<input type="submit" value="(Re)load" />
<select id="history" size="<?php echo count($urls) ?>">
foreach ($urls as $url) {
echo "<option>" . $url . "</option>";
Jump to Line
Something went wrong with that request. Please try again.