|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
MyDatabase | +--Security
A class to check who can do what.
Constructor Summary | |
Security()
Constructor of the class Security. |
Method Summary | |
integer |
BadAttempt()
Method to check the bad attempt number of tries from the Accounts class. |
void |
EchoError(var $message,
var $sql)
Method to print any error message generated by ADODB to the screen. |
integer |
GetAccountID()
Method to get the accountid. |
string |
GetErrorMessage()
Method to get the error message. |
integer |
GetHierarchy()
Method to get the hierarch level for the user. |
boolean |
GoToLoginPage()
Determines the login page's path and redirects it to there. |
boolean |
GotoNotAuthorized()
Determines the notAuthorized.php location and redirects it to there. |
boolean |
GotoThisPage(var $page,
var $url)
Redirects it to the page you want. |
boolean |
isAllowedTo(var $actionName)
synonyms of isPermittedTo. |
boolean |
isNotAllowedTo(var $actionName)
Method to return reverse value of isPermittedTo. |
boolean |
isPermittedTo(var $actionName)
Method to check if the person can do the action. |
unknown |
PromptLogin(var $FormElements)
Method to send a Login screen. |
unknown |
PromptMD5Password(var $FormElements)
Method to create MD5 password for initial admin use. |
void |
ResetAccountTries(var $accountid)
Method to reset the tries counter from the table after a successful login. |
bool |
SetErrorMessage(var $message)
Method to set the error message. |
void |
SuccessfulLogin()
Method to write to the log for successful Logins. |
unknown |
VerifyUser(var $username,
var $password)
Method to check the username and password. |
Methods inherited from class MyDatabase |
dbFailure, Field, InsertNew, Update |
Constructor Detail |
public Security()
Method Detail |
public boolean GoToLoginPage()
public boolean GotoNotAuthorized()
public boolean GotoThisPage(var $page, var $url)
$url
- Default Value: nullpublic boolean isNotAllowedTo(var $actionName)
public boolean isAllowedTo(var $actionName)
public boolean isPermittedTo(var $actionName)
public unknown VerifyUser(var $username, var $password)
public integer GetAccountID()
public integer GetHierarchy()
public integer BadAttempt()
public void SuccessfulLogin()
public void ResetAccountTries(var $accountid)
public bool SetErrorMessage(var $message)
public string GetErrorMessage()
public void EchoError(var $message, var $sql)
$sql
- Default Value: ""public unknown PromptLogin(var $FormElements)
public unknown PromptMD5Password(var $FormElements)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |