Database Table: adminsettings
Core PHP Methods
canAddAffiliatePrograms($aID) v4.2Returns true/false if members are allowed to add their own affiliate program. Checks the settings both under advanced features and under the membership that the member belongs to. If allowed to add affiliate programs it checks to see if the member has already reached the limit of the amount of programs they can add and if they have reached the limit returns false.
checkCAPTCHA($verificationCode, $verificationTime, $verifyLocation, $isBlog = 0) v4.23$verifyLocation = 1 = Create || $verifyLocation = 2 = Login || $verifyLocation = 3 = Contact Us || $verifyLocation = 4 = Capture Page +3
checkVerification($verificationCode, $fcImage) v4.03Returns true/false based off if the verification code matches the verification image. |
$verificationCode = The verification code (string) to check. |
$fcImage = The id of the image to compare the verification code against.
getAdminEmail() v4.03Returns the email address of the admin.
getCanEditAR() v4.03Returns true/false indicating if the members are allowed to edit the autoresponder messages based off the settings in advanced features.
getCAPTCHA($captchaHTML, $captchaLocation) v4.3//$captchaLocation = 1 = Create || $captchaLocation = 2 = Login || $captchaLocation = 3 = Contact Us || $verifyLocation = 4 = Capture Page +3
getCommissionType() v4.03Returns 0 if the commission tracking plugin (referral programs) is turned off. If turned on returns the id of the commission type that is being used as defined under 'Type of Tracking' in advanced features.
getDate($timeStamp, $displayType = 1, $showTime = -1, $showYear = -1, $abbrMonth = 1, $abbrDay = 0, $abbrOther = 0, $relType = 1) v4.92
static getDownlineCount($tAID, $afterAdded = 0) v4.3Returns the amount of members (integer) that are in the downline for the member. Downline includes anyone below the member in their genealogy report, no matter how many tiers below them. |
$tAID = The id of the member to perform the check against. |
$afterAdded = A timestamp of a date to only include members that were added after this date.
getEditTemplate() v4.03Returns true/false based off if members are allowed to edit capture pages (in general) as defined under advanced features in a pro system. For a team system returns 1 if the editable pages plugin is purchased.
getEmailType() v4.03Returns 1/2 based off the email type that is defined under advanced features. 1 = Text emails are used. 2 = HTML emails are used.
getHomePageAction() v4.03Returns the integer value for the home page action that is defined under advanced features.
getHomePageURL() v4.03Returns the URL for the home page (string) as defined under advanced features. This is the URL of the page that is shown when someone visits http://domainname.com without specifying a full path to a file. This is only used when the home page action is set to Other.
getLicense1() v4.03Returns the value of License 1 for the system.
getLicense2() v4.03Returns the value of License 2 for the system.
getLicense3() v4.03Returns the value of License 3 for the system.
getLicense4() v4.03Returns the value of License 4 for the system.
getLicense5() v4.03Returns the value of License 5 for the system.
getLoginURL() v4.03Returns the URL (string) of the page that a person is redirected to when they login as defined under advanced features. If blank then the redirect defaults to /admin/account.php
getNextBillDate($dateType, $prevDate = 0, $dateAmount = 1) v4.3Returns a timestamp of the next billing date based off the $dateType passed. If $dateType == 2 returns the timestamp for 1 month from today's date. If $dateType == 3 returns the timestamp for 1 year from today's date. Otherwise it returns the timestamp for 50 years from today's date.
getReferrerID() v4.94Returns the id (integer) of the member that referred the current visitor. Checks $_GET and $_COOKIE settings to try to determine the id of the referrer. If no referrer is found it returns 1 (the id of the admin).
getReferrerUsername() v4.94Returns the username (string) of the member that referred the current visitor. Checks $_GET and $_COOKIE settings to try to determine the username of the referrer. If no referrer is found it returns a blank result.
getSiteTitle() v4.03Returns the title of the site (string) as defined under advanced features.
getSiteType() v4.03Returns 1/2/3 based off the type of system that is being used. 1 = Team system. 2 = Pro system. 3 = Light system.
getSiteURL() v4.03Returns the domain name (string) of the system (exa: domainname.com). If the system is installed within a folder, then the folder is included in the value returned (exa: domainname.com/folder).
getStateTitle($stateAbbr, $countryAbbr = "US") v4.92
getTiers() v4.03Returns the amount of tiers (integer) that is used for direct payment as defined under advanced features. NOTE: This setting is ONLY used if commission tracking plugin is installed and it is set to use direct payments.
getTrackCharLimit() v4.3Returns the maximum amount of characters that can be used (integer) in the title of a tracking campaign as defined under advanced features.
getValue($asID) v4.03Returns the value from the adminsettings database table row that has an id matching the integer passed as $asID
getVersion() v4.03Returns the current version of the system. This value IS NOT always accurate and in many older versions cannot be trusted.
isDirectPay() v4.03Returns true/false depending on if Direct Payment is turned on/off under the commission tracking plugin settings in advanced features.
isMobile() v4.3Returns true/false. Returns true if both the visitor is visiting the page from a mobile device AND the mobile is site turned on under advanced features. Otherwise returns false. When turned on, it uses a mobile version of the adminpages html template file if one exists for the page being visited (Exa: If visiting update.php then if update-mobile.html exists it uses that, otherwise it uses update.html).
isOneUp() v4.03Returns true/false if any passup structure (1-UP, 2-UP, etc) is being used as indicated in the commission tracking plugin settings under advanced features.
isSMSOn() v4.03Returns true/false based off if SMS notifications are turned on/off under advanced features. NOTE: SMS notifications is something separate from the SMS plugin. SMS notifications uses google voice and only sends out notifications to members (it does not send notifications to contacts. The SMS plugin sends SMS to contacts).
isValidEmail($email) v4.03Returns true/false based off if the email passed appears to be a valid email.
static removeXSS($rContent) v4.92
__construct() v4.2constructor fot new object
Columns in the adminsettings Database Table:
id title value adminpage