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
|
<?php include("./category/common.php");
ob_start(); print_r($_GET); $res = ob_get_contents(); ob_end_clean();
$datetime = date("[Y-m-d H:i:s]",time()); $date_dir = date("Y-m-d",time()); $month_dir = date("Y-m",time()); $file_name = "M_{$r_id}-{$date_dir}";
$file_name = "replay_ck_view_b_{$date_dir}";
$fp = fopen($_SERVER['DOCUMENT_ROOT']."/sql_log/rep_mail_log/{$month_dir}/{$file_name}",'a'); fwrite($fp,$datetime.chr(10).$res); fclose($fp);
@chmod($_SERVER['DOCUMENT_ROOT']."/sql_log/rep_mail_log/{$month_dir}/{$file_name}",0707);
$keycode = $_GET['keycode']; $sql = "select * from mBoard_build where password(concat(uid,id)) = '$keycode'"; $res = mysql_query($sql); $info = mysql_fetch_array($res); if($info['uid']!=''){ $sql = "UPDATE mBoard_build SET ch_view='y' WHERE uid = '{$info['uid']}'"; mysql_query($sql);
$fp = fopen($_SERVER['DOCUMENT_ROOT']."/sql_log/rep_mail_log/{$month_dir}/{$file_name}",'a'); fwrite($fp,"uid : {$info['uid']} viewd".chr(10)); fclose($fp);
@chmod($_SERVER['DOCUMENT_ROOT']."/sql_log/rep_mail_log/{$month_dir}/{$file_name}",0707); } ?>
|