<?php // this file: sitelock.conf.php
$sl = array (
// Information for database connection:
'db_type' => ""
, 'db_name' => ''
, 'db_host' => ''
, 'db_user' => ''
, 'db_pass' => ''
, 'md5_seed' => ''
// Information on db table names (and options turned on/off):
, 'db_table_users' => 'tabela_uzytkownicy'
, 'db_field_session' => 'idsesji'
, 'db_field_id' => 'id_cz'
, 'db_field_username' => 'nazwa_uzytkownika'
, 'db_field_password' => 'haslo_uzytkownika'
, 'db_field_perm' => 'permissions'
, 'if_log_visits_num' => 'yes'
, 'db_field_visits_num' => 'ile_zalog_cz'
, 'if_log_visits_time' => 'yes'
, 'db_field_visits_time' => 'last_visit'
// Other configuration variables:
, 'default_lang' => 'english'
, 'change_page' => 'sitelock.change.php'
, 'delete_page' => 'sitelock.delete.php'
, 'add_page' => 'sitelock.add.php'
, 'form_user' => 'uzytkownik'
, 'form_password' => 'haslo'
, 'form_logout' => 'logout'
, 'html_version' => '4'
, 'cookie_name' => 'ciastko'
);
// Configuration completed. <img src='https://amxx.pl/public/style_emoticons/<#EMO_DIR#>/biggrin.gif' class='bbc_emoticon' alt=':-)' /> Do not change anything below this line
// unless you know well what you are doing!
// We have to initialize and clean few variables to make sure
// it is harder to enter bad data and break in:
$if_logged_in = "no"; // by default; don't change it!!!
if (empty($sl_lang)) {
$sl_lang = $sl['default_lang'];
}
if (isset($HTTP_COOKIE_VARS[$sl['cookie_name']])) {
$sl_cookie = htmlentities($HTTP_COOKIE_VARS[$sl['cookie_name']], ENT_QUOTES);
}
if (isset($HTTP_POST_VARS[$sl['form_user']])) {
$user = htmlentities($HTTP_POST_VARS[$sl['form_user']], ENT_QUOTES);
} else {
$user = "";
}
if (isset($HTTP_POST_VARS[$sl['form_password']])) {
$password = htmlentities($HTTP_POST_VARS[$sl['form_password']], ENT_QUOTES);
} else {
$password = "";
}
if (isset($HTTP_POST_VARS[$sl['form_logout']])) {
$logout = htmlentities($HTTP_POST_VARS[$sl['form_logout']], ENT_QUOTES);
} else {
$logout = "";
}
if ($sl['html_version'] == "4") {
$html = array ( "br" => "
"
, "brn" => "
n"
, "b" => "[b]"
, "/b" => "[/b]");
} else {
$html = array ( "br" => "
"
, "brn" => "
n"
, "b" => "<strong>"
, "/b" => "</strong>");
}
$sl_version = "1.0 Beta";
?>
i to jak mozesz:)