The problem occurred after the switch on the authentication. Before that, everything works.
I use my own "user tables. But I think it should be no problem.
I use Xataface in German and English. German is the first language.
By the way, I've made some adjustments to the de.ini. I do I'll send them to you?
I hope that's enough for now? Excuse my English, I know it could be better

.
Thanks for the reply, you have made a great system
Greetings Thomas
Here is my configuration:
Environement
===============================================
Windows 7 (64Bit)
XAMPP 1.7.4
PHP: 5.3.5
Apache/2.2.17 (Win32)
MySQL 5.5.8
Xataface 1.2.6
conf.ini
===============================================
- Code: Select all
;;default_browse_action="edit"
default_language="de"
default_table="get_services"
title="get Info"
;;multilingual_content=1
cache_queries=1
[_auth]
user_table = xsys_users
username_column = xsys_users_loginName
password_column = xsys_users_password
auth_type = basic
[languages]
en="English"
de="Deutsch"
[history]
enabled = 1
[_database]
host = "localhost"
user = "****"
password = "******"
name = "*****"
[_tables]
get_services = "Services"
view_services_aktueller_werte_eingeben = "Aktuelle KPI Werte (Service)"
... some Tables ...
...
ApplicationDelegate.php
================================================================
- Code: Select all
<?php
/**
* A delegate class for the entire application to handle custom handling of
* some functions such as permissions and preferences.
*/
class conf_ApplicationDelegate {
/**
* Returns permissions array. This method is called every time an action is
* performed to make sure that the user has permission to perform the action.
* @param record A Dataface_Record object (may be null) against which we check
* permissions.
* @see Dataface_PermissionsTool
* @see Dataface_AuthenticationTool
*/
function getPermissions(&$record){
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
if ( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS();
// if the user is null then nobody is logged in... no access.
// This will force a login prompt.
$role = $user->val('Role');
return Dataface_PermissionsTool::getRolePermissions($role);
// Returns all of the permissions for the user's current role.
}
}