Does most of the include/require tasks. Links the usermanagement with the sponsormanagement. More...
Go to the source code of this file.
Variables | |
$scriptDurationStartValue = microtime(TRUE) | |
holds the time the script execution started More... | |
$absPath = str_replace('\\','/',realpath(dirname(__FILE__))).'/' | |
used to get absolute path to script root More... | |
const | ABS_PATH $absPath |
holds the absolute path to script root More... | |
$errors = array() | |
holds the error messages that occurred More... | |
$successes = array() | |
holds the success messages that occurred More... | |
$smarty = new Smarty | |
holds the template engine object More... | |
$mysqli = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PWD, MYSQL_DB) | |
This mysqli object is used all over the whole website to access the database. More... | |
Does most of the include/require tasks. Links the usermanagement with the sponsormanagement.
At first the common.php takes care of basic initialisation tasks. It determines the absolute path of the whole package and provides it as a constant and creates some basic structures later used for storing error and success-messages. One of the most important task is to initialize the template enginge and the database connection used for all tasks that require the display of stored information to the user.
Therefore common.php-file has the task to link the usermanagement with the sponsormanagement. This is done by including all the files that provide the functionality of each of the componenents to the other components.
This file requires inc/functions.php, inc/functions_sponsoring.php, inc/functions_locks.php, inc/functions_delete.php, inc/functions_export.php, libs/usercake/config_usercake.php, libs/smarty/Smarty.class.php and inc/db.php to be present to work properly.
Definition in file common.php.
$absPath = str_replace('\\','/',realpath(dirname(__FILE__))).'/' |
used to get absolute path to script root
Definition at line 50 of file common.php.
$errors = array() |
holds the error messages that occurred
Definition at line 71 of file common.php.
Referenced by acceptPasswordRequest(), accessGranted(), deletePermission(), deleteUsersPermanently(), denyPasswordRequest(), displayTemplateWithErrorsAndSuccesses(), exitWithErrorTemplate(), and exitWithErrorTemplateAndRedirect().
$mysqli = new mysqli(MYSQL_HOST, MYSQL_USER, MYSQL_PWD, MYSQL_DB) |
This mysqli object is used all over the whole website to access the database.
Definition at line 81 of file common.php.
Referenced by accessGranted(), addCar(), addCategory(), addPermission(), addProductionFacility(), addSponsor(), addSponsorCar(), addSponsorCarAttachment(), addSponsorCarEvent(), addSponsorCarFinancialDonation(), addSponsorCarMaterialDonation(), addSponsorCarProducedPart(), addSponsorContactPerson(), addSponsorProductionFacility(), addStatus(), LoggedInUser\checkPermission(), contactPersonExists(), countUserReferences(), createPages(), createPermission(), deleteCar(), deleteCategory(), deletePages(), deletePermission(), deleteProductionFacility(), deleteSponsor(), deleteSponsorCar(), deleteSponsorCarAttachment(), deleteSponsorCarEvent(), deleteSponsorCarFinancialDonation(), deleteSponsorCarMaterialDonation(), deleteSponsorCarPermanently(), deleteSponsorCarProducedPart(), deleteSponsorContactPerson(), deleteSponsorPermanently(), deleteSponsorProductionFacility(), deleteStatus(), deleteUsers(), deleteUsersPermanently(), emailExists(), emailUsernameLinked(), fetchAllCars(), fetchAllCategories(), fetchAllDeletedSponsorCarsForSponsor(), fetchAllDeletedSponsors(), fetchAllMatches(), fetchAllPages(), fetchAllPermissions(), fetchAllProductionFacilities(), fetchAllSponsors(), fetchAllSponsorsWithDeletedCars(), fetchAllStatus(), fetchAllUsers(), fetchCarDetails(), fetchCategoryDetails(), fetchContactPersonDetailsForVCard(), fetchContactPersonsWithMailAdresses(), fetchDeletedSponsorCars(), fetchMailAdresses(), fetchMailAdressesNewsletter(), fetchPageDetails(), fetchPageIdForName(), fetchPermissionDetails(), fetchPermissionUsers(), fetchPossibleNewSponsorCars(), fetchProductionFacilityDetails(), fetchSponsorAddresses(), fetchSponsorCarAttachments(), fetchSponsorCarDetails(), fetchSponsorCarEvents(), fetchSponsorCarFinancialDonations(), fetchSponsorCarMaterialDonation(), fetchSponsorCarNames(), fetchSponsorCarProducedParts(), fetchSponsorContactPersons(), fetchSponsorDetails(), fetchSponsorEditDataForEditSections(), fetchSponsorLatestEditData(), fetchSponsorMailNewsletter(), fetchSponsorProductionFacilities(), fetchStatusDetails(), fetchUserDetails(), fetchUsername(), fetchUserPermissions(), flagPassword(), generateWhereClause(), getLastActivity(), getStoredSession(), getTableRowLock(), hasOnetimePassword(), hasOnetimePasswordExpired(), hasValidMail(), isAdministrator(), isSponsorDeleted(), isUserAdministrator(), isUserLoggedIn(), lockTableRow(), mobileExists(), pageIdExists(), permissionIdExists(), permissionNameExists(), removePermission(), resetStoredSession(), resetValidMail(), searchDatabase(), sessionIdExists(), setMailValid(), LoggedInUser\setStoredSession(), setUserActive(), setUserIDIncrement(), setUserLocked(), setValidMail(), LoggedInUser\signupTimeStamp(), unlockTableRow(), updateCar(), updateCategory(), LoggedInUser\updateEmail(), updateEmail(), updateFirstname(), updateLastActivationRequest(), LoggedInUser\updateLastActivity(), updateLastname(), updateMailConfirmationToken(), updateMobile(), updatePageState(), LoggedInUser\updatePassword(), updatePasswordFromToken(), updatePermissionName(), updateProductionFacility(), updateSponsorCarAttachments(), updateSponsorCarDetails(), updateSponsorCarEvents(), updateSponsorCarFinancialDonations(), updateSponsorCarMaterialDonations(), updateSponsorCarProducedParts(), updateSponsorContactPersons(), updateSponsorDetails(), updateSponsorProductionFacilities(), updateStatus(), updateTitle(), updateUsername(), User\userCakeAddUser(), userIdExists(), usernameExists(), and validateActivationToken().
$scriptDurationStartValue = microtime(TRUE) |
holds the time the script execution started
Definition at line 40 of file common.php.
Referenced by displayTemplateWithErrorsAndSuccesses().
$smarty = new Smarty |
holds the template engine object
Definition at line 78 of file common.php.
Referenced by displayTemplateWithErrorsAndSuccesses(), exitWithErrorTemplate(), exitWithErrorTemplateAndRedirect(), and exitWithSuccessTemplateAndRedirect().
$successes = array() |
holds the success messages that occurred
Definition at line 74 of file common.php.
Referenced by acceptPasswordRequest(), denyPasswordRequest(), displayTemplateWithErrorsAndSuccesses(), exitWithSuccessTemplateAndRedirect(), and User\userCakeAddUser().
const ABS_PATH $absPath |
holds the absolute path to script root
Definition at line 54 of file common.php.
Referenced by deleteSponsorCarPermanently(), deleteSponsorPermanently(), getLanguageFiles(), getTemplateFiles(), and UserCakeMail\newTemplateMsg().