Xataface
2.0alpha2
Xataface Application Framework
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
actions
my_profile.php
Go to the documentation of this file.
1
<?php
2
class
dataface_actions_my_profile
{
3
function
handle
(&$params){
4
$app
=&
Dataface_Application::getInstance
();
5
$auth =&
Dataface_AuthenticationTool::getInstance
();
6
7
if
( $auth->isLoggedIn() ){
8
// forward to the user's profile
9
$user =& $auth->getLoggedInUser();
10
$app
->redirect($user->getURL());
11
exit
;
12
}
else
{
13
$app
->redirect(
$app
->url(
'-action=login_prompt'
).
'&--msg='
.urlencode(
'Sorry, this action is only available to logged in users'
));
14
}
15
}
16
}
Generated on Fri Mar 22 2013 09:40:33 for Xataface by
1.8.1.2