deny fof.log's; mysql_pconnect

master
vitalif 2010-01-04 18:43:30 +00:00
parent 2fe5e66b5c
commit 7c565e2261
2 changed files with 7 additions and 1 deletions

6
.htaccess Normal file
View File

@ -0,0 +1,6 @@
Options -Indexes
<FilesMatch "fof\.log.*">
Order deny,allow
Allow from none
Deny from all
</FilesMatch>

View File

@ -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("<br><br>Cannot connect to database. Please update configuration in <b>fof-config.php</b>. Mysql says: <i>" . mysql_error() . "</i>");
$fof_connection = mysql_pconnect(FOF_DB_HOST, FOF_DB_USER, FOF_DB_PASS) or die("<br><br>Cannot connect to database. Please update configuration in <b>fof-config.php</b>. Mysql says: <i>" . mysql_error() . "</i>");
mysql_select_db(FOF_DB_DBNAME, $fof_connection) or die("<br><br>Cannot select database. Please update configuration in <b>fof-config.php</b>. Mysql says: <i>" . mysql_error() . "</i>");
fof_db_query("SET NAMES ".FOF_DB_CHARSET);
}