-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathajax.php
62 lines (47 loc) · 2.03 KB
/
ajax.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
//=============================================================================/
// Open Lamp Engine version 1.0
//-----------------------------------------------------------------------------/
// Web-site: http://www.pamparam.net/ email: openlampengine@gmail.com
//-----------------------------------------------------------------------------/
// Author: r0n9.GOL email: ron9.gol@gmail.com
//-----------------------------------------------------------------------------/
// Copyright by r0n9.GOL © 2009
//=============================================================================/
// Данный код защищен авторскими правами :)
//=============================================================================/
// Файл: ajax.php
//-----------------------------------------------------------------------------/
// Назначение: Ajax
//=============================================================================/
*/
include("engine/config/config.php");
include("engine/define.php");
include(LANG_DIR."/rassian/lindex.php");
include(CLASSES ."/mysql.class.php");
include(CLASSES ."/vars.class.php");
include(CLASSES ."/tpl.class.php");
include(CLASSES ."/other.class.php");
$o_mysql = new mysql();
$o_vars = new vars();
$o_tpl = new tpl();
$o_other = new other($o_mysql, $o_tpl, $LANG);
$m = $o_vars->get["m"];
if (ob_get_length()) ob_clean();
header('Expires: Fri, 25 Dec 1980 00:00:00 GMT');
header('Last-Modified: ' . gmdate( 'D, d M Y H:i:s') . 'GMT');
header('Cache-Control: no-cache, must-revalidate');
header('Pragma: no-cache');
header("Content-type: text/plain; charset=UTF-8");
$o_tpl->addhtml("<?xml version='1.0' encoding='UTF-8' standalone='yes'?>");
$o_tpl->addhtml("<response>");
if (isset($m) && !empty($m))
if (file_exists(AJAX_MODULES."/".$m.".php"))
include(AJAX_MODULES."/".$m.".php");
else include(AJAX_MODULES."/error.php");
else include(AJAX_MODULES."/error.php");
$o_tpl->addhtml("</response>");
$o_tpl->init();
$o_mysql->close();
?>