php require_once inc functions php require inc languages php require l

 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
<?php
require_once('inc/functions.php');
require('inc/languages.php');
require('lib/Smarty/Smarty.class.php');
require('config.php');
/**
$db = new DB();
$data = $db->executeQuery("SELECT * from `mail` WHERE `to`='Атакайло' AND `type`='in'");
**/
$rez = mysql_query("SELECT * from `mail` WHERE `to`='Атакайло' AND `type`='in'");
$data = mysql_fetch_array($rez);
$smarty=new Smarty();
$smarty->template_dir = 'D:\Program Files (x86)\VertrigoServ\www\templates';
$smarty->compile_dir = 'D:\Program Files (x86)\VertrigoServ\www\templates_c';
$smarty->config_dir = 'D:\Program Files (x86)\VertrigoServ\www\configs';
$smarty->cache_dir = 'D:\Program Files (x86)\VertrigoServ\www\cache';
$smarty->assign('title', 'Личные сообщения');
$smarty->assign('data', $data);
$smarty->display('mail.tpl');
?>