* pho_id: Id of photo album whose image you want to send * photo_nr: Number of the photo of the choosen album * usr_id: (optional) Id of the user who should receive the ecard *********************************************************************************************** */ require_once '../../system/common.php'; require_once 'ecard_function.php'; require_once '../../system/login_valid.php'; // Initialize and check the parameters $getPhotoId = admFuncVariableIsValid($_GET, 'pho_id', 'int', array('requireValue' => true)); $getUserId = admFuncVariableIsValid($_GET, 'usr_id', 'int'); $getPhotoNr = admFuncVariableIsValid($_GET, 'photo_nr', 'int', array('requireValue' => true)); $showPage = admFuncVariableIsValid($_GET, 'show_page', 'int', array('defaultValue' => 1)); // Initialisierung lokaler Variablen $funcClass = new FunctionClass($gL10n); $templates = $funcClass->getFileNames(THEME_SERVER_PATH . '/ecard_templates/'); $template = THEME_SERVER_PATH . '/ecard_templates/'; $headline = $gL10n->get('ECA_GREETING_CARD_EDIT'); // pruefen ob das Modul ueberhaupt aktiviert ist if ($gPreferences['enable_ecard_module'] != 1) { // das Modul ist deaktiviert $gMessage->show($gL10n->get('SYS_MODULE_DISABLED')); } // URL auf Navigationstack ablegen $gNavigation->addUrl(CURRENT_URL, $headline); // Fotoveranstaltungs-Objekt erzeugen oder aus Session lesen if (isset($_SESSION['photo_album']) && $_SESSION['photo_album']->getValue('pho_id') == $getPhotoId) { $photo_album =& $_SESSION['photo_album']; $photo_album->setDatabase($gDb); } else { // einlesen des Albums falls noch nicht in Session gespeichert