diff --git a/admin/resubmitRejectedApps.php b/admin/resubmitRejectedApps.php
index 3097ff8..ed29941 100644
--- a/admin/resubmitRejectedApps.php
+++ b/admin/resubmitRejectedApps.php
@@ -4,365 +4,10 @@
/*************************************/
include("path.php");
-require(BASE."include/incl.php");
-require(BASE."include/tableve.php");
-require(BASE."include/application.php");
-require(BASE."include/mail.php");
+require_once(BASE."include/incl.php");
-function get_vendor_from_keywords($sKeywords)
-{
- $aKeywords = explode(" *** ",$sKeywords);
- $iLastElt = (sizeOf($aKeywords)-1);
- return($aKeywords[$iLastElt]);
-}
+ redirect(BASE."appsubmit.php");
-if ($_REQUEST['sub'])
-{
- if(is_numeric($_REQUEST['appId']))
- {
- $oApp = new Application($_REQUEST['appId']);
- // if we are processing a queued application there MUST be an implicitly queued
- // version to go along with it. Find this version so we can display its information
- // during application processing so the admin can make a better choice about
- // whether to accept or reject the overall application
- $sQuery = "Select versionId from appVersion where appId='".$_REQUEST['appId']."';";
- $hResult = query_appdb($sQuery);
- $oRow = mysql_fetch_object($hResult);
-
- // make sure the user has permission to view this version
- if(!$_SESSION['current']->hasAppVersionModifyPermission($oRow->versionId) &&
- (($oRow->queued=="false")?true:false) &&
- !$_SESSION['current']->isVersionSubmitter($oRow->versionId))
- {
- errorpage("Insufficient privileges.");
- exit;
- }
-
- $oVersion = new Version($oRow->versionId);
-
- } elseif(is_numeric($_REQUEST['versionId']))
- {
- // make sure the user has permission to view this version
- if(!$_SESSION['current']->hasAppVersionModifyPermission($_REQUEST['versionId'])&&
- (($oRow->queued=="false")?true:false) &&
- !$_SESSION['current']->isVersionSubmitter($oRow->versionId))
- {
- errorpage("Insufficient privileges.");
- exit;
- }
-
- $oVersion = new Version($_REQUEST['versionId']);
- } else
- {
- //error no Id!
- addmsg("Application Not Found!", "red");
- redirect($_SERVER['PHP_SELF']);
- }
-
- //process according to sub flag
- if ($_REQUEST['sub'] == 'view')
- {
- $x = new TableVE("view");
- apidb_header("Admin Rejected App Queue");
-
- echo '