5tarl0rd
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
// use this pathes and/or define the pathes for the "standard" pages
define("CLASS_PATH", dirname($_SERVER['PHP_SELF'])."/");
// the location where the class is executed
$sec_path = ""; // a second location where the scripts should be
define("APPLICATION_PATH", $sec_path);
define("CLIENT_PATH", 'opt/lampp/htdocs/');
// modify these constants to fit your environment
if (!defined("DB_SERVER")) define("DB_SERVER", "localhost");
if (!defined("DB_NAME")) define("DB_NAME", "tiporg_professional");
if (!defined("DB_USER")) define ("DB_USER", "tiporg_prof");
if (!defined("DB_PASSWORD")) define ("DB_PASSWORD", "##DOg(203$)KWA@PvM");
$dblink = mysqli_connect(DB_SERVER, DB_USER, DB_PASSWORD);
mysqli_select_db($dblink,DB_NAME);
define("QS_VAR", "records"); // the variable name inside the query string (don't use this name inside other links)
define("NUM_ROWS", 10); // the number of records on each page
define("STR_FWD", "[Next]"); // the string is used for a link (step forward)
define("STR_BWD", "[Previous]"); // the string is used for a link (step backward)
define("IMG_FWD", "images/forward.gif"); // the image for forward link
define("IMG_BWD", "images/backward.gif"); // the image for backward link
define("NUM_LINKS", 10); // the number of links inside the navigation (the default value)
require_once("classes/pagination.php");
require_once("classes/Response.php");
// Important! use this setting to store the session data in your Mysql database
// disable this feature if your host doesn't support this session handler.
define("USE_MYSQL_SESSIONS", true); // "false" to disable thios setting
// these are the names for the standard table names
// !!! Important
// It's possible that your server doesn't allow the database name inside a query
// if this forms a problem don't use them here and unescape the mysql_select_db() function
// inside the connect_db() method.
define("USER_TABLE", DB_NAME.".users");
define("PROFILE_TABLE", DB_NAME.".users_profile");
define("COUNTRY_TABLE", DB_NAME.".countries"); // an optional table with countruy names and codes
define("SESSION_TABLE", DB_NAME.".sessions");
// variables (locations) standard pages (combine the pathes from the top or use your own)
define("LOGIN_PAGE", CLASS_PATH."login.php");
define("START_PAGE", APPLICATION_PATH."index.php");
define("ACTIVE_PASS_PAGE", APPLICATION_PATH."activate_password.php");
define("DENY_ACCESS_PAGE", APPLICATION_PATH."deny_access.php");
define("ADMIN_PAGE", APPLICATION_PATH."admin_user.php");
define("LOGOUT_PAGE", APPLICATION_PATH."logout.php"); // if you use the setting "USE_MYSQL_SESSIONS" you need a logout page without class object to clear the old session data from the database
define("UPDATE_PROFILE", APPLICATION_PATH."update_user_profile.php"); // if the update profile extension is used and the profile record doesn't exists a required redirect to this page is possible
// your path must be related to the site root.
// change this constants to the right mail settings
define("WEBMASTER_MAIL", "webmaster@domain.com");
define("WEBMASTER_NAME", "The webmaster");
define("ADMIN_MAIL", "contact@domain.com");
define("ADMIN_NAME", "The site admin");
// change this vars if you need...
define("PW_LENGTH", 4);
define("LOGIN_LENGTH", 6);
define("COOKIE_NAME", "user");
define("COOKIE_PATH", APPLICATION_PATH);
define("MIN_ACCESS_LEVEL", 1);
define("MAX_ACCESS_LEVEL", 10);
define("DEFAULT_ACCESS_LEVEL", 1);
define("DEFAULT_ADMIN_LEVEL", 10);
//////////////////////////////////////////////////
// constants and field names user profile table //
/////////////////////////////////////////////// //
// stamdard fields are: address, postcode, city, country, phone, fax, homepage, textfield
// variables must match your user profile table design
// use this four user defined fields (type varchar(100) too
// change the value of a constant but change them in the mysql table too
// otherwise you wil get some ERROR'S !!!
define("TBL_USERFIELD_1", "user_1");
define("TBL_USERFIELD_2", "user_2");
define("TBL_USERFIELD_3", "user_3");
define("TBL_USERFIELD_4", "user_4");
define("TBL_USERFIELD_5", "user_5");
define("TBL_USERFIELD_6", "user_6");
?>
5tarL0rd By