Ejemplo n.º 1
0
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 */
require_once 'geograph/global.inc.php';
if (isset($_GET['preview'])) {
    session_cache_limiter('none');
} else {
    require_once 'geograph/gridimage.class.php';
    require_once 'geograph/gridsquare.class.php';
}
require_once 'geograph/uploadmanager.class.php';
init_session();
$uploadmanager = new UploadManager();
//display preview image?
if (isset($_GET['preview'])) {
    $uploadmanager->outputPreviewImage($_GET['preview']);
    exit;
}
list($usec, $sec) = explode(' ', microtime());
$GLOBALS['STARTTIME'] = (double) $usec + (double) $sec;
$square = new GridSquare();
$smarty = new GeographPage();
if (!$USER->hasPerm("basic")) {
    $smarty->display('static_submit_intro.tpl');
    exit;
}
if (isset($_SESSION['tab'])) {
    $selectedtab = $_SESSION['tab'];
} else {
    $selectedtab = 1;
}