-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
38 lines (31 loc) · 1018 Bytes
/
search.php
File metadata and controls
38 lines (31 loc) · 1018 Bytes
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
<?php
/**
* project: ForumCatalog
* version: 2.1
* author: Max Istlyaev aka FladeX
* e-mail: FladeX@yandex.ru
* file: search.php
* last update: 2011.12.03
**/
include('config.php');
include('db.php');
include('functions.php');
include('classes/Forum.php');
include('classes/smarty/Smarty.class.php');
global $config;
global $sape;
$smarty = new Smarty();
$smarty->template_dir = $config['smarty_template_dir'];
$smarty->compile_dir = $config['smarty_compile_dir'];
$smarty->config_dir = $config['smarty_config_dir'];
$smarty->cache_dir = $config['smarty_cache_dir'];
$sape_links = $sape->return_links();
$forum = new Forum;
$recent_forums = $forum->display_recent_forums();
$sSearch_text = (isset($_REQUEST['find']) && strlen($_REQUEST['find']) > 2) ? htmlspecialchars($_REQUEST['find']) : '';
$smarty->assign('title', 'Поиск');
$smarty->assign('recent_forums', $recent_forums);
$smarty->assign('sSearch_text', $sSearch_text);
$smarty->assign('sape_links', $sape_links);
$smarty->display('search.html');
?>