-
Notifications
You must be signed in to change notification settings - Fork 0
/
frame.php
35 lines (32 loc) · 867 Bytes
/
frame.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
if(isset($_GET['debug'])) {
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
define('debug',true);
}
include 'inc/master.inc.php';
//die(print_r($_GET));
$frame_to_load = $_GET['frame'];
if (empty($frame_to_load) ) {
$load = "templates/frames/404.html";
}
else {$load = "templates/frames/$frame_to_load.html";}
$template->load($load);
if ($frame_to_load == "base_frame") {
//die("base");
//http://localhost:80/ajaxv2.5/api.php?action=all&server=localhost
$id = "{$_GET['url']}/api.php?action=all&server={$_GET['id']}";
$page['id'] =$id;
//die($id);
}
//elseif ($frame_to_load == "stats_frame") {
//$id = "{$_GET['url']}/api.php?action=all&server={$_GET['id']}";
//die($id);
//}
else{
$page['id'] = $_GET['id'];
$page['url'] = $settings['url'];
}
$template->replace_vars($page);
$template->publish();