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
48
|
<?php header("Content-type:text/html;charset=euc-kr"); ?> <html> <head> <meta charset="euc-kr"> <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=0,maximum-scale=10"> </head> <body> <? @extract($_REQUEST); //include_once("dbconnect_stop.php"); // DB Connect Information
$DB_HOST = "114.108.136.196"; $DB_USER = "sms_stop"; $DB_PWD = "se.7(AS0-7"; $DB_NAME = "sms_sk";
$conn = @mysql_connect($DB_HOST, $DB_USER, $DB_PWD); @mysql_select_db($DB_NAME, $conn);
function _pr($v){ echo "<pre>"; print_r($v); echo "</pre>"; }
if(!(strpos($_SERVER['HTTP_REFERER'],"mjsoft.co/sms/sms_stop.php")>0)){ echo "<script>alert('Á¤»óÀûÀÎ °æ·Î°¡ ¾Æ´Õ´Ï´Ù.')</script>"; exit; } if($id=='' || $secret_code==''){ echo "<script>alert('°ªÀÌ ³Ñ¾î¿ÀÁö ¾Ê¾Ò½À´Ï´Ù.')</script>"; exit; }
$sql = "call SP_SMS_STOP('$id','$secret_code');"; //$sql = "call call_sp_sms_stop('$id','$secret_code');"; $res = mysql_query($sql); while($info = mysql_fetch_array($res)){ echo $info[0]; } _pr(mysql_error());
/*if (!$res = $mysqli->query("CALL CALL_SP_SMS_STOP('$id','$secret_code')")) { echo "CALL failed: (" . $mysqli->errno . ") " . $mysqli->error; }*/
//var_dump($res->fetch_assoc()); ?> </body> </html>
|