$RPATH = getenv("DOCUMENT_ROOT");
require($RPATH."/inc/total.lib");
require($RPATH."/inc/util.inc");
require($RPATH."/inc/utilFunc.php");
$imgURL = "shopgoods_imgs";
$conn= mysql_connect("$sqlhost","$sqluser","$sqlpwd") or die("db ¼¹ö ¿¬°É¿À·ù");
mysql_select_db("$sqldb", $conn);
$que = "select title_url1 from shop_catagory_upper where upper_code='$su_code'";
$result = mysql_query($que, $conn);
$row = mysql_fetch_array($result);
$title_url1 = $row["title_url1"];
?>
::: °ø°£ÀÇ ¾Æ¸§´Ù¿ò - ¸®ºùºí·ç :::
// »ç¿ëÀÚ °ø¿ëÇÔ¼ö
// ¼¼¼Çº¯¼ö »ý¼º
function set_session($session_name, $value)
{
session_register($session_name);
// PHP ¹öÀüº° Â÷À̸¦ ¾ø¾Ö±â À§ÇÑ ¹æ¹ý
$$session_name = $_SESSION["$session_name"] = $value;
}
// ¼¼¼Çº¯¼ö°ª ¾òÀ½
function get_session($session_name)
{
return $_SESSION[$session_name];
}
?>
if( $PHP_SELF == "/index.php" || ereg("/list", $PHP_SELF) || ereg("/detail", $PHP_SELF) ) { $topWidth = "877"; $topLeftPadding = "3px"; }
else { $topWidth = "860"; $topLeftPadding = "0px";}
?>
|
|
|
|
|
|
|
if(!$loginid) {
?>
|
|
} else {
?>
|
|
}
?>
|
|
|
|
|
|
|
|
|
|
|
{ include("todayView_inc.php"); }?> |
|
|
|
|
|
|
|
|
|
|
|
if(!$count_cook)
{
$sqluser = "livingblue";
$sqlpwd = "com007";
$sqldb = "livingblue";
$sqlhost = "localhost";
$conn= mysql_connect("$sqlhost","$sqluser","$sqlpwd") or die("db ¼¹ö ¿¬°É¿À·ù");
mysql_select_db("$sqldb", $conn);
$ftime = getdate(time());
$cyear = $ftime[year];
$cmon = $ftime[mon];
$cday = $ftime[mday];
$chours = $ftime[hours];
$itime = $cyear."- ".$cmon."¿ù ".$cday."ÀÏ";
if($cmon <10){
$cmon = "0" . $cmon;
}
if($cday <10){
$cday = "0" . $cday;
}
$cdate = $cyear . $cmon . $cday ;
$chdate = $cyear . "-" . $cmon . "-" . $cday ;
$que = "select * from counter where cdate='$cdate'";
$result = mysql_query($que, $conn);
$row = mysql_fetch_row($result);
if($row[0] > 0)
{
switch($chours)
{
case '0' :
$que = "update counter set zero=zero + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '1' :
$que = "update counter set one=one + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '2' :
$que = "update counter set two=two + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '3' :
$que = "update counter set three=three + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '4' :
$que = "update counter set four=four + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '5' :
$que = "update counter set five=five + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '6' :
$que = "update counter set six=six + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '7' :
$que = "update counter set seven=seven + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '8' :
$que = "update counter set eight=eight + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '9' :
$que = "update counter set nine=nine + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '10' :
$que = "update counter set ten=ten + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '11' :
$que = "update counter set eleven=eleven + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '12' :
$que = "update counter set twelve=twelve + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '13' :
$que = "update counter set thirteen=thirteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '14' :
$que = "update counter set fourteen=fourteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '15' :
$que = "update counter set fifteen=fifteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '16' :
$que = "update counter set sixteen=sixteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '17' :
$que = "update counter set seventeen=seventeen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '18' :
$que = "update counter set eighteen=eighteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '19' :
$que = "update counter set nineteen=nineteen + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '20' :
$que = "update counter set twenty=twenty + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '21' :
$que = "update counter set twentyone=twentyone + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '22' :
$que = "update counter set twentytwo=twentytwo + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
case '23' :
$que = "update counter set twentythree=twentythree + 1 where cdate='$cdate'";
mysql_query($que, $conn);
break;
}
}
else
{
$que = "insert into counter(cdate) values('$cdate')";
mysql_query($que, $conn);
}
}
?>