Basic configuration for most of the usermanagement tasks can be done from here. More...
Go to the source code of this file.
Variables | |
$mail_templates_dir = "mail-templates/" | |
Directory for email-templates. More... | |
$websiteName = "Sponsorenverwaltung Team StarCraft e.V." | |
Name of the website. More... | |
$websiteUrl = 'localhost/' | |
URL of the website. More... | |
$emailAddress = "sponsoring@teamstarcraft.de" | |
$resend_activation_threshold = 5 | |
$emailDate = date('d.m.Y (H:i:s)') | |
Specification for email date and time. More... | |
$language = ABS_PATH."libs/usercake/languages/de.php" | |
Location of the language file. More... | |
const | MASTER_ACCOUNT -1 |
user id of the master account More... | |
const | DEFAULT_ADMIN_ACCOUNT 1 |
const | ADMIN_PERMISSION 1 |
id of the standard permission level of an administrator More... | |
const | STANDARD_PERMISSION 2 |
id of the standard permission level for newly created users More... | |
const | NEW_USER_TITLE 'Benutzer' |
Standard title of a new user. More... | |
const | ALLOW_PERMANENT_DELETION TRUE |
Allows or permits the permanent deletion of a user. More... | |
const | ALLOW_ANONYMOUS_ACCESS FALSE |
const | PAGE_LOCK 2 |
state of a locked page More... | |
const | PAGE_PRIVATE 1 |
state of a private page More... | |
const | PAGE_PUBLIC 0 |
state of a public More... | |
const | STANDARD_PAGE_ACCESS PAGE_LOCK |
const | PAGE_AFTER_LOGIN 'home.php' |
page that should be displayed after successful login More... | |
const | RESET_SESSION_ID '0' |
const | AUTO_TIMEOUT 600 |
const | WORKING_FACTOR 12 |
const | ALLOW_USERNAME_UPDATE TRUE |
Allow changing the username. More... | |
$default_hooks = array("#WEBSITENAME#","#WEBSITEURL#","#DATE#") | |
Default strings that can be used in email-templates. More... | |
$default_replace = array($websiteName,$websiteUrl,$emailDate) | |
Default replacements for hooks defined in $default_hooks. More... | |
Basic configuration for most of the usermanagement tasks can be done from here.
This file is based on config.php from Usercake (Version 2.0.2) with some major adjustements from Daniel Seichter and Alexander Vorndran.
This file recquires inc/libs/usercake/languages/de.php, inc/libs/usercake/functions_usercake.php, inc/libs/usercake/class.newuser.php, inc/libs/usercake/class.user.php, inc/libs/usercake/class.mail.php.
Definition in file config_usercake.php.
$default_hooks = array("#WEBSITENAME#","#WEBSITEURL#","#DATE#") |
Default strings that can be used in email-templates.
Definition at line 129 of file config_usercake.php.
Referenced by replaceDefaultHook().
$default_replace = array($websiteName,$websiteUrl,$emailDate) |
Default replacements for hooks defined in $default_hooks.
Definition at line 132 of file config_usercake.php.
Referenced by replaceDefaultHook().
$emailAddress = "sponsoring@teamstarcraft.de" |
Email-address that appears in the 'from' field in an email-client Doesn't realy need to be existent
Definition at line 47 of file config_usercake.php.
Referenced by UserCakeMail\sendMail().
$emailDate = date('d.m.Y (H:i:s)') |
Specification for email date and time.
Definition at line 51 of file config_usercake.php.
$language = ABS_PATH."libs/usercake/languages/de.php" |
Location of the language file.
Definition at line 54 of file config_usercake.php.
$mail_templates_dir = "mail-templates/" |
Directory for email-templates.
Definition at line 35 of file config_usercake.php.
Referenced by UserCakeMail\newTemplateMsg().
$resend_activation_threshold = 5 |
Definition at line 48 of file config_usercake.php.
$websiteName = "Sponsorenverwaltung Team StarCraft e.V." |
Name of the website.
Definition at line 38 of file config_usercake.php.
Referenced by UserCakeMail\sendMail().
$websiteUrl = 'localhost/' |
URL of the website.
Definition at line 41 of file config_usercake.php.
Referenced by User\userCakeAddUser().
const ADMIN_PERMISSION 1 |
id of the standard permission level of an administrator
Definition at line 68 of file config_usercake.php.
Referenced by isAdministrator(), isUserAdministrator(), removePermission(), and User\userCakeAddUser().
const ALLOW_ANONYMOUS_ACCESS FALSE |
allow access to pages that are not in the pages database if set to FALSE a page has to be marked as public if it should be available for everybody
Definition at line 84 of file config_usercake.php.
const ALLOW_PERMANENT_DELETION TRUE |
Allows or permits the permanent deletion of a user.
Definition at line 77 of file config_usercake.php.
const ALLOW_USERNAME_UPDATE TRUE |
Allow changing the username.
Definition at line 126 of file config_usercake.php.
const AUTO_TIMEOUT 600 |
defines the session auto-timeout in seconds (default 600s = 10 min) a value less than 1 means no session timeout
Definition at line 117 of file config_usercake.php.
Referenced by hasSessionTimedOut().
const DEFAULT_ADMIN_ACCOUNT 1 |
User with this is id becomes administrator on registration automatically and is set active immediately on registration
Definition at line 65 of file config_usercake.php.
Referenced by deleteUsers(), deleteUsersPermanently(), isAdministrator(), isRoot(), isUserRoot(), removePermission(), setUserLocked(), and User\userCakeAddUser().
const MASTER_ACCOUNT -1 |
user id of the master account
Definition at line 58 of file config_usercake.php.
Referenced by isAdministrator(), isRoot(), and isUserRoot().
const NEW_USER_TITLE 'Benutzer' |
Standard title of a new user.
Definition at line 74 of file config_usercake.php.
Referenced by User\userCakeAddUser().
const PAGE_AFTER_LOGIN 'home.php' |
page that should be displayed after successful login
Definition at line 104 of file config_usercake.php.
const PAGE_LOCK 2 |
state of a locked page
Definition at line 87 of file config_usercake.php.
Referenced by accessGranted().
const PAGE_PRIVATE 1 |
state of a private page
Definition at line 90 of file config_usercake.php.
Referenced by accessGranted().
const PAGE_PUBLIC 0 |
const RESET_SESSION_ID '0' |
that value is written to the database if no session is active or a session is declared invalid
Definition at line 111 of file config_usercake.php.
Referenced by hasSessionTimedOut(), and resetStoredSession().
const STANDARD_PAGE_ACCESS PAGE_LOCK |
status of a page when it's freshly added to the DB
Definition at line 101 of file config_usercake.php.
Referenced by createPages().
const STANDARD_PERMISSION 2 |
id of the standard permission level for newly created users
Definition at line 71 of file config_usercake.php.
Referenced by User\userCakeAddUser().
const WORKING_FACTOR 12 |
number of iterations for password-stretching during hashing process should be 10 or more but has to be less or equal 99
Definition at line 123 of file config_usercake.php.