From 7c565e2261cbbcd7d430712d10bd285405151e56 Mon Sep 17 00:00:00 2001 From: vitalif Date: Mon, 4 Jan 2010 18:43:30 +0000 Subject: [PATCH] deny fof.log's; mysql_pconnect --- .htaccess | 6 ++++++ fof-db.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..8555490 --- /dev/null +++ b/.htaccess @@ -0,0 +1,6 @@ +Options -Indexes + + Order deny,allow + Allow from none + Deny from all + diff --git a/fof-db.php b/fof-db.php index 1b73826..c391e54 100644 --- a/fof-db.php +++ b/fof-db.php @@ -27,7 +27,7 @@ function fof_db_connect() { global $fof_connection; - $fof_connection = mysql_connect(FOF_DB_HOST, FOF_DB_USER, FOF_DB_PASS) or die("

Cannot connect to database. Please update configuration in fof-config.php. Mysql says: " . mysql_error() . ""); + $fof_connection = mysql_pconnect(FOF_DB_HOST, FOF_DB_USER, FOF_DB_PASS) or die("

Cannot connect to database. Please update configuration in fof-config.php. Mysql says: " . mysql_error() . ""); mysql_select_db(FOF_DB_DBNAME, $fof_connection) or die("

Cannot select database. Please update configuration in fof-config.php. Mysql says: " . mysql_error() . ""); fof_db_query("SET NAMES ".FOF_DB_CHARSET); }