|
|
|
Modify this to suit your needs.
Installation
Unzip the file to your root directory. If you want to place the script to other directory
make sure to edit the include() function of every script pointing to full valid directory of the included file.
In your MySQL database you have something like this.
| mysql> select * from acct\g
+--------------+------------+-----------------------+-----------+
| uname | pname | name | userlevel |
+--------------+------------+-----------------------+-----------+
| test | test | test | 1 |
| Administrator| admin | Administrator | 2 |
| guest | guest | Guest | 3 |
+--------------+------------+-----------------------+-----------+ | |
usage: test.php
you must include this two lines prior to your protected web content;
| <?
$userlevel[]=1;
//you may use $userlevel=array(1,2,3,4);
include('security.php');
// you may put the full path of security.php
//example include('c:/inetpub/wwwroot/security/security.php);
?> | | |
|
| A Simple Script that stores encrypted messages in databases Categories : PHP, Databases, MySQL, Security | | | This program allows you to upload an ODBC ressource - i.e. an MS-Access database to a MySQL server. Categories : Databases, MySQL, Complete Programs, PHP, Databases | | | bookmarker - PHP, PHPLIB, MySQL WWW based bookmark manager Categories : MySQL, PHP, MySQL, Complete Programs, Databases | | | Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0 Categories : PHP, Sessions, Databases, MySQL | | | Accepts a database & hostname from a user and then HTTP username and password. Uses this to connect to a MySQL database. Produces a form based on the tables it finds there to allow the user to do SELECTs, INSERTs, and DELETEs. Categories : Databases, PHP, MySQL, Complete Programs | | | phpAds, a complete banner and ad management system with detailled tracking and stats. Categories : MySQL, Complete Programs, Ecommerce, PHP, Databases | | | Point and Click Interface ala MS Access for creating SQL statements. Categories : MySQL, Complete Programs, General SQL, PHP, Databases | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | email new items in db Categories : PHP, Email, Databases, MySQL, Beginner Guides | | | Alternating background color for HTML table rows Categories : PHP, Databases, MySQL, HTML and PHP | | | color codes for positive and negative numbers Categories : PHP, MySQL, Databases, HTML | | | Authorize Me! An authentication script. Categories : MySQL, Databases, Authentication, PHP | | | A very simple way to build and do a hierarchical html categories browser without javascript , just using html php and mySql
Categories : HTML and PHP, Databases, Algorithms, PHP, MySQL | | | Linked comboboxes with php-mysql & javascript Categories : PHP, Java Script, Databases, MySQL | | | mysql_escape_string Categories : PHP, MySQL, Databases, Strings | |
|
|
|