From 468e9a700736166f175b974e185d24d0d2a4f33e Mon Sep 17 00:00:00 2001 From: BlueRaja Date: Sun, 13 Jan 2013 00:48:07 -0600 Subject: db.inc.php now only contains the database login info; the actual connection to the DB has been moved to includes/sqlEmbedded. This was done so we don't need to have the db info in two separate files (one of which is in the repo, derp) --- pages/achievements.php | 2 +- pages/admin.php | 2 +- pages/challenge.php | 2 +- pages/challengelist.php | 2 +- pages/cp.php | 2 +- pages/feedback.php | 2 +- pages/gallery.php | 2 +- pages/home.php | 2 +- pages/leaderboard.php | 2 +- pages/login.php | 2 +- pages/massemail.php | 4 ++-- pages/memberlist.php | 2 +- pages/tutorial.php | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) (limited to 'pages') diff --git a/pages/achievements.php b/pages/achievements.php index ac7aded..1bb2195 100644 --- a/pages/achievements.php +++ b/pages/achievements.php @@ -7,7 +7,7 @@ htmlHeader(array('profile'), 'Pathery Achievements'); __get('identity'); //I know just where to put this stuff! - require './includes/db.inc.php'; + require './includes/sqlEmbedded.php'; //Unless I already have this information... //* Modify this to WHERE `email` //$sql = "SELECT `ID`, `isAdmin`, `openID`, `displayName` FROM `users` WHERE `email` = '$email'"; diff --git a/pages/massemail.php b/pages/massemail.php index a861500..d45588b 100644 --- a/pages/massemail.php +++ b/pages/massemail.php @@ -6,7 +6,7 @@ htmlHeader(); topbar($Links); include('./includes/datas.php'); -include('./includes/db.inc.php'); +include('./includes/sqlEmbedded.php'); if (isset($_POST['massemail']) AND isset($_SESSION['accepted'])) { @@ -22,7 +22,7 @@ if (isset($_POST['massemail']) AND isset($_SESSION['accepted'])) { if (!is_int($userID)) return; - include_once "includes/db.inc.php"; + include_once "includes/sqlEmbedded.php"; $sql = "SELECT `email` FROM `users` WHERE `ID` = '$userID'"; $result = mysql_query($sql); diff --git a/pages/memberlist.php b/pages/memberlist.php index 22d88b4..3baf456 100644 --- a/pages/memberlist.php +++ b/pages/memberlist.php @@ -13,7 +13,7 @@ htmlHeader( topbar($Links); -include_once ('./includes/db.inc.php'); +include_once ('./includes/sqlEmbedded.php'); include_once ('./includes/datas.php'); diff --git a/pages/tutorial.php b/pages/tutorial.php index 4d2446f..5208a57 100644 --- a/pages/tutorial.php +++ b/pages/tutorial.php @@ -13,7 +13,7 @@ topbar($Links); //TODO: Turn this into a function? if ($accepted) { - include_once ('./includes/db.inc.php'); + include_once ('./includes/sqlEmbedded.php'); $userID = $_SESSION['userID']; $sql = " -- cgit v1.2.3