session_start();
if($mode == 'log_out') {
session_unregister("intra_user");
echo ""; exit;
}
## ½ÇÇà ½Ã°£À» »êÃâ
function getMicrotime()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$script_action_start_time = getMicrotime(); //½ºÅ©¸³Æ® ½ÃÀ۽𣠼³Á¤
## ½ºÅ©¸³Æ® ÃÑ ½ÇÇà½Ã°£ »êÃâ ÇÔ¼ö
function printActionTime()
{
global $script_action_start_time;
$script_action_end_time = getMicrotime();
echo("");
}
/*START--------------------------------------------------------
¸ð¹ÙÀÏ ¶Ç´Â PC¿¡¼ Á¢¼ÓÇß´ÂÁö ¿©ºÎ¸¦ È®ÀÎÇÑ´Ù.
----------------------------------------------------------*/
function MobileCheck() {
global $HTTP_USER_AGENT;
$MobileArray = array("iphone","lgtelecom","skt","mobile","samsung","nokia","blackberry","android","android","sony","phone","linux x86_64");
$checkCount = 0;
for($i=0; $i= 1) ? "Mobile" : "Computer";
}
if(MobileCheck() == "Mobile"){
$skbanner_link="https://m.skbroadband.com/Page.do?menu_id=P01000000";
}else{
$skbanner_link="https://www.skbroadband.com/product/smallmerchant/Page.do?retUrl=/product/smallmerchant/Dream";
}
/* END ---------------------------*/
include "../config.php";
include $root_path."/dbconn.php";
if($boardcode == "") { $boardcode = "changup"; }
$table_name = "table_".$boardcode;
include "./config/common.inc";
$bdResult=mysql_query("select boardname from boardcode where boardcode='$boardcode'",$dbconn) or die("ggg");
$bdRows = mysql_fetch_row($bdResult);
$boardTitle = $bdRows[0];
include "board.inc";
$boardset_res = mysql_query("select * from boardset where boardcode='$boardcode'", $dbconn);
$boardset_row = mysql_fetch_array($boardset_res);
$num_per_page = 20;
$page_per_block = 5;
$out_field = $boardset_row[outfield];
$highlighthit = $boardset_row[highlighthit];
$highlightday = $boardset_row[highlightday];
$bottomlist = $boardset_row[bottomlist];
$adminemail = $boardset_row[adminemail];
$mailreceiver = $boardset_row[mailreceiver];
$highlightday = time() - ($highlightday * 86400);
?>
if($mode=="view") {
$viewtitle_res = mysql_query("select subject from table_changup where uid = '$uid'");
$viewtitle_res1 = mysql_query("select homepage from table_changup where uid = '$uid'");
$viewtitle = mysql_fetch_array($viewtitle_res);
$viewcate = mysql_fetch_array($viewtitle_res1);
if ($viewcate[homepage] == "±âŸ"){
$viewcate[homepage] = "â¾÷´º½º" ;
}
if(eregi("/",$viewcate[homepage]) || $viewcate[homepage]=="" || eregi("www",$viewcate[homepage]) || eregi("s",$viewcate[homepage]) || eregi("kr",$viewcate[homepage]) || eregi("com",$viewcate[homepage]) || eregi("net",$viewcate[homepage])) {
$viewcate[homepage] = "½Å±Ôâ¾÷Á¤º¸" ; }
?>
} else if($pcategory && $pcategory!="±âŸ"){?>
} else if($pcategory == "±âŸ"){?>
} else {?>
±ÝÁÖÀÇ ½Å±Ôâ¾÷Á¤º¸
}?>