i cant use the ip login function. If i activate it the Error:
Fatal error: Call to undefined function hasValidUserPass() in C:\xampp\htdocs\a\include\login.inc.php on line 236 come and i cant login.
Can someone please help me!!
Discussion
Anonymous
-
2012-06-19
Did you use it before? How does your config.php entry look like.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2012-06-20
no i haven´t used it before.
my Config.php:
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.sys.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.user.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.guess.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.ext.php";
// Page access configuration
$page_ext = ".php";
// Enable quick adding of unstructured addresses
$quickadd = true;
// Don't display groups
$nogroups = false;
// Disable all "edit/create" actions
$read_only = false;
// Enable group administration pages
$public_group_edit = true;
// Disable the AJAX-Mode with "false"
$use_ajax = true;
// View e-mail addresses as images
$mail_as_image = false;
// Change the location of the images (e.g. a CDN Source)
$url_images = "";
// Disable HTTP-Compression with 0
$compression_level = 2;
?>
my cfg.user:
//
// == List of Login/Pass-Users ==
//
/*
// -- Setup an "admin" user, with password "secret" --
$userlist['bla']['pass'] = "bla";
$userlist['bla']['role'] = "root"; // used to call "/diag.php"
// Setup a "readonly" user
$userlist['user']['pass'] = "user";
$userlist['user']['role'] = "readonly";
// Setup a user accessing only one group
$userlist['mygroup']['pass'] = "apassword";
$userlist['mygroup']['group'] = "My group";
// Setup a user for the second domain (0 = default)
$userlist['adm2']['pass'] = "adm2";
$userlist['adm2']['domain'] = 1;
*/
//
// == User table in database ==
//
$usertable = "user";
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
Anonymous
-
2012-06-20
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.sys.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.user.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.guess.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.ext.php";
// Page access configuration
$page_ext = ".php";
// Enable quick adding of unstructured addresses
$quickadd = true;
// Don't display groups
$nogroups = false;
// Disable all "edit/create" actions
$read_only = false;
// Enable group administration pages
$public_group_edit = true;
// Disable the AJAX-Mode with "false"
$use_ajax = true;
Did you use it before? How does your config.php entry look like.
no i haven´t used it before.
my Config.php:
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.sys.php";include dirname(FILE).DIRECTORY_SEPARATOR."cfg.user.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.guess.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.ext.php";
// Page access configuration
$page_ext = ".php";
// Enable quick adding of unstructured addresses
$quickadd = true;
// Don't display groups
$nogroups = false;
// Disable all "edit/create" actions
$read_only = false;
// Enable group administration pages
$public_group_edit = true;
// Disable the AJAX-Mode with "false"
$use_ajax = true;
//
// Select the columns displayed in "index.php":
$disp_cols
= array( "select"
// , "last_first"
// , "photo"
, "lastname"
, "firstname"
// , "address"
, "email"
, "telephone"
// , "home"
// , "mobile"
// , "work"
// , "fax"
, "edit"
, "details"
);
// View e-mail addresses as images
$mail_as_image = false;
// Change the location of the images (e.g. a CDN Source)
$url_images = "";
// Disable HTTP-Compression with 0
$compression_level = 2;
?>
my cfg.user:
//// == List of Login/Pass-Users ==
//
/*
// -- Setup an "admin" user, with password "secret" --
$userlist['bla']['pass'] = "bla";
$userlist['bla']['role'] = "root"; // used to call "/diag.php"
// Setup a "readonly" user
$userlist['user']['pass'] = "user";
$userlist['user']['role'] = "readonly";
// Setup a user accessing only one group
$userlist['mygroup']['pass'] = "apassword";
$userlist['mygroup']['group'] = "My group";
// Setup a user for the second domain (0 = default)
$userlist['adm2']['pass'] = "adm2";
$userlist['adm2']['domain'] = 1;
*/
//
// == User table in database ==
//
$usertable = "user";
// == List of IP-Users ==
//
$iplist['172.16.2.14']['role'] = "admin";
$iplist['172.16.2.14']['role'] = "readonly";
//
// == Look & Feel of the domains
//
$skin_color = "red"; // global skin color
// blue, brown, green, grey, pink, purple, red, turquoise, yellow
$domain[3]['skin'] = "blue";
$domain[1]['skin'] = "pink";
$domain[2]['skin'] = "yellow";
$domain[0]['skin'] = "red";
$domain[4]['skin'] = "turquoise";
?>
thanks for help!
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.user.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.guess.php";
include dirname(FILE).DIRECTORY_SEPARATOR."cfg.ext.php";
// Page access configuration
$page_ext = ".php";
// Enable quick adding of unstructured addresses
$quickadd = true;
// Don't display groups
$nogroups = false;
// Disable all "edit/create" actions
$read_only = false;
// Enable group administration pages
$public_group_edit = true;
// Disable the AJAX-Mode with "false"
$use_ajax = true;
//
// Select the columns displayed in "index.php":
$disp_cols
= array( "select"
// , "last_first"
// , "photo"
, "lastname"
, "firstname"
// , "address"
, "email"
, "telephone"
// , "home"
// , "mobile"
// , "work"
// , "fax"
, "edit"
, "details"
);
// View e-mail addresses as images
$mail_as_image = false;
// Change the location of the images (e.g. a CDN Source)
$url_images = "";
// Disable HTTP-Compression with 0
$compression_level = 2;
?>
Try to Remote the readonly role.
I updated to v8.1.7 and I have the same problem with a similar configuration.
I tried to remove the readonly role from iplist but I still have the same error.
Fatal error: Call to undefined function hasValidUserPass() in /var/www/addressbook/include/login.inc.php on line 236
The solution is in the file include\login.inc.php at line 236
replace this "return hasValidUserPass();"
to "return $this->hasValidUserPass();"
Please upgrade to 8.1.9.1 and check again. The bug should is fixed.