<?php include 'options.inc.php'; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $download = Model_Download_File::Create(); $download['siteid'] = Typeframe::CurrentPage()->siteid(); include 'update.inc.php'; if ($download->exists()) { Typeframe::Redirect('Download created.', Typeframe::CurrentPage()->applicationUri()); } }