if ($this->HaxorCheck()) {
                return;
            }
            if (!$this->ErrorCheck()) {
                if ($this->TryToUploadFile()) {
                    $this->UploadComplete();
                    return;
                }
            }
        }
        $this->Render();
    }
    function Render()
    {
        $vars = array();
        $vars['upload_url'] = $this->GetPostUrl();
        $vars['upload_type'] = _POST('upload_type', 'file');
        $vars['upload_error'] = $this->uploadError;
        $vars['email_error'] = $this->emailError;
        $vars['adsense_id'] = $this->GetAdsenseId();
        $vars['email'] = $this->GetEmail();
        $vars['thumb_size'] = _POST('thumb_size', '150x112');
        $vars['description'] = _POST('description');
        $vars['resize_options'] = $this->resizeOptions;
        $tpl = new Template();
        echo $tpl->Process(BASE_PATH . 'index.tpl', $vars);
    }
}
$page = new IndexPage();
$page->Process();