Exemplo n.º 1
0
 function complete()
 {
     $return = FoodleUtils::getURL();
     if (!empty($_REQUEST['return'])) {
         $return = $_REQUEST['return'];
     }
     SimpleSAML_Utilities::redirect($return);
 }
Exemplo n.º 2
0
Arquivo: User.php Projeto: r4mp/Foodle
 public function getPhotoURL($size = 'm')
 {
     $basepath = $this->config->getPathValue('photodir');
     $basefilename = $this->getToken();
     $file = $basepath . $basefilename . '-' . $size . '.jpeg';
     // error_log('Looking for file : ' . $file);
     if (!file_exists($file)) {
         return FALSE;
     }
     return FoodleUtils::getURL() . 'photo/' . $basefilename . '/' . $size;
 }