Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
my_profile.php
Go to the documentation of this file.
1 <?php
3  function handle(&$params){
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 }