1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php include_once("./_common2.php"); ?> <? include("./Page/common/header.php"); ?>
<?php
// ¸î¸íÀÌ ÀÌ ÆäÀÌÁö¿¡ µé¾î¿Ô´ÂÁö Ä«¿îÆÃ if($_SERVER['REMOTE_ADDR']!='58.151.27.172' && $_SERVER['REMOTE_ADDR']!='115.138.35.2' && $_SESSION['office_cnt_flg'] != "1"){ // »ç³»ÀÇ ´ë±¸, ¼¿ï ¾ÆÀÌÇǰ¡ ¾Æ´Ò °æ¿ì¿¡¸¸
$today = date("Y-m-d"); // ¿À´Ã³¯Â¥ $time = date("H"); $page = basename($_SERVER['PHP_SELF']); if(end(explode('.', basename($_SERVER['PHP_SELF']))) == "php") { $sql = "SELECT * FROM mBoard_page_count WHERE inflow_date = '{$today}' AND page = '{$page}' ORDER BY inflow_time DESC"; $res = mysql_query($sql,$connect_web); $row = mysql_fetch_array($res);
if(!$row || $row['inflow_time'] != $time){ // µ¥ÀÌÅͰ¡ ¾øÀ» ¶§ $insertsql = "INSERT INTO mBoard_page_count(inflow_date, inflow_time, count, page, page_kr) VALUES ('{$today}', '{$time}', 1, '{$page}', 'Á¦ÈÞ»ç')"; mysql_query($insertsql,$connect_web); } else { // µ¥ÀÌÅͰ¡ ÀÖÀ» ¶§ $updatesql = "UPDATE mBoard_page_count SET count = count+1 WHERE inflow_date = '{$today}' AND inflow_time = '{$time}' AND page = '{$page}'"; mysql_query($updatesql,$connect_web); } }
$_SESSION['office_cnt_flg'] = "1"; }
?>
<style> .customeroffice_font{padding:17px 10px;font-weight:600;font-size:11pt;} .office_title{height:250px;} .office_title{background:url('./img/customer/board_title/office_top_big.png') no-repeat;} .office_sub {font-size: 36px;height: 50px; margin-top: 10px;font-weight:700;} </style> <div class="office_title">
</div> <div class="wrap"> <div class="contents"> <h2 class="office_sub">2010³â ±âÁØ</h2> <? include("./Page/customer/office.php"); ?> </div><!-- //contents --> </div><!-- //wrap -->
<? include("./Page/common/footer.php"); ?>
|