summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-13 01:00:40 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-13 01:00:40 +0000
commit4adff591692247debc4089e3a2f1e8fda735d502 (patch)
tree3677d1aa56dc207cc1951190984d788c9c018839
parent9be9c5a3d1ba2ca95a2519bf989008cbd6bc87fc (diff)
Fix preambles
-rw-r--r--installer/libraries/Install_Mysql_Driver.php6
-rw-r--r--installer/libraries/Install_Mysqli_Driver.php8
-rw-r--r--installer/libraries/Mysql_Driver.php4
3 files changed, 9 insertions, 9 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);
}
diff --git a/installer/libraries/Install_Mysqli_Driver.php b/installer/libraries/Install_Mysqli_Driver.php
index 43894722..257d8ea6 100644
--- a/installer/libraries/Install_Mysqli_Driver.php
+++ b/installer/libraries/Install_Mysqli_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
@@ -23,7 +23,7 @@ class Install_Mysqli_Driver {
private $_mysqli;
private $_server;
private $_user;
-
+
public function __construct($server, $user, $password) {
$this->_mysqli = @mysqli_connect($server, $user, $password);
if (!$this->_mysqli) {
@@ -39,7 +39,7 @@ class Install_Mysqli_Driver {
$this->_mysqli = null;
}
}
-
+
public function list_dbs() {
$db_list = $this->_mysqli->query("SHOW DATABASES");
$databases = array();
@@ -65,7 +65,7 @@ class Install_Mysqli_Driver {
}
return $permissions;
}
-
+
public function select_db($dbname) {
$this->_mysqli->select_db($dbname);
}
diff --git a/installer/libraries/Mysql_Driver.php b/installer/libraries/Mysql_Driver.php
index 81848374..a2f52fc0 100644
--- a/installer/libraries/Mysql_Driver.php
+++ b/installer/libraries/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
@@ -19,7 +19,7 @@
*/
class Mysql_Driver {
private $link;
-
+
public function __construct($server, $user, $password) {
$this->link = @mysql_connect($server, $user, $password);
if (!$this->link) {