deny fof.log's; mysql_pconnect
parent
2fe5e66b5c
commit
7c565e2261
|
@ -0,0 +1,6 @@
|
|||
Options -Indexes
|
||||
<FilesMatch "fof\.log.*">
|
||||
Order deny,allow
|
||||
Allow from none
|
||||
Deny from all
|
||||
</FilesMatch>
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue