Exemplo n.º 1
0
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
    global $g, $pwd, $file, $step_start, $iframe;
    if ($step_start) {
        $nTab = $nTab - $step_start;
    }
    $css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
    $fname1 = getFolderName($filepath);
    $fname2 = getTPLname($fname1);
    echo '<div class="dir01">';
    echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
    echo '<a href="' . $g['adm_href'] . '&amp;pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
    if ($state && $dir_ex) {
        echo '<img src="' . $g['img_module_admin'] . '/dir_closef.gif" align="absmiddle" alt="" />';
        echo ' <img src="' . $g['img_module_admin'] . '/close_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
    } else {
        if (!$state && $dir_ex) {
            echo '<img src="' . $g['img_module_admin'] . '/dir_openf.gif" align="absmiddle" alt="" />';
            echo ' <img src="' . $g['img_module_admin'] . '/open_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
        } else {
            echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
            echo ' <img src="' . $g['img_module_admin'] . '/close_dir.gif" alt=""> <span class="' . $css . '">' . $fname2;
        }
    }
    echo '</span></a></div>';
}
Exemplo n.º 2
0
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
    global $g, $pwd, $file, $step_start;
    if ($step_start) {
        $nTab = $nTab - $step_start;
    }
    $css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
    $fname1 = getKRtoUTF($files);
    $fname2 = getFolderName($filepath);
    if (is_file($filepath . 'main.php')) {
        $img_cdir = $g['img_module_skin'] . '/widget/ico_widget.gif';
        $img_odir = $g['img_core'] . '/_public/ico_f1.png';
    } else {
        $img_cdir = $g['img_module_skin'] . '/widget/close_dir.gif';
        $img_odir = $g['img_module_skin'] . '/widget/open_dir.gif';
    }
    echo '<div class="dir01">';
    echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
    echo '<a href="' . $g['adm_href'] . '&amp;pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
    if ($state && $dir_ex) {
        echo '<img src="' . $g['img_module_skin'] . '/widget/dir_closef.gif" align="absmiddle" alt="" />';
        echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
    } else {
        if (!$state && $dir_ex) {
            echo '<img src="' . $g['img_module_skin'] . '/widget/dir_openf.gif" align="absmiddle" alt="" />';
            echo ' <img src="' . $img_odir . '" alt="" /> <span class="' . $css . '">' . $fname2;
        } else {
            echo '<img src="' . $g['img_module_skin'] . '/widget/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
            echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
        }
    }
    echo '</span></a></div>';
}
Exemplo n.º 3
0
function generateFileKey($sourceFile, $folder = "")
{
    $pathInfo = pathinfo($sourceFile);
    if ($folder === "") {
        $folder = getFolderName($pathInfo['extension']);
    }
    $fileName = getUniqueCode(150) . '.' . $pathInfo['extension'];
    $fileKey = $folder . '/' . $fileName;
    return $fileKey;
}
Exemplo n.º 4
0
function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
{
    global $g, $pwd, $file, $step_start;
    if ($step_start) {
        $nTab = $nTab - $step_start;
    }
    $css = strstr($pwd, $filepath) ? ' active' : '';
    $fname1 = getKRtoUTF($files);
    $fname2 = getFolderName($filepath);
    echo '<a href="' . $g['adm_href'] . '&amp;pwd=' . urlencode($filepath) . '" class="list-group-item';
    if ($state && $dir_ex) {
        echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-close"></i>&nbsp; ';
    } else {
        if (!$state && $dir_ex) {
            echo '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="glyphicon glyphicon-folder-open"></i>&nbsp; ';
        } else {
            echo $css . '" style="color:#' . ($css ? 'fff' : '999') . '"><span><img src="' . $g['img_core'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt=""><i class="fa fa-puzzle-piece"></i>&nbsp; ';
        }
    }
    echo $fname2 . '</span></a>';
}
Exemplo n.º 5
0
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('dashboard', 'market', 'admin', 'module', 'site', 'layout', 'domain', 'device');
foreach ($mdlarray as $_val) {
    $QUE = "insert into " . $table['s_module'] . " \n\t(gid,system,hidden,mobile,name,id,tblnum,icon,d_regis) \n\tvalues \n\t('" . $gid . "','1','" . (strstr('[market][admin][site][layout]', '[' . $_val . ']') ? 0 : 1) . "','1','" . getFolderName($g['path_module'] . $moduledir[$_val][0]) . "','" . $moduledir[$_val][0] . "','" . $moduledir[$_val][1] . "','kf-" . ($_val == 'site' ? 'home' : $_val) . "','" . $date['totime'] . "')";
    db_query($QUE, $DB_CONNECT);
    $gid++;
}
$siteid = 'home';
$layout = 'b-dash/default.php';
$QKEY = "gid,id,name,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
$QVAL = "'0','" . $siteid . "','{$sitename}','{$sitename}','0','','{$layout}','0','mobile/default.php','0','{$sitelang}','1','','nic','0','0','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'];
$pagesarray = array('main' => array('메인화면', '3', ''));
foreach ($pagesarray as $_key => $_val) {
    $QUE = "insert into " . $table['s_page'] . " \n\t(pagetype,ismain,mobile,id,category,name,perm_g,perm_l,layout,joint,hit,d_regis,d_update)\n\tvalues\n\t('{$_val['1']}','" . ($_key == 'main' ? 1 : 0) . "','" . ($_key == 'main' ? 1 : 0) . "','{$_key}','기본페이지','{$_val['0']}','','0','','{$_val['2']}','0','" . $date['totime'] . "','')";
    db_query($QUE, $DB_CONNECT);
Exemplo n.º 6
0
?>
				<?php 
foreach ($_widgetList as $_key) {
    ?>
				<?php 
    if ($d['admwidget'][$_key]) {
        continue;
    }
    ?>
				<li class="dd-item dd3-item" data-id="<?php 
    echo $_i;
    ?>
">
					<div class="dd-handle dd3-handle"></div>
					<div class="dd3-content"><a><?php 
    echo getFolderName($g['path_module'] . $module . '/widgets/' . $_key);
    ?>
</a></div>
					<div class="dd-checkbox" title="진열" data-tooltip="tooltip">
						<input type="checkbox" class="hidden" name="dashboard_widgets_order[]" value="<?php 
    echo $_key;
    ?>
" checked>
						<input type="checkbox" name="dashboard_widgets[]" value="1" style="cursor:pointer;"><i></i>
					</div>
				</li>
				<?php 
    $_i++;
}
?>
			</ol>
Exemplo n.º 7
0
				<?php 
    if ($tpl == '.' || $tpl == '..') {
        continue;
    }
    ?>
				<option value="<?php 
    echo $tpl;
    ?>
"<?php 
    if ($d['admin']['thememobile'] == $tpl) {
        ?>
 selected="selected"<?php 
    }
    ?>
>ㆍ<?php 
    echo getFolderName($g['dir_module'] . 'lang.' . $_HS['lang'] . '/theme/_mobile/' . $tpl);
    ?>
(<?php 
    echo str_replace('.php', '', $tpl);
    ?>
)</option>
				<?php 
}
?>
				<?php 
closedir($dirs);
?>
				</select>

				<div class="guide">모바일모드는 모바일뷰를 지원하도록 제작된 모듈만 지원됩니다.</div>
			</td>
Exemplo n.º 8
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');
fwrite($fp, "<?php\n");
foreach ($d['admin'] as $key => $val) {
    fwrite($fp, "\$d['admin']['" . $key . "'] = \"" . addslashes(stripslashes($val)) . "\";\n");
}
fwrite($fp, "?>");
fclose($fp);
Exemplo n.º 9
0
<div id="mjointbox">

	<div class="title">
		이 위젯(<span class="b"><?php 
echo getFolderName($g['path_widget'] . $swidget);
?>
</span>)을 추가하시겠습니까?
	</div>

	<?php 
if ($isWcode == 'Y') {
    ?>
	<div class="none">
	<img src="<?php 
    echo $g['img_core'];
    ?>
/_public/ico_notice.gif" alt="" />
	이 위젯은 위젯코드를 지원하지 않습니다.
	</div>
	<?php 
} else {
    ?>
	<form name="procform" action="<?php 
    echo $g['s'];
    ?>
/" method="post" target="_action_frame_">
	<input type="hidden" name="r" value="<?php 
    echo $r;
    ?>
" />
	<input type="hidden" name="m" value="<?php 
Exemplo n.º 10
0
" target="_blank" title="게시판보기"><?php 
                echo $R['name'];
                ?>
</a><span>(<?php 
                echo $R['id'];
                ?>
)</span>
			<?php 
            }
            ?>

		</td>
		<td class="cat">
			<select class="form-control input-sm">
			    <option><?php 
            echo $d['bbs']['skin'] ? getFolderName($tdir . $d['bbs']['skin']) : '게시판 대표테마';
            ?>
</option>
			</select>
		</td>
		<td class="nopd-right">
			<input type="button" value="C" title="게시판설정" class="btn btn-default btn-sm" onclick="window.open('<?php 
            echo $g['s'];
            ?>
/?r=<?php 
            echo $r;
            ?>
&m=admin&module=<?php 
            echo $smodule;
            ?>
&front=main&uid=<?php 
Exemplo n.º 11
0
 $sbj_tooltip .= '최신글제외 : ' . ($d['bbs']['display'] ? 'Yes' : 'No') . '<br />';
 $sbj_tooltip .= '쿼리생략 : ' . ($d['bbs']['hidelist'] ? 'Yes' : 'No') . '<br />';
 $sbj_tooltip .= 'RSS발행 : ' . ($d['bbs']['rss'] ? 'Yes' : 'No') . '<br />';
 $sbj_tooltip .= '조회수증가 : ' . ($d['bbs']['hitcount'] ? '계속증가' : '1회만증가(세션적용)') . '<br />';
 $sbj_tooltip .= '게시물출력수 : ' . $d['bbs']['recnum'] . '개<br />';
 $sbj_tooltip .= '제목끊기 : ' . $d['bbs']['sbjcut'] . '자<br />';
 $sbj_tooltip .= '새글유지 : ' . $d['bbs']['newtime'] . '시간<br />';
 $sbj_tooltip .= '추차관리자 : ' . ($d['bbs']['admin'] ? $d['bbs']['admin'] : '없음') . '<br /><i></i>';
 $sbj_tooltip .= '</h6>';
 $lay_tooltip = '<h6>';
 // 레이아웃 툴팁
 $lay_tooltip .= '레이아웃 : ' . ($d['bbs']['layout'] ? '' : '사이트 대표레이아웃') . '<br />';
 $lay_tooltip .= '게시판테마(pc) : ' . ($d['bbs']['skin'] ? getFolderName($g['path_module'] . $module . '/theme/' . $d['bbs']['skin']) . '(' . basename($d['bbs']['skin']) . ')' : '대표테마') . '<br />';
 $lay_tooltip .= '게시판테마(mobile) : ' . ($d['bbs']['m_skin'] ? getFolderName($g['path_module'] . $module . '/theme/' . $d['bbs']['m_skin']) . '(' . basename($d['bbs']['m_skin']) . ')' : '대표테마') . '<br />';
 $lay_tooltip .= '댓글테마(pc) : ' . ($d['bbs']['cskin'] ? getFolderName($g['path_module'] . 'comment/theme/' . $d['bbs']['cskin']) . '(' . basename($d['bbs']['cskin']) . ')' : '대표테마') . '<br />';
 $lay_tooltip .= '댓글테마(mobile) : ' . ($d['bbs']['c_mskin'] ? getFolderName($g['path_module'] . 'comment/theme/' . $d['bbs']['c_mskin']) . '(' . basename($d['bbs']['c_mskin']) . ')' : '대표테마') . '<br /><i></i>';
 $lay_tooltip .= '</h6>';
 $perm_tooltip = '<h6>';
 // 접근권한 툴팁
 $perm_tooltip .= '목록 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_list']] . '<br />';
 $perm_tooltip .= '열람 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_view']] . '<br />';
 $perm_tooltip .= '쓰기 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_write']] . '<br />';
 $perm_tooltip .= '다운 : ' . $_LEVELNAME['l' . $d['bbs']['perm_l_down']] . '<br /><i></i>';
 $perm_tooltip .= '</h6>';
 $point_tooltip = '<h6>';
 // 포인트 툴팁
 $point_tooltip .= '등록 : ' . number_format($d['bbs']['point1']) . 'P 지급<br />';
 $point_tooltip .= '열람 : ' . number_format($d['bbs']['point2']) . 'P 차감<br />';
 $point_tooltip .= '다운 : ' . number_format($d['bbs']['point3']) . 'P 차감<br /><i></i>';
 $point_tooltip .= '</h6>';
 ?>
Exemplo n.º 12
0
				<?php 
        if ($tpl == '.' || $tpl == '..' || $tpl == $d['admin']['syslang']) {
            continue;
        }
        ?>
				<option value="<?php 
        echo $tpl;
        ?>
"<?php 
        if ($R['lang'] == $tpl) {
            ?>
 selected<?php 
        }
        ?>
><?php 
        echo getFolderName($g['path_module'] . $R['id'] . '/language/' . $tpl);
        ?>
</option>
				<?php 
    }
    ?>
				<?php 
    closedir($dirs);
    ?>
				<?php 
}
?>
				</select>
			</div>
		</div>
		<div class="form-group">
Exemplo n.º 13
0
}
?>
			</div>





		</div>
		<?php 
if ($theme) {
    ?>

		<div class="notice">
			<span class="b"><?php 
    echo getFolderName($xdir . $theme);
    ?>
</span> 테마가 선택되었습니다.<br />
			이 테마를 사용하는 모든 게시판에 아래의 설정값이 적용됩니다.
		</div>

		<textarea name="theme_var" rows="10" cols="70"><?php 
    echo implode('', file($g['path_module'] . $module . '/theme/' . $theme . '/_var.php'));
    ?>
</textarea>
		
		<div class="submitbox">
			<input type="submit" class="btnblue" value=" 확인 " />
			<div class="clear"></div>
		</div>
		<?php 
Exemplo n.º 14
0
?>
><a href="<?php 
echo $g['s'];
?>
/?r=<?php 
echo $r;
?>
&amp;_themeConfig=page&amp;prelayout=<?php 
echo $prelayout;
?>
">추가 페이지</a></li>
		</ul>

		<div class="info">
		- 레이아웃 : <span class="b"><?php 
echo getFolderName($g['path_layout'] . $d['layout']['dir']);
?>
</span><br />
		- 폴더명 : <span class="b"><?php 
echo $d['layout']['dir'];
?>
</span><br />
		- 최적화  : IE 7~9/FF/CR/SF/OP<br />
		- 라이선스 : RBL<br />
		- 원작자 : <a href="http://www.kimsq.com" target="_blank">김성호(세븐고)</a><br />
		</div>
	</div>
	<div id="subcontent">		
		
		<?php 
include $g['path_layout'] . $d['layout']['dir'] . '/_admin/_' . $_themeConfig . '.php';
Exemplo n.º 15
0
function folderToPlaylist()
{
    $bdd = getBDD();
    $request = $bdd->query('SELECT * FROM at_music');
    while ($data = $request->fetch()) {
        $folder = getFolderName($data['file']);
        if ($folder != 'Music') {
            $bdd->exec("INSERT INTO at_playlists VALUES('', '{$folder}')");
            $songId = $data['id'];
            $playlistId = getPlaylistId($folder);
            $bdd->exec("INSERT INTO at_songsplaylists VALUES('', '{$playlistId}', '{$songId}')");
        }
    }
    $request->closeCursor();
    return 200;
}
Exemplo n.º 16
0
</textarea>
			<?php 
}
?>
		</div>

		<?php 
if ($type != 'image') {
    ?>
		<div id="submitbox" class="submitbox">

			<?php 
    if ($type == 'layout') {
        ?>
			<input type="text" name="name" value="<?php 
        echo getFolderName($g['path_layout'] . $layout);
        ?>
" class="input" />
			의 서브레이아웃 <input type="text" name="subname" size="10" value="<?php 
        echo basename($sublayout, '.php');
        ?>
" class="input" />을 
			<?php 
    }
    ?>
			<input type="submit" class="btnblue" value=" 수정/추가 " />


			<?php 
    if ($type == 'layout') {
        ?>
Exemplo n.º 17
0
                 fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
             }
             foreach ($_tmptable1 as $key => $val) {
                 fwrite($fp, "\$table['{$key}'] = \"{$val}\";\n");
             }
             fwrite($fp, "?>");
             fclose($fp);
             @chmod($_tmptfile, 0707);
         } else {
             if (is_file($table_db . '.done')) {
                 include $table_db . '.done';
             }
         }
         $maxgid = getDbCnt($_tmptable2['s_module'], 'max(gid)', '');
         $QKEY = "gid,system,hidden,mobile,name,id,tblnum,icon,d_regis";
         $QVAL = "'" . ($maxgid + 1) . "','0','0','1','" . getFolderName($g['path_tmp'] . 'app/' . $package_folder . '/modules/' . $module) . "','{$module}','" . count($table) . "','kf-module','" . $date['totime'] . "'";
         getDbInsert($_tmptable2['s_module'], $QKEY, $QVAL);
     }
     closedir($dirh);
 }
 //플러그인설치
 if (is_dir($g['path_tmp'] . 'app/' . $package_folder . '/plugins')) {
     $dirh = opendir($g['path_tmp'] . 'app/' . $package_folder . '/plugins');
     while (false !== ($filename = readdir($dirh))) {
         if ($filename == '.' || $filename == '..') {
             continue;
         }
         if (is_dir($g['path_plugin'] . $filename)) {
             continue;
         }
         if (!$d['ov'][$filename]) {
Exemplo n.º 18
0
    $_SESSION['success'] = 'File uploaded';
    header('Location: ' . addSession('index.php'));
    return;
}
// Sometimes, if the maxUpload_SIZE is exceeded, it deletes all of $_POST
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    $_SESSION['error'] = 'Error: Maximum size of ' . maxUpload() . 'MB exceeded.';
    header('Location: ' . addSession('index.php'));
    return;
}
// View
$OUTPUT->header();
$OUTPUT->bodyStart();
$OUTPUT->flashMessages();
$OUTPUT->welcomeUserCourse();
$foldername = getFolderName();
if (!file_exists($foldername)) {
    mkdir($foldername);
}
$stmt = $PDOX->prepare("SELECT file_id, file_name FROM {$p}sample_blob\n        WHERE context_id = :CI");
$stmt->execute(array(":CI" => $CONTEXT->id));
$count = 0;
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
    $id = $row['file_id'];
    $fn = $row['file_name'];
    echo '<li><a href="blob_serve.php?id=' . $id . '" target="_new">' . htmlent_utf8($fn) . '</a>';
    if ($USER->instructor) {
        echo ' (<a href="blob_delete.php?id=' . $id . '">Delete</a>)';
    }
    echo '</li>';
    $count++;
Exemplo n.º 19
0
					<?php 
$dirs = opendir($g['path_module'] . $R['id'] . '/');
?>
					<?php 
while (false !== ($tpl = readdir($dirs))) {
    ?>
					<?php 
    if (substr($tpl, 0, 5) != 'lang.') {
        continue;
    }
    ?>
					<?php 
    $reallang = str_replace('lang.', '', $tpl);
    ?>
					<span class="b"><?php 
    echo getFolderName($g['path_var'] . 'language/' . $reallang);
    ?>
</span>(<?php 
    echo $reallang;
    ?>
)<br />
					<?php 
    $i++;
}
?>
					<?php 
closedir($dirs);
?>
					<?php 
if (!$i) {
    ?>
Exemplo n.º 20
0
    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('dashboard', 'market', 'admin', 'module', 'site', 'layout', 'mediaset', 'domain', 'device', 'notification', 'search');
foreach ($mdlarray as $_val) {
    $new_modulename = $g['path_module'] . $moduledir[$_val][0] . '/language/' . $sitelang . '/name.module.txt';
    $QUE = "insert into " . $table['s_module'] . " \n\t(gid,system,hidden,mobile,name,id,tblnum,icon,d_regis,lang) \n\tvalues \n\t('" . $gid . "','1','" . (strstr('[market][admin][site][layout]', '[' . $_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))) . "','" . $date['totime'] . "','')";
    db_query($QUE, $DB_CONNECT);
    $gid++;
}
$siteid = $siteid ? $siteid : 'home';
$layout = 'default/default.php';
$m_layout = 'mobile/default.php';
$QKEY = "gid,id,name,title,titlefix,icon,layout,startpage,m_layout,m_startpage,lang,open,dtd,nametype,timecal,rewrite,buffer,usescode,headercode,footercode";
$QVAL = "'0','" . $siteid . "','{$sitename}','{subject} | {site}','0','','{$layout}','0','{$m_layout}','0','','1','','nic','0','{$rewrite}','0','1','',''";
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);
Exemplo n.º 21
0
<div id="mjointbox">
	<h5>
		<i class="fa fa-info-circle"></i>
		<?php 
echo sprintf(_LANG('1001', 'widget-mk-menu-collapse'), getFolderName($g['path_widget'] . $swidget));
?>
	</h5>

	<form name="procform" class="form-horizontal rb-form" role="form">
		<div class="form-group">
			<label class="col-sm-3 control-label"><?php 
echo _LANG('1002', 'widget-mk-menu-collapse');
?>
</label>
			<div class="col-sm-8">
				<select name="smenu" class="form-control">
				<option value="0">ㆍ<?php 
echo _LANG('1003', 'widget-mk-menu-collapse');
?>
</option>
				<option value="-1"<?php 
if (!$wdgvar['smenu']) {
    ?>
 selected<?php 
}
?>
>ㆍ<?php 
echo _LANG('1004', 'widget-mk-menu-collapse');
?>
</option>
				<option value="-2">ㆍ<?php 
Exemplo n.º 22
0
 function getPrintdir($nTab, $filepath, $files, $state, $dir_ex)
 {
     global $g, $pwd, $file, $step_start, $type, $m, $module, $r;
     if ($step_start) {
         $nTab = $nTab - $step_start;
     }
     $css = strstr($pwd, $filepath) ? 'nowdir' : 'alldir';
     $fname1 = getKRtoUTF($files);
     $fname2 = getFolderName($filepath);
     if (is_file($filepath . 'main.php')) {
         $img_cdir = $g['img_module_admin'] . '/ico_widget.gif';
         $img_odir = $g['img_core'] . '/_public/ico_f1.png';
     } else {
         $img_cdir = $g['img_module_admin'] . '/close_dir.gif';
         $img_odir = $g['img_module_admin'] . '/open_dir.gif';
     }
     echo '<div class="dir01">';
     echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="' . ($nTab * 17 + 3) . '" height="1" alt="" /> ';
     if (!is_file($filepath . 'main.php')) {
         echo '<a href="' . $g['adm_href'] . '&amp;type=' . $type . '&amp;pwd=' . urlencode($filepath) . '" title="' . $fname1 . '">';
     }
     if ($state && $dir_ex) {
         echo '<img src="' . $g['img_module_admin'] . '/dir_closef.gif" align="absmiddle" alt="" />';
         echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
     } else {
         if (!$state && $dir_ex) {
             echo '<img src="' . $g['img_module_admin'] . '/dir_openf.gif" align="absmiddle" alt="" />';
             echo ' <img src="' . $img_odir . '" alt="" /> <span class="' . $css . '">' . $fname2;
         } else {
             echo '<img src="' . $g['img_module_admin'] . '/blank.gif" width="11" height="18" align="absmiddle" alt="" />';
             echo ' <img src="' . $img_cdir . '" alt="" /> <span class="' . $css . '">' . $fname2;
         }
     }
     if (!is_file($filepath . 'main.php')) {
         echo '</span></a>';
     } else {
         echo '</span>';
     }
     echo '<a class="del" href="' . $g['s'] . '/?r=' . $r . '&m=' . $module . '&amp;a=pack_delete&amp;type=widget&amp;pack=' . str_replace($g['r'] . '/widgets/', '', $filepath) . '" target="_action_frame_' . $m . '" onclick="return confirm(\'정말로 삭제하시겠습니까?    \');"><img src="' . $g['img_core'] . '/_public/btn_del_s01.gif" alt="" title="테마삭제" /></a>';
     echo '</div>';
 }
Exemplo n.º 23
0
					<h5><small><?php 
    echo $_val;
    ?>
</small></h5>
					<div class="dd" id="nestable-<?php 
    echo $_key;
    ?>
">
						<ol class="dd-list">
						<?php 
    if (isset($d['switch'][$_key])) {
        ?>
						<?php 
        $_i = 1;
        foreach (getSwitchList($_key) as $_switch) {
            $_switch[2] = getFolderName($g['path_switch'] . $_key . '/' . $_switch[0]);
            $_switch[3] = $_key;
            ?>
						<li class="dd-item dd3-item<?php 
            if ($_key . '/' . $_switch[0] == $switchdir) {
                $sinfo = $_switch;
                ?>
 rb-active<?php 
            }
            ?>
" data-id="<?php 
            echo $_i;
            ?>
">
							<div class="dd-handle dd3-handle"></div>
							<div class="dd3-content"><a href="<?php 
Exemplo n.º 24
0
if (!defined('__KIMS__')) {
    exit;
}
checkAdmin(0);
$_sw1 = $g['path_switch'] . $switch_folder;
$alert = '정상적인 접근이 아닙니다.';
if (is_file($_sw1 . '/' . $switch . '/main.php')) {
    if (strstr($switch, '@')) {
        $xswitch = str_replace('@', '', $switch);
        rename($_sw1 . '/' . $switch, $_sw1 . '/' . $xswitch);
        $alert = '[' . getFolderName($_sw1 . '/' . $xswitch) . '] 스위치가 켜졌습니다.';
    } else {
        $xswitch = $switch . '@';
        rename($_sw1 . '/' . $switch, $_sw1 . '/' . $xswitch);
        $alert = '[' . getFolderName($_sw1 . '/' . $xswitch) . '] 스위치가 꺼졌습니다.';
    }
}
$_switchset = array('start', 'top', 'head', 'foot', 'end');
$_ufile = $g['path_var'] . 'switch.var.php';
$fp = fopen($_ufile, 'w');
fwrite($fp, "<?php\n");
foreach ($_switchset as $_key) {
    foreach ($d['switch'][$_key] as $_val) {
        $_val = $_key == $switch_folder && $_val == $switch ? $xswitch : $_val;
        fwrite($fp, "\$d['switch']['" . $_key . "'][] = \"" . trim($_val) . "\";\n");
    }
}
fwrite($fp, "?>");
fclose($fp);
@chmod($_ufile, 0707);
Exemplo n.º 25
0
    foreach ($d['switch'][$_key] as $_switch) {
        ?>
			<?php 
        if (!$_switch) {
            continue;
        }
        ?>
			<table>
			<tr>
			<td class="t0"><img src="<?php 
        echo $g['img_core'];
        ?>
/_public/ico_f3.png" alt="" /></td>
			<td class="t1">
			<?php 
        echo getFolderName($g['path_switch'] . $_key . '/' . $_switch);
        ?>
 <span>(<?php 
        echo str_replace('@', '', $_switch);
        ?>
)</span>
			</td>
			<td class="t2">
			<a href="<?php 
        echo $g['s'];
        ?>
/?r=<?php 
        echo $r;
        ?>
&amp;m=<?php 
        echo $module;
Exemplo n.º 26
0
<div id="mjointbox">
	<h5>
		<i class="fa fa-info-circle"></i>
		<?php 
echo sprintf(_LANG('1001', 'widget-mk-menu-default'), getFolderName($g['path_widget'] . $swidget));
?>
	</h5>

	<form name="procform" class="form-horizontal rb-form" role="form">
		<div class="form-group">
			<label class="col-sm-3 control-label"><?php 
echo _LANG('1002', 'widget-mk-menu-default');
?>
</label>
			<div class="col-sm-8">
				<select name="smenu" class="form-control">
				<option value="0">ㆍ<?php 
echo _LANG('1003', 'widget-mk-menu-default');
?>
</option>
				<option value="-1">ㆍ<?php 
echo _LANG('1004', 'widget-mk-menu-default');
?>
</option>
				<option value="-2">ㆍ<?php 
echo _LANG('1005', 'widget-mk-menu-default');
?>
</option>
				<option value="-3">ㆍ<?php 
echo _LANG('1006', 'widget-mk-menu-default');
?>
Exemplo n.º 27
0
    }
    ?>
		<option value="_pc/<?php 
    echo $skin;
    ?>
" title="<?php 
    echo $skin;
    ?>
"<?php 
    if ($wdgvar['c_skin'] == '_pc/' . $skin) {
        ?>
 selected="selected"<?php 
    }
    ?>
>ㆍ<?php 
    echo getFolderName($tdir . $skin);
    ?>
(<?php 
    echo $skin;
    ?>
)</option>
		<?php 
}
?>
		<?php 
closedir($dirs);
?>
		</select>
	</td>
	</tr>
	<tr>
Exemplo n.º 28
0
</span>로 적용됩니다.<br />
		<?php 
if ($R['lang'] != $g['sys_selectlang']) {
    ?>
		현재 선택된 언어는 <span class="b"><?php 
    echo getFolderName($g['path_var'] . 'language/' . $g['sys_selectlang']);
    ?>
</span>이나 언어팩이 존재하지 않아 <span class="b"><?php 
    echo getFolderName($g['path_var'] . 'language/' . $g['sys_lang']);
    ?>
</span>로 처리되었습니다.
		<?php 
} else {
    ?>
		현재 선택된 언어는 <span class="b"><?php 
    echo getFolderName($g['path_var'] . 'language/' . $g['sys_selectlang']);
    ?>
</span>입니다.
		<?php 
}
?>
		</div>

		<div id="guide_sitecode" class="guide hide">
		<div class="b">사이트코드 :</div>
		사이트별로 계정아이디를 등록합니다.(영문대/소문자+숫자+_ 조합으로 등록할 수 있습니다)<br />
		[사용]에 체크하면 사이트별로 계정값을 부여할 수 있으며 하나의 도메인으로 복수의 사이트에 접속할 수 있습니다.<br />
		사용하지 않을경우 현재의 도메인(<?php 
echo str_replace('/rb', '', str_replace('http://', '', $g['url_root']));
?>
)으로 사이트패널내의 첫번째 사이트만 접속할 수 있으며 나머지 사이트를 접속하려면 별도의 도메인을 연결해야 합니다.<br />
Exemplo n.º 29
0
								<?php 
        if ($tpl == '.' || $tpl == '..' || $tpl == '_blank' || is_file($g['path_layout'] . $tpl)) {
            continue;
        }
        ?>
								<option value="<?php 
        echo $tpl;
        ?>
"<?php 
        if ($_layoutExp1[0] == $tpl) {
            ?>
 selected<?php 
        }
        ?>
><?php 
        echo getFolderName($g['path_layout'] . $tpl);
        ?>
(<?php 
        echo $tpl;
        ?>
)</option>
								<?php 
    }
    ?>
								<?php 
    closedir($dirs);
    ?>
							</select>
						</div>
						<div class="col-sm-6" id="rb-layout-select2">
							<select class="form-control" name="layout_1_sub"<?php 
Exemplo n.º 30
0
" />
			<input type="hidden" name="a" value="switch_edit" />
			<input type="hidden" name="switch" value="<?php 
        echo $switchdir;
        ?>
" />
			
			<br />
			<table>
				<tr>
					<td class="td1">
						스위치명칭
					</td>
					<td class="td2">
						<input type="text" name="name" value="<?php 
        echo getFolderName($g['path_switch'] . $switchdir);
        ?>
" class="input sname" />
					</td>
				</tr>
			</table>

			<textarea name="switch_code"><?php 
        echo implode('', file($g['path_switch'] . $switchdir . '/main.php'));
        ?>
</textarea>

			<div class="submitbox">
				<input type="submit" class="btnblue" value="스위치 편집" />
			</div>