config/config.php
$string_C_A = "c_"; //string to distinguish the controller action in uri.
$string_R_R = "r_"; //string to distinguish the router in uri.
"404" => $string_C_A."error__errors__n404",
//to redirect the user when there is not a controller action in the system.
config/config_userdata.php
"layout" => "cms", //the default layout.
"lang" => "eng", //the default language
geoo
" and "geov
" some big projects with many users needs to know the place of"login
" are stored some datas to know where to find its sensible datas.sid
" there is stored a casual number that sumed with an other casual numbersid
" changes after every click or post.We do this to protect a little bit more our user when its pc is controlled by others
and they may do actions with his identity, when our user is logged.
Together with OTP this should protect better than nothig.
You may try to open a new browser an to do the login again.
If is configured in config/configdb.php in
login ... "adm" => array("db"=>"basilar", ... "nrLoginsInSameTime"=>"1"
means that only one user may be logged in the same time,
and if this user doesn't do the logout, but will closse its browser, will be not possible to do a next login that solar 24 hours.
config/configdb.php
"adm" => array(
"db"=>"basilar", // the alias to connect the right db.
"table"=>"bhb_adm", // the table to store the users,
//in thi case the admins.
"idTable"=>"id", // the table ID unique
"login"=>"login", // column name of login,
//sometimes the column name may be diferent.
"password"=>"password", // idem for password
"crypted"=>"md5", // how you have encrypt tha password.
"otp"=>"", // the column name for the otp.
//This change in "default" after the login.
"nrLoginsInSameTime"=>"" // if here put 0 means nobody cal login,
// 1 only one ect.
),
public/index.php
$rootDirName = "bhb/framework";
//put here the uri dir and subdir where will run your system.
eg. www.sitename.com/bhb/framework/vars
if you install in root of your website.
$rootDirName = "";
//put nothing.
/.htaccess
ErrorDocument 403 http://localhost/
bhb/framework/c_a_error__errors__n404
or
ErrorDocument 403 http://localhost
/c_a_error__errors__n404
if you have installed in root of your website.
vendor/bhbsoft/ext/captcha/.htaccess
to allow only request from our website for captcha.
# if you run in your pc, localhost.
# If not from
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?localhost/ [NC]
# Go to
RewriteRule .* http://localhost/bhb/framework/ [L]
#if you run online in a remote server.
# If not from
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?namesite\.com/ [NC]
# Go to
RewriteRule .* http://namesite.com/ [L]