This commit is contained in:
shim
2023-04-17 11:06:08 +09:00
parent d0b393aa97
commit 76264e09ad
4686 changed files with 552713 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
if(!defined('__KIMS__')) exit;
checkAdmin(0);
$R = getUidData($table['s_page'],$uid);
getDbDelete($table['s_page'],'uid='.$R['uid']);
getDbDelete($table['s_seo'],'rel=2 and parent='.$R['uid']);
$_xfile = $g['path_page'].$r.'-pages/'.$R['id'];
unlink($_xfile.'.php');
@unlink($_xfile.'.mobile.php');
@unlink($_xfile.'.css');
@unlink($_xfile.'.js');
@unlink($_xfile.'.txt');
@unlink($_xfile.'.cache');
@unlink($_xfile.'.mobile.cache');
if($_HS['startpage'] && $_HS['startpage'] == $R['uid'])
{
getDbUpdate($table['s_site'],'startpage=0','uid='.$s);
}
db_query("OPTIMIZE TABLE ".$table['s_page'],$DB_CONNECT);
setrawcookie('result_page', rawurlencode('페이지가 삭제 되었습니다.|success')); // 처리여부 cookie 저장
if ($back=='Y')
{
getLink($g['s'].'/?r='.$r.'&m=admin&module='.$m.'&front=page','parent.','','');
}
else {
getLink('reload','parent.','','');
}
?>