album->getPhoto($photoIndex); /* Get the dimensions of the sized Photo */ list($width, $height) = $photo->getDimensions(0, false); $max_length = 300; // Maximum length of the e-Card text $msgTextError1 = _("Error processing e-card. Please try later."); $msgTextError2 = _("Some input fields are not correctly filled out. Please fill out."); $ecard_PLAIN_data = _("You have an e-card as attachment. Click to see."); $error_msg = ""; $ecard_send = false; if (! empty($submit_action)) { if ( check_email($ecard["email_recepient"]) && check_email($ecard["email_sender"]) && ($ecard["email_recepient"] != "") && ($ecard["name_sender"] != "") ) { if (strlen($ecard["message"]) > $max_length) { $ecard["message"] = substr($ecard["message"],0,$max_length-1); } list($error,$ecard_data_to_parse) = get_ecard_template($ecard["template_name"]); if ($error) { $error_msg = $msgTextError1; } else { $ecard_HTML_data = parse_ecard_template($ecard,$ecard_data_to_parse); $result = send_ecard($ecard,$ecard_HTML_data,$ecard_PLAIN_data); if ($result) { $ecard_send = true; } else { $error_msg = $msgTextError1; } } } else { $error_msg = $msgTextError2; } } else { if (!isset($ecard["image_name"])) { $ecard["image_name"] = $gallery->album->getPhotoPath($photoIndex, false); } } doctype(); ?>
'. gallery_error($error_msg) .'
'; } echo makeFormIntro("ecard_form.php", array("name" => "ecard_form", "method" => "POST"), array("type" => "popup")); ?> ">user) && $gallery->user->isLoggedIn()) { $defaultSenderName = $gallery->user->displayName(); $defaultSenderEmail = $gallery->user->getEmail(); } ?> | |||||||||
|
album->getThumbnailTag($photoIndex); ?>