Clan Adverts

PHP Web Host - Quality Web Hosting For All PHP Applications

 

configure the file config dot php

Description: This is just a short tutorial to explain some config.php settings.
Version: 1.0
Added on: 29 April 2007
Author: floppy
Difficulty Level: Very Easy
Views: 4329
Rating: 9.0 (1 Vote)
Detailed ProfileView Comments (1)

Code:
$sitekey = "TRsDEFmcZD6Cx7Y0mMtwdNmczZPeqhAR8eIm1Ia4";
$gfx_chk = 7;
$admin_file = "admin";
$display_errors = false;


sitekey : it is a long varchar wich will be used to encode the gfx code, put your own value

gfx_chk : it is a numerical value between 0 and 7 to set the level of display for gfx security code generated on images for forms, 7 is adviced.
here are your choice in detail :
0 : No check
1 : Administrators login only
2 : Users login only
3 : New users registration only
4 : Both, users login and new users registration only
5 : Administrators and users login only
6 : Administrators and new users registration only
7 : Everywhere on all login options (Admins and Users)

admin_file : this value allow you to decide the name of your admin file, to make the admin acces more difficult to find, it is adviced to do but you must also after that rename the real file config.php with the value you have seted.

display_errors : this value allow you to activate the error reporting for debug purpose, it is adviced to let it to false.