Esempio n. 1
0
         if (!empty($_POST['grid_reference']) && $square->natgrlen > 4) {
             $_SESSION['last_grid_reference'] = $_POST['grid_reference'];
         }
         if (!empty($_POST['photographer_gridref'])) {
             $_SESSION['last_photographer_gridref'] = $_POST['photographer_gridref'];
         }
         $clear_cache = 1;
         if (!$err) {
             $smarty->assign('gridimage_id', $uploadmanager->gridimage_id);
         }
     }
     $step = $err ? 7 : 5;
 } elseif (isset($_POST['abandon'])) {
     //delete the upload
     if ($uploadmanager->setUploadId($_POST['upload_id'])) {
         $uploadmanager->cleanUp();
     }
     $step = 6;
 } elseif (isset($_POST['goback3'])) {
     $uploadmanager->setUploadId($_POST['upload_id']);
     //preserve stuff
     $smarty->assign('upload_id', $_POST['upload_id']);
     $smarty->assign('title', stripslashes($_POST['title']));
     $smarty->assign('comment', stripslashes($_POST['comment']));
     $smarty->assign('title2', stripslashes($_POST['title2']));
     $smarty->assign('comment2', stripslashes($_POST['comment2']));
     $smarty->assign('imagetaken', stripslashes($_POST['imagetaken']));
     $smarty->assign('imageclass', stripslashes($_POST['imageclass']));
     $smarty->assign('user_status', stripslashes($_POST['user_status']));
     $step = 3;
 }