diff --git a/server/cn/home/www/api/www-api/logo.ico b/server/cn/home/www/api/www-api/logo.ico new file mode 100644 index 0000000..d3205a8 Binary files /dev/null and b/server/cn/home/www/api/www-api/logo.ico differ diff --git a/server/cn/home/www/api/www-api/photo/logo.ico b/server/cn/home/www/api/www-api/photo/logo.ico new file mode 100644 index 0000000..d3205a8 Binary files /dev/null and b/server/cn/home/www/api/www-api/photo/logo.ico differ diff --git a/server/cn/home/www/api/www-api/words/index.php b/server/cn/home/www/api/www-api/words/index.php new file mode 100644 index 0000000..45033e0 --- /dev/null +++ b/server/cn/home/www/api/www-api/words/index.php @@ -0,0 +1,13 @@ + $res[0]['words'])); + +yimian__log("log_api", array("api" => "words", "timestamp" => date('Y-m-d H:i:s', time()), "ip" => ip2long(get_ip()), "_from" => get_from(), "content" => $res[0]['words'])); + + +die(); \ No newline at end of file diff --git a/server/cn/home/www/api/www-api/words/logo.ico b/server/cn/home/www/api/www-api/words/logo.ico new file mode 100644 index 0000000..d3205a8 Binary files /dev/null and b/server/cn/home/www/api/www-api/words/logo.ico differ diff --git a/server/cn/home/www/functions.php b/server/cn/home/www/functions.php index 2a91754..0fbbada 100644 --- a/server/cn/home/www/functions.php +++ b/server/cn/home/www/functions.php @@ -196,6 +196,12 @@ function db__connect($servername="",$username="",$password="",$dbname="") $username = $GLOBALS['g_db_log_usrName']; $password = $GLOBALS['g_db_log_psswd']; $dbname = $GLOBALS['g_db_log_dbName']; + }elseif($servername == "yulu"){ + + $servername = $GLOBALS['g_db_serverName']; + $username = $GLOBALS['g_db_usrName']; + $password = $GLOBALS['g_db_psswd']; + $dbname = "yulu"; } $conn = new mysqli($servername, $username, $password, $dbname); @@ -366,9 +372,10 @@ function db__antisql($str) /*****log******/ -function yimian__log($table, $val, $limit){ +function yimian__log($table, $val, $index = ""){ - db__pushData(db__connect("log"), $table, $val, $limit); + if($index != "") db__pushData(db__connect("log"), $table, $val, $index); + else db__pushData(db__connect("log"), $table, $val); }