function LIB_getContents($str, $html) { global $d; if ($html == 'HTML') { $pattern = explode(',', $d['admin']['secu_tags']); $patterns = array(); foreach ($pattern as $val) { if ($val) { $patterns[] = "'<" . $val . "[^>]*?>'si"; } } $iframes = getIframes($str); $secuDomain = explode(',', $d['admin']['secu_domain']); foreach ($iframes as $im) { foreach ($secuDomain as $dm) { if (stripos($im, $dm)) { $str = str_replace($im, str_ireplace('iframe', '@IFRAME@', $im), $str); break; } } } $str = preg_replace($patterns, ' ', $str); $str = str_replace("\t", ' ', $str); $str = str_replace('@IFRAME@', 'iframe', $str); $onAttributes = array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavaible', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragdrop', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterupdate', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmoveout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload'); $str = preg_replace('/<(.*?)>/ie', "'<' . preg_replace(array('/javascript:[^\"\\']*/i', '/(" . implode('|', $onAttributes) . ")[ \\t\\n]*=/i', '/\\s+/'), array('', '', ' '), stripslashes('\\1')) . '>'", $str); if ($GLOBALS['my']['admin'] && !$d['admin']['secu_flash']) { $mat = '<div class="sysMsgBox"><img src="' . $GLOBALS['g']['img_core'] . '/_public/ico_notice.gif" alt="" />' . _LANG('fl001', 'admin') . '</div>'; $str = preg_replace("#(\\<(embed|object)[^\\>]*)\\>(\\<\\/(embed|object)\\>)?#i", $mat, $str); } $_atkParam = $pattern = explode(',', $d['admin']['secu_param']); foreach ($_atkParam as $_prm) { $str = str_replace($_prm, '', $str); } } else { $str = str_replace('<', '<', $str); $str = str_replace('>', '>', $str); $str = str_replace(' ', '&nbsp;', $str); $str = str_replace("\t", ' ', $str); $str = nl2br($str); } return $str; }
<?php header("Content-Type:text/html; charset=utf-8"); require_once '../inc/init.php'; require_once '../inc/cache.php'; require_once './inc/adminfun.php'; require_once "./language/language.php"; if (!isAdmin()) { exit($_AL['all.notlogin']); } if (!hasPopedom("products")) { exit(_LANG($_AL['admin.nopopedom'], array($_AL['index.product.man']))); } $action = strFilter($_GET['action']); switch ($action) { case "saveproducts": try { $doaction = strFilter($_POST['doaction']); $pro['name'] = strFilter($_POST['name']); $pro['alias'] = strFilter($_POST['alias']); $pro['serialnum'] = strFilter($_POST['serialnum']); $pro['price1'] = strFilter($_POST['price1']); if (empty($pro['price1'])) { unset($pro['price1']); } $pro['level'] = intval($_POST['level']); $pro['store'] = intval($_POST['store']); $pro['sold'] = intval($_POST['sold']); $pro['cid'] = intval($_POST['cid']); $pro['type'] = intval($_POST['type']); /*$picids=array(
} ?> <?php if ($d['admin']['dblclick']) { ?> document.ondblclick = function(event) { getContext('<li><a href="<?php echo $g['s']; ?> /?r=<?php echo $r; ?> &m=<?php echo $module; ?> "><?php echo _LANG('a1037', 'search'); ?> </a></li><li class="divider"></li><li><a href="#." onclick="getId(\'rb-submit-button\').click();"><?php echo _LANG('a1038', 'search'); ?> </a></li>',event); } <?php } ?> </script>
if ($_GET['type'] == '') { $type = -1; } else { $type = intval($_GET['type']); } if ($type > -1) { $cond .= " and type={$type}"; } if (in_array($orderby, array('id', 'posttime', 'hits'))) { $orderbystr = $orderby . ' desc'; } $curPage = intval($_GET["page"]); $pager = new Pager(); $pager->init(20, $curPage, "admin.php?inc=article&action=list&k={$keyword}&channelid={$channelid}&orderby={$orderby}&page={page}"); $rows = $pager->queryRows($db, "articles", $cond, "*", $orderbystr); $recstr = _LANG($_AL['all.totalrecords'], array($pager->recordNum)); echo <<<EOT \t<div class="div_clear" style="height:10px;"></div> \t<div class="tips_1"> {$_AL['all.keyword']}: <input class="text_css" type="text" size="20" value="{$keyword}" id="keyword" /> <select id="orderby"><option value="id">{$_AL['all.orderby']}</option><option value="posttime">{$_AL['all.posttime']}</option><option value="hits">{$_AL['all.hits']}</option></select> <input class="button_css" type="button" value=" {$_AL['all.search']} " onclick="searcharticle()" /> {$recstr}</div> \t<table class="table_1" width="100%"> \t\t<tr><td class="td_6"><a class="td_5_1a" href="admin.php?inc=article&action=add&channelid={$channelid}"><img src="images/ico_add.gif" border="0" /> {$_AL['article.add']}</a></td></tr> \t</table> EOT; echo "<form id=\"articlesform\" onsubmit=\"return false;\">"; echo "<table class=\"table_1\" width=\"100%\">"; echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[1]}px;\">{$_AL['all.select']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['all.title']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[7]}px;\">{$_AL['all.hits']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.posttime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[8]}px;\">{$_AL['all.control']}</div>" . "";
<?php $d['admdash']['title'] = _LANG('1001', 'widget'); //타이틀 $d['admdash']['col'] = '6'; // 가로폭 100% = 12 , 50% = 6 $d['admdash']['more'] = ''; // 더보기 링크
btn-block<?php } ?> " type="submit"><?php echo _LANG('a4022', 'admin'); ?> </button> </div> </div> </form> </div> <script> function sslCheck(f) { getIframeForAction(f); return confirm('<?php echo _LANG('a0001', 'admin'); ?> '); } </script>
fwrite($fp, trim(stripslashes($css)) . "\n"); fclose($fp); @chmod($vfile . '.css', 0707); } else { if (is_file($vfile . '.css')) { unlink($vfile . '.css'); } } if (trim($js)) { $fp = fopen($vfile . '.js', 'w'); fwrite($fp, trim(stripslashes($js)) . "\n"); fclose($fp); @chmod($vfile . '.js', 0707); } else { if (is_file($vfile . '.js')) { unlink($vfile . '.js'); } } $cachefile_mobile = str_replace('.php', '.cache', $vfile . '.mobile'); if (file_exists($cachefile_mobile)) { unlink($cachefile_mobile); } getLink('', '', _LANG('a0003', 'site'), ''); } else { $cachefile_pc = str_replace('.php', '.cache', $vfile); if (file_exists($cachefile_pc)) { unlink($cachefile_pc); } getLink('reload', 'parent.', _LANG('a0003', 'site'), ''); } exit;
$msgstr = $_SLANG['printmsg.nofun.member']; $msglink = $msglink2; break; case "funshop_off": $msgstr = $_SLANG['printmsg.nofun.order']; $msglink = $msglink2; break; case "public_active_err": $msgstr = $_SLANG['printmsg.activelink.outdate']; $msglink = "<a href='public.php?action=getactive'><u>{$_SLANG['printmsg.sendactive']}</u> <img src=\"images/ico_msgp1.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>"; break; case "public_active_succeed": $msgstr = $_SLANG['printmsg.active.succeed']; $msglink = "<a href='login.php'><u>{$_SLANG['printmsg.login.now']}</u> <img src=\"images/ico_go.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>"; break; case "public_resetpass_err": $msgstr = $_SLANG['printmsg.reset.outdate']; $msglink = "<a href='public.php?action=forgetpass'><u>{$_SLANG['printmsg.reset.send']}</u> <img src=\"images/ico_msgp1.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>"; break; case "public_resetpass_succeed": global $newpass; $msgstr = _LANG($_SLANG['printmsg.reset.succeed'], array("<span class='msg_newpass'>{$newpass}</span>")); $msglink = "<a href='login.php'><u>{$_SLANG['printmsg.login.now']}</u> <img src=\"images/ico_go.gif\" border=\"0\" align=\"absmiddle\" alt=\"\" /></a>"; break; } if ($msgstr == "") { $msgstr = $msg_code; } require_once 'header.php'; require_once getTemplatePath('printmsg.htm'); footer();
<div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel"><i class="fa fa-bell-o fa-lg"></i> <?php echo _LANG('s3001', 'xlayout'); ?> <span id="rb-notification-badge-other" class="badge"><?php echo $my['num_notice']; ?> </span></h4> </div> <div class="modal-body"> <div id="rb-notifications-layer" class="list-group"> <!-- .rb-notifications-toggle 클릭시 여기에 알림정보를 실시간으로 받아옴 --> </div> </div> <div class="modal-footer"> <div class="btn-group btn-group-justified"> <a href="#" class="btn btn-default"><?php echo _LANG('s3002', 'xlayout'); ?> </a> <a href="#" class="btn btn-default" data-dismiss="modal" aria-hidden="true"><?php echo _LANG('s3003', 'xlayout'); ?> </a> </div> </div> </div> </div> </div>
echo _LANG('1015', 'widget-mk-menu-collapse'); ?> </label> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label"></label> <div class="col-sm-8"> <span class="help-block"> <small> <?php echo _LANG('1016', 'widget-mk-menu-collapse'); ?> <br> <?php echo _LANG('1017', 'widget-mk-menu-collapse'); ?> <br> </small> </span> </div> </div> </form> </div> <style> #mjointbox {padding-bottom:50px;} #mjointbox h5 {border-bottom:#dfdfdf dashed 1px;padding:12px 0 15px 0;margin:0 0 30px 0;} #mjointbox .rb-label {font-weight:normal;cursor:pointer;} </style>
$extractor = new ArchiveExtractor(); $extractor->extractArchive($saveFile, $extPath1); unlink($saveFile); $_updateFile = $extPath1 . '/_update.php'; if (is_file($_updateFile)) { include $_updateFile; unlink($_updateFile); } DirCopy($extPath1, $folder); DirDelete($extPath); mkdir($extPath, 0707); @chmod($extPath, 0707); $fp = fopen($_ufile, 'w'); fwrite($fp, $date['today'] . ',0'); fclose($fp); @chmod($_ufile, 0707); if ($_updateversion != $d['admin']['version']) { $d['admin']['version'] = $_updateversion; $_tmpdfile = $g['dir_module'] . 'var/var.system.php'; $fp = fopen($_tmpdfile, 'w'); fwrite($fp, "<?php\n"); foreach ($d['admin'] as $key => $val) { fwrite($fp, "\$d['admin']['" . $key . "'] = \"" . $val . "\";\n"); } fwrite($fp, "?>"); fclose($fp); @chmod($_tmpdfile, 0707); } getLink('reload', 'parent.', _LANG('ac004', 'admin'), ''); } }
$tgFolder = $plfldPath . '/'; if (is_uploaded_file($tmpname)) { if ($fileExt != 'zip' || substr($realname, 0, 13) != 'rb_dashboard_') { getLink('reload', 'parent.', _LANG('a7001', 'market'), ''); } move_uploaded_file($tmpname, $saveFile); require $g['path_core'] . 'opensrc/unzip/ArchiveExtractor.class.php'; require $g['path_core'] . 'function/dir.func.php'; $extractor = new ArchiveExtractor(); $extractor->extractArchive($saveFile, $extPath1); unlink($saveFile); mkdir($plfldPath, 0707); @chmod($plfldPath, 0707); DirCopy($extPath1, $tgFolder); DirDelete($extPath); mkdir($extPath, 0707); @chmod($extPath, 0707); } else { getLink('', '', _LANG('a7002', 'market'), ''); } ?> <script> var pt = parent.parent.parent ? parent.parent.parent : parent.parent; var ex = pt.location.href.split('&_admpnl_'); var gx = ex[0] + '&_admpnl_=' + escape(pt.frames._ADMPNL_.location.href); pt.location.href = gx; </script> <?php exit; //if ($reload == 'Y') getLink('reload',"parent.parent.",_LANG('a7003','market'),''); //else getLink('',"parent.parent.$('#modal_window').modal('hide');",_LANG('a7003','market'),'');
notEmpty: { message: 'The password is required and cannot be empty' }, } }, } }); }); var bootmsg = '<div class="media"><i class="pull-left fa fa-exclamation-circle fa-4x hidden-xs"></i><div class="media-body">'; bootmsg+= '<h4 class="media-heading"><?php echo _LANG('tl002', 'admin'); ?> </h4>'; bootmsg+= '<?php echo _LANG('tl003', 'admin'); ?> '; bootmsg+= '</div></div>'; $('.rb-confirm').on('click', function() { bootbox.confirm(bootmsg, function(result){ document.loginform.idpwsave.checked = result; }); }); function loginCheck(f) { getIframeForAction(f); return true; } </script>
<?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; $_namefile = $g['dir_module'] . 'var/names/' . $namefile . '.txt'; $fp = fopen($_namefile, 'w'); fwrite($fp, $_nameinfo); fclose($fp); @chmod($_namefile, 0707); getLink($g['s'] . '/?r=' . $r . '&m=admin&module=' . $m . '&searchfile=' . $searchfile . '&autoCheck=Y', 'parent.', _LANG('a2001', 'search'), '');
if (!defined('__KIMS__')) { exit; } checkAdmin(0); $id = trim($_POST['id']); $pw = trim($_POST['pw1']); $name = trim($_POST['name']); $nic = trim($_POST['nic']); $nic = $nic ? $nic : $name; $email = trim($_POST['email']); if (!$id || !$name) { getLink('', '', _LANG('a0001', 'admin'), ''); } if (!$check_id || !$check_nic || !$check_email) { getLink('', '', _LANG('a0001', 'admin'), ''); } $tmpname = $_FILES['upfile']['tmp_name']; $realname = $_FILES['upfile']['name']; if ($avatar_delete) { $photo = ''; $saveFile1 = $g['path_var'] . 'avatar/' . $avatar; $saveFile2 = $g['path_var'] . 'avatar/180.' . $avatar; } else { $photo = $avatar; if (is_uploaded_file($tmpname)) { $fileExt = strtolower(getExt($realname)); $fileExt = $fileExt == 'jpeg' ? 'jpg' : $fileExt; if (strstr('[jpg]', $fileExt)) { $wh = getimagesize($tmpname); if ($wh[0] > 180 && $wh[1] > 180) {
echo $upfileNum; ?> )'; <?php if ($_nowPer > 99) { ?> parent.gridProgress(); <?php } ?> </script> <?php } } else { $upfileNum = 1; $name = _LANG('a5002', 'mediaset'); $fileExt = 'mp4'; $mingid = getDbCnt($table['s_upload'], 'min(gid)', ''); $gid = $mingid ? $mingid - 1 : 100000000; $QKEY = "gid,pid,category,hidden,tmpcode,site,mbruid,fileonly,type,ext,fserver,url,folder,name,tmpname,thumbname,size,width,height,alt,caption,description,src,linkto,license,down,d_regis,d_update,sync,linkurl"; $QVAL = "'{$gid}','{$gid}','{$category}','0','{$tmpcode}','{$s}','{$mbruid}','{$_fileonly}','0','{$fileExt}','0','','','{$name}','','','0','0','0','','','','{$src}','0','0','0','{$d_regis}','','',''"; getDbInsert($table['s_upload'], $QKEY, $QVAL); if ($gid == 100000000) { db_query("OPTIMIZE TABLE " . $table['s_upload'], $DB_CONNECT); } } if ($fileonly != 'Y') { if (!getDbRows($table['s_uploadcat'], 'mbruid=' . $my['uid'] . ' and type=2')) { getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'0','" . $s . "','" . $my['uid'] . "','2','0','','none','0','" . $date['totime'] . "',''"); getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'1','" . $s . "','" . $my['uid'] . "','2','0','','trash','0','" . $date['totime'] . "',''"); }
?> '); f.startsite.focus(); return false; } } if (f.checkm.value == '2') { if (f.startdomain.value == '') { alert('<?php echo _LANG('a1019', 'device'); ?> '); f.startdomain.focus(); return false; } } if (confirm('<?php echo _LANG('a1020', 'device'); ?> ')) { getIframeForAction(f); $(".btn-primary").addClass("disabled"); return true; } return false; } </script>
{ var notimsg = '<?php echo _LANG('en001', 'admin'); ?> '; bootbox.dialog({ title: '<i class="glyphicon glyphicon-info-sign" style="position:relative;top:3px;"></i> '+notimsg.replace('{num}',num), message: '<div style="text-align:center;"><i class="kf-notify" style="font-size:300px;"></i></div>', onEscape: function() {sessionSetting('sh_notify_popup','1','','');}, backdrop: true, closeButton: true, animate: true, buttons: { success: { label: "<?php echo _LANG('en002', 'admin'); ?> ", className: "btn-default btn-block btn-lg", callback: function() {sessionSetting('sh_notify_popup','1','','');} }, }}); bootboxNotificationConfirm = false; } <?php } ?> } function loadNotification() { frames._action_frame_<?php
<li class="pull-left"> <button type="button" class="btn btn-default" onclick="frames._modal_iframe_modal_window.checkboxChoice('dashboard_widgets[]',true);"> <?php echo _LANG('a3002', 'dashboard'); ?> </button> <button type="button" class="btn btn-default" onclick="frames._modal_iframe_modal_window.checkboxChoice('dashboard_widgets[]',false);"> <?php echo _LANG('a3003', 'dashboard'); ?> </button> </li> <li class="pull-right"> <button type="button" class="btn btn-primary" onclick="frames._modal_iframe_modal_window.actQue('dashboard_order');"> <?php echo _LANG('a3004', 'dashboard'); ?> </button> </li> </ul> </div> <script> function modalSetting() { parent.getId('modal_window_dialog_modal_window').style.width = '100%'; parent.getId('modal_window_dialog_modal_window').style.paddingRight = '20px'; parent.getId('modal_window_dialog_modal_window').style.maxWidth = '400px'; parent.getId('_modal_iframe_modal_window').style.height = '450px';
} $panel_reload = true; } } foreach ($fdset[$act] as $val) { $d['admin'][$val] = str_replace("\n", '<br>', trim(${$val})); } $_tmpdfile = $g['dir_module'] . 'var/var.system.php'; $fp = fopen($_tmpdfile, 'w'); fwrite($fp, "<?php\n"); foreach ($d['admin'] as $key => $val) { fwrite($fp, "\$d['admin']['" . $key . "'] = \"" . addslashes(stripslashes($val)) . "\";\n"); } fwrite($fp, "?>"); fclose($fp); @chmod($_tmpdfile, 0707); if ($autosave) { ?> <script> parent.document.procForm.target = ''; parent.document.procForm.a.value = 'config'; parent.document.procForm.autosave.value = ''; </script> <?php exit; } if ($panel_reload) { getLink($g['s'] . '/?r=' . $r . '&pickmodule=' . $m . '&panel=Y', 'parent.parent.', '', ''); } else { getLink('reload', 'parent.', _LANG('a5002', 'admin'), ''); }
<?php $d['amenu']['main'] = _LANG('menu1', 'site'); $d['amenu']['menu'] = _LANG('menu2', 'site'); $d['amenu']['page'] = _LANG('menu3', 'site');
<?php $d['amenu']['main'] = _LANG('menu1', 'admin'); $d['amenu']['seo'] = _LANG('menu2', 'admin'); $d['amenu']['ssl'] = _LANG('menu3', 'admin'); $d['amenu']['security'] = _LANG('menu4', 'admin'); $d['amenu']['switch'] = _LANG('menu5', 'admin'); $d['amenu']['plugin'] = _LANG('menu6', 'admin'); $d['amenu']['update'] = _LANG('menu7', 'admin'); if ($d['admin']['uninstall']) { $d['amenu']['uninstall'] = _LANG('menu8', 'admin'); } $d['amenu']['admin'] = _LANG('menu9', 'admin'); $d['amenu']['bookmark'] = _LANG('menu0', 'admin');
<?php if (!defined('__KIMS__')) { exit; } if (!$uid) { getLink('', '', _LANG('a0002', 'mediaset'), ''); } $R = getUidData($table['s_upload'], $uid); if (!$R['uid']) { getLink('', '', _LANG('a0003', 'mediaset'), ''); } if (!$my['admin'] && $my['uid'] != $R['mbruid']) { getLink('', '', _LANG('a0004', 'mediaset'), ''); } $name = trim($name); $name = str_replace('.' . $R['ext'], '', $name) . '.' . $R['ext']; $name = strip_tags($name); $alt = strip_tags(trim($alt)); $linkurl = trim($linkurl); $caption = $my['admin'] ? trim($caption) : strip_tags(trim($caption)); $description = $my['admin'] ? trim($description) : strip_tags(trim($description)); if ($R['type'] < 0) { $src = trim($src); } else { $src = $R['src']; } getDbUpdate($table['s_upload'], "hidden='" . $hidden . "',name='" . $name . "',alt='" . $alt . "',caption='" . $caption . "',description='" . $description . "',src='" . $src . "',linkto='" . $linkto . "',license='" . $license . "',d_update='" . $date['totime'] . "',linkurl='" . $linkurl . "'", 'uid=' . $R['uid']); getLink('reload', 'parent.', _LANG('a0005', 'mediaset'), '');
<?php if (!defined('__KIMS__')) { exit; } if (!$my['uid']) { getLink('', '', _LANG('a0001', 'mediaset'), ''); } if (!getDbRows($table['s_uploadcat'], 'mbruid=' . $my['uid'] . ' and type=' . $ablum_type)) { getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'0','" . $s . "','" . $my['uid'] . "','" . $ablum_type . "','0','','none','0','" . $date['totime'] . "',''"); getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'1','" . $s . "','" . $my['uid'] . "','" . $ablum_type . "','0','','trash','0','" . $date['totime'] . "',''"); } $MAXC = getDbCnt($table['s_uploadcat'], 'max(gid)', 'mbruid=' . $my['uid'] . ' and type=' . $ablum_type); $sarr = explode(',', trim($name)); $slen = count($sarr); for ($i = 0; $i < $slen; $i++) { $xname = trim($sarr[$i]); if (!$xname) { continue; } if ($xname == 'none' || $xname == 'trash') { continue; } $gid = $MAXC + 1 + $i; getDbInsert($table['s_uploadcat'], 'gid,site,mbruid,type,hidden,users,name,r_num,d_regis,d_update', "'{$gid}','" . $s . "','" . $my['uid'] . "','" . $ablum_type . "','0','','" . $xname . "','0','" . $date['totime'] . "',''"); } getLink('reload', 'parent.', '', '');
{ j++; } } if (act == 'bookmark_delete') { if (j == 0) { alert('<?php echo _LANG('ab009', 'admin'); ?> '); } else { if (confirm('<?php echo _LANG('ab010', 'admin'); ?> ')) { getIframeForAction(f); f.a.value = act; f.submit(); } } } } </script>
<?php header("Content-Type:text/html; charset=utf-8"); require_once '../inc/init.php'; require_once '../inc/cache.php'; require_once './inc/adminfun.php'; require_once "./language/language.php"; if (!isAdmin()) { exit($_AL['all.notlogin']); } if (!hasPopedom("channel")) { exit(_LANG($_AL['admin.nopopedom'], array($_AL['index.channel.man']))); } $action = strFilter($_GET['action']); switch ($action) { case "saveset": try { $ordernums = $_POST['ordernum']; $positions = $_POST['position']; $title = $_POST['title']; if (is_array($ordernums)) { foreach ($ordernums as $id => $value) { $channel['ordernum'] = intval($value); $channel['positions'] = isIntArray($positions[$id]) ? "|" . implode($positions[$id], "|") . "|" : ""; $channel['title'] = $title[$id]; $db->row_update("channels", $channel, "id={$id} and langid={$_SYS['alangid']}"); } } writeChannelsCache(); succeedFlag(); } catch (Exception $e) {
$result = true; } } } if ($result) { ?> <script> parent.getId('rb-emailcheck').innerHTML = '<i class="fa fa-info-circle fa-lg fa-fw"></i><?php echo _LANG('a1001', 'admin'); ?> '; parent.document.procForm.check_email.value = '1'; parent.submitFlag = false; </script> <?php } else { ?> <script> parent.getId('rb-emailcheck').innerHTML = '<i class="fa fa-question fa-lg fa-fw"></i><?php echo _LANG('a1002', 'admin'); ?> '; parent.document.procForm.check_email.value = '0'; parent.submitFlag = false; </script> <?php } } } } exit;
<i>- <?php echo _LANG('a6041', 'admin'); ?> -</i> <span>[<?php echo _LANG('a6004', 'admin'); ?> ]</span> </body> </html> </fieldset> <span>[<?php echo _LANG('a6005', 'admin'); ?> ]</span> </pre> </fieldset> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _LANG('a6042', 'admin'); ?> </button> </div> </div> </div> </div>
<?php if (!defined('__KIMS__')) { exit; } checkAdmin(0); /* 알림을 보내는 방법 ************************************************************ - 다음의 함수를 실행합니다. putNotice($rcvmember,$sendmodule,$sendmember,$message,$referer,$target); $rcvmember : 받는회원 UID $sendmodule : 보내는모듈 ID $sendmember : 보내는회원 UID (시스템으로 보낼경우 0) $message : 보내는 메세지 (관리자 및 허가된 사용자는 HTML태그 사용가능 / 일반 회원은 불가) $referer : 연결해줄 URL이 있을 경우 http:// 포함하여 지정 $target : 연결할 URL의 링크 TARGET (새창으로 연결하려면 _blank) ********************************************************************************/ putNotice($my['uid'], $m, $my['uid'], _LANG('a3001', 'notification'), '', ''); getLink('reload', 'parent.', '', '');
} ftp_close($FTP_CONNECT); } else { unlink($g['path_file'] . $R['folder'] . '/' . $R['tmpname']); if ($R['type'] == 2) { unlink($g['path_file'] . $R['folder'] . '/' . $R['thumbname']); } } } $_type = getuFileType($R['type']); if ($R['category'] == -1) { getDbUpdate($table['s_uploadcat'], 'r_num=r_num-1', 'mbruid=' . $R['mbruid'] . " and type=" . $_type . " and name='trash'"); } if ($R['category'] == 0) { getDbUpdate($table['s_upload'], 'category=-1', 'uid=' . $R['uid']); getDbUpdate($table['s_uploadcat'], 'r_num=r_num-1', 'mbruid=' . $R['mbruid'] . " and type=" . $_type . " and name='none'"); } if ($R['category'] > 0) { getDbUpdate($table['s_uploadcat'], 'r_num=r_num-1', 'mbruid=' . $R['mbruid'] . ' and type=' . $_type . ' and uid=' . $R['category']); getDbUpdate($table['s_upload'], 'category=-1', 'uid=' . $R['uid']); } if ($R['mbruid']) { $_MEMBERS['m' . $R['mbruid']]++; } } } //파일이 삭제된 회원들에게 알림 foreach ($_MEMBERS as $_key => $_val) { putNotice(str_replace('m', '', $_key), $m, 0, sprintf(_LANG('a4001', 'mediaset'), $_val), '', ''); } getLink('reload', 'parent.', '', '');