C:\xampp\htdocs\kptv2\admin\mod.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
<?php

ob_start
();
require_once(
"php/inc/session.php");
$session_ = new Session();
require_once(
"dbincl.php");
if((!
array_key_exists('action'$_GET)) || ($_GET['action'] == '') || 
    !
array_key_exists('mod'$_GET) || ($_GET['mod'] == '')) {
    
header("location:index.php");
    exit();
}
$module_path "modules/" .  $_GET['mod'] . "/" $_GET['action'] . ".php";

if(include(
$module_path)) {
    if(
class_exists($_GET['action'])) { // for module mode init class
        
$cls = new $_GET['action'];
        
$cls->Data_();
        
$cls->Process_();
        
$cls->Results_();
    } 
// else all processing inside included file
}
else {
    
header("location:index.php");
    exit();
}
ob_end_flush();
?>
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586