Escolar Documentos
Profissional Documentos
Cultura Documentos
24/01/2015
Table Of Contents
Title
Version
As you might note, the abovementioned columns have on purpose been w idely named according to the various dropdow n
menus available from w ithin ADDTs Login Settings (see "Control Panel") -- this should enable you to instantly assign the
corresponding table columns w ithout having to w onder w hat belongs w here ;-)
1.2. some notes on the provided SQL script:
i. this SQL dump w ill exclusively w ork for a MySQL database, means you w ill have to setup the table columns manually
w hen using a different DBMS -- doing this shouldnt be too hard nonetheless, as e.g. Microsoft Access users
should be able to understand the meaning of terms like "varchar", "int" just fine.
ii. the given column names are safe and w ill w ork, its been successfully tested a 1000 times. If you really need to
rename the columns to something else, just go ahead -- but you need to be aw are of one particular pitfall :: a
column named user w ill definitely be messing up ADDTs configuration file, because this very term happens to be (a
yet undocumented "feature") one of Dreamw eavers "reserved w ords" thats internally used for other stuff and w ill
lead to a naming conflict.
iii. it doesnt use any fancy stuff like "collations" or (in this context certainly needless) character set definitions, means it
w ill install just fine on older versions like 3.23.xx. If youre not using the "MyISAM" type at all, please change this
after installing the tables.
iv. the "login_stats" table is only required respectively supported w hen using ADDTs PHP_MYSQL server model. The
same goes for the last four columns (login_attempts, disable_date, registration_date, expiration) of the main "login"
table, w hich are mapped to the "Restrictions" tab and are currently only available on PHP_MYSQL as w ell
v. in case youre planning to use the "Encrypt Passw ord" option (see the "Options" tab), your login tables "passw ord"
should definitely provide a "varchars" value of 32 chars. As ADDT is using the
MD5 encryption of passw ords,
defining a low er varchars value w ill be truncating the encrypted passw ord.
vi. ColdFusion users: w hen loading the login table, Dreamw eavers (including the CS3 version) w ill confront you w ith a
funny bug w hich makes it return the w arning message - "sql type not recognized: int unsigned" -- w hat does it mean
?
According to my fellow Community Expert Ken Fords reply on this forum: "That is usually caused by your MySQL
table having a field w ith a int type and an unsigned attribute. DW just does not recognize the unsigned attribute. If
you w ant it to stop, just removed the unsigned attribute from the field in the database" -- w hich in our case in the
"id" column. Thanks Ken :-)
1.3. Installing the tables with phpMyAdmin
http://guenter-schenk.com/tutorials/tutorial.php?id=1#toc2
1/3
Adobe Dreamweaver & Dreamweaver Developer Toolbox : Tutorial: Login tables: installation & configuration
24/01/2015
Any halfw ays feasible database administration tool installed on your local or remote server should provide an "insert SQL
data" feature -- the follow ing example is based on the popular phpMyAdmin thats usually available on ordinary
PHP/Apache hosts
a) open phpMyAdmin and click the SQL icon usually located on top of the left frame:
b) the subsequently opened brow ser w indow w ill display a blank textarea aw aiting some input. Just paste the provided
SQL dump in here...
... and confirm w ith OK to get the tables installed. Thats all there is to do, phpMyAdmins list of installed tables w ill now
refresh and display the new ly installed login tables.
d) PHP_MYSQL server model only: click the "Restrictions" tab and specify the "login policy" and "account expiration
settings" as displayed next:
http://guenter-schenk.com/tutorials/tutorial.php?id=1#toc2
2/3
Adobe Dreamweaver & Dreamweaver Developer Toolbox : Tutorial: Login tables: installation & configuration
24/01/2015
e) PHP_MYSQL server model only: click the "History" tab and specify the "user history options" as displayed next:
Copyright Note:
This tutorial and all related material (files, images etc) are licensed under a
C reative C ommons Attribution-Noncommercial-Share Alike 3.0 Unported License
Contact:
info @ guenter-schenk.com
http://guenter-schenk.com/tutorials/tutorial.php?id=1#toc2
3/3