summaryrefslogtreecommitdiffstats
path: root/lib/debug.lib.php
diff options
context:
space:
mode:
authorPaul Arthur <flowerysong00@yahoo.com>2012-11-08 13:15:19 -0500
committerPaul Arthur <flowerysong00@yahoo.com>2012-11-08 13:15:19 -0500
commitd2eaf10b072f8cb1dca887af2006eba00a3fc0fa (patch)
treec66320acdac0981575825de02608b867b65fdb7f /lib/debug.lib.php
parent0d78b77443481e3678d933c9590a4e2f7a4f90fa (diff)
downloadampache-d2eaf10b072f8cb1dca887af2006eba00a3fc0fa.tar.gz
ampache-d2eaf10b072f8cb1dca887af2006eba00a3fc0fa.tar.bz2
ampache-d2eaf10b072f8cb1dca887af2006eba00a3fc0fa.zip
Move check_database into the Dba class
Diffstat (limited to 'lib/debug.lib.php')
-rw-r--r--lib/debug.lib.php25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/debug.lib.php b/lib/debug.lib.php
index 4c8b0ec0..9b8b8e05 100644
--- a/lib/debug.lib.php
+++ b/lib/debug.lib.php
@@ -31,31 +31,6 @@
*/
/**
- * check_database
- *
- * checks the local mysql db and make sure life is good
- *
- * @param string $host Hostname
- * @param string $username Username
- * @param string $pass Password
- * @return mixed false or Database resource
- */
-function check_database($host,$username,$pass) {
-
- $dbh = @mysql_connect($host, $username, $pass);
-
- if (!is_resource($dbh)) {
- return false;
- }
- if (!$host || !$username) {
- return false;
- }
-
- return $dbh;
-
-} // check_database
-
-/**
* check_database_inserted
* checks to make sure that you have inserted the database
* and that the user you are using has access to it