Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (16 sloc) 279 Bytes
<?php
session_start();
$filename = '.breakpoint.txt';
// dynamic decide which file is present.
if (is_file($filename)) {
$fh = fopen($filename, 'r');
$file = fgets($fh);
fclose($fh);
unlink($filename);
}
else {
$file = 'contents.php';
}
header('Location: '.$file);
exit;
?>