summaryrefslogtreecommitdiff
path: root/installer/libraries/Install_Mysql_Driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'installer/libraries/Install_Mysql_Driver.php')
-rw-r--r--installer/libraries/Install_Mysql_Driver.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/installer/libraries/Install_Mysql_Driver.php b/installer/libraries/Install_Mysql_Driver.php
index d380b140..6ddfd1fc 100644
--- a/installer/libraries/Install_Mysql_Driver.php
+++ b/installer/libraries/Install_Mysql_Driver.php
@@ -1,4 +1,4 @@
-<?php
+<?php defined("SYSPATH") or die("No direct script access.");
/**
* Gallery - a web based photo album viewer and editor
* Copyright (C) 2000-2008 Bharat Mediratta
@@ -21,7 +21,7 @@ class Install_Mysql_Driver {
private $_link;
private $_server;
private $_user;
-
+
public function __construct($server, $user, $password) {
$this->_link = @mysql_connect($server, $user, $password);
if (!$this->_link) {
@@ -60,7 +60,7 @@ class Install_Mysql_Driver {
}
return $permissions;
}
-
+
public function select_db($dbname) {
mysql_select_db($dbname);
}