function complete() { $return = FoodleUtils::getURL(); if (!empty($_REQUEST['return'])) { $return = $_REQUEST['return']; } SimpleSAML_Utilities::redirect($return); }
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; }