diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-13 01:00:40 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-13 01:00:40 +0000 |
commit | 4adff591692247debc4089e3a2f1e8fda735d502 (patch) | |
tree | 3677d1aa56dc207cc1951190984d788c9c018839 /installer/libraries/Install_Mysql_Driver.php | |
parent | 9be9c5a3d1ba2ca95a2519bf989008cbd6bc87fc (diff) |
Fix preambles
Diffstat (limited to 'installer/libraries/Install_Mysql_Driver.php')
-rw-r--r-- | installer/libraries/Install_Mysql_Driver.php | 6 |
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); } |