//already set } elseif (isset($uploadmanager->exifdate)) { $smarty->assign('imagetaken', $uploadmanager->exifdate); //$smarty->assign('imagetakenmessage', ' ('.$uploadmanager->exifdate.' stated in exif header)'); } else { $smarty->assign('imagetaken', '--'); } if (isset($_SESSION['last_imagetaken'])) { $smarty->assign('last_imagetaken', $_SESSION['last_imagetaken']); } $smarty->assign('today_imagetaken', date("Y-m-d")); } //which step to display? $smarty->assign('step', $step); if ($_SERVER['REQUEST_METHOD'] == 'GET') { customExpiresHeader(3600, false, true); } } elseif (!empty($_POST['rss'])) { $xh = new xmlHandler(); $nodeNames = array("PHOTO:THUMBNAIL", "PHOTO:IMGSRC", "TITLE"); $xh->setElementNames($nodeNames); $xh->setStartTag("ITEM"); $xh->setVarsDefault(); $xh->setXmlParser(); $xh->setXmlData(stripslashes($_POST['rss'])); $pData = $xh->xmlParse(); $smarty->assign_by_ref('pData', array_slice($pData, 0, 10)); } else { $template = "puploader_login.tpl"; } $smarty->display($template, $cacheid);