require_once(PATH."inc/header.php");
// Load template
- LOAD_TEMPLATE("surfbar_stopped");
+ if ((isset($_GET['frame'])) && ($_GET['frame'] == "start")) {
+ // Load template for "start" page
+ LOAD_TEMPLATE("surfbar_frame_start");
+ } else {
+ // Load template for stopped surfbar
+ LOAD_TEMPLATE("surfbar_stopped");
+ }
} elseif ((isset($_GET['check'])) && (isset($_GET['id'])) && (isset($_GET['salt']))) {
// Dummy next id get
SURFBAR_GET_NEXT_ID($_GET['id']);
function Init() {
countDown = window.setInterval("StartCounter()", 1000);
- parent.surfbar_url.location.href = "$content[url]";
+ window.setTimeout("InitCounter()", 500);
}
function Confirm() {
this.location.reload();
}
+function InitCounter() {
+ parent.surfbar_url.location.href = "$content[url]";
+ counter.innerHTML = $content[reload];
+}
+
function StartCounter() {
if (currCounter < 1) {
return false;
}
}
-counter.innerHTML = $content[reload];
Init();
//-->