-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
alexweissman
authored and
alexweissman
committed
May 27, 2014
1 parent
bde26a7
commit 47d52c4
Showing
16 changed files
with
245 additions
and
225 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
/* | ||
UserFrosting Version: 0.2 | ||
By Alex Weissman | ||
Copyright (c) 2014 | ||
Based on the UserCake user management system, v2.0.2. | ||
Copyright (c) 2009-2012 | ||
UserFrosting, like UserCake, is 100% free and open-source. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the 'Software'), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
*/ | ||
|
||
// Used to force backend scripts to log errors rather than print them as output | ||
function logAllErrors($errno, $errstr, $errfile, $errline, array $errcontext) { | ||
ini_set("log_errors", 1); | ||
ini_set("display_errors", 0); | ||
|
||
error_log("Error ($errno): $errstr in $errfile on line $errline"); | ||
throw new ErrorException($errstr, 0, $errno, $errfile, $errline); | ||
} | ||
|
||
require_once("../models/db-settings.php"); | ||
require_once("../models/db_functions.php"); | ||
require_once("../models/funcs.php"); | ||
require_once("../models/languages/en.php"); | ||
require_once("../models/class.mail.php"); | ||
require_once("../models/class.user.php"); | ||
require_once("../models/class.newuser.php"); | ||
|
||
|
||
defined("MENU_TEMPLATES") | ||
or define("MENU_TEMPLATES", dirname(__FILE__) . "/menu-templates/"); | ||
|
||
// This is the user id of the master (root) account. | ||
// The root user cannot be deleted, and automatically has permissions to everything regardless of group membership. | ||
$master_account = 1; | ||
|
||
session_start(); | ||
|
||
?> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.