__call("shield.server.view",$param); $resultArr = $arr['list']; */ $flag = $_GET["flag"] ; $dno = $_GET["dno"] ; if ($flag == "update" ) { $dno = $_POST["update_dno"] ; } $policy_type = $_POST["policy_type"] ;; $policy_name = $_POST["filterStr"] ; $service_port = $_POST["service_port"] ; $use_yn = $_POST["useData"] ; if (strstr($use_yn, 'on')) $use_yn = 'Y'; else $use_yn = 'N'; $count = 0; foreach ($_FILES as $file) { $filename = $file['name']; $count++; // Upload file if ($count == '1') { $cert_filename = $filename; $cert_location = 'upload/'.$filename; if(move_uploaded_file($file['tmp_name'],$cert_location)){ error_log ("@@_cert_filename=" . $cert_location . "\n", 3, "/usr/local/imagefilter30/var/logs/php.log"); } } else if ($count == '2') { $key_filename = $filename; $key_location = 'upload/'.$filename; if(move_uploaded_file($file['tmp_name'],$key_location)){ error_log ("@@_key_filename=" . $key_location . "\n", 3, "/usr/local/imagefilter30/var/logs/php.log"); } } } if ($flag == "list" ) { $startDate = $_GET["startDate"] ; $endDate = $_GET["endDate"] ; error_log ($startDate, 3, "/usr/local/imagefilter30/var/logs/php.log"); error_log ($endDate, 3, "/usr/local/imagefilter30/var/logs/php.log"); $from_sql = " from SSL_POLICY"; $count_sql = " select count(*) as cnt $from_sql " ; $sql = " select * $from_sql order by id asc " ; error_log ("firewall_policy_view:" . $sql . "\n", 3, "/usr/local/imagefilter30/var/logs/php.log"); $count_result=mysql_query($count_sql, $connect) or die (mysql_error()); if ($data=mysql_fetch_array($count_result)) { $total_count = $data[0]; //total_count } else { $total_count=0; } // $result=mysql_query($sql, $connect) or die (mysql_error()); $result=mysql_query($sql, $connect); //error_log("쿼리오류 발생: " . mysqli_error(), 3, "/usr/local/imagefilter30/var/logs/php.log"); ?> {"list":[ {"dno":"","useData":,"filterStr":"","policy_type":"","service_port":"","cert_path":"","key_path":"","regdate":""} ]} {"dno":"","useData":,"filterStr":"","policy_type":"","service_port":"","cert_path":"","key_path":"","regdate":""}