-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/inc.bk/
File Upload :
Current File : /var/www/html/inc.bk/config.php

<?php

if ( !isset($info_db)) {
	@session_start() ;
	@header('Content-Type: text/html; charset:euc-kr') ;

# include
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/class/lib.class.php' ;
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/class/lib.function.php' ;
	// kcp ¸ðµâ ´Ü¼øÈ­¸¦ À§ÇÑ È¯°æ¼³Á¤ÆÄÀÏÃß°¡
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_inc.php' ;

# global variables
	$urlAdminpage = '/admin' ;
	$info_db = array (
		'host'			=> 'localhost' ,
		'user_id'		=> $dbid ,
		'password'		=> $dbpw ,
		'db_name'		=> $dbname ,
	) ;
	$info_site = array (
		'sitetitle'		=> '' ,
		'join_level'	=> 5 ,
		'login_level'	=> 5 ,
	) ;
	$info_sms = array (
		'from'			=> '02-2236-3993' ,
		'to'			=> '000-0000-0000' ,
		'head'			=> '' ,
		'foot'			=> '' ,
		'quotation_send'=> 'Y' ,
	) ;
	$info_mail = array (
		'from'			=> '½ÎÄ¿ÆÀ <sportstop1@naver.com>' ,
		'title'			=> '½ÎÄ¿ÆÀ' ,
		'domain'		=> 'http://' . $_SERVER['SERVER_NAME'] ,
		'head'			=> '' ,
		'foot'			=> '' ,
		'save_path'		=> 'files/mail' ,
		'delete_file'	=> 'N' ,
		'quotation_send'=> 'Y' ,
	) ;
	$info_file = array (
		'max_size'		=> 4000 , // (kb)
		'table'				=> 'file_list' ,
		'mov_dir'		=> 'movie' ,
		'default_img'	=> 'img/logo_defalt.jpg' ,
		'auto_width'	=> 600 ,
		'auto_height'	=> 0 ,
	) ;
	$info_comment = array (
		'table'				=> 'comment' ,
		'include'			=> $_SERVER['DOCUMENT_ROOT'] . '/inc/comment/' ,
	) ;
	$info_thumb = array (
		'max_size'		=> 4000 , // (kb)
		'width'				=> 160 , // 95 ,
		'height'			=> 160 , //95 ,
		'quality'			=> 7 ,
		'head'				=> 'thumb_' ,
		'directory'		=> '_thumb' ,
		'default_img'	=> '/img/logo_defalt.jpg' ,
	) ;

	$define_admin_level = array( 99 => '°ü¸®ÀÚ' ) ;
	$define_member_level = array( 1 => '´ë±â' , 5 => 'ÀϹÝ' ) ;

	$define_shop = array (
		'°áÁ¦¹æ¹ý'	=> array ( 'B' => '¹«ÅëÀåÀÔ±Ý' , 'C' => '½Å¿ëÄ«µå' , 'E' => '°¡»ó°èÁÂ(¿¡½ºÅ©·Î)' ) ,  //     /product/order/skn.step01_orderform.php   , /product/order/step01_orderform.html
		'¹«ÅëÀåÀÔ±Ý' => array ( '³óÇù 302-0635-6118-11 (¼Õ¿­È£)' , '½ÅÇÑÀºÇà 110-378-208987 (¼Õ¿­È£)'  ) ,
		'»óÅÂ'		=> array ( '' => 'Àüü' , '1' => 'ÀϹÝ' , '2' => 'ÀϽÃǰÀý' , '3' => 'ǰÀý' , '4' => 'ÀüÈ­ÁÖ¹®' ) ,
		'°ø°³'		=> array ( '' => 'Àüü' , 'Y' => '°ø°³' , 'N' => 'ºñ°ø°³' ) ,		// »óǰ °ø°³ ŸÀÔ
		'°ø°³2'		=> array ( '' => 'Àüü' , 'Y' => '°ø°³' , 'N' => 'ºñ°ø°³' , 'P' => '±â°£°ø°³' ) ,		// À̺¥Æ® °ø°³ ŸÀÔ
		'¸ÞÀÎ'		=> array ( '' => 'Àüü' , '1' => 'ÇØ¿ÜÁ÷¼öÀÔ' , '2' => 'º£½ºÆ®»óǰ' , '3' => '½Å»óǰ' ) ,
		'ºÐ·ù'		=> array (
						'1'		=> array ( 'Ã౸À¯´ÏÆû' , array ( '1' => array('Ư°¡»óǰ 14,000¿ø~') ,
																  '2'  => array('±¹°¡´ëÇ¥ÆÀ') ,
																  '3' => array('ÇÁ¸®¹Ì¾î¸®±×') ,
																  '4' => array('ÇÁ¸®¸Þ¶ó¸®°¡') ,
																  '5' => array('¼¼¸®¾ÆA') ,
																  '6' => array('ºÐµ¥½º¸®°¡') ,
																  '7' => array('¸®±×¾Ó') ,
																  '8' => array('±âŸ¸®±×') ,
																  '9' => array('ºê·£µåÀ¯´ÏÆû') ,
																  '10' => array('½ÉÆÇº¹/°ñŰÆÛº¹') ,

																  '11' => array('¾Æµ¿À¯´ÏÆû') ,
																  '12' => array('À°»óº¹') ,
																  '13' => array('³ó±¸º¹') ,
																  '14' => array('¹è±¸º¹') ,
																  '15' => array('Æ®·¹À̴׿þ¾î') ,
																  '16' => array('·ÕÄÚÆ®') ,
																  '17' => array('ÆÐµùÁ¶³¢') ,
																  '18' => array('Ã౸¿ëǰ') ,

																  '19' => array('°³ÀΰáÁ¦Ã¢'))) ,
					)
	) ;

	$define_shop_icons = array (
		'B'		=> '<img src="/img/shop_icon/icon_best.gif" align="absmiddle">' ,
		'H'		=> '<img src="/img/shop_icon/icon_hit.gif" align="absmiddle">' ,
		'N'		=> '<img src="/img/shop_icon/icon_new.gif" align="absmiddle">' ,
		'O'		=> '<img src="/img/shop_icon/icon_m3.gif">' ,
		'S'		=> '<img src="/img/shop_icon/icon_sail.gif" align="absmiddle">' ,
		'F'		=> '<img src="/img/shop_icon/icon_m1.gif" align="absmiddle">' ,
		'A'		=> '<img src="/img/shop_icon/icon_m2.gif" align="absmiddle">' ,
		'C'		=> '<img src="/img/shop_icon/icon_m0.gif" align="absmiddle">',
		'P'		=> '<img src="/img/shop_icon/icon_noprice.gif" align="absmiddle">'
	);

	$top_armtype_tit = array( 'L' => '±äÆÈ' , 'S' => '¹ÝÆÈ' ) ;
	$team_name_position = array ( 'N'	=> '¾øÀ½' , 'L' => 'ÁÂÃø' , 'C' => 'Áß¾Ó' , 'R' => '¿ìÃø' , 'B' => 'µî' ) ;
	$position_seq_title = array ( '01' => '°¡½¿(¿ìÃø)' , '02' => '°¡½¿(ÁÂÃø)' , '03' => '°¡½¿(Áß)' , '04' => '¾Õ¹øÈ£' , '05' => '½ºÆù¼­/ÆÀ¸í' , '06' => '¾Õ¹øÈ£(¹Ø)' , '07' => 'ÆÈÆÐÄ¡(ÁÂ)' , '08' => 'ÆÈÆÐÄ¡(¿ì)' , '09' => 'À̴ϼÈ/ÆÀ¸í' , '10' => 'µî¹øÈ£' , '11' => 'µî¹øÈ£(À§)' , '12' => '½ºÆù¼­ ÆÀ¸í' , '13' => '¹øÈ£¼­Ã¼' , '14' => '¿¥ºí·³' ) ;
	// »óǰ ÁÖ¹® ÆäÀÌÁö »ó¿¡¼­ÀÇ À§Ä¡º° ¼ø¼­°ª
	$view_position_seq_title = array( '01' => '1' , '02' => '3' , '03' => '2' , '04' => '5' , '05' => '4' , '06' => '6' , '07' => '7' , '08' => '8' , '09' => '9' , '10' => '11' , '11' => '10' , '12' => '12' , '13' => '14' , '14' => '13' ) ;
	// ¿É¼Ç ÄÚµå
	$options_code_title = array ( 'e' => '¿¥ºí·½' , 's' => '½ºÆù¼­' , 'p' => 'ÆÐÄ¡' , 'n' => '³Ñ¹ö¼­Ã¼' , 't' => 'ÆÀ¸í' , 'i' => 'À̴ϼÈ' ) ;
	$options_code_img = array ( 'e' => 'select01_tab01' , 's' => 'select02_tab01' , 'p' => 'select04_tab01' , 'n' => 'select03_tab01' , 't' => 'select01_tab02' , 'i' => 'select05_tab03' ) ; // .gif , _o.gif
	// 04(¾Õ¹øÈ£) , 10(µî¹øÈ£) , 13(ÇÏÀÇ-ÁÂ) ´Â ¼ÂÆ®·Î ¿òÁ÷ÀÓ.
	$options_sizename = array( '60' => '5XS(60)' , '65' => '4XS(65)' , '70' => '3XS(70)' , '75' => '2XS(75)' , '80' => 'XS(80)' , '85' => 'S(85)' , '90' => 'M(90)' , '95' => 'L(95)' , '100' => 'XL(100)' , '105' => '2XL(105)' , '110' => '3XL(110)' ) ;

	function input_initial_price($initial) {
		// ÇѱÛ/¿µ¹®¿¡ µû¶ó ±Ý¾×ÀÌ ´Þ¶óÁý´Ï´Ù.
		// Ư¹®,¼ýÀÚ´Â ¿µ¹®¿¡ Æ÷ÇÔ.
		// ¼ø¼ö ÇѱÛÀÏ ¶§¸¸ Çѱ۷Πó¸®, ÇÑ ÀÚ¶óµµ ¿µ¹®ÀÌ Æ÷ÇÔµÇ¸é ¿µ¹®À¸·Î ó¸®.
		$initial = str_replace( ' ' , '' , $initial ) ;
		$chkAllKr = true ;
		$intlen =  strlen( $initial );
		for ( $i = 0 ; $i < $intlen ; $i++) {
			if ( ord(substr($initial , $i , 1)) > 127) $i++ ;
			else { // ÇÑ±Û ÀÌ¿ÜÀÇ ¹®ÀÚ ÀÔ·Â
				$chkAllKr = false ;
				break ;
			}
		}
		return $chkAllKr ;
	}

	function select_option_conf($pos) {
		$option_conf = array() ;
		switch ( $pos ) {
			case '01' : $option_conf[] = 'e' ; $option_conf[] = 't' ; break ;
			case '02' : $option_conf[] = 'e' ; $option_conf[] = 't' ; break ;
			case '03' : $option_conf[] = 'e' ; $option_conf[] = 't' ; break ;
			case '04' : $option_conf[] = 'n' ; break ;
			case '05' : $option_conf[] = 's' ; $option_conf[] = 't' ; break ;
			case '06' : $option_conf[] = 's' ; $option_conf[] = 't' ; break ;
			case '07' : $option_conf[] = 'p' ; $option_conf[] = 't' ; break ;
			case '08' : $option_conf[] = 'p' ; $option_conf[] = 't' ; break ;
			//case '09' : $option_conf[] = 's' ; $option_conf[] = 't' ; $option_conf[] = 'i' ; break ;
			case '09' : $option_conf[] = 't' ; $option_conf[] = 'i' ; break ;
			case '10' : $option_conf[] = 'n' ; break ;
			case '11' : $option_conf[] = 's' ; $option_conf[] = 't' ; $option_conf[] = 'i' ; break ;
			case '12' : $option_conf[] = 's' ; $option_conf[] = 't' ; break ;
			case '13' : $option_conf[] = 'n' ; break ;
			case '14' : $option_conf[] = 'e' ; break ;
			default : return false ;
		}
		return $option_conf ;
	}
	function adSelect_option_conf($pos, $c) {
		$option_conf = select_option_conf($pos) ;
		if ( !empty($c)) {
			foreach ($option_conf as $v) {
				if ( $c == $v) return $v ;
			}
			return 'f' ; // free
		}
		return 'f' ;
	}

# class connect
	$exe = new query ;
	$exe->conn ( $info_db['host'] , $info_db['user_id'] , $info_db['password'] , $info_db['db_name'] ) ;
	$exe->fetch_type = "assoc" ;
	$exe->errorview = 'Y' ;

	$img = new image ;
	$img->quality	= $info_thumb['quality'] ;
	$img->width		= $info_thumb['width'] ;
	$img->height	 	= $info_thumb['height'] ;
	$img->head		= $info_thumb['head'] ;
	$img->ext			= $info_thumb['ext'] ;

	$skin = new skins ;

	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_menu.php' ;
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_login.php' ;
	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config_useimage.php' ;

	# Àå¹Ù±¸´Ï ¹øÈ£
	if ( empty($info_user['loginno'])) {
		$b_cart_id = '' ;
		if ( empty($_SESSION['session_cart_id']) && empty($_COOKIE['cookie_cart_id'])) {
			$b_cart_id = $session_cart_id = time() . str_rand(20,'Aa1');
			session_register('session_cart_id');
			setcookie( 'cookie_cart_id' , $session_cart_id , 0 , '/' ) ;
		} elseif ( empty($_SESSION['session_cart_id'])) {
			$b_cart_id = $session_cart_id = $_COOKIE['cookie_cart_id'] ;
			session_register('session_cart_id');
		} elseif ( empty($_COOKIE['cookie_cart_id'])) {
			$b_cart_id = $_SESSION['session_cart_id'] ;
			setcookie( 'cookie_cart_id' , $cart_id , 0 , '/' ) ;
		} else {
			$b_cart_id = $_SESSION['session_cart_id'] ;
		}
		if ( getenv('REMOTE_ADDR') =='210.183.166.132' ) {
			//$b_cart_id = '1370535928jg5xsZ4ZGAU6n2LmQIt2' ;
		}
		$cart_id = $b_cart_id ;
	}

	# ÁÖ¹®¹øÈ£(table primary key - numid) ¾Ïȣȭ/º¹È£È­
	function ordNumber_encode($r) {
		global $s_orderchars ;
		return se_encode($r ,$s_orderchars);
	}
	function ordNumber_decode($r) {
		global $s_orderchars ;
		return se_decode($r , $s_orderchars);
	}

	# 3Â÷ Ä«Å×°í¸® ¸ñ·Ï ºÒ·¯¿À±â
	function load_leftCategory() {
		global $config , $exe ;
		$leftm = array();
		$cexe = $exe->qry_one(" from tbl_{$config[SHP][1]}_category order by c1_no , c2_no , sequence " , " numid , c1_no , c2_no , title ") ;  // get c3 list
		while ( $crs = $exe->fetch($cexe)) {
			$leftm[$crs['c1_no']][$crs['c2_no']] .= '&middot; <a href="/product/?c1=' . $crs['c1_no'] . '&c2=' . $crs['c2_no'] . '&c3=' . $crs['numid'] . '">' . $crs['title'] . '</a><br>' ;
		}
		return $leftm ;
	}
}

?>

Copyright © 2017 || Recoded By Mr.Bumblebee