<?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.', '', '');
<?php if (!defined('__KIMS__')) { exit; } checkAdmin(0); $fdset = array(); $fdset['config'] = array('version', 'themepc', 'pannellink', 'cache_flag', 'smtp_use', 'smtp_host', 'smtp_port', 'smtp_auth', 'smtp_ssl', 'smtp_user', 'smtp_pass', 'ftp_use', 'ftp_type', 'ftp_host', 'ftp_port', 'ftp_pasv', 'ftp_user', 'ftp_pass', 'ftp_rb', 'email', 'smtp', 'ftp', 'uninstall', 'dblclick', 'codeeidt', 'editor', 'syslang', 'sysmail', 'sysmodule'); $fdset['ssl'] = array('http_port', 'ssl_type', 'ssl_port', 'ssl_module', 'ssl_menu', 'ssl_page'); $fdset['security'] = array('secu_tags', 'secu_domain', 'secu_param'); //제거탭 출력 주의 알림 if (!$d['admin']['uninstall'] && $uninstall) { $_message = _LANG('a5001', 'admin'); $_referer = $g['s'] . '/?r=' . $r . '&m=admin&module=admin'; putNotice($my['uid'], $m, 0, $_message, $_referer, ''); } if ($act == 'config') { if ($d['admin']['syslang'] != $syslang) { $RCD = getDbArray($table['s_module'], '', '*', 'gid', 'asc', 0, 1); while ($_R = db_fetch_array($RCD)) { $new_modulename = $g['path_module'] . $_R['id'] . '/language/' . $syslang . '/name.module.txt'; getDbUpdate($table['s_module'], "name='" . ($syslang && is_file($new_modulename) ? implode('', file($new_modulename)) : getFolderName($g['path_module'] . $_R['id'])) . "'", "id='" . $_R['id'] . "'"); } $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');
} 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.', '', '');
$birth1 = $birth_1 ? $birth_1 : 0; $birth2 = $birth_2 && $birth_3 ? $birth_2 . $birth_3 : 0; $QUE = "insert into " . $table['s_mbrdata'] . " \n(memberuid,site,auth,mygroup,level,comp,admin,adm_view,\nemail,name,nic,grade,photo,home,sex,birth1,birth2,birthtype,tel1,tel2,zip,\naddr0,addr1,addr2,job,marr1,marr2,sms,mailing,smail,point,usepoint,money,cash,num_login,pw_q,pw_a,now_log,last_log,last_pw,is_paper,d_regis,tmpcode,sns,noticeconf,num_notice,addfield)\nvalues\n('1','1','1','1','1','0','" . $my['admin'] . "','',\n'" . $email . "','" . $name . "','" . $nick . "','','','','" . $sex . "','" . $birth1 . "','" . $birth2 . "','" . $birthtype . "','','" . $cellphone . "','',\n'','','','','0','0','1','1','0','0','0','0','0','1','" . _LANG('a09', 'install') . "','','1','" . $date['totime'] . "','" . $date['today'] . "','0','" . $date['totime'] . "','','','','0','')"; db_query($QUE, $DB_CONNECT); $groupset = array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'); $i = 0; foreach ($groupset as $_val) { getDbInsert($table['s_mbrgroup'], 'gid,name,num', "'" . $i . "','" . _LANG('a010', 'install') . $_val . "','" . (!$i ? 1 : 0) . "'"); $i++; } for ($i = 1; $i < 101; $i++) { getDbInsert($table['s_mbrlevel'], 'gid,name,num,login,post,comment', "'" . ($i == 20 ? 1 : 0) . "','" . _LANG('a011', 'install') . $i . "','" . ($i == 1 ? 1 : 0) . "','0','0','0'"); } $_tmpdfile = $g['path_module'] . 'admin/var/var.system.php'; include $_tmpdfile; if ($d['admin']['syslang'] != $sitelang) { $d['admin']['syslang'] = $sitelang; $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); } setcookie('svshop', $id . '|' . $pw1, time() + 60 * 60 * 24 * 30, '/'); $_SESSION['mbr_uid'] = 1; $_SESSION['mbr_pw'] = getCrypt($pw1, $date['totime']); putNotice(1, 'admin', 0, sprintf(_LANG('a012', 'install'), $name, $name), '', ''); getLink('./index.php?r=' . $siteid . '&iframe=Y&system=guide.install', 'parent.', '', '');