Beispiel #1
0
     }
 } elseif (isset($_POST['finalise'])) {
     //create the image record
     if ($uploadmanager->setUploadId($_POST['upload_id'])) {
         $uploadmanager->setTitle(stripslashes(trim($_POST['title'])));
         $uploadmanager->setComment(stripslashes(trim($_POST['comment'])));
         $uploadmanager->setTitle2(stripslashes(trim($_POST['title2'])));
         $uploadmanager->setComment2(stripslashes(trim($_POST['comment2'])));
         $uploadmanager->setTaken(stripslashes($_POST['imagetaken']));
         $uploadmanager->setClass(stripslashes(trim($_POST['imageclass'])));
         $uploadmanager->setViewpoint(stripslashes($_POST['photographer_gridref']));
         $uploadmanager->setDirection(stripslashes($_POST['view_direction']));
         $uploadmanager->setUse6fig(stripslashes($_POST['use6fig']));
         $uploadmanager->setUserStatus(stripslashes($_POST['user_status']));
         $uploadmanager->setLargestSize($_POST['largestsize']);
         $uploadmanager->setClearExif($_POST['clearexif']);
         if ($_POST['pattrib'] == 'other') {
             $uploadmanager->setCredit(stripslashes($_POST['pattrib_name']));
             $smarty->assign('credit_realname', $_POST['pattrib_name']);
         } elseif ($_POST['pattrib'] == 'self') {
             $uploadmanager->setCredit('');
         }
         if (!empty($_POST['pattrib_default'])) {
             $USER->setCreditDefault($_POST['pattrib'] == 'other' ? stripslashes($_POST['pattrib_name']) : '');
         }
         $err = $uploadmanager->commit('submit', true);
         //we will call cleanup later.
         if ($_POST['imagetaken'] != '0000-00-00') {
             $_SESSION['last_imagetaken'] = $_POST['imagetaken'];
         }
         if (!empty($_POST['grid_reference']) && $square->natgrlen > 4) {