--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/0878e4a2-db23-4996-a182-b4e46a6b298b%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/01e2d70a-be5a-41bc-bac9-1350f2c31788%40googlegroups.com.
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT & ~E_NOTICE
error_log = /var/log/apache2/php_errors.log
The above is valid for the G2 theme as well.
--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/a4fe703c-7774-41ad-b24b-b22878ef87ba%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/a4c37290-b275-4b49-855e-efe449144f52%40googlegroups.com.
<?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 the user is null then nobody is logged in... no access.
// This will force a login prompt.
if ( ! isset ( $user ) ) return Dataface_PermissionsTool::NO_ACCESS();
$role = $user->val('RoleField');
// Returns all of the permissions for the user's current role.
return Dataface_PermissionsTool::getRolePermissions($role);
}
public function beforeHandleRequest ( ) {
Dataface_Application::getInstance ( )
->addHeadContent (
sprintf (
'<link rel="stylesheet" type="text/css" href="%s"/>' ,
htmlspecialchars ( DATAFACE_SITE_URL . '/style.css' )
)
);
}
}
?>--
You received this message because you are subscribed to the Google Groups "Xataface" group.
Visit this group at http://groups.google.com/group/xataface.
To view this discussion on the web visit https://groups.google.com/d/msgid/xataface/6c78f093-bd4b-419f-9576-c74c42202b9b%40googlegroups.com.