/var/www-protected/php-debug.com/www/index.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
<?php
/**
 * This the index page of PHP_Debug website
 *
 * @version V2.0
 * @since 27 aug 2006
 * @author Vernet Loic
 * @copyright Phoenix
 * @package PHP_Debug_Website
 */
 
// Applications variables & gen includes  
require_once '../config/ApplicationCfg.php';
require_once PD_WEB_INCLUDES_ROOT. 'common.inc.php';
 
 
// Page constants ==============================================================
define('PAGE_TR_ID' , 'home');
define('PAGE_ID' ,    'index'. PD_WEB_FILE_EXT);
define('_FILE_', basename(__FILE__));
define('DEFAULT_ACTION', 'GETNEWS');
 
 
// Start =======================================================================
 
// Add a debug info
$Dbg->add('I am a debug info ! Grrrrrrrrrr  ;)');
 
 
// Assign debug infos
$smarty->assign('bodyTpl', PAGE_TR_ID);
$smarty->assign('file', PD_WEB_PHP_DEBUG_ROOT. DIRECTORY_SEPARATOR. PAGE_ID);
$smarty->assign('debugBuffer', $Dbg->getOutput());       
 
 
// Display template
$smarty->display('index.tpl');       
 
?>