summaryrefslogtreecommitdiffstats
path: root/pages/login.php
diff options
context:
space:
mode:
authorBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
committerBlueRaja <BlueRaja.admin@gmail.com>2013-05-28 02:07:59 -0500
commitc955c27cbebba3edaab9532834ac72041eccbf58 (patch)
treea6fc54a3b73e043bf61e73f446d358a866cc7b58 /pages/login.php
parent77b0bd5e51aeefb0d09e7a5bcab633657f299d22 (diff)
downloadpathery-c955c27cbebba3edaab9532834ac72041eccbf58.tar.xz
Edited a few more places where "include_once" was being used within a method. Hopefully this doesn't break anything :)
Diffstat (limited to 'pages/login.php')
-rw-r--r--pages/login.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/pages/login.php b/pages/login.php
index f73ca8c..b7c4317 100644
--- a/pages/login.php
+++ b/pages/login.php
@@ -10,6 +10,11 @@ if ($accepted) {
require 'includes/openid.php';
include_once 'globe.php';
+include_once('./includes/sqlEmbedded.php');
+include_once('./includes/datas.php');
+include_once('includes/chats.php');
+include_once('./includes/emails.php');
+
try {
$openid = new LightOpenID;
@@ -52,7 +57,6 @@ try {
$claimedid = $openid->__get('identity');
//I know just where to put this stuff!
- include_once('./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'";
@@ -125,7 +129,6 @@ try {
//Tutorial done?
if (isset($_SESSION['preCompletedTutorial'])) {
if ($_SESSION['preCompletedTutorial'] == true) {
- include_once('./includes/datas.php');
onCompletedTutorial($userID);
}
}
@@ -136,7 +139,6 @@ try {
throwLoginError($d, "Unknown DB Registration failure");
exit;
}
- include_once('includes/chats.php');
addchat(-1, "New user registered: \"$display\"");
sendNewUserEmail($userID, $email, $display, $dateJoined);
}
@@ -177,7 +179,6 @@ try {
function sendNewUserEmail($userID, $email, $display, $dateJoined) {
global $mydomain;
- include_once('./includes/emails.php');
$emailBody = "Thank you for signing in to Pathery!
Questions or feedback? Please reply to this email!