New "Invite" feature implemented

This commit is contained in:
Exodus4D
2015-08-30 23:25:02 +02:00
parent 67bab61fd3
commit 9c6ed24704
25 changed files with 577 additions and 134 deletions

View File

@@ -451,7 +451,7 @@ class Map extends \Controller\AccessController {
}
}else{
// user logged of
// user logged off
$return->error[] = $this->getUserLoggedOffError();
}
@@ -498,14 +498,16 @@ class Map extends \Controller\AccessController {
$return = (object) [];
$return->error = [];
if( !empty($f3->get('POST.mapIds')) ){
$mapIds = (array)$f3->get('POST.mapIds');
// check if data for specific system is requested
$systemData = (array)$f3->get('POST.systemData');
$user = $this->_getUser();
if($user){
if( !empty($f3->get('POST.mapIds')) ){
$mapIds = (array)$f3->get('POST.mapIds');
// check if data for specific system is requested
$systemData = (array)$f3->get('POST.systemData');
$user = $this->_getUser();
if($user){
// update current location (IGB data)
$user->updateCharacterLog(60 * 5);
@@ -551,16 +553,17 @@ class Map extends \Controller\AccessController {
// with the same main char
$return = $f3->get($cacheKey);
}
// get current user data -> this should not be cached because each user has different personal data
// even if they have multiple characters using the same map!
$return->userData = $user->getData();
}else{
// user logged of
$return->error[] = $this->getUserLoggedOffError();
}
// get current user data -> this should not be cached because each user has different personal data
// even if they have multiple characters using the same map!
$return->userData = $user->getData();
}else{
// user logged off
$return->error[] = $this->getUserLoggedOffError();
}
echo json_encode( $return );
}