commit | author | age
|
3e083b
|
1 |
<?php |
B |
2 |
|
|
3 |
|
|
4 |
define('IN_ECS', true); |
|
5 |
|
|
6 |
require(dirname(__FILE__) . '/includes/init.php'); |
|
7 |
|
|
8 |
if ((DEBUG_MODE & 2) != 2) |
|
9 |
{ |
|
10 |
$smarty->caching = true; |
|
11 |
} |
|
12 |
$act = $_REQUEST['act']; |
|
13 |
if($act == 'supplier_tag'){ |
|
14 |
include('includes/cls_json.php'); |
|
15 |
$json = new JSON; |
|
16 |
$res = array('err_msg' => '', 'result' => ''); |
|
17 |
$id = intval($_GET['id']); |
|
18 |
$res['result'] = insert_supplier_list(array('id'=>$id)); |
|
19 |
die($json->encode($res)); |
|
20 |
}else{ |
|
21 |
$url = build_uri('category', array('cid'=>$_GET['id'], 'bid'=>$_GET['brand'], 'price_min'=>$_GET['price_min'], 'price_max'=> $_GET['price_max'],'filter'=>$_GET['filter'], 'filter_attr'=>$_GET['filter_attr'])); |
|
22 |
echo str_replace('amp;','',$url); |
|
23 |
} |
|
24 |
?> |