You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
512 B
12 lines
512 B
<?php
|
|
defined("api_m") or exit;
|
|
$q=$api->get('q','','trim');
|
|
$t=$api->get('t','','trim');
|
|
$cr=$empire->fetch1("select id,classid from {$dbtbpre}ecms_ppt_data_1 where infotags like '%".$q."%' limit 1");
|
|
$totalquery="select count(*) as total from {$dbtbpre}ecms_ppt_data_1 where infotags like '%".$q."%'";
|
|
$num=$empire->gettotal($totalquery);
|
|
if ($num==1){
|
|
echo '{"code":0,"redirect_url":"\/muban\/'.$cr[classid].'-'.$cr[id].'.html"}';
|
|
}else{
|
|
echo '{"code":0,"redirect_url":"\/list\/'.$t.'-0-0-'.$q.'-0.html"}';
|
|
}
|