first
This commit is contained in:
406
_install/a.install.php
Normal file
406
_install/a.install.php
Normal file
@@ -0,0 +1,406 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
if ($sitelang)
|
||||
{
|
||||
$_langfile = $g['path_root'].'_install/language/'.$sitelang.'/lang.action.php';
|
||||
if (is_file($_langfile)) include $_langfile;
|
||||
}
|
||||
|
||||
$moduledir = array();
|
||||
$_oldtable = array();
|
||||
$_tmptable = array();
|
||||
$_tmpdfile = $g['path_var'].'db.info.php';
|
||||
$_tmptfile = $g['path_var'].'table.info.php';
|
||||
include $g['path_core'].'function/sys.func.php';
|
||||
include $g['path_core'].'function/dir.func.php';
|
||||
include $g['path_core'].'function/db.mysql.func.php';
|
||||
$date = getVDate(0);
|
||||
|
||||
if (is_file($_tmpdfile)) getLink('./index.php','','','');
|
||||
|
||||
$DB_CONNECT = @mysqli_connect($dbhost,$dbuser,$dbpass,$dbname);
|
||||
if (!$DB_CONNECT)
|
||||
{
|
||||
echo '<script>parent.isSubmit=false;parent.stepCheck("prev");parent.stepCheck("prev");</script>';
|
||||
getLink('','',_LANG('a002','install'),'');
|
||||
}
|
||||
|
||||
$ISRBDB = db_fetch_array(db_query('select count(*) from '.$dbhead.'_s_module',$DB_CONNECT));
|
||||
if ($ISRBDB[0])
|
||||
{
|
||||
echo '<script>parent.isSubmit=false;parent.stepCheck("prev");parent.stepCheck("prev");</script>';
|
||||
getLink('','',_LANG('a004','install'),'');
|
||||
}
|
||||
|
||||
// create empty folder
|
||||
DirMake($g['path_page']);
|
||||
DirMake($g['path_file']);
|
||||
DirMake($g['path_tmp']);
|
||||
DirMake($g['path_tmp'].'app');
|
||||
DirMake($g['path_tmp'].'backup');
|
||||
DirMake($g['path_tmp'].'cache');
|
||||
DirMake($g['path_tmp'].'cache/HTMLPurifier');
|
||||
DirMake($g['path_tmp'].'out');
|
||||
DirMake($g['path_tmp'].'session');
|
||||
DirMake($g['path_tmp'].'widget');
|
||||
DirMake($g['path_var'].'menu');
|
||||
DirMake($g['path_var'].'peak');
|
||||
DirMake($g['path_var'].'update');
|
||||
DirMake($g['path_var'].'xml');
|
||||
DirMake($g['path_var'].'site');
|
||||
DirMake($g['path_var'].'sitephp');
|
||||
DirMake($g['path_var'].'bbs');
|
||||
DirMake($g['path_layout'].'default/_images');
|
||||
DirMake($g['path_switch'].'top');
|
||||
|
||||
$fp = fopen($_tmpdfile,'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
fwrite($fp, "\$DB['host'] = '".$dbhost."';\n");
|
||||
fwrite($fp, "\$DB['name'] = '".$dbname."';\n");
|
||||
fwrite($fp, "\$DB['user'] = '".$dbuser."';\n");
|
||||
fwrite($fp, "\$DB['pass'] = '".$dbpass."';\n");
|
||||
fwrite($fp, "\$DB['head'] = '".$dbhead."';\n");
|
||||
fwrite($fp, "\$DB['port'] = '".$dbport."';\n");
|
||||
fwrite($fp, "\$DB['type'] = '".$dbtype."';\n");
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($_tmpdfile,0707);
|
||||
$DB['type'] = $dbtype;
|
||||
$DB['head'] = $dbhead;
|
||||
|
||||
if (is_file($_tmptfile))
|
||||
{
|
||||
include_once $_tmptfile;
|
||||
$_oldtable = $table;
|
||||
}
|
||||
|
||||
$dirh = opendir($g['path_module']);
|
||||
while(false !== ($_file = readdir($dirh)))
|
||||
{
|
||||
if($_file == '.' || $_file == '..') continue;
|
||||
|
||||
if(is_file($g['path_module'].$_file.'/_setting/db.table.php'))
|
||||
{
|
||||
$table = array();
|
||||
$module= $_file;
|
||||
include $g['path_module'].$_file.'/_setting/db.table.php';
|
||||
include $g['path_module'].$_file.'/_setting/db.schema.php';
|
||||
|
||||
foreach($table as $key => $val) $_tmptable[$key] = $val;
|
||||
rename($g['path_module'].$_file.'/_setting/db.table.php',$g['path_module'].$_file.'/_setting/db.table.php.done');
|
||||
|
||||
$moduledir[$_file] = array($_file,count($table));
|
||||
}
|
||||
else {
|
||||
$moduledir[$_file] = array($_file,0);
|
||||
}
|
||||
DirMake($g['path_module'].$_file.'/update');
|
||||
}
|
||||
closedir($dirh);
|
||||
|
||||
$fp = fopen($_tmptfile,'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
foreach($_oldtable as $key => $val)
|
||||
{
|
||||
if (!$_tmptable[$key])
|
||||
{
|
||||
fwrite($fp, "\$table['$key'] = \"$val\";\n");
|
||||
}
|
||||
}
|
||||
foreach($_tmptable as $key => $val)
|
||||
{
|
||||
fwrite($fp, "\$table['$key'] = \"$val\";\n");
|
||||
}
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($_tmptfile,0707);
|
||||
|
||||
include $_tmptfile;
|
||||
|
||||
$gid = 0;
|
||||
$mdlarray = array('admin','market','module','site','layout','mediaset','domain','device','notification','search','member','post','bbs','comment','tag','popup','dashboard','connect','widget');
|
||||
foreach($mdlarray as $_val)
|
||||
{
|
||||
$new_modulename = $g['path_module'].$moduledir[$_val][0].'/name.txt';
|
||||
|
||||
$QUE = "insert into ".$table['s_module']."
|
||||
(gid,sys,hidden,mobile,name,id,tblnum,icon,d_regis,lang)
|
||||
values
|
||||
('".$gid."','1','".(strstr('[admin][market][site][member][post][bbs][comment][popup][connect][widget]','['.$_val.']')?0:1)."','1','".($sitelang&&is_file($new_modulename)?implode('',file($new_modulename)):getFolderName($g['path_module'].$moduledir[$_val][0]))."','".$moduledir[$_val][0]."','".$moduledir[$_val][1]."','kf-".($_val=='site'?'home':($_val=='mediaset'?'upload':($_val=='notification'?'notify':($_val=='popup'?'popup':$_val))))."','".$date['totime']."','')";
|
||||
db_query($QUE,$DB_CONNECT);
|
||||
$gid++;
|
||||
}
|
||||
|
||||
$siteid = $siteid ? $siteid : 'home';
|
||||
$layout = 'bs4-default/default.php';
|
||||
$m_layout = 'rc-starter/default.php';
|
||||
|
||||
$QKEY = "gid,id,name,label,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
|
||||
$QVAL = "'0','".$siteid."','$sitename','$sitename','{subject} | {site}','0','','$layout','','$m_layout','','','1','','nic','0','$rewrite','0','0','',''";
|
||||
getDbInsert($table['s_site'],$QKEY,$QVAL);
|
||||
db_query("OPTIMIZE TABLE ".$table['s_site'],$DB_CONNECT);
|
||||
$S = getDbData($table['s_site'],"id='".$siteid."'",'*');
|
||||
$LASTUID = $S['uid'];
|
||||
getDbInsert($table['s_seo'],'rel,parent,title,keywords,description,classification,image_src',"'0','$LASTUID','','','','ALL',''");
|
||||
|
||||
mkdir($g['path_page'].$siteid.'-menus',0707);
|
||||
mkdir($g['path_page'].$siteid.'-pages',0707);
|
||||
mkdir($g['path_page'].$siteid.'-menus/images',0707);
|
||||
mkdir($g['path_page'].$siteid.'-pages/images',0707);
|
||||
mkdir($g['path_var'].'site/'.$siteid,0707);
|
||||
|
||||
@chmod($g['path_page'].$siteid.'-menus',0707);
|
||||
@chmod($g['path_page'].$siteid.'-pages',0707);
|
||||
@chmod($g['path_page'].$siteid.'-menus/images',0707);
|
||||
@chmod($g['path_page'].$siteid.'-pages/images',0707);
|
||||
@chmod($g['path_var'].'site/'.$siteid,0707);
|
||||
|
||||
$vfile = $g['path_var'].'sitephp/1.php';
|
||||
$fp = fopen($vfile,'w');
|
||||
fwrite($fp, trim(stripslashes($sitephpcode)));
|
||||
fclose($fp);
|
||||
@chmod($vfile,0707);
|
||||
|
||||
$mfile = $g['path_page'].$siteid.'-menus/_main';
|
||||
$fp = fopen($mfile.'.css','w');
|
||||
fwrite($fp,'');
|
||||
fclose($fp);
|
||||
@chmod($mfile.'.css',0707);
|
||||
$fp = fopen($mfile.'.js','w');
|
||||
fwrite($fp,'');
|
||||
fclose($fp);
|
||||
@chmod($mfile.'.js',0707);
|
||||
|
||||
$pfile = $g['path_page'].$siteid.'-pages/_main';
|
||||
$fp = fopen($pfile.'.css','w');
|
||||
fwrite($fp,'');
|
||||
fclose($fp);
|
||||
@chmod($pfile.'.css',0707);
|
||||
$fp = fopen($pfile.'.js','w');
|
||||
fwrite($fp,'');
|
||||
fclose($fp);
|
||||
@chmod($pfile.'.js',0707);
|
||||
|
||||
//매니페스트 파일생성
|
||||
$manifestfile = $g['path_var'].'site/'.$siteid.'/manifest.json';
|
||||
$fp = fopen($manifestfile,'w');
|
||||
$iconsURL = $g['s'].'/_core/images/touch/';
|
||||
$icons = array(
|
||||
array('src'=>$iconsURL.'homescreen-128x128.png','sizes'=>'128x128','type'=>'image/png'),
|
||||
array('src'=>$iconsURL.'homescreen-144x144.png','sizes'=>'144x144','type'=>'image/png'),
|
||||
array('src'=>$iconsURL.'homescreen-168x168.png','sizes'=>'168x168','type'=>'image/png'),
|
||||
array('src'=>$iconsURL.'homescreen-192x192.png','sizes'=>'192x192','type'=>'image/png'),
|
||||
array('src'=>$iconsURL.'homescreen-512x512.png','sizes'=>'512x512','type'=>'image/png')
|
||||
);
|
||||
|
||||
$mnObj->name = $sitename;
|
||||
$mnObj->short_name = $sitename;
|
||||
$mnObj->icons = $icons;
|
||||
$mnObj->start_url = '/';
|
||||
$mnObj->display = 'standalone';
|
||||
$mnObj->background_color = '#221E1F';
|
||||
$mnObj->theme_color = '#221E1F';
|
||||
$mnObj->gcm_sender_id = '103953800507'; //FCM 자바스크립트 클라이언트에 공통되는 고정된 값입니다.
|
||||
|
||||
$manifestJSON = json_encode($mnObj,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
|
||||
$_manifestJSON = str_replace("\/", "/", $manifestJSON);
|
||||
fwrite($fp, $_manifestJSON);
|
||||
fclose($fp);
|
||||
@chmod($manifestfile,0707);
|
||||
|
||||
$pagesarray = array
|
||||
(
|
||||
'main'=>array('메인','2','1','1','','',''),
|
||||
'privacy'=>array('개인정보취급방침','3','0','0','bs4-default/docs.php','rc-starter/blank-drawer.php',''),
|
||||
'policy'=>array('이용약관','3','0','0','bs4-default/docs.php','rc-starter/blank-drawer.php',''),
|
||||
'cscenter'=>array('고객센터','3','0','0','bs4-default/default.php','rc-starter/blank-drawer.php',''),
|
||||
'login'=>array('로그인','1','0','1','bs4-default/blank.php','rc-starter/blank-drawer.php','/?m=member&front=login'),
|
||||
'join'=>array('회원가입','1','0','1','bs4-default/blank.php','rc-starter/blank-drawer.php','/?m=member&front=join'),
|
||||
'settings'=>array('개인정보수정','1','0','1','bs4-default/default.php','rc-starter/blank-drawer.php','/?m=member&front=settings'),
|
||||
'password_reset'=>array('비밀번호찾기','1','0','1','bs4-default/default.php','rc-starter/blank-drawer.php','/?m=member&front=login&page=password_reset'),
|
||||
'saved'=>array('저장함','1','0','1','bs4-default/default.php','rc-starter/blank-drawer.php','/?m=member&front=saved'),
|
||||
'noti'=>array('알림함','1','0','1','bs4-default/default.php','rc-starter/blank-drawer.php','/?m=member&front=noti'),
|
||||
'profile'=>array('프로필','1','0','1','bs4-default/default.php','rc-starter/blank-drawer.php','/?m=member&front=profile'),
|
||||
'dashboard'=>array('대시보드','1','0','1','bs4-default/dashboard.php','rc-starter/blank-drawer.php','/?m=member&front=dashboard')
|
||||
);
|
||||
foreach($pagesarray as $_key => $_val)
|
||||
{
|
||||
$QUE = "insert into ".$table['s_page']."
|
||||
(site,pagetype,ismain,mobile,id,category,name,perm_g,perm_l,layout,m_layout,joint,hit,d_regis,d_last,upload,featured_img)
|
||||
values
|
||||
('$LASTUID','$_val[1]','$_val[2]','$_val[3]','$_key','"._LANG('a007','install')."','$_val[0]','','0','$_val[4]','$_val[5]','$_val[6]','0','".$date['totime']."','','0','')";
|
||||
db_query($QUE,$DB_CONNECT);
|
||||
$lastpage = getDbCnt($table['s_page'],'max(uid)','');
|
||||
getDbInsert($table['s_seo'],'rel,parent,title,keywords,description,classification,image_src',"'2','$lastpage','$title','$keywords','$description','ALL',''");
|
||||
$mfile = $g['path_page'].$siteid.'-pages/'.$_key.'.php';
|
||||
$fp = fopen($mfile,'w');
|
||||
fwrite($fp,$_val[0]);
|
||||
fclose($fp);
|
||||
@chmod($mfile,0707);
|
||||
$mfile = $g['path_page'].$siteid.'-pages/'.$_key.'.widget.php';
|
||||
$fp = fopen($mfile,'w');
|
||||
fwrite($fp,'');
|
||||
fclose($fp);
|
||||
@chmod($mfile,0707);
|
||||
}
|
||||
|
||||
db_query("insert into ".$table['s_mbrid']." (site,id,pw)values('1','".$id."','".getCrypt($pw1,$date['totime'])."')",$DB_CONNECT);
|
||||
$my['super'] = 1;
|
||||
$my['admin'] = 1;
|
||||
$nick = $nick ? $nick : _LANG('a008','install');
|
||||
$sex = $sex ? $sex : 0;
|
||||
$cellphone = $tel_1 && $tel_2 && $tel_3 ? $tel_1.'-'.$tel_2.'-'.$tel_3 : '';
|
||||
$birth1 = $birth_1 ? $birth_1 : 0;
|
||||
$birth2 = $birth_2 && $birth_3 ? $birth_2.$birth_3 : 0;
|
||||
|
||||
$QUE = "insert into ".$table['s_mbrdata']."
|
||||
(memberuid,site,auth,mygroup,level,comp,super,admin,adm_view,
|
||||
email,name,nic,grade,photo,cover,home,sex,birth1,birth2,birthtype,phone,tel,
|
||||
job,marr1,marr2,sms,mailing,smail,point,usepoint,money,cash,num_login,bio,now_log,last_log,last_pw,is_paper,d_regis,tmpcode,sns,noticeconf,num_notice,addfield)
|
||||
values
|
||||
('1','1','1','1','1','0','".$my['super']."','".$my['admin']."','',
|
||||
'".$email."','".$name."','".$nick."','','','','','".$sex."','".$birth1."','".$birth2."','".$birthtype."','".$cellphone."','',
|
||||
'','0','0','1','1','0','0','0','0','0','1','','1','".$date['totime']."','".$date['today']."','0','".$date['totime']."','','','','0','')";
|
||||
db_query($QUE,$DB_CONNECT);
|
||||
|
||||
$QUE = "insert into ".$table['s_mbremail']."
|
||||
(mbruid,email,base,backup,d_regis,d_code,d_verified)
|
||||
values
|
||||
('1','".$email."','1','0','".$date['totime']."','','".$date['totime']."')";
|
||||
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);
|
||||
}
|
||||
|
||||
//레이아웃 설정파일 생성
|
||||
$layoutset = array('bs4-default','rc-starter');
|
||||
foreach ($layoutset as $_val) {
|
||||
|
||||
if ($_val=='rc-starter') {
|
||||
$_layout = explode('/', $m_layout);
|
||||
$layout_header_search = "true";
|
||||
$layout_header_noti = "true";
|
||||
$layout_main_type = 'postAllFeed';
|
||||
} else {
|
||||
$_layout = explode('/', $layout);
|
||||
$layout_main_dashboard = "false";
|
||||
$layout_header_type = "type1";
|
||||
$layout_header_menu = "dropdown-hover";
|
||||
$layout_header_menu_limit = "3";
|
||||
$layout_header_search = "button";
|
||||
$layout_header_allcat = "false";
|
||||
$layout_header_login = "true";
|
||||
$layout_header_container = "container";
|
||||
$layout_home_container = "container";
|
||||
$layout_default_container = "container";
|
||||
$layout_default_titlebar = "false";
|
||||
$layout_sidebar_container = "container";
|
||||
$layout_sidebar_titlebar = "false";
|
||||
$layout_docs_container = "container";
|
||||
$layout_footer_container = "container";
|
||||
$layout_footer_type = "type1";
|
||||
}
|
||||
|
||||
$layout_header_title = $sitename;
|
||||
|
||||
$g['layoutVarForSite'] = $g['path_var'].'site/'.$siteid.'/layout.'.$_val.'.var.php';
|
||||
include $g['path_layout'].$_layout[0].'/_var/_var.config.php';
|
||||
|
||||
$fp = fopen($g['layoutVarForSite'],'w');
|
||||
fwrite($fp, "<?php\n");
|
||||
|
||||
foreach($d['layout']['dom'] as $_key => $_val)
|
||||
{
|
||||
if(!count($_val[2])) continue;
|
||||
foreach($_val[2] as $_v)
|
||||
{
|
||||
if($_v[1] == 'checkbox')
|
||||
{
|
||||
foreach(${'layout_'.$_key.'_'.$_v[0].'_chk'} as $_chk)
|
||||
{
|
||||
${'layout_'.$_key.'_'.$_v[0]} .= $_chk.',';
|
||||
}
|
||||
|
||||
fwrite($fp, "\$d['layout']['".$_key.'_'.$_v[0]."'] = \"".trim(${'layout_'.$_key.'_'.$_v[0]})."\";\n");
|
||||
${'layout_'.$_key.'_'.$_v[0]} = '';
|
||||
}
|
||||
else if ($_v[1] == 'textarea')
|
||||
{
|
||||
fwrite($fp, "\$d['layout']['".$_key.'_'.$_v[0]."'] = \"".htmlspecialchars(str_replace('$','',trim(${'layout_'.$_key.'_'.$_v[0]})))."\";\n");
|
||||
}
|
||||
else if ($_v[1] == 'file')
|
||||
{
|
||||
|
||||
$tmpname = $_FILES['layout_'.$_key.'_'.$_v[0]]['tmp_name'];
|
||||
if (is_uploaded_file($tmpname))
|
||||
{
|
||||
$realname = $_FILES['layout_'.$_key.'_'.$_v[0]]['name'];
|
||||
$fileExt = strtolower(getExt($realname));
|
||||
$fileExt = $fileExt == 'jpeg' ? 'jpg' : $fileExt;
|
||||
$fileName = $r.'_'.$_key.'_'.$_v[0].'.'.$fileExt;
|
||||
$saveFile = $g['path_layout'].$layout.'/_var/'.$fileName;
|
||||
if (!strstr('[gif][jpg][png][swf]',$fileExt))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
move_uploaded_file($tmpname,$saveFile);
|
||||
@chmod($saveFile,0707);
|
||||
}
|
||||
else {
|
||||
$fileName = $d['layout'][$_key.'_'.$_v[0]];
|
||||
if ($fileName && ${'layout_'.$_key.'_'.$_v[0].'_del'})
|
||||
{
|
||||
unlink( $g['path_layout'].$layout.'/_var/'.$fileName);
|
||||
$fileName = '';
|
||||
}
|
||||
}
|
||||
fwrite($fp, "\$d['layout']['".$_key.'_'.$_v[0]."'] = \"".$fileName."\";\n");
|
||||
}
|
||||
else {
|
||||
fwrite($fp, "\$d['layout']['".$_key.'_'.$_v[0]."'] = \"".htmlspecialchars(str_replace('$','',trim(${'layout_'.$_key.'_'.$_v[0]})))."\";\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fwrite($fp, "?>");
|
||||
fclose($fp);
|
||||
@chmod($g['layoutVarForSite'],0707);
|
||||
}
|
||||
|
||||
setcookie('svshop', $id.'|'.$pw1, time()+60*60*24*30, '/');
|
||||
$_SESSION['mbr_uid'] = 1;
|
||||
$_SESSION['mbr_pw'] = getCrypt($pw1,$date['totime']);
|
||||
|
||||
DirDelete('./_install');
|
||||
|
||||
shell_exec('git init');
|
||||
shell_exec('git remote add origin https://github.com/kimsQ/rb2.git');
|
||||
|
||||
// putNotice(1,'admin',0,sprintf(_LANG('a012','install'),$name,$name),'','');
|
||||
getLink('./index.php?r='.$siteid.'&iframe=Y&system=guide.install','parent.','','');
|
||||
?>
|
||||
23
_install/dir.func.php
Normal file
23
_install/dir.func.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
//퍼미션변경
|
||||
function DirChmod($t_dir,$mode)
|
||||
{
|
||||
$dirh = opendir($t_dir);
|
||||
while(false !== ($filename = readdir($dirh)))
|
||||
{
|
||||
if($filename != '.' && $filename != '..')
|
||||
{
|
||||
if(!is_file($t_dir.'/'.$filename))
|
||||
{
|
||||
@chmod($t_dir.'/'.$filename,$mode);
|
||||
DirChmod($t_dir.'/'.$filename,$mode);
|
||||
}
|
||||
else {
|
||||
@chmod($t_dir.'/'.$filename,$mode);
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($dirh);
|
||||
@chmod($t_dir,$mode);
|
||||
}
|
||||
?>
|
||||
85
_install/download.php
Normal file
85
_install/download.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
|
||||
if ($sitelang)
|
||||
{
|
||||
include $g['path_root'].'_install/rss.func.php';
|
||||
$_langfile = $g['path_root'].'_install/language/'.$sitelang.'/lang.action.php';
|
||||
if (is_file($_langfile)) include $_langfile;
|
||||
}
|
||||
|
||||
if (!is_file($g['path_root'].'LICENSE'))
|
||||
{
|
||||
include $g['path_root'].'_install/dir.func.php';
|
||||
require $g['path_root'].'_install/unzip/ArchiveExtractor.class.php';
|
||||
|
||||
if (!is_writable($g['path_root']))
|
||||
{
|
||||
$_filePath = explode('/',$_SERVER['SCRIPT_NAME']);
|
||||
$_instPath = $_filePath[count($_filePath)-2];
|
||||
echo '<script>';
|
||||
echo "parent.errDownload('[".($_instPath?$_instPath:_LANG('a001','install'))."]');";
|
||||
echo '</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
if ($version == '1')
|
||||
{
|
||||
$tmpname = $_FILES['upfile']['tmp_name'];
|
||||
$realname = $_FILES['upfile']['name'];
|
||||
|
||||
if (is_uploaded_file($tmpname))
|
||||
{
|
||||
if (substr($realname,0,3) != 'rb-' || substr($realname,-4) != '.zip')
|
||||
{
|
||||
echo '<script>';
|
||||
echo "parent.errDownload('1');";
|
||||
echo '</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
$extPath = './';
|
||||
$saveFile = $extPath.'rb2-package.zip';
|
||||
move_uploaded_file($tmpname,$saveFile);
|
||||
|
||||
$extractor = new ArchiveExtractor();
|
||||
$extractor -> extractArchive($saveFile,$g['path_root']);
|
||||
DirChmod($g['path_root'],0707);
|
||||
unlink($saveFile);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$rbPackage = getUrlData('http://www.kimsq.co.kr/__update/core/'.$version.'.zip',10);
|
||||
if (!trim($rbPackage))
|
||||
{
|
||||
echo '<script>';
|
||||
echo "parent.errDownload('');";
|
||||
echo '</script>';
|
||||
exit;
|
||||
}
|
||||
|
||||
$rbPackageFile = $g['path_root'].$version.'.zip';
|
||||
$fp = fopen($rbPackageFile,'w');
|
||||
fwrite($fp,$rbPackage);
|
||||
fclose($fp);
|
||||
|
||||
$zip = new ZipArchive;
|
||||
if ($zip->open($rbPackageFile) === TRUE) {
|
||||
$zip->extractTo($g['path_root']);
|
||||
$zip->close();
|
||||
} else {
|
||||
echo 'failed';
|
||||
}
|
||||
|
||||
DirChmod($g['path_root'],0707);
|
||||
unlink($rbPackageFile);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<script>
|
||||
window.onload = function()
|
||||
{
|
||||
parent.location.href = './index.php?sitelang=<?php echo $sitelang?>';
|
||||
}
|
||||
</script>
|
||||
117
_install/font-kimsq/css/font-kimsq.css
Normal file
117
_install/font-kimsq/css/font-kimsq.css
Normal file
@@ -0,0 +1,117 @@
|
||||
@font-face {
|
||||
font-family: 'kimsq';
|
||||
src:url('../fonts/kimsq-webfont.eot');
|
||||
src:url('../fonts/kimsq-webfont.eot?#iefix') format('embedded-opentype'),
|
||||
url('../fonts/kimsq-webfont.ttf') format('truetype'),
|
||||
url('../fonts/kimsq-webfont.woff') format('woff'),
|
||||
url('../fonts/kimsq-webfont.svg#icomoon') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
[class*="kf-"] {
|
||||
font-family: 'kimsq';
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
display: inline-block;
|
||||
|
||||
/* Better Font Rendering =========== */
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
.kf-inverse {
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.kf-bi-07:before {
|
||||
content: "\e609";
|
||||
}
|
||||
.kf-bi-06:before {
|
||||
content: "\e605";
|
||||
}
|
||||
.kf-bi-05:before {
|
||||
content: "\e604";
|
||||
}
|
||||
.kf-bi-04:before {
|
||||
content: "\e607";
|
||||
}
|
||||
.kf-bi-03:before {
|
||||
content: "\e608";
|
||||
}
|
||||
.kf-bi-02:before {
|
||||
content: "\e60a";
|
||||
}
|
||||
.kf-bi-01:before {
|
||||
content: "\e60b";
|
||||
}
|
||||
.kf-comment:before {
|
||||
content: "\e600";
|
||||
}
|
||||
.kf-bbs:before {
|
||||
content: "\e601";
|
||||
}
|
||||
.kf-analysis:before {
|
||||
content: "\e602";
|
||||
}
|
||||
.kf-admin:before {
|
||||
content: "\e603";
|
||||
}
|
||||
.kf-editor:before {
|
||||
content: "\e606";
|
||||
}
|
||||
.kf-widget:before {
|
||||
content: "\e60c";
|
||||
}
|
||||
.kf-upload:before {
|
||||
content: "\e60d";
|
||||
}
|
||||
.kf-tag:before {
|
||||
content: "\e60e";
|
||||
}
|
||||
.kf-home:before {
|
||||
content: "\e60f";
|
||||
}
|
||||
.kf-search:before {
|
||||
content: "\e610";
|
||||
}
|
||||
.kf-popup:before {
|
||||
content: "\e611";
|
||||
}
|
||||
.kf-notify:before {
|
||||
content: "\e612";
|
||||
}
|
||||
.kf-module:before {
|
||||
content: "\e613";
|
||||
}
|
||||
.kf-member:before {
|
||||
content: "\e614";
|
||||
}
|
||||
.kf-media:before {
|
||||
content: "\e615";
|
||||
}
|
||||
.kf-market:before {
|
||||
content: "\e616";
|
||||
}
|
||||
.kf-layout:before {
|
||||
content: "\e617";
|
||||
}
|
||||
.kf-domain:before {
|
||||
content: "\e618";
|
||||
}
|
||||
.kf-device:before {
|
||||
content: "\e619";
|
||||
}
|
||||
.kf-dbmanager:before {
|
||||
content: "\e61a";
|
||||
}
|
||||
.kf-dashboard:before {
|
||||
content: "\e61b";
|
||||
}
|
||||
.kf-contents:before {
|
||||
content: "\e61c";
|
||||
}
|
||||
BIN
_install/font-kimsq/fonts/kimsq-webfont.eot
Normal file
BIN
_install/font-kimsq/fonts/kimsq-webfont.eot
Normal file
Binary file not shown.
39
_install/font-kimsq/fonts/kimsq-webfont.svg
Normal file
39
_install/font-kimsq/fonts/kimsq-webfont.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 38 KiB |
BIN
_install/font-kimsq/fonts/kimsq-webfont.ttf
Normal file
BIN
_install/font-kimsq/fonts/kimsq-webfont.ttf
Normal file
Binary file not shown.
BIN
_install/font-kimsq/fonts/kimsq-webfont.woff
Normal file
BIN
_install/font-kimsq/fonts/kimsq-webfont.woff
Normal file
Binary file not shown.
14
_install/language/DEFAULT/lang.action.php
Normal file
14
_install/language/DEFAULT/lang.action.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$lang['install']['a001'] = '최상위폴더';
|
||||
$lang['install']['a002'] = 'DB접속 유저네임이나 패스워드 혹은 포트가 정확하지 않습니다.';
|
||||
$lang['install']['a003'] = 'DB네임이 정확하지 않습니다.';
|
||||
$lang['install']['a004'] = '이미 동일한 테이블식별자로 킴스큐Rb용 DB가 생성되어 있습니다. \n다른 테이블식별자를 사용해 주세요.';
|
||||
$lang['install']['a005'] = '개인정보 취급방침';
|
||||
$lang['install']['a006'] = '이용약관';
|
||||
$lang['install']['a007'] = '기본페이지';
|
||||
$lang['install']['a008'] = '관리자';
|
||||
$lang['install']['a009'] = '킴스큐 설치시에 입력한 회원비밀번호는?';
|
||||
$lang['install']['a010'] = '그룹';
|
||||
$lang['install']['a011'] = '레벨';
|
||||
$lang['install']['a012'] = '안녕하세요? <strong>%s님</strong>, <code>킴스큐 Rb2</code>를 설치해 주셔서 감사합니다. 킴스큐는 혁신적인 웹 어플리케이션 개발 플랫폼을 추구하며 늘 %s님과 함께할 것입니다. 다시한번 감사드립니다.';
|
||||
?>
|
||||
86
_install/language/DEFAULT/lang.install.php
Normal file
86
_install/language/DEFAULT/lang.install.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
$lang['install']['flag'] = 'ko';
|
||||
$lang['install']['i001'] = 'KimsQ Rb 설치';
|
||||
$lang['install']['i002'] = '설치할 패키지를 선택해주세요.';
|
||||
$lang['install']['i003'] = '다운로드 완료 후 자동으로 다음단계로 이동되니 새로고침 하지 마세요.<br class="hidden-xs">네트웍 상태에 따라 다운로드에 수초가 소요될수 있습니다.';
|
||||
$lang['install']['i004'] = '설치하기';
|
||||
$lang['install']['i005'] = '또는 패키지 파일을 업로드해 주세요.';
|
||||
$lang['install']['i006'] = '파일 찾기';
|
||||
$lang['install']['i007'] = '킴스큐 인스톨러';
|
||||
$lang['install']['i008'] = '사용조건 동의';
|
||||
$lang['install']['i009'] = '데이터베이스';
|
||||
$lang['install']['i010'] = '관리자 등록';
|
||||
$lang['install']['i011'] = '사이트 생성';
|
||||
$lang['install']['i012'] = '사용조건 동의';
|
||||
$lang['install']['i013'] = '레드블럭 라이선스';
|
||||
$lang['install']['i014'] = '위의 라이선스 정책에 동의 합니다.';
|
||||
$lang['install']['i015'] = '데이터베이스 설정';
|
||||
$lang['install']['i016'] = '기본정보';
|
||||
$lang['install']['i017'] = '고급옵션';
|
||||
$lang['install']['i018'] = 'DB종류 <small>(type)</small>';
|
||||
$lang['install']['i019'] = 'DB명 <small>(name)</small>';
|
||||
$lang['install']['i020'] = '유저 <small>(username)</small>';
|
||||
$lang['install']['i021'] = '암호 <small>(password)</small>';
|
||||
$lang['install']['i022'] = '데이터베이스(MySQL) 정보를 정확히 입력해 주십시오. <br class="hidden-xs">입력된 정보가 정확해야만 정상적으로 설치가 진행됩니다.';
|
||||
$lang['install']['i023'] = '호스트 <small>(Host)</small>';
|
||||
$lang['install']['i024'] = '데이터베이스가 다른 서버에 있다면 이 설정을 바꾸십시오.';
|
||||
$lang['install']['i025'] = '포트 <small>(Port)</small>';
|
||||
$lang['install']['i026'] = 'DB서버의 포트가 기본 포트가 아닐 경우 변경하십시오.';
|
||||
$lang['install']['i027'] = '접두어 <small>(Prefix)</small>';
|
||||
$lang['install']['i028'] = '단일 DB에 킴스큐 복수설치를 원하시면 변경해 주십시오.';
|
||||
$lang['install']['i029'] = '형식 <small>(Engine)</small>';
|
||||
$lang['install']['i030'] = '기본엔진은 MyISAM 입니다.';
|
||||
$lang['install']['i031'] = '이 선택사항은 일부 경우에만 필요합니다.<br class="hidden-xs">무엇을 입력해야할지 모를경우 그대로 두거나 호스팅 제공자에게 문의하십시오.';
|
||||
$lang['install']['i032'] = '관리자 등록';
|
||||
$lang['install']['i033'] = '기본정보';
|
||||
$lang['install']['i034'] = '추가정보';
|
||||
$lang['install']['i035'] = '이름';
|
||||
$lang['install']['i036'] = '이메일';
|
||||
$lang['install']['i037'] = '아이디';
|
||||
$lang['install']['i038'] = '영문소문자+숫자 4~12자 이내';
|
||||
$lang['install']['i039'] = '패스워드';
|
||||
$lang['install']['i040'] = '패스워드 확인';
|
||||
$lang['install']['i041'] = '닉네임';
|
||||
$lang['install']['i042'] = '성별';
|
||||
$lang['install']['i043'] = '남성';
|
||||
$lang['install']['i044'] = '여성';
|
||||
$lang['install']['i045'] = '생년월일';
|
||||
$lang['install']['i046'] = '음력생일';
|
||||
$lang['install']['i047'] = '연락처';
|
||||
$lang['install']['i048'] = '입력된 정보로 신규 회원등록이 이루어지며 최고관리자 권한이 부여됩니다. <br class="hidden-xs">관리자 부가정보는 설치 후 프로필페이지 추가로 등록할 수 있습니다.';
|
||||
$lang['install']['i049'] = '사이트 생성';
|
||||
$lang['install']['i050'] = '사이트명';
|
||||
$lang['install']['i051'] = '이 사이트의 명칭을 입력해 주세요.';
|
||||
$lang['install']['i052'] = '사이트 코드';
|
||||
$lang['install']['i053'] = '이 사이트를 구분하기 위한 코드입니다.';
|
||||
$lang['install']['i054'] = '사이트코드';
|
||||
$lang['install']['i055'] = '고유주소(Permalink) 사용';
|
||||
$lang['install']['i056'] = '주소를 짧게 줄일 수 있습니다.(서버에서 rewrite_mod 허용시)';
|
||||
$lang['install']['i057'] = '사이트명 입력 후 다음버튼을 클릭하면 킴스큐 설치가 진행됩니다.<br class="hidden-xs">설치가 완료된 후에는 메뉴와 페이지를 만들거나 사이트 패키지를 이용하세요.';
|
||||
$lang['install']['i058'] = '이전';
|
||||
$lang['install']['i059'] = '다음';
|
||||
$lang['install']['i060'] = '정말로 선택하신 버젼을 설치하시겠습니까?';
|
||||
$lang['install']['i061'] = 'KimsQ Rb 다운로드중..';
|
||||
$lang['install']['i062'] = '서버에서 다운로드 받고 있습니다...';
|
||||
$lang['install']['i063'] = '죄송합니다. 선택하신 버젼은 아직 다운로드 받으실 수 없습니다.';
|
||||
$lang['install']['i064'] = '죄송합니다. 킴스큐 패키지가 아닙니다.';
|
||||
$lang['install']['i065'] = '설치폴더의 쓰기권한이 없습니다.\n퍼미션을 707로 변경 후 다시 시도해 주세요.';
|
||||
$lang['install']['i066'] = 'KimsQ Rb 업로드중..';
|
||||
$lang['install']['i067'] = '서버에서 패키지 압축을 풀고 있습니다...';
|
||||
$lang['install']['i068'] = 'DB호스트를 입력해 주세요.';
|
||||
$lang['install']['i069'] = 'DB명을 입력해 주세요.';
|
||||
$lang['install']['i070'] = 'DB사용자를 입력해 주세요.';
|
||||
$lang['install']['i071'] = 'DB 패스워드를 입력해 주세요.';
|
||||
$lang['install']['i072'] = 'DB 포트번호를 입력해 주세요.';
|
||||
$lang['install']['i073'] = 'DB 접두어를 정확히 입력해 주세요.';
|
||||
$lang['install']['i074'] = '이름을 입력해 주세요.';
|
||||
$lang['install']['i075'] = '이메일주소를 정확히 입력해 주세요.';
|
||||
$lang['install']['i076'] = '아이디를 정확히 입력해 주세요.';
|
||||
$lang['install']['i077'] = '패스워드를 입력해 주세요.';
|
||||
$lang['install']['i078'] = '패스워드를 다시한번 입력해 주세요.';
|
||||
$lang['install']['i079'] = '패스워드가 일치하지 않습니다.';
|
||||
$lang['install']['i080'] = '설치중입니다. 잠시만 기다려 주세요.';
|
||||
$lang['install']['i081'] = '사이트명을 입력해 주세요.';
|
||||
$lang['install']['i082'] = '사이트 코드를 정확히 입력해 주세요.';
|
||||
$lang['install']['i083'] = '정말로 설치하시겠습니까?';
|
||||
?>
|
||||
1
_install/language/DEFAULT/name.txt
Normal file
1
_install/language/DEFAULT/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
한국어
|
||||
14
_install/language/english/lang.action.php
Normal file
14
_install/language/english/lang.action.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
$lang['install']['a001'] = 'ROOT'; //최상위폴더
|
||||
$lang['install']['a002'] = 'The username,password or port number of database is not correct.'; //DB접속 유저네임이나 패스워드 혹은 포트가 정확하지 않습니다.
|
||||
$lang['install']['a003'] = 'The DB name is not correct.'; //DB네임이 정확하지 않습니다.
|
||||
$lang['install']['a004'] = 'Other KimsQ is alredy installed using same table prefix on this server. \nPlease change the table prefix.'; //이미 동일한 테이블식별자로 킴스큐Rb용 DB가 생성되어 있습니다. \n다른 테이블식별자를 사용해 주세요.
|
||||
$lang['install']['a005'] = 'Privacy Policy'; //개인정보 취급방침
|
||||
$lang['install']['a006'] = 'Terms of Service'; //이용약관
|
||||
$lang['install']['a007'] = 'Default pages'; //기본페이지
|
||||
$lang['install']['a008'] = 'Admin'; //관리자
|
||||
$lang['install']['a009'] = 'What is the password writen you have installed?'; //킴스큐 설치시에 입력한 회원비밀번호는?
|
||||
$lang['install']['a010'] = 'Group'; //그룹(단수)
|
||||
$lang['install']['a011'] = 'Level'; //레벨(단수)
|
||||
$lang['install']['a012'] = 'Hello? <strong>%s</strong>, Thank you for your installing <code>KimsQ Rb 2.0</code> which is trying to be with global people. KimsQ is always seeking the web framework innovation and hope to be with you. Thank you again.'; //안녕하세요? <strong>%s님</strong>, 세계인과 함께하는 글로벌 <code>킴스큐 Rb 2.0</code> 을 설치해 주셔서 감사합니다. 킴스큐는 혁신적인 웹 어플리케이션 개발 플랫폼을 추구하며 늘 %s님과 함께할 것입니다. 다시한번 감사드립니다.
|
||||
?>
|
||||
86
_install/language/english/lang.install.php
Normal file
86
_install/language/english/lang.install.php
Normal file
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
$lang['install']['flag'] = 'en'; //en
|
||||
$lang['install']['i001'] = 'Install KimsQ Rb'; //KimsQ Rb 설치
|
||||
$lang['install']['i002'] = 'Please select a package you want to install.'; //설치할 패키지를 선택해주세요.
|
||||
$lang['install']['i003'] = 'Please do not refresh because this automatically will move to next step after downloading. It may takes over several seconds in network condition.'; //다운로드 완료 후 자동으로 다음단계로 이동되니 새로고침 하지 마세요.<br class="hidden-xs">네트웍 상태에 따라 다운로드에 수초가 소요될수 있습니다.
|
||||
$lang['install']['i004'] = 'Install Now'; //설치하기
|
||||
$lang['install']['i005'] = 'You can also install Rb using direct upload.'; //또는 패키지 파일을 업로드해 주세요.
|
||||
$lang['install']['i006'] = 'Browse file'; //파일 찾기
|
||||
$lang['install']['i007'] = 'KimsQ Installer'; //킴스큐 인스톨러
|
||||
$lang['install']['i008'] = 'Agreement'; //사용조건 동의
|
||||
$lang['install']['i009'] = 'Set Database'; //데이터베이스
|
||||
$lang['install']['i010'] = 'Regist User'; //사용자 등록
|
||||
$lang['install']['i011'] = 'Create Site'; //사이트 생성
|
||||
$lang['install']['i012'] = 'License Agreement'; //사용조건 동의
|
||||
$lang['install']['i013'] = 'Redblock Software License'; //오픈소스 소프트웨어 라이선스
|
||||
$lang['install']['i014'] = 'I agree with this license policy.'; //위의 라이선스 정책에 동의 합니다.
|
||||
$lang['install']['i015'] = 'Database settings'; //데이터베이스 설정
|
||||
$lang['install']['i016'] = 'Default'; //기본정보
|
||||
$lang['install']['i017'] = 'Advanced'; //고급옵션
|
||||
$lang['install']['i018'] = 'DB kind'; //DB종류 <small>(type)</small>
|
||||
$lang['install']['i019'] = 'DB name'; //DB명 <small>(name)</small>
|
||||
$lang['install']['i020'] = 'Username'; //유저 <small>(username)</small>
|
||||
$lang['install']['i021'] = 'Password'; //암호 <small>(password)</small>
|
||||
$lang['install']['i022'] = 'Please input the Database(MySQL) infomation exactly. You can go to next step with correct infomation.'; //데이터베이스(MySQL) 정보를 정확히 입력해 주십시오. <br class="hidden-xs">입력된 정보가 정확해야만 정상적으로 설치가 진행됩니다.
|
||||
$lang['install']['i023'] = 'DB Host'; //호스트 <small>(Host)</small>
|
||||
$lang['install']['i024'] = 'Change this if the DB is on remote server.'; //데이터베이스가 다른 서버에 있다면 이 설정을 바꾸십시오.
|
||||
$lang['install']['i025'] = 'DB port'; //포트 <small>(Port)</small>
|
||||
$lang['install']['i026'] = 'Change this if the DB server port is not defalt.'; //DB서버의 포트가 기본 포트가 아닐 경우 변경하십시오.
|
||||
$lang['install']['i027'] = 'Table prefix'; //접두어 <small>(Prefix)</small>
|
||||
$lang['install']['i028'] = 'Change this if KimsQ has been installing on this server already.'; //단일 DB에 킴스큐 복수설치를 원하시면 변경해 주십시오.
|
||||
$lang['install']['i029'] = 'DB engine'; //형식 <small>(Engine)</small>
|
||||
$lang['install']['i030'] = 'MyISAM is default.'; //기본엔진은 MyISAM 입니다.
|
||||
$lang['install']['i031'] = 'These options is needed for specific case. please do not change these or ask your hosting provider if you do not know what you have to do.'; //이 선택사항은 일부 경우에만 필요합니다.<br class="hidden-xs">무엇을 입력해야할지 모를경우 그대로 두거나 호스팅 제공자에게 문의하십시오.
|
||||
$lang['install']['i032'] = 'User Registration'; //사용자 등록
|
||||
$lang['install']['i033'] = 'Default'; //기본정보
|
||||
$lang['install']['i034'] = 'Advanced'; //추가정보
|
||||
$lang['install']['i035'] = 'Name'; //이름
|
||||
$lang['install']['i036'] = 'Email'; //이메일
|
||||
$lang['install']['i037'] = 'ID'; //아이디
|
||||
$lang['install']['i038'] = 'English lower case+number 4~12'; //영문소문자+숫자 4~12자 이내
|
||||
$lang['install']['i039'] = 'Password'; //패스워드
|
||||
$lang['install']['i040'] = 'Password again'; //패스워드 확인
|
||||
$lang['install']['i041'] = 'Nickname'; //닉네임
|
||||
$lang['install']['i042'] = 'Sex'; //성별
|
||||
$lang['install']['i043'] = 'Male'; //남성
|
||||
$lang['install']['i044'] = 'Femail'; //여성
|
||||
$lang['install']['i045'] = 'Birthday'; //생년월일
|
||||
$lang['install']['i046'] = 'Lunar'; //음력생일
|
||||
$lang['install']['i047'] = 'Phone'; //연락처
|
||||
$lang['install']['i048'] = 'A user as a super administrator will be added by these information. You can add your other information in your profile page after installing.'; //입력된 정보로 신규 회원등록이 이루어지며 최고관리자 권한이 부여됩니다. <br class="hidden-xs">관리자 부가정보는 설치 후 프로필페이지 추가로 등록할 수 있습니다.
|
||||
$lang['install']['i049'] = 'Site Creation'; //사이트 생성
|
||||
$lang['install']['i050'] = 'Site label'; //사이트명
|
||||
$lang['install']['i051'] = 'Please input name of this site.'; //이 사이트의 명칭을 입력해 주세요.
|
||||
$lang['install']['i052'] = 'Site code'; //사이트 코드
|
||||
$lang['install']['i053'] = 'This is code for distinguishing this site among others.'; //이 사이트를 구분하기 위한 코드입니다.
|
||||
$lang['install']['i054'] = 'sitecode'; //사이트코드
|
||||
$lang['install']['i055'] = 'Using Permalink'; //고유주소(Permalink) 사용
|
||||
$lang['install']['i056'] = 'You can make URL shorter.(in rewrite_mod available case)'; //주소를 짧게 줄일 수 있습니다.(서버에서 rewrite_mod 허용시)
|
||||
$lang['install']['i057'] = 'KimsQ will be installed after writing site name and clicking next button. After installing, create menus,pages or use site packages.'; //사이트명 입력 후 다음버튼을 클릭하면 킴스큐 설치가 진행됩니다.<br class="hidden-xs">설치가 완료된 후에는 메뉴와 페이지를 만들거나 사이트 패키지를 이용하세요.
|
||||
$lang['install']['i058'] = 'Previous'; //이전
|
||||
$lang['install']['i059'] = 'Next'; //다음
|
||||
$lang['install']['i060'] = 'Are you sure this version to install?'; //정말로 선택하신 버젼을 설치하시겠습니까?
|
||||
$lang['install']['i061'] = 'Downloading KimsQ Rb..'; //KimsQ Rb 다운로드중..
|
||||
$lang['install']['i062'] = 'Now downloading from the server...'; //서버에서 다운로드 받고 있습니다...
|
||||
$lang['install']['i063'] = 'I am sorry, the package file you select is not available now.'; //죄송합니다. 선택하신 버젼은 아직 다운로드 받으실 수 없습니다.
|
||||
$lang['install']['i064'] = 'I am sorry, it is not KimsQ package file.'; //죄송합니다. 킴스큐 패키지가 아닙니다.
|
||||
$lang['install']['i065'] = 'You have no permission to write at the install folder.\nTry again after changing the permission to 707'; //설치폴더의 쓰기권한이 없습니다.\n퍼미션을 707로 변경 후 다시 시도해 주세요.
|
||||
$lang['install']['i066'] = 'Uploading KimsQ Rb..'; //KimsQ Rb 업로드중..
|
||||
$lang['install']['i067'] = 'Unzipping package file on the server...'; //서버에서 패키지 압축을 풀고 있습니다...
|
||||
$lang['install']['i068'] = 'The DB host is required and cannot be empty.'; //DB호스트를 입력해 주세요.
|
||||
$lang['install']['i069'] = 'The DB name is required and cannot be empty.'; //DB명을 입력해 주세요.
|
||||
$lang['install']['i070'] = 'The DB user is required and cannot be empty.'; //DB사용자를 입력해 주세요.
|
||||
$lang['install']['i071'] = 'The password is required and cannot be empty.'; //DB 패스워드를 입력해 주세요.
|
||||
$lang['install']['i072'] = 'The DB port number is required and cannot be empty.'; //DB 포트번호를 입력해 주세요.
|
||||
$lang['install']['i073'] = 'The Table prefix is required and cannot be empty.'; //DB 접두어를 정확히 입력해 주세요.
|
||||
$lang['install']['i074'] = 'The Name is required and cannot be empty.'; //이름을 입력해 주세요.
|
||||
$lang['install']['i075'] = 'The Email address is required and cannot be empty.'; //이메일주소를 정확히 입력해 주세요.
|
||||
$lang['install']['i076'] = 'The ID is required and cannot be empty.'; //아이디를 정확히 입력해 주세요.
|
||||
$lang['install']['i077'] = 'The password is required and cannot be empty.'; //패스워드를 입력해 주세요.
|
||||
$lang['install']['i078'] = 'Please input the password again.'; //패스워드를 다시한번 입력해 주세요.
|
||||
$lang['install']['i079'] = 'Both passwords are not same.'; //패스워드가 일치하지 않습니다.
|
||||
$lang['install']['i080'] = 'Now installing. Please wait a seconds.'; //설치중입니다. 잠시만 기다려 주세요.
|
||||
$lang['install']['i081'] = 'Please input the site name.'; //사이트명을 입력해 주세요.
|
||||
$lang['install']['i082'] = 'Please input the site code exactly.'; //사이트 코드를 정확히 입력해 주세요.
|
||||
$lang['install']['i083'] = 'Do you want to go next step really?'; //정말로 설치하시겠습니까?
|
||||
?>
|
||||
1
_install/language/english/name.txt
Normal file
1
_install/language/english/name.txt
Normal file
@@ -0,0 +1 @@
|
||||
English
|
||||
182
_install/main.css
Normal file
182
_install/main.css
Normal file
@@ -0,0 +1,182 @@
|
||||
/*!
|
||||
* kimsQ Rb Installer
|
||||
* Version: 1.0
|
||||
* Homepage: http://www.kimsq.com
|
||||
* Repository: https://github.com/kimsQ/rb-installer
|
||||
* Copyright 2014 redblock inc
|
||||
* Licensed under LGPL
|
||||
* Based on Bootstrap v3.2.0
|
||||
*/
|
||||
|
||||
|
||||
#rb-body-install {
|
||||
background-color: #eee !important;
|
||||
color: #444;
|
||||
padding-top: 70px;
|
||||
font-family: "Open Sans", '돋움', dotum, sans-serif;
|
||||
}
|
||||
#rb-body-install .rb-logo {
|
||||
margin-bottom: 30px;
|
||||
font-size: 50px
|
||||
}
|
||||
|
||||
#rb-body-install .container {
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
#rb-body-install .form-control {
|
||||
border-radius: 2px;
|
||||
}
|
||||
|
||||
|
||||
#rb-body-install .panel {
|
||||
margin: 0 auto 15px;
|
||||
background-color: #fbfbfb;
|
||||
border: 1px solid #AAA;
|
||||
border-bottom: 1px solid #888;
|
||||
border-radius: 3px;
|
||||
color: #444;
|
||||
box-shadow: 0px 2px 2px #AAA;
|
||||
}
|
||||
|
||||
/* rb-ready */
|
||||
|
||||
#rb-body-install .rb-ready {
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
#rb-body-install .rb-ready .rb-symbol {
|
||||
font-size: 130px
|
||||
}
|
||||
|
||||
#rb-body-install .rb-ready .panel-body {
|
||||
padding-top: 40px;
|
||||
padding-bottom: 40px
|
||||
}
|
||||
|
||||
|
||||
/*rb-installer*/
|
||||
|
||||
#rb-body-install .page-header {
|
||||
margin: 0 0 15px;
|
||||
}
|
||||
|
||||
#rb-body-install .page-header h3 {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#step-1-body .form-group {
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
#rb-body-install .rb-step-body .tab-panel {
|
||||
padding: 20px 0;
|
||||
}
|
||||
|
||||
#rb-body-install .step-body .well {
|
||||
padding: 15px;
|
||||
font-size: 12px;
|
||||
line-height: 150%;
|
||||
color: #666;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
#rb-body-install .rb-step-body .help-block {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
#rb-body-install .rb-input-row {
|
||||
margin-left: -3px;
|
||||
margin-right: -3px;
|
||||
}
|
||||
|
||||
#rb-body-install .rb-input-row [class*="col-"] {
|
||||
position: relative;
|
||||
min-height: 1px;
|
||||
padding-left: 3px;
|
||||
padding-right: 3px;
|
||||
}
|
||||
|
||||
#rb-body-install .side-steps {
|
||||
padding: 20px 15px 15px 15px;
|
||||
}
|
||||
#rb-body-install .side-steps div {
|
||||
margin-top: 5px;
|
||||
padding-bottom: 15px;
|
||||
color: #999;
|
||||
border-bottom: #dfdfdf solid 1px;
|
||||
}
|
||||
#rb-body-install .side-steps div i {
|
||||
position: relative;
|
||||
top: 5px;
|
||||
width: 25px;
|
||||
text-align: center;
|
||||
margin-right: 10px;
|
||||
}
|
||||
#rb-body-install .side-steps .rb-active {
|
||||
color: #0475BE;
|
||||
font-weight: bold;
|
||||
}
|
||||
#rb-body-install .rb-active1 {
|
||||
background: #dfdfdf;
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
#rb-body-install .well small {
|
||||
color: #333;
|
||||
font-size: 12px;
|
||||
}
|
||||
#rb-body-install textarea {
|
||||
margin-top: 10px;
|
||||
padding: 15px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
/*반응형 설정*/
|
||||
|
||||
@media (max-width: 768px) {
|
||||
|
||||
#rb-body-install ,
|
||||
#rb-body-install .container {
|
||||
padding: 0;
|
||||
background-color: #fff !important
|
||||
}
|
||||
|
||||
#rb-body-install .panel {
|
||||
box-shadow : none;
|
||||
border: none;
|
||||
border-radius: none;
|
||||
background-color: inherit;
|
||||
}
|
||||
|
||||
#rb-body-install .panel-body {
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px
|
||||
}
|
||||
|
||||
#rb-body-install .panel-footer {
|
||||
background-color: transparent;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
#rb-body-install .container {
|
||||
width: 100%
|
||||
}
|
||||
#rb-body-install .panel-body {
|
||||
padding: 0;
|
||||
}
|
||||
#rb-body-install .row {
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
#rb-body-install .rb-step-nav {
|
||||
padding: 15px
|
||||
}
|
||||
#rb-body-install .rb-step-body {
|
||||
border-left: 1px solid #ddd;
|
||||
padding: 15px
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
229
_install/main.js
Normal file
229
_install/main.js
Normal file
@@ -0,0 +1,229 @@
|
||||
/* 다운로드 */
|
||||
function getDownload(btn,ver,lang)
|
||||
{
|
||||
if (confirm('<?php echo _LANG('i060','install')?> '))
|
||||
{
|
||||
var version = ver.value;
|
||||
document.title = '<?php echo _LANG('i061','install')?>';
|
||||
btn.disabled = true;
|
||||
btn.children[1].innerHTML = '<i class="fa fa-spinner fa-lg fa-spin fa-fw"></i> <?php echo _LANG('i062','install')?>';
|
||||
frames.download_frame.location.href = './index.php?install=download&version=' + version + '&sitelang='+lang;
|
||||
}
|
||||
}
|
||||
function errDownload(folder)
|
||||
{
|
||||
if (folder == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i063','install')?> ');
|
||||
}
|
||||
else if (folder == '1')
|
||||
{
|
||||
alert('<?php echo _LANG('i064','install')?> ');
|
||||
}
|
||||
else {
|
||||
alert('<?php echo _LANG('i065','install')?>\nFolder : '+folder+' ');
|
||||
}
|
||||
location.href = './index.php';
|
||||
}
|
||||
function getUploadPackage(obj)
|
||||
{
|
||||
document.title = '<?php echo _LANG('i066','install')?>';
|
||||
var btn = document.getElementById('btn-group');
|
||||
btn.disabled = true;
|
||||
btn.children[1].innerHTML = '<i class="fa fa-spinner fa-lg fa-spin fa-fw"></i> <?php echo _LANG('i067','install')?>';
|
||||
obj.form.submit();
|
||||
}
|
||||
|
||||
/* 인스톨러 */
|
||||
function agreecheck(obj)
|
||||
{
|
||||
if (obj.checked == true) getId('_next_btn_').disabled = false;
|
||||
else getId('_next_btn_').disabled = true;
|
||||
}
|
||||
var nowStep = 1;
|
||||
var isSubmit = false;
|
||||
function stepCheck(type)
|
||||
{
|
||||
var f = document.procForm;
|
||||
|
||||
if (type == 'next')
|
||||
{
|
||||
|
||||
if (nowStep == 2)
|
||||
{
|
||||
|
||||
if (f.dbhost.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i068','install')?> ');
|
||||
f.dbhost.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.dbname.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i069','install')?> ');
|
||||
f.dbname.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.dbuser.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i070','install')?> ');
|
||||
f.dbuser.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.dbpass.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i071','install')?> ');
|
||||
f.dbpass.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.dbport.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i072','install')?> ');
|
||||
f.dbport.focus();
|
||||
return false;
|
||||
}
|
||||
if (!chkIdValue(f.dbhead.value))
|
||||
{
|
||||
alert('<?php echo _LANG('i073','install')?> ');
|
||||
f.dbhead.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (nowStep == 3)
|
||||
{
|
||||
if (f.name.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i074','install')?> ');
|
||||
f.name.focus();
|
||||
return false;
|
||||
}
|
||||
if (!chkEmailAddr(f.email.value))
|
||||
{
|
||||
alert('<?php echo _LANG('i075','install')?> ');
|
||||
f.email.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.id.value.length < 4 || f.id.value.length > 12 || !chkIdValue(f.id.value))
|
||||
{
|
||||
alert('<?php echo _LANG('i076','install')?> ');
|
||||
f.id.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.pw0.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i077','install')?> ');
|
||||
f.pw0.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.pw1.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i078','install')?>');
|
||||
f.pw1.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.pw0.value != f.pw1.value)
|
||||
{
|
||||
alert('<?php echo _LANG('i079','install')?> ');
|
||||
f.pw0.value = '';
|
||||
f.pw1.value = '';
|
||||
f.pw0.focus();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (nowStep == 4)
|
||||
{
|
||||
if (isSubmit == true)
|
||||
{
|
||||
alert('<?php echo _LANG('i080','install')?> ');
|
||||
return false;
|
||||
}
|
||||
if (f.sitename.value == '')
|
||||
{
|
||||
alert('<?php echo _LANG('i081','install')?> ');
|
||||
f.sitename.focus();
|
||||
return false;
|
||||
}
|
||||
if (f.siteid.value == '' || !chkIdValue(f.siteid.value))
|
||||
{
|
||||
alert('<?php echo _LANG('i082','install')?> ');
|
||||
f.siteid.focus();
|
||||
return false;
|
||||
}
|
||||
|
||||
if(confirm('<?php echo _LANG('i083','install')?> '))
|
||||
{
|
||||
isSubmit = true;
|
||||
f.submit();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (type == 'next')
|
||||
{
|
||||
if(nowStep < 4) nowStep++;
|
||||
}
|
||||
else {
|
||||
if(nowStep > 1) nowStep--;
|
||||
}
|
||||
|
||||
if (nowStep > 1) getId('_lang_').className = 'hidden';
|
||||
else getId('_lang_').className = 'pull-right';
|
||||
|
||||
getId('step-1').className = '';
|
||||
getId('step-2').className = '';
|
||||
getId('step-3').className = '';
|
||||
getId('step-4').className = '';
|
||||
getId('step-'+nowStep).className = 'rb-active';
|
||||
|
||||
getId('step-1-body').className = 'step-body hidden';
|
||||
getId('step-2-body').className = 'step-body hidden';
|
||||
getId('step-3-body').className = 'step-body hidden';
|
||||
getId('step-4-body').className = 'step-body hidden';
|
||||
getId('step-'+nowStep+'-body').className = 'step-body';
|
||||
|
||||
|
||||
if (nowStep == 1)
|
||||
{
|
||||
getId('_prev_btn_').disabled = true;
|
||||
}
|
||||
else {
|
||||
getId('_prev_btn_').disabled = false;
|
||||
}
|
||||
|
||||
if (nowStep == 2)
|
||||
{
|
||||
f.dbname.focus();
|
||||
}
|
||||
if (nowStep == 3)
|
||||
{
|
||||
f.name.focus();
|
||||
}
|
||||
if (nowStep == 4)
|
||||
{
|
||||
f.sitename.focus();
|
||||
}
|
||||
}
|
||||
function tabSelect(obj,id)
|
||||
{
|
||||
obj.parentNode.children[0].className = '';
|
||||
obj.parentNode.children[1].className = '';
|
||||
obj.className = 'rb-active1';
|
||||
getId('db-info').className = 'tab-panel hidden';
|
||||
getId('db-option').className = 'tab-panel hidden';
|
||||
getId(id).className = 'tab-panel';
|
||||
getId('db-info-well').className = 'well hidden';
|
||||
getId('db-option-well').className = 'well hidden';
|
||||
getId(id+'-well').className = 'well';
|
||||
}
|
||||
function tabSelect1(obj,id)
|
||||
{
|
||||
obj.parentNode.children[0].className = '';
|
||||
obj.parentNode.children[1].className = '';
|
||||
obj.className = 'rb-active1';
|
||||
getId('user-info').className = 'tab-panel hidden';
|
||||
getId('user-option').className = 'tab-panel hidden';
|
||||
getId(id).className = 'tab-panel';
|
||||
}
|
||||
375
_install/main.php
Normal file
375
_install/main.php
Normal file
@@ -0,0 +1,375 @@
|
||||
<?php
|
||||
if(!defined('__KIMS__')) exit;
|
||||
$sitelang = $sitelang ? $sitelang : 'DEFAULT';
|
||||
$_langfile = $g['path_root'].'_install/language/'.$sitelang.'/lang.install.php';
|
||||
if (is_file($_langfile)) include $_langfile;
|
||||
|
||||
$g['s'] = str_replace('/index.php','',$_SERVER['SCRIPT_NAME']);
|
||||
$g['url_root'] = 'http'.($_SERVER['HTTPS']=='on'?'s':'').'://'.$_SERVER['HTTP_HOST'].$g['s'];
|
||||
require $g['path_var'].'plugin.var.php';
|
||||
require $g['path_core'].'function/sys.func.php';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo $lang['install']['flag']?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<title><?php echo _LANG('i007','install')?></title>
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
|
||||
<?php getImport('font-awesome','css/font-awesome',false,'css')?>
|
||||
<?php getImport('font-kimsq','css/font-kimsq',false,'css')?>
|
||||
|
||||
<script>
|
||||
var mbrclick= false;
|
||||
var rooturl = '<?php echo $g['url_root']?>';
|
||||
</script>
|
||||
<script src="./_core/js/sys.js"></script>
|
||||
<script><?php include './_install/main.js'?></script>
|
||||
<link href="./_install/main.css" rel="stylesheet">
|
||||
</head>
|
||||
<body id="rb-body-install">
|
||||
|
||||
<div class="container">
|
||||
<div class="panel panel-default rb-installer">
|
||||
|
||||
<div class="panel-heading">
|
||||
<h1 class="panel-title">
|
||||
<span id="_lang_" class="pull-right" style="margin-top: -4px">
|
||||
<select class="form-control input-sm" onchange="location.href='./index.php?sitelang='+this.value;">
|
||||
<?php $dirs = opendir($g['path_root'].'_install/language/')?>
|
||||
<?php while(false !== ($tpl = readdir($dirs))):?>
|
||||
<?php if($tpl=='.'||$tpl=='..')continue?>
|
||||
<option value="<?php echo $tpl?>"<?php if($sitelang==$tpl):?> selected<?php endif?> title="<?php echo $tpl?>"><?php echo implode('',file($g['path_root'].'_install/language/'.$tpl.'/name.txt'))?> </option>
|
||||
<?php endwhile?>
|
||||
<?php closedir($dirs)?>
|
||||
</select>
|
||||
</span>
|
||||
<i class="kf kf-bi-01 fa-lg"></i> Rb <small>Installer</small>
|
||||
</h1>
|
||||
</div>
|
||||
|
||||
<form name="procForm" class="form-horizontal" role="form" id="wizard" action="./" method="post" target="_action_frame_" onsubmit="return installCheck(this);">
|
||||
<input type="hidden" name="install" value="a.install">
|
||||
<input type="hidden" name="sitelang" value="<?php echo $sitelang?>">
|
||||
<input type="hidden" name="dbkind" value="MySQL">
|
||||
<input type="hidden" name="dbtype" value="MyISAM">
|
||||
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
|
||||
<!-- 스텝 -->
|
||||
<div class="col-sm-3 side-steps hidden-xs">
|
||||
<div id="step-1" class="rb-active"><i class="fa fa-check-square-o fa-2x"></i><?php echo _LANG('i008','install')?></div>
|
||||
<div id="step-2"><i class="fa kf-dbmanager fa-2x"></i><?php echo _LANG('i009','install')?></div>
|
||||
<div id="step-3"><i class="fa fa-user fa-2x"></i><?php echo _LANG('i010','install')?></div>
|
||||
<div id="step-4"><i class="fa fa-home fa-2x"></i><?php echo _LANG('i011','install')?></div>
|
||||
</div>
|
||||
<div class="col-sm-9 rb-step-body">
|
||||
|
||||
<!-- 라이선스 -->
|
||||
<div id="step-1-body">
|
||||
<div class="page-header visible-xs">
|
||||
<h3><i class="fa fa-check-square-o fa-lg fa-fw"></i> <?php echo _LANG('i012','install')?></h3>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<br>
|
||||
<label><?php echo _LANG('i013','install')?> <span class="label label-default">RBL</span></label>
|
||||
<textarea class="form-control" rows="15"><?php readfile('LICENSE'.(is_file('LICENSE-'.$sitelang)?'-'.$sitelang:''))?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" onclick="agreecheck(this);"> <strong><?php echo _LANG('i014','install')?></strong>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 데이터베이스 -->
|
||||
<div id="step-2-body" class="hidden">
|
||||
|
||||
<div class="page-header visible-xs">
|
||||
<h3><i class="fa kf-dbmanager fa-lg fa-fw"></i> <?php echo _LANG('i015','install')?></h3>
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-pills">
|
||||
<li class="rb-active1" onclick="tabSelect(this,'db-info');"><a href="#."><?php echo _LANG('i016','install')?></a></li>
|
||||
<li onclick="tabSelect(this,'db-option');"><a href="#."><?php echo _LANG('i017','install')?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-panel" id="db-info">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i018','install')?> </label>
|
||||
<div class="col-sm-8">
|
||||
<select class="form-control" name="dbkind">
|
||||
<option>MySQL 또는 MariaDB</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i019','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="dbname" value="" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i020','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="dbuser" value="" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label" for="password"><?php echo _LANG('i021','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="password" name="dbpass" value="" id="password">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="db-info-well" class="well">
|
||||
<i class="fa fa-info-circle fa-2x pull-left fa-border"></i>
|
||||
<small>
|
||||
<?php echo _LANG('i022','install')?>
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<div class="tab-panel hidden" id="db-option">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i023','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="dbhost" value="localhost">
|
||||
<span class="help-block"><?php echo _LANG('i024','install')?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i025','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="dbport" value="3306">
|
||||
<span class="help-block"><?php echo _LANG('i026','install')?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i027','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="dbhead" value="rb">
|
||||
<span class="help-block"><?php echo _LANG('i028','install')?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i029','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<select name="dbtype" class="form-control">
|
||||
<option>MyISAM</option>
|
||||
<option>InnoDB</option>
|
||||
</select>
|
||||
<span class="help-block"><?php echo _LANG('i030','install')?></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="db-option-well" class="well hidden">
|
||||
<i class="fa fa-info-circle fa-2x pull-left fa-border"></i>
|
||||
<small>
|
||||
<?php echo _LANG('i031','install')?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- 사용자 등록 -->
|
||||
<div id="step-3-body" class="hidden">
|
||||
|
||||
<div class="page-header visible-xs">
|
||||
<h3><i class="fa fa-user fa-lg fa-fw"></i> <?php echo _LANG('i032','install')?></h3>
|
||||
</div>
|
||||
|
||||
<ul class="nav nav-pills">
|
||||
<li class="rb-active1" onclick="tabSelect1(this,'user-info');"><a href="#."><?php echo _LANG('i033','install')?></a></li>
|
||||
<li onclick="tabSelect1(this,'user-option');"><a href="#."><?php echo _LANG('i034','install')?></a></li>
|
||||
</ul>
|
||||
<div class="tab-panel" id="user-info">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i035','install')?> </label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="name" value="<?php echo $_POST['_live_name']?>" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i036','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="email" name="email" value="<?php echo $_POST['_live_email']?>" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i037','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="id" value="" placeholder="<?php echo _LANG('i038','install')?>" autofocus autocomplete="off">
|
||||
<span class="help-block"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label" for="password"><?php echo _LANG('i039','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="password" value="" name="pw0" placeholder="" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label" for="password2"><?php echo _LANG('i040','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="password" value="" name="pw1" placeholder="" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-panel hidden" id="user-option">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i041','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="nick" value="" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i042','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="sex" value="1"> <?php echo _LANG('i043','install')?>
|
||||
</label>
|
||||
<label class="radio-inline">
|
||||
<input type="radio" name="sex" value="2"> <?php echo _LANG('i044','install')?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i045','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<div class="row rb-input-row">
|
||||
<div class="col-xs-4">
|
||||
<select name="birth_1" class="form-control">
|
||||
<option value="">Year</option>
|
||||
<?php for($i = date('Y'); $i > 1930; $i--):?>
|
||||
<option value="<?php echo $i?>"><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select name="birth_2" class="form-control">
|
||||
<option value="">Month</option>
|
||||
<?php for($i = 1; $i < 13; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<select name="birth_3" class="form-control">
|
||||
<option value="">Day</option>
|
||||
<?php for($i = 1; $i < 32; $i++):?>
|
||||
<option value="<?php echo sprintf('%02d',$i)?>"><?php echo $i?></option>
|
||||
<?php endfor?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"></label>
|
||||
<div class="col-sm-8">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="birthtype" value="1">
|
||||
<?php echo _LANG('i046','install')?>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i047','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<div class="row rb-input-row">
|
||||
<div class="col-xs-4">
|
||||
<select name="tel_1" class="form-control">
|
||||
<option value="010">010</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input class="form-control" type="number" name="tel_2" value="" placeholder="">
|
||||
</div>
|
||||
<div class="col-xs-4">
|
||||
<input class="form-control" type="number" name="tel_3" value="" placeholder="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="well">
|
||||
<i class="fa fa-info-circle fa-2x pull-left fa-border"></i>
|
||||
<small>
|
||||
<?php echo _LANG('i048','install')?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 사이트 생성 -->
|
||||
<div id="step-4-body" class="hidden">
|
||||
|
||||
<div class="page-header visible-xs">
|
||||
<h3><i class="fa fa-home fa-lg fa-fw"></i> <?php echo _LANG('i049','install')?></h3>
|
||||
</div>
|
||||
|
||||
<div class="tab-panel">
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i050','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="sitename" value="홈페이지" placeholder="<?php echo _LANG('i051','install')?>">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label"><?php echo _LANG('i052','install')?></label>
|
||||
<div class="col-sm-8">
|
||||
<input class="form-control" type="text" name="siteid" value="home" placeholder="">
|
||||
<div class="help-block">
|
||||
<?php echo _LANG('i053','install')?>
|
||||
<br>
|
||||
<code><?php echo $g['url_root']?>/<?php echo _LANG('i054','install')?></code>
|
||||
</div>
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input type="checkbox" name="rewrite" value="1" checked>
|
||||
<?php echo _LANG('i055','install')?>
|
||||
</label>
|
||||
</div>
|
||||
<div class="help-block">
|
||||
<?php echo _LANG('i056','install')?>
|
||||
<br>
|
||||
<code><?php echo $g['url_root']?>/?r=home&c=menu</code> <i class="glyphicon glyphicon-arrow-down"></i> <br>
|
||||
<code><?php echo $g['url_root']?>/home/c/menu</code>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="well">
|
||||
<i class="fa fa-info-circle fa-2x pull-left fa-border"></i>
|
||||
<small>
|
||||
<?php echo _LANG('i057','install')?>
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="panel-footer clearfix">
|
||||
<button class="btn btn-default pull-left" type="button" id="_prev_btn_" onclick="stepCheck('prev');" disabled>
|
||||
<i class="fa fa-caret-left fa-lg"></i> <?php echo _LANG('i058','install')?></button>
|
||||
<button class="btn btn-primary pull-right" type="button" id="_next_btn_" onclick="stepCheck('next');" disabled>
|
||||
<?php echo _LANG('i059','install')?> <i class="fa fa-caret-right fa-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<iframe name="_action_frame_" width="0" height="0" frameborder="0" scrolling="no"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
88
_install/rss.func.php
Normal file
88
_install/rss.func.php
Normal file
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
|
||||
function getUrlData($url,$sec)
|
||||
{
|
||||
$URL_parsed = parse_url($url);
|
||||
$host = $URL_parsed['host'];
|
||||
$port = $URL_parsed['port'];
|
||||
$path = $URL_parsed['path'];
|
||||
$query= $URL_parsed['query'];
|
||||
$scheme= $URL_parsed['scheme'];
|
||||
|
||||
if (!$host) $host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
$out = "GET ".$path.'?'.$query." HTTP/1.1\r\n";
|
||||
$out .= "Host: ".$host."\r\n";
|
||||
$out .= "Connection: Close\r\n\r\n";
|
||||
|
||||
if ($scheme == 'https') {
|
||||
if (!$port) $port = 443;
|
||||
$fp = fsockopen('ssl://'.$host,$port,$errno,$errstr,$sec);
|
||||
} else {
|
||||
if (!$port) $port = 80;
|
||||
$fp = fsockopen($host,$port,$errno,$errstr,$sec);
|
||||
}
|
||||
|
||||
if (!$fp)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
fputs($fp, $out);
|
||||
$body = false;
|
||||
while (!feof($fp)) {
|
||||
$s = fgets($fp, 128);
|
||||
if ( $body )
|
||||
$in .= $s;
|
||||
if ( $s == "\r\n" )
|
||||
$body = true;
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
return $in;
|
||||
}
|
||||
}
|
||||
|
||||
function getRssArray($url,$tag)
|
||||
{
|
||||
return explode('<'.$tag.'>',getUrlData($url,10));
|
||||
}
|
||||
function getRssTagValue($str,$tag)
|
||||
{
|
||||
$str_exp = explode('<'.$tag.'>' , $str);
|
||||
$str_exp = explode('</'.$tag.'>' , $str_exp[1]);
|
||||
$result = getUTFtoUTF($str_exp[0]) == $str_exp[0] ? $str_exp[0] : getKRtoUTF($str_exp[0]);
|
||||
return trim($result);
|
||||
}
|
||||
function getRssPageTitle($str,$tag)
|
||||
{
|
||||
return getRssTagValue($str,$tag);
|
||||
}
|
||||
function getRssContent($str,$tag)
|
||||
{
|
||||
$str = str_replace('>','>',$str);
|
||||
$str = str_replace('<','<',$str);
|
||||
$str = str_replace('"','"',$str);
|
||||
$str = str_replace(''','\'',$str);
|
||||
$str = getRssTagValue($str,$tag);
|
||||
$str = str_replace(']]>','',$str);
|
||||
$str = str_replace('<![CDATA[','',$str);
|
||||
return $str;
|
||||
}
|
||||
function getRssDomain($url)
|
||||
{
|
||||
$e = explode('/',str_replace('www.','',str_replace('http://','',$url)));
|
||||
return $e[0];
|
||||
}
|
||||
function getJSONData($data,$f)
|
||||
{
|
||||
$arr1 = explode('"'.$f.'":"',str_replace(': "',':"',$data));
|
||||
$arr2 = explode('"',$arr1[1]);
|
||||
return $arr2[0];
|
||||
}
|
||||
function _LANG($kind,$module)
|
||||
{
|
||||
return $GLOBALS['lang'][$module][$kind];
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user