PDO::CURSOR_FWDONLY); // max_width, default value. $GLOBALS['max_width'] = 1024; // DB_USER_BASE - the base name for all database users $GLOBALS['DB_USER_BASE'] = ''; // DB_USERNAME - username for this database $GLOBALS['DB_USERNAME'] = 'comicsWeb'; // DB_FULLUSER - Full database name (shouldn't change this unless your provider uses a different username scheme. if (empty($GLOBALS['DB_USER_BASE'])) { $GLOBALS['DB_FULLUSER'] = $GLOBALS['DB_USERNAME']; } else { $GLOBALS['DB_FULLUSER'] = $GLOBALS['DB_USER_BASE'] . "_" . $GLOBALS['DB_USERNAME']; } // DB_PASSWORD - Password for the database. $GLOBALS['DB_PASSWORD'] = '2k7AE]BMfWogoGrP'; // DB_SEL_NAME - Name of the database $GLOBALS['DB_SEL_NAME'] = 'tsbac_comics'; // DB_NAME - Data Base Name, you should not change this unless you have a different naming convention. if (empty($GLOBALS['DB_USER_BASE'])) { $GLOBALS['DB_NAME'] = $GLOBALS['DB_SEL_NAME']; } else { $GLOBALS['DB_NAME'] = $GLOBALS['DB_USER_BASE'] . "_" . $GLOBALS['DB_SEL_NAME']; } // BUG_MAIL_NAME - bug email name $GLOBALS['BUG_MAIL_NAME'] = 'BugTracker ThatShouldBeAComic'; // MIN_USER_LEVEL_LISTED - Minimum user level for users to be listed in inbox $GLOBALS['MIN_USER_LEVEL_LISTED']=2; // USER_LEVEL_VERIFY - User Level after verifying email address. $GLOBALS['USER_LEVEL_VERIFY'] = 50; // BUG_EMAIL - where bug emails should be sent from $GLOBALS['BUG_EMAIL'] = 'thatshouldbeacomic@dreamersnet.net'; // CSS page $GLOBALS['CSS'] = 'thatshouldbeacomic.css'; // AUTO_ADMIN_NAME - The Name that should show when automatic emails are generated $GLOBALS['AUTO_ADMIN_NAME'] = 'AutoAdmin ThatShouldBeAComic'; // AUTO_ADMIN_EMAIL - The automatically generated emails from admin $GLOBALS['AUTO_ADMIN_EMAIL'] = 'no-reply@dreamersnet.net'; // BASE_FILE_UPLOAD_PATH - local file path for uploads $GLOBALS['BASE_FILE_UPLOAD_PATH'] = '/home/thatshouldbeacomic/public_html/'; // BASE_USER_PATH - base path for user folder, should end with / $GLOBALS['BASE_USER_PATH'] = 'users/'; //FQP - Fully Qualified Path //Warning: This should not end with a / and it should start with http:// $GLOBALS['FQP'] = 'https://tsbac.dreamersnet.net'; function errormail($email, $message, $errorInfo, $diemsg) { //send email with confirmation link $headers = "From: ". $GLOBALS['BUG_MAIL_NAME']. " <" . $GLOBALS['BUG_EMAIL'] .">"; $subject = "Error for $email"; $message .= "Additional information: $errorInfo \n " ." no session variables here. \n "; mail($GLOBALS['ACTUAL_ADMIN'],$subject,$message,$headers); echo ''; die("$diemsg"); } function connect_tsbac() { $hostname = "localhost"; $username = $GLOBALS['DB_FULLUSER']; $password = $GLOBALS['DB_PASSWORD']; $db = $GLOBALS['DB_NAME']; try { $dbh = new PDO("mysql:host=$hostname;dbname=$db", $username, $password); return $dbh; } catch(PDOException $e) { errormail($GLOBALS['ACTUAL_ADMIN'], $e->getMessage(), "No info", $e->getMessage()); } }