Beruflich Dokumente
Kultur Dokumente
Login System.
These tools are intended to replace OR to implement the standard WB6 Login
Tools. The tools (extensions) available as of June 20, 2010, are the following:
This version of the extension will work either with a flat file database, or with a
MySQL Database. It was created with the main scope to provide a means of
changing the Administrator Password through the script itself, so as to render it
independent from WB6. Main use of it is for web designers that need to deliver a
Login script with the ability to change the Administrator Password without need to
use WB6. However, it only uses the standard fields of the WB6 login script. If your
hosting account doesn’t offer MySQL Database support, or if the standard fields of
the WB are enough for you, you can use this version.
Main Features:
This version of the extension will only work with a MySQL Database. The reason
for this is that it would be extremely difficult to implement the additional features
added in this version, with a flat file database engine.
This tool is NOT independent. In fact it should be used TOGETHER with WB6’s
Login tool, or with a standard WB form that allows the user to login. It adds Expiry
Date check and User Specific Redirect. It ONLY works with the DBTS MySQL
Admin Extension. Please see details in the related paragraph.
This tool also ONLY works with the DBTS MySQL Admin Extension. It adds
Usergroup control thus allowing different access levels. It replaces the standard
WB6 Protect Page tool. Please see details in the related paragraph.
Please read carefully instructions. Since this is a fresh release, I suggest that you
first install and run in testing environment, until everything proves to work
efficiently. If your hosting account provides you with MySQL database, I
recommend that you select a MySQL database as storage media.
Thank you
DBTechnosystems.com
Requirements
The DBTS Admin Object Extension requires PHP 4.3 or higher and MySQL 5.0.1 or
higher support.
In case you use the flat file database, Safe Mode must be OFF and the folder in
which they are used should have read and write permissions if you want to use a
flat file database
If you intend to use a MySQL Database, you must create it (as well as a database
user / password) before you can run the script in your browser.
Installation
The DBTS Login Tools Extensions for WB6 are installed just as any other WB
extension: you simply copy the relevant extension files in your WYSIWYG WB6
installation folder on your computer. The zip also contains the Unicode version of
the extensions.
The DBTS Admin extension will add an icon in your extensions Toolbar.
It will be easier if you drag the extension icon close to the standard Admin object
so you have it in the same toolbar as the rest of the Login tools. To use the
extension simply click and place the object in your page. Position the object as
required and give it the desired dimensions. Since the extension was built
complete with Render HTML, it will display directly in the page with your own
settings (colors, fonts, etc)
To setup the processor properties double click the DBTS Admin Object so the
properties dialog box will appear:
The first settings are those relevant to the storage media (flat file database or
MySQL database ) as well as the I-frame name.
The MySQL details (Host, database name, user, password, table name) are only
necessary if you select MySQL as storage media.
Please note that error messages and confirmation messages are not yet
customizable.
The script doesn’t require you to create the database file or the database table
manually. It will automatically attempt to create them the very first time it is run
in your browser, using the database filename or table name that you have
specified.
(in the case of the MySQL only version, the Administrator details table will be
named “admin_details”)
The first version will automatically create the password “admin” and a virtual
emails address email@yourdomain.com.
After you login with the default password “admin” the first time, you can change
both the password and the email address to whatever you want. The email
address is used for the “forgot password” feature that will email you your details.
The MySQL only version instead, allows you to set the initial admin password and
email address through WB6. Of course you can still change it through the script
itself.
It is logical, based on the above, that the easiest way to create a login
system is to start directly from the Admin object, as it will create all
necessary files / tables for you. Run it on your browser, so it does so. Then
you will only need to create the pages with the other objects (Signup, Login etc)
without any need to worry about database creation.
This version is similar to the previous one, however it only works with a MySQL
Database. The main difference is that it allows you to add as many fields you want
in your Database table, and manage them through the script itself.
As you can see, there are 4 columns that you need to fill in:
1. FIELDNAME This is the form field name. The database column will have a
similar (but all lowercase characters) name. The script also removes any
whitespaces from the column names, replacing them with underscores.
2. DATATYPE: this is the MySQL Datatype for each form field. Supported types
are VARCHAR, TEXT, INT and DATE. Here is a brief description, but if you
wish to read some more info, please visit
http://dev.mysql.com
http://dev.mysql.com/doc/refman/5.0/en/data-types.html
VARCHAR is the most common type. It is used for strings, which means
that it can also store numbers, symbols etc. Until MySQL 5.02 this type of
data could hold up to 255 chrs, since MySQL 5.03 it can hold up to 65535
chrs .
If your server MySQL version is 5.02 or lower, and you need to store more
than 255 chrs, you will need to use TEXT, if, instead, you are running
MySQL 5.03 or later, VARCHAR will also do the job.
3. LENGTHS: this is the max length of each record. Only useful for VARCHAR
type.
4. OPTIONVALUES: If your form controls need to be Radiobuttons,
Checkboxes, or Comboboxes, here
here you can provide the values that will be
used for each. Separate each other using commas.
A small problem
For some reason, that I have not been able to find out, the extension seems to
create a blank strip at the right part. This, plus some more issues, have obliged
me to add, in the visual settings, a “width in pixels” property. Give it the actual
value that you want your Admin i-frame to have, and you will have no issues at
all.
As already mentioned, this tool is used TOGETHER with the standard WB6 Login
tool. In fact, it has no Visual output in the page, it only adds the necessary PHP
code.
Whan you drag the object in the page, it will add this image in
your WB workarea.
You can use either the standard WB6 Login tool, to create the Login form in your
page, OR you can simply create a normal form.
If you use the WB6 login tool, there is NO NEED to feed in the MySQL Database
details, neither the success (redirect) or error (access denied) page urls. This is
because you will type them in the DBTS Login extension, that will override the WB
one.
It is, however, recommended, that you use, instead, a normal WB6 form. You
have to add the following fields:
Important: if you use the DBTS Login tool TOGETHER with the standard WB Login
tool, please right click the DBTS Login Object and select Move to Back. This is
ABSOLUTELY necessary so that the code it adds in Start of Page becomes the very
first code of the page.
The difference is that it checks not only if the user is logged in, but also if he has
enough privileges to reach the specific page.
This is done by assigning each user a “usergroup”. The script will see if the user is
assigned a usergroup that is authorized to view the specific page, and will act
accordingly.
It is obvious, that you MUST create, in the Admin area, a field (column) in the
database that will contain the “usergroup” info.
As standard practice, I advise that you call this custom field “usergroup”
(Datatype: VARCHAR, Length: 255 should be enough in normal conditions,
FORMCONTROLTYPE: Checkboxes or Text Area Multiple Choices)
This way you can assign each user one or more usergroups. Let’s suppose that
you create the following usergroups: Guests, Members, Moderators,
Supermoderators, Administrators. Through the Protect Page tool you can define,
for each page, the groups that are allowed access.
As you see, this method allows to follow not only the classic hierarchical
permissions system, but also a per user permissions system. In example, if a
Supermoderator is NOT assigned also the “Moderators” usergroup, he will NOT be
able to view pages intended for the Moderators only, even though, logically, a
Supermoderator is hierarchically superior to a Moderator. This way the script
allows the maximum flexibility.
The scripts above use an “error” or “report” page to display appropriate messages.
This page ALSO needs to be PHP. To correctly display the error message, add this
text in your page:
'.$_GET['msg'].'
Right click it and add the following codes in the Before and After tags:
Before Tag:
<?php echo'
After Tag:
‘;
?>
License:
http://www.dbtechnosystems.com/wb6/forms/dbts_form_processor.php
This software is delivered AS IS. By installing and using it, you agree that Pablo
Software Solutions or DB Technosystems will not be held liable for ANY damage,
of ANY type, caused by the use of this software. Installing and using this software
implies that you fully and unconditionally accept these terms. USE AT YOUR OWN
RISK. Please fully test before using it.
On Request I can supply additional tools like Signup Tool, Edit Account Tool, List
Tool, PayPal Subscription tool (automatically updates expiry date), Email account
verification/activation tool, and more. Please note that these tools are License
based extensions that will ONLY work on a per domain / license basis. For any info
please contact me at http://www.dbtechnosystems.com/contact.php
Credits:
Credits go to Pablo Software Solutions for making (and further improving) their
Extension Builder! And for continuously improving their WYSIWYG WB6.
Have fun!