Prefix all GPC variables according to our coding standard
This commit is contained in:
@@ -13,10 +13,10 @@ require(BASE."include/application.php");
|
||||
|
||||
$aClean = array(); //array of filtered user input
|
||||
|
||||
$aClean['appId'] = makeSafe($_POST['appId']);
|
||||
$aClean['versionId'] = makeSafe($_POST['versionId']);
|
||||
$aClean['confirmed'] = makeSafe($_POST['confirmed']);
|
||||
$aClean['superMaintainer'] = makeSafe($_POST['superMaintainer']);
|
||||
$aClean['iAppId'] = makeSafe($_POST['iAppId']);
|
||||
$aClean['iVersionId'] = makeSafe($_POST['iVersionId']);
|
||||
$aClean['iConfirmed'] = makeSafe($_POST['iConfirmed']);
|
||||
$aClean['iSuperMaintainer'] = makeSafe($_POST['iSuperMaintainer']);
|
||||
|
||||
if(!$_SESSION['current']->isLoggedIn())
|
||||
{
|
||||
@@ -25,16 +25,16 @@ if(!$_SESSION['current']->isLoggedIn())
|
||||
}
|
||||
|
||||
|
||||
if($aClean['confirmed'])
|
||||
if($aClean['iConfirmed'])
|
||||
{
|
||||
$oApp = new Application($aClean['appId']);
|
||||
if($aClean['superMaintainer'])
|
||||
$oApp = new Application($aClean['iAppId']);
|
||||
if($aClean['iSuperMaintainer'])
|
||||
{
|
||||
apidb_header("You have resigned as super maintainer of ".$oApp->sName);
|
||||
$result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, null);
|
||||
} else
|
||||
{
|
||||
$oVersion = new Version($aClean['versionId']);
|
||||
$oVersion = new Version($aClean['iVersionId']);
|
||||
apidb_header("You have resigned as maintainer of ".$oApp->sName." ".$oVersion->sName);
|
||||
$result = $_SESSION['current']->deleteMaintainer($oApp->iAppId, $oVersion->iVersionId);
|
||||
}
|
||||
@@ -42,29 +42,29 @@ if($aClean['confirmed'])
|
||||
*/
|
||||
if($result)
|
||||
{
|
||||
if($aClean['superMaintainer'])
|
||||
if($aClean['iSuperMaintainer'])
|
||||
echo "You were removed as a super maintainer of ".$oApp->sName;
|
||||
else
|
||||
echo "You were removed as a maintainer of ".$oApp->sName." ".$oVersion->sName;
|
||||
}
|
||||
} else
|
||||
{
|
||||
if($aClean['superMaintainer'])
|
||||
if($aClean['iSuperMaintainer'])
|
||||
apidb_header("Confirm super maintainer resignation of ".$oApp->sName);
|
||||
else
|
||||
apidb_header("Confirm maintainer resignation of ".$oApp->sName." ".$oVersion->sName);
|
||||
|
||||
|
||||
echo '<form name="deleteMaintainer" action="maintainerdelete.php" method="post" enctype="multipart/form-data">',"\n";
|
||||
echo '<form name="sDeleteMaintainer" action="maintainerdelete.php" method="post" enctype="multipart/form-data">',"\n";
|
||||
|
||||
echo html_frame_start("Confirm",400,"",0);
|
||||
echo "<table width='100%' border=0 cellpadding=2 cellspacing=0>\n";
|
||||
echo "<input type=hidden name='appId' value={$aClean['appId']}>";
|
||||
echo "<input type=hidden name='versionId' value={$aClean['versionId']}>";
|
||||
echo "<input type=hidden name='superMaintainer' value={$aClean['superMaintainer']}>";
|
||||
echo "<input type=hidden name='confirmed' value=1>";
|
||||
echo "<input type=hidden name='iAppId' value={$aClean['iAppId']}>";
|
||||
echo "<input type=hidden name='iVersionId' value={$aClean['iVersionId']}>";
|
||||
echo "<input type=hidden name='iSuperMaintainer' value={$aClean['iSuperMaintainer']}>";
|
||||
echo "<input type=hidden name='iConfirmed' value=1>";
|
||||
|
||||
if($aClean['superMaintainer'])
|
||||
if($aClean['iSuperMaintainer'])
|
||||
{
|
||||
echo "<tr><td>Are you sure that you want to be removed as a super maintainer of this application?</tr></td>\n";
|
||||
echo '<tr><td align=center><input type=submit value=" Confirm resignation as supermaintainer " class=button>', "\n";
|
||||
|
||||
Reference in New Issue
Block a user