不过还差了一个,因为模型使用的是m.php,所以m.php也要修改,本来一直没找到,被你一提醒就找到了,呵呵
找到- if(count($getarr) > 1) {
- if(!empty($modelsinfoarr['allowguestsearch'])) {
- if(empty($_COOKIE['ss_modeldateline_1'])) {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp'], $_SGLOBAL['timestamp']+86400);
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- if($_SGLOBAL['timestamp'] - $_COOKIE['ss_modeldateline_1'] < $modelsinfoarr['searchinterval']) {
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp'], $_SGLOBAL['timestamp']+86400);
- }
- }
- } else {
- if(empty($_SGLOBAL['supe_uid'])) {
- setcookie('_refer', rawurlencode(S_URL_ALL.'/m.php?'.$_SERVER['QUERY_STRING']));
- showmessage('no_login', geturl('action/login'));
- }
- if(!empty($modelsinfoarr['searchinterval']) && $_SGLOBAL['group']['groupid'] != 1) {
- $query = $_SGLOBAL['db']->query('SELECT * FROM '.tname('modelinterval').' WHERE uid = \''.$_SGLOBAL['supe_uid'].'\' AND type=1');
- $result = $_SGLOBAL['db']->fetch_array($query);
- if(!empty($result)) {
- if($_SGLOBAL['timestamp'] - $result['dateline'] < $modelsinfoarr['searchinterval']) {
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- updatetable('modelinterval', array('dateline' => $_SGLOBAL['timestamp']), array('uid'=>$_SGLOBAL['supe_uid'], 'type'=>1));
- }
- } else {
- inserttable('modelinterval', array('uid'=>$_SGLOBAL['supe_uid'], 'dateline'=>$_SGLOBAL['timestamp'], 'type'=>1));
- }
- }
- }
- } else {
- if(!empty($modelsinfoarr['allowguestsearch'])) {
- if(empty($_COOKIE['ss_modeldateline_1'])) {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp']-86400, $_SGLOBAL['timestamp']+86400);
- }
- }
- }
复制代码 替换为- if(count($getarr) > 1) {
- if(!empty($modelsinfoarr['allowguestsearch'])) {
- if(empty($_COOKIE['ss_modeldateline_1'])) {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp'], $_SGLOBAL['timestamp']+86400);
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- if($_SGLOBAL['timestamp'] - $_COOKIE['ss_modeldateline_1'] < $modelsinfoarr['searchinterval']) {
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp'], $_SGLOBAL['timestamp']+86400);
- }
- }
- } else {
-
- if(!empty($modelsinfoarr['searchinterval']) && $_SGLOBAL['group']['groupid'] != 1) {
- $query = $_SGLOBAL['db']->query('SELECT * FROM '.tname('modelinterval').' WHERE uid = \''.$_SGLOBAL['supe_uid'].'\' AND type=1');
- $result = $_SGLOBAL['db']->fetch_array($query);
- if(!empty($result)) {
- if($_SGLOBAL['timestamp'] - $result['dateline'] < $modelsinfoarr['searchinterval']) {
- showmessage('inquiries_about_the_short_time_interval');
- } else {
- updatetable('modelinterval', array('dateline' => $_SGLOBAL['timestamp']), array('uid'=>$_SGLOBAL['supe_uid'], 'type'=>1));
- }
- } else {
- inserttable('modelinterval', array('uid'=>$_SGLOBAL['supe_uid'], 'dateline'=>$_SGLOBAL['timestamp'], 'type'=>1));
- }
- }
- }
- } else {
- if(!empty($modelsinfoarr['allowguestsearch'])) {
- if(empty($_COOKIE['ss_modeldateline_1'])) {
- setcookie('ss_modeldateline_1', $_SGLOBAL['timestamp']-86400, $_SGLOBAL['timestamp']+86400);
- }
- }
- }
复制代码 即可不用登陆搜索模型信息。。。 |