Supa User
  • Variables List
  • Requirements
  • Table Structure
  • Functions:
    • User Functions
      • countUser( $strWhere="" ) - Count how many users are in the table, user the $strWhere variable to refine the search.
      • createUser( $objInsert ) - This will create a user. [Read More]
      • fetchUser( $strWhere ) - Fetch a users information and return it as an array
      • fetchWhat( $strWhat, $strWhere ) - Fetch something about a user from the table
      • login( $strUsername, $strPassword ) - Log the user in.
    • Session Functions
      • fetchSession( $strSessionID ) - Return all session data for the id that matches the one in $strSessionID
      • fetchFromSession( $strWhat="*", $strSessionID ) - Run a select query for the session table with $strWhat being the select value.
    • Permission Functions
      • createPerm( $intUID ) - Creates default permissions for a user
      • createAdminPerm( $intUID ) - Creates admin permissions for a user
      • fetchPerm($intUID) - Fetch a users permission
      • insertNewPerm($strName, $strUnix, $strDef, $strAdmin, $strGuest) - Create a new permission
      • isPerm( $strUnix, $intUID=0 ) - Check if a user has a certain permission
      • loadUserPerm($intUID) - Load a users permission into the classSupaUser::permission buffer
      • setUserPerm($strUnix, $strValue, $intUID) - Set a permission for the user identified by $intUID
    • Profile Field Functions
      • createUserProfileFields( $intUID ) - This will set the user up for the profile field information
    • Other Functions
      • formatEncodePassword( $strPassword, $strKey="" ) - Encode a users password
      • formatGenerateKey( $intLen=8 ) - Generate a random string to act in the encryption password process
      • isLogin() - See if the user is currently logged in.
    • Cookie Functions
      • bakeCookie( $strName, $strValue, $intExpire, $strPath="/", $bolDie=true ) - This will create a cookie
      • burnCookie( $strName, $strPath="/" ) - Destroy a cookie
      • createUserCookie( $intUID, $strPassword, $strSessionID ) - Create a cookie for this user
      • eatCookie( $strName ) - Fetch cookie information
page_revision: 16, last_edited: 1256647731|%e %b %Y, %H:%M %Z (%O ago)
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License