Difference between revisions of "Table admin"

From Zen Cart(tm) Wiki
Jump to: navigation, search
m
m
Line 26: Line 26:
 
| Default: || ''N/A''
 
| Default: || ''N/A''
 
|-  
 
|-  
| Extra: || auto_increment (Primary)
+
| Extra: || auto_increment
 
|}
 
|}
 
</BLOCKQUOTE>
 
</BLOCKQUOTE>

Revision as of 05:46, 15 December 2005

Description

Stores all access data to the admin panel. The password is stored encrypted.


Table Details

Primary Key

admin_id

Indexed Fields

admin_name


Columns

admin_id Primary Key

A unique, auto incremented value, to identify each admin entry.
Type: int(11)
Null: No
Default: N/A
Extra: auto_increment


admin_name Index

The first and last name of the administrator account.
Type: varchar(32)
Null: No
Default: N/A


admin_email

The email address of the administration account. Checked for validation before inserting it via the admin panel. Used to reset admin password when password is forgotten by admin.
Type: varchar(96)
Null: No
Default: N/A


admin_pass

Admin password encrypted with the password function zen_encrypt_password(). The validation with an encrypted and a plain text password are made with the function zen_validate_password().
Type: varchar(40)
Null: No
Default: N/A


admin_level

Admin level of the administration account. This is used to restrict access as admin when the admin demo is setup. Can be set to 1 (full rights) or 2-9 (restricted rights).

Help.gifSomeone needs to explain this one better. What is the difference between 2 - 9? What about 0 (the admin panel talks about a level 0)?

Type: tinyint(1)
Null: No
Default: 1