|
ZenCart_Documentation
1.5.0
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | Admin |
Functions | |
| check_page ($page, $params) | |
| zen_is_superuser () | |
| zen_get_users ($limit= '') | |
| zen_delete_user ($id) | |
| zen_check_for_invalid_admin_chars ($val) | |
| zen_insert_user ($name, $email, $password, $confirm, $profile) | |
| zen_update_user ($name, $email, $id, $profile) | |
| zen_read_user ($name) | |
| zen_get_admin_name ($id= '') | |
| zen_validate_user_login ($admin_name, $admin_pass) | |
| zen_check_for_password_problems ($password, $adminID=0) | |
| zen_check_for_expired_pwd ($adminID) | |
| zen_reset_password ($id, $password, $compare) | |
| zen_validate_pwd_reset_request ($admin_name, $adm_old_pwd, $adm_new_pwd, $adm_conf_pwd) | |
| zen_get_profiles ($withUsers=FALSE) | |
| zen_get_profile_name ($profile) | |
| zen_update_profile_name ($profile, $profile_name) | |
| zen_get_admin_pages ($menu_only) | |
| zen_get_permitted_pages_for_profile ($profile) | |
| zen_delete_profile ($profile) | |
| zen_create_profile ($profileData) | |
| zen_remove_profile_permits ($profile) | |
| zen_insert_pages_into_profile ($id, $pages) | |
| zen_get_admin_menu_for_user () | |
| zen_get_menu_titles () | |
| zen_page_key_exists ($page_key) | |
| zen_register_admin_page ($page_key, $language_key, $main_page, $page_params, $menu_key, $display_on_menu, $sort_order) | |
| zen_deregister_admin_pages ($pages) | |
| check_page | ( | $ | page, |
| $ | params | ||
| ) |
This function checks whether the currently logged on user has permission to access the page passed as parameter $page, with GET $params . The function returns boolean true if the user is allowed access to the page, and boolean false otherwise.
Definition at line 15 of file admin_access.php.
| zen_check_for_expired_pwd | ( | $ | adminID | ) |
Check whether the specified admin user's password expired more than 90 days ago THIS IS A PA-DSS REQUIREMENT AND MUST NOT BE CHANGED
| string | $adminID |
Definition at line 426 of file admin_access.php.
| zen_check_for_invalid_admin_chars | ( | $ | val | ) |
Definition at line 100 of file admin_access.php.
| zen_check_for_password_problems | ( | $ | password, |
| $ | adminID = 0 |
||
| ) |
Check whether the specified password validates according to PA-DSS requirements: Must be minimum 7 characters Must use both letters and numbers Must not use any of the last 4 passwords THESE ARE PA-DSS REQUIREMENTS AND ARE NOT TO BE RELAXED
| string | $password | |
| int | $adminID |
Definition at line 391 of file admin_access.php.
| zen_create_profile | ( | $ | profileData | ) |
Definition at line 688 of file admin_access.php.
| zen_delete_profile | ( | $ | profile | ) |
Definition at line 666 of file admin_access.php.
| zen_delete_user | ( | $ | id | ) |
Definition at line 82 of file admin_access.php.
| zen_deregister_admin_pages | ( | $ | pages | ) |
Definition at line 823 of file admin_access.php.
Definition at line 747 of file admin_access.php.
| zen_get_admin_name | ( | $ | id = '' | ) |
Lookup admin user name based on admin id
| string | $name |
Definition at line 239 of file admin_access.php.
| zen_get_admin_pages | ( | $ | menu_only | ) |
First we'll get all the pages
Then we'll deal with the exceptions
Definition at line 592 of file admin_access.php.
Definition at line 779 of file admin_access.php.
| zen_get_permitted_pages_for_profile | ( | $ | profile | ) |
Definition at line 651 of file admin_access.php.
| zen_get_profile_name | ( | $ | profile | ) |
Definition at line 572 of file admin_access.php.
| zen_get_profiles | ( | $ | withUsers = FALSE | ) |
| zen_get_users | ( | $ | limit = '' | ) |
Definition at line 59 of file admin_access.php.
| zen_insert_pages_into_profile | ( | $ | id, |
| $ | pages | ||
| ) |
Definition at line 734 of file admin_access.php.
| zen_insert_user | ( | $ | name, |
| $ | email, | ||
| $ | password, | ||
| $ | confirm, | ||
| $ | profile | ||
| ) |
Definition at line 108 of file admin_access.php.
| zen_is_superuser | ( | ) |
Definition at line 48 of file admin_access.php.
| zen_page_key_exists | ( | $ | page_key | ) |
Definition at line 793 of file admin_access.php.
| zen_read_user | ( | $ | name | ) |
Lookup admin user login details based on admin username
| string | $name |
Definition at line 226 of file admin_access.php.
| zen_register_admin_page | ( | $ | page_key, |
| $ | language_key, | ||
| $ | main_page, | ||
| $ | page_params, | ||
| $ | menu_key, | ||
| $ | display_on_menu, | ||
| $ | sort_order | ||
| ) |
Definition at line 802 of file admin_access.php.
| zen_remove_profile_permits | ( | $ | profile | ) |
Definition at line 726 of file admin_access.php.
| zen_reset_password | ( | $ | id, |
| $ | password, | ||
| $ | compare | ||
| ) |
Definition at line 437 of file admin_access.php.
| zen_update_profile_name | ( | $ | profile, |
| $ | profile_name | ||
| ) |
Definition at line 581 of file admin_access.php.
| zen_update_user | ( | $ | name, |
| $ | email, | ||
| $ | id, | ||
| $ | profile | ||
| ) |
Definition at line 165 of file admin_access.php.
| zen_validate_pwd_reset_request | ( | $ | admin_name, |
| $ | adm_old_pwd, | ||
| $ | adm_new_pwd, | ||
| $ | adm_conf_pwd | ||
| ) |
Validate whether the password-reset request is permissible
| string | $admin_name | |
| string | $adm_old_pwd | |
| string | $adm_new_pwd | |
| string | $adm_conf_pwd |
Definition at line 474 of file admin_access.php.
| zen_validate_user_login | ( | $ | admin_name, |
| $ | admin_pass | ||
| ) |
Verify login according to security requirements
| $admin_name | |
| $admin_pass |
Definition at line 253 of file admin_access.php.