-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/html/
File Upload :
Current File : /var/www/html/html/index.php

<?php

# include
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;

# global values
	$mode = ( emptY($_POST['mode']))?$_GET['mode']:$_POST['mode'] ;
	$code = ( emptY($_POST['code']))?$_GET['code']:$_POST['code'] ;
	$page = ( emptY($_POST['page']))?$_GET['page']:$_POST['page'] ;
	$numid = ( emptY($_POST['numid']))?$_GET['numid']:$_POST['numid'] ;

	$total = array (
		'rootdir'			=> '/html' ,
		'loginid'			=> $info_user['loginid'] ,
		'loginname'			=> $info_user['loginname'] ,
		'loginno'			=> $info_user['loginno'] ,
		'loginlevel'		=> $info_user['loginlevel'] ,
		'logincode'			=> $info_user['logincode'] ,
		'now'				=> date('Y-m-d H:i:s') ,
		'ip'				=> getenv('REMOTE_ADDR') ,
		'pagesize'			=> 20 ,
		'nowpage'			=> (empty($page))?1:$page ,
		'blockpage'			=> 10 ,
		'code'				=> $code ,
		'mode'				=> $mode ,
		'numid'				=> $numid ,
		'view_skins'		=> 'Y' ,
	) ;

	$hint = array () ;

	$total['idxdir']	= $total['rootdir'] . '/idx' ;
	$total['skindir']	= $total['rootdir'] . '/skin' ;
	$total['phpdir'] = $total['rootdir'] . '/php' ;

	$exe->button = $button ;
	$exe->design = array (
								'select'			=> 'font-weight:bold' ,
							) ;
	$exe->errorview = 'Y' ;

	function createTextEditor() {
		include $_SERVER['DOCUMENT_ROOT'] . '/fckeditor/fckeditor.php' ;
		$EDITOR = new FCKeditor('contents');          // textarea name
		$EDITOR->BasePath = '/fckeditor/';			// ¼³Ä¡ÇÑ Æú´õ ÁöÁ¤
		$EDITOR->Width      = '100%';					// width
		$EDITOR->Height     = 400;					// height
		$EDITOR->Config['SkinPath'] = $EDITOR->BasePath . 'editor/skins/' . htmlspecialchars('silver') . '/' ;
		$EDITOR->ToolbarSet = htmlspecialchars('Basic');
		return $EDITOR ;
	}

# authority check
	if ( $total['loginlevel'] < $info_member['loginlv'] || empty($total['code']))
	{
		//
	}

# select keyword
	$total['design'] = $config[$total['code']][2] ;
	$total['table'] = $config[$total['code']][1] ;
	$total['options'] = $config[$total['code']][4] ;

# search group
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/class/public.search.php' ;
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_search.php' ;

# link
	$total['selfurl']		= $total['rootdir'] . '/index.php?' ;
	$total['cmnurl']		= $total['selfurl'] . 'code=' . $total['code'] ;
	$total['cmnval']		= $total['cmnurl'] . $total['scode'] . $total['fcode'] . $total['ecode'] . $total['acode'] . $total['bcode'] ;
	$total['cmnall']		= $total['cmnval'] . '&page=' . $total['nowpage'] ;
	$total['cmnnb']			= $total['cmnall'] . '&numid=' . $total['numid'] ;

# title types
	include $_SERVER['DOCUMENT_ROOT'] . $total['rootdir'] . '/title_type.php' ;

# display
	if ( is_file($_SERVER['DOCUMENT_ROOT'] . $total['idxdir'] . '/' . $total['design'] . '.php')) {
		include $_SERVER['DOCUMENT_ROOT'] . $total['idxdir'] . '/' . $total['design'] . '.php' ;
		$skinfile = $total['skindir'] . '/' . $skinfile ;
		$phpfile = $total['phpdir'] . '/' . $phpfile ;
		include $_SERVER['DOCUMENT_ROOT'] . $phpfile ;
		$result = str_foreach( $total , 'TOTAL' , $result ) ;
		$hint = RTMsg( $hint , 'HINT' , $total['skindir'] . '/hint.html' ) ;
		$result = str_foreach( $hint , 'HINT' , $result ) ;
	}


# display result
	switch ( $total['view_skins'] ) {
		case 'Y' :
			include_once('header.html') ;
			echo $result ;
			include_once('footer.html') ;
			break ;
		case 'N' :
			if ( empty($total['title'])) $total['title'] = 'POPUP' ;
			echo '
				<html>
				<head>
				<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
				<title>' . $total['title'] . '</title>
				<link href="/css/css.css" rel="stylesheet" type="text/css">
				<script language="javascript" src="/inc/config.js"></script>
				<script language="javascript" src="/js.js"></script>
				</head>
				<body STYLE="background-color:transparent">
			' . $title_type['guide'] ;
			echo $result ;
			echo $title_type['guide_bottom'] . '
				</body>
				</html>
			' ;
			break ;
		case 'X' ;
			echo $result ;
			break ;
	}

?>

Copyright © 2017 || Recoded By Mr.Bumblebee