-
Notifications
You must be signed in to change notification settings - Fork 0
/
search_more.php
48 lines (43 loc) · 1.72 KB
/
search_more.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
<?php
/******************************************************************************
Etano
===============================================================================
File: search_more.php
$Revision$
Software by: DateMill (http://www.datemill.com)
Copyright by: DateMill (http://www.datemill.com)
Support at: http://www.datemill.com/forum
*******************************************************************************
* See the "docs/licenses/etano.txt" file for license. *
******************************************************************************/
//define('CACHE_LIMITER','private');
require 'includes/common.inc.php';
require _BASEPATH_.'/includes/user_functions.inc.php';
check_login_member('search_advanced');
$tpl=new phemplate(_BASEPATH_.'/skins_site/'.get_my_skin().'/','remove_nonjs');
$search_fields=array();
foreach ($_pcats as $pcat_id=>$pcat) {
if (((int)$pcat['access_level']) & ((int)$_SESSION[_LICENSE_KEY_]['user']['membership'])) {
for ($i=0;isset($pcat['fields'][$i]);++$i) {
if (isset($_pfields[$pcat['fields'][$i]]->config['searchable'])) {
$search_fields[]=$pcat['fields'][$i];
}
}
}
}
sort($search_fields,SORT_NUMERIC);
$search_loop=create_search_form($search_fields);
$tpl->set_file('content','search_more.html');
$tpl->set_loop('search',$search_loop);
$tpl->process('content','content',TPL_LOOP);
$tpl->drop_loop('search');
unset($search_loop);
$tplvars['title']=$GLOBALS['_lang'][247];
$tplvars['page_title']=$GLOBALS['_lang'][247];
$tplvars['page']='search_more';
$tplvars['css']='search_more.css';
if (is_file('search_more_left.php')) {
include 'search_more_left.php';
}
$no_timeout=true;
include 'frame.php';