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
|
<?php if (session_id() === "") { session_start(); }
//new pdo
define("PRODUCTION", 0);
if(PRODUCTION == 1){ $dbh = new PDO("mysql:host=localhost;dbname=innoutst01", "innoutst", "9ETms3@"); $google_recaptcha_site_key = "6LdDbQ8TAAAAAGYCEki0cPyh4USJ2_qj-7sQbfhz"; $google_recaptcha_secret_key = "6LdDbQ8TAAAAAHfpbDwacLr362pEk-sVWr0RAz6J"; error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); ini_set('display_errors', 0); }else{ $dbh = new PDO("mysql:host=192.168.171.23;dbname=dev_innout", "admin", "PHac7dru"); $google_recaptcha_site_key = "6LelWQ8TAAAAAPxA3Y1rFZZgkBdf9q_Bvvzl-Dcw"; $google_recaptcha_secret_key = "6LelWQ8TAAAAAMbupbh73-Y8WoPOn0OAPAreAj2n"; error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); ini_set('display_errors', 1); }
$dbh->exec("set names utf8");
date_default_timezone_set("Asia/Hong_Kong");
$nowdate = date("Y-m-d H:i:s");
ini_set('session.cookie_httponly', 1);
header("Content-Type:text/html; charset=utf-8"); header("x-frame-options:SAMEORIGIN");
set_time_limit(5*60);
|