first
This commit is contained in:
30
modules/search/action/a.config.php
Normal file
30
modules/search/action/a.config.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
|
||||
$_tmpdfile = $g['path_var'].'site/'.$r.'/'.$m.'.var.php';
|
||||
|
||||
$fp = fopen($_tmpdfile,'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
fwrite($fp, "\$d['search']['theme'] = \"".$theme."\";\n");
|
||||
fwrite($fp, "\$d['search']['m_theme'] = \"".$m_theme."\";\n");
|
||||
fwrite($fp, "\$d['search']['num1'] = \"".$num1."\";\n");
|
||||
fwrite($fp, "\$d['search']['num2'] = \"".$num2."\";\n");
|
||||
fwrite($fp, "\$d['search']['term'] = \"".$term."\";\n");
|
||||
fwrite($fp, "\$d['search']['layout'] = \"".$layout."\";\n");
|
||||
fwrite($fp, "\$d['search']['m_layout'] = \"".$m_layout."\";\n");
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($_tmpdfile,0707);
|
||||
|
||||
$_tmpdfile = $g['dir_module'].'var/search.list.txt';
|
||||
|
||||
$fp = fopen($_tmpdfile,'w');
|
||||
fwrite($fp,trim(stripslashes($searchlist)));
|
||||
fclose($fp);
|
||||
@chmod($_tmpdfile,0707);
|
||||
|
||||
setrawcookie('search_config_result', rawurlencode('설정이 변경 되었습니다.|success')); // 처리여부 cookie 저장
|
||||
getLink('reload','parent.','','');
|
||||
?>
|
||||
33
modules/search/action/a.get_searchResult.php
Normal file
33
modules/search/action/a.get_searchResult.php
Normal file
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
$recnum = $_POST['recnum'];
|
||||
|
||||
require_once $g['path_core'].'function/sys.class.php';
|
||||
// include_once $g['dir_module'].'mod/_post.php';
|
||||
|
||||
$g['postVarForSite'] = $g['path_var'].'site/'.$r.'/'.$m.'.var.php';
|
||||
$svfile = file_exists($g['postVarForSite']) ? $g['postVarForSite'] : $g['dir_module'].'var/var.php';
|
||||
include_once $svfile;
|
||||
|
||||
if ($g['mobile']&&$_SESSION['pcmode']!='Y') {
|
||||
$theme = $d['post']['skin_mobile'];
|
||||
$TMPL['start']=$start;
|
||||
} else {
|
||||
$theme = $d['post']['skin_main'];
|
||||
}
|
||||
|
||||
// include_once $g['dir_module'].'themes/'.$theme.'/_var.php';
|
||||
|
||||
$mbruid = $my['uid'];
|
||||
|
||||
$result=array();
|
||||
$result['error'] = false;
|
||||
$list=$keyword.'검색결과';
|
||||
|
||||
$result['list'] = $list;
|
||||
$result['num'] = $NUM;
|
||||
|
||||
echo json_encode($result);
|
||||
exit;
|
||||
?>
|
||||
24
modules/search/action/a.order.php
Normal file
24
modules/search/action/a.order.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
$device = $mobile?'mobile':'desktop';
|
||||
$_ufile = $g['path_module'].$m.'/var/var.order.'.$device.'.php';
|
||||
|
||||
$fp = fopen($_ufile,'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
|
||||
foreach ($searchmembers as $_key)
|
||||
{
|
||||
$_val = explode('|',$_key);
|
||||
fwrite($fp, "\$d['search_order']['".$_val[0]."'] = array('".$_val[1]."','".$_val[2]."','".$_val[3]."');\n");
|
||||
|
||||
}
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($_ufile,0707);
|
||||
|
||||
if ($autoCheck) exit;
|
||||
setrawcookie('search_config_result', rawurlencode('정보가 갱신되었습니다.|success')); // 처리여부 cookie 저장
|
||||
getLink('reload','parent.',$auto?'':'','');
|
||||
?>
|
||||
20
modules/search/action/a.search_edit.php
Normal file
20
modules/search/action/a.search_edit.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
checkAdmin(0);
|
||||
|
||||
if (!$namefile || strstr($namefile,'/')) exit;
|
||||
$_newsites = '';
|
||||
foreach($aply_sites as $sites) $_newsites.= '['.$sites.']';
|
||||
$_nameinfo = str_replace('|','/',trim($name)).'|'.$_newsites;
|
||||
$device = $mobile?'mobile.':'desktop.';
|
||||
$_namefile = $g['dir_module'].'var/names/'.$device.$namefile.'.txt';
|
||||
|
||||
$fp = fopen($_namefile,'w');
|
||||
fwrite($fp,$_nameinfo);
|
||||
fclose($fp);
|
||||
@chmod($_namefile,0707);
|
||||
|
||||
setrawcookie('search_config_result', rawurlencode('반영 되었습니다.|success')); // 처리여부 cookie 저장
|
||||
getLink($g['s'].'/?r='.$r.'&m=admin&module='.$m.'&searchfile='.$searchfile.'&autoCheck=Y&mobile='.$mobile,'parent.','','');
|
||||
?>
|
||||
Reference in New Issue
Block a user