| \n\n";
echo "Please enter an accurate and personalized reply anytime a submitted scrrenshot is rejected.\n";
@@ -113,7 +113,7 @@ if (!$aClean['id'])
//dataDescription
echo ' |
| Description | ',"\n";
- echo ' |
',"\n";
+ echo ' | ',"\n";
//data
if($obj_row->type == "image")
@@ -121,16 +121,16 @@ if (!$aClean['id'])
$oScreenshot = new Screenshot($obj_row->id);
echo '| Submited image | ',"\n";
echo '';
- $imgSRC = ' ';
+ $imgSRC = ' ';
// generate random tag for popup window
$randName = User::generate_passwd(5);
// set image link based on user pref
- $img = ''.$imgSRC.'';
+ $img = ''.$imgSRC.'';
if ($_SESSION['current']->isLoggedIn())
{
if ($_SESSION['current']->getpref("window:screenshot") == "no")
{
- $img = ''.$imgSRC.'';
+ $img = ''.$imgSRC.'';
}
}
echo $img;
@@ -138,26 +138,26 @@ if (!$aClean['id'])
} elseif($obj_row->type == "url")
{
echo ' |
| Submitted link | ',"\n";
- echo ' |
',"\n";
+ echo ' | ',"\n";
}
//email response
echo '| Email reply | ',"\n";
- echo " |
\n";
+ echo " | \n";
/* Add button */
echo '| ' ,"\n";
- echo ' |
',"\n";
+ echo ' ',"\n";
/* Reject button */
echo '| ' ,"\n";
- echo ' |
',"\n";
+ echo '',"\n";
echo '
',"\n";
- echo '
',"\n";
- echo '
',"\n";
+ echo '
',"\n";
+ echo '
',"\n";
echo '';
- } elseif ($aClean['add']) // we accepted the request
+ } elseif ($aClean['sAdd']) // we accepted the request
{
$statusMessage = "";
$goodtogo = 0;
@@ -172,7 +172,7 @@ if (!$aClean['id'])
$hResult = query_parameters("INSERT INTO appData (id, appId, versionId, type, ".
"description, url) VALUES (?, '?', '?', '?', '?', '?')",
"null", $obj_row->appId, $obj_row->versionId,
- "url", $aClean['description'], $obj_row->url);
+ "url", $aClean['sDescription'], $obj_row->url);
if($hResult)
{
$statusMessage = "
The application data was successfully added into the database
\n";
@@ -186,7 +186,7 @@ if (!$aClean['id'])
{
$sSubject = "Application Data Request Report";
$sMsg = "Your submission of an application data for ".Application::lookup_name($obj_row->appId).Version::lookup_name($obj_row->versionId)." has been accepted. ";
- $sMsg .= $aClean['replyText'];
+ $sMsg .= $aClean['sReplyText'];
$sMsg .= "We appreciate your help in making the Application Database better for all users.\r\n";
mail_appdb($oUser->sEmail, $sSubject ,$sMsg);
@@ -194,7 +194,7 @@ if (!$aClean['id'])
}
}
redirect(apidb_fullurl("admin/adminAppDataQueue.php"));
- } elseif ($aClean['reject'])
+ } elseif ($aClean['sReject'])
{
if($obj_row->type == "image")
{
@@ -208,7 +208,7 @@ if (!$aClean['id'])
{
$sSubject = "Application Data Request Report";
$sMsg = "Your submission of an application data for ".Application::lookup_name($obj_row->appId).Version::lookup_name($obj_row->versionId)." was rejected. ";
- $sMsg .= $aClean['replyText'];
+ $sMsg .= $aClean['sReplyText'];
mail_appdb($oUser->sEmail, $sSubject ,$sMsg);
}
diff --git a/admin/adminAppQueue.php b/admin/adminAppQueue.php
index 53c40be..3641a0e 100644
--- a/admin/adminAppQueue.php
+++ b/admin/adminAppQueue.php
@@ -13,16 +13,16 @@ require_once(BASE."include/testResults.php");
$aClean = array(); //array of filtered user input
$aClean['iTestingId'] = makeSafe($_REQUEST['iTestingId']);
-$aClean['sub'] = makeSafe($_REQUEST['sub'] );
-$aClean['apptype'] = makeSafe($_REQUEST['apptype']);
-$aClean['appId'] = makeSafe($_REQUEST['appId']);
-$aClean['versionId'] = makeSafe($_REQUEST['versionId']);
-$aClean['appVendorName'] = makeSafe($_REQUEST['appVendorName']);
-$aClean['appVendorId'] = makeSafe($_REQUEST['appVendorId']);
-$aClean['appWebpage'] = makeSafe($_REQUEST['appWebpage']);
-$aClean['appIdMergeTo'] = makeSafe($_REQUEST['appIdMergeTo']);
-$aClean['replyText'] = makeSafe($_REQUEST['replyText']);
-$aClean['versionIdMergeTo'] = makeSafe($_REQUEST['versionIdMergeTo']);
+$aClean['sSub'] = makeSafe($_REQUEST['sSub'] );
+$aClean['sAppType'] = makeSafe($_REQUEST['sAppType']);
+$aClean['iAppId'] = makeSafe($_REQUEST['iAppId']);
+$aClean['iVersionId'] = makeSafe($_REQUEST['iVersionId']);
+$aClean['sAppVendorName'] = makeSafe($_REQUEST['sAppVendorName']);
+$aClean['iAppVendorId'] = makeSafe($_REQUEST['iAppVendorId']);
+$aClean['sAppWebpage'] = makeSafe($_REQUEST['sAppWebpage']);
+$aClean['iAppIdMergeTo'] = makeSafe($_REQUEST['iAppIdMergeTo']);
+$aClean['sReplyText'] = makeSafe($_REQUEST['sReplyText']);
+$aClean['iVersionIdMergeTo'] = makeSafe($_REQUEST['iVersionIdMergeTo']);
$aClean['sDistribution'] = makeSafe($_REQUEST['sDistribution']);
function get_vendor_from_keywords($sKeywords)
@@ -62,7 +62,7 @@ function outputSearchTableForDuplicateFlagging($currentAppId, $hResult)
//display row
echo "
\n";
/* map the merging of the current app to the app we are displaying in the table */
- echo " | ".html_ahref($oRow->appName,"adminAppQueue.php?sub=duplicate&apptype=application&appId=".$currentAppId."&appIdMergeTo=".$oRow->appId)." | \n";
+ echo " ".html_ahref($oRow->appName,"adminAppQueue.php?sSub=duplicate&sAppType=application&iAppId=".$currentAppId."&appIdMergeTo=".$oRow->appId)." | \n";
echo " $oVersionCount->versions versions | \n";
echo "
\n\n";
@@ -113,7 +113,7 @@ function display_move_test_to_versions_table($aVersionsIds,$icurrentVersionId)
//display row
echo "
\n";
- echo " | ".html_ahref($oVersion->sName,"adminAppQueue.php?sub=movetest&apptype=version&versionId=".$icurrentVersionId."&versionIdMergeTo=".$oVersion->iVersionId)." | \n";
+ echo " ".html_ahref($oVersion->sName,"adminAppQueue.php?sSub=movetest&sAppType=version&iVersionId=".$icurrentVersionId."&iVersionIdMergeTo=".$oVersion->iVersionId)." | \n";
echo " ".util_trim_description($oVersion->sDescription)." | \n";
echo " ".$oVersion->sTestedRating." | \n";
@@ -138,9 +138,9 @@ if(!$_SESSION['current']->hasPriv("admin") && !$_SESSION['current']->isSuperMain
}
$oTest = new testData($aClean['iTestingId']);
-if ($aClean['sub'])
+if ($aClean['sSub'])
{
- if($aClean['apptype'] == 'application')
+ if($aClean['sAppType'] == 'application')
{
/* make sure the user is authorized to view this application request */
if(!$_SESSION['current']->hasPriv("admin"))
@@ -149,20 +149,20 @@ if ($aClean['sub'])
exit;
}
- $oApp = new Application($aClean['appId']);
+ $oApp = new Application($aClean['iAppId']);
// if we are processing a queued application there MUST be an implicitly queued
// version to go along with it.
- $hResult = query_parameters("SELECT versionId from appVersion where appId='?';", $aClean['appId']);
+ $hResult = query_parameters("SELECT versionId from appVersion where appId='?';", $aClean['iAppId']);
$oVersionRow = mysql_fetch_object($hResult);
$oVersion = new Version($oVersionRow->versionId);
}
- else if($aClean['apptype'] == 'version')
+ else if($aClean['sAppType'] == 'version')
{
/* make sure the user has permission to view this version */
- $oVersion = new Version($aClean['versionId']);
+ $oVersion = new Version($aClean['iVersionId']);
if(!$_SESSION['current']->hasAppVersionModifyPermission($oVersion))
{
util_show_error_page("Insufficient privileges.");
@@ -188,21 +188,21 @@ if ($aClean['sub'])
$oTest = new testData();
}
- if($aClean['sub'] == 'add')
+ if($aClean['sSub'] == 'add')
{
- $oVersion = new Version($aClean['versionId']);
+ $oVersion = new Version($aClean['iVersionId']);
$oTest = new testData($aClean['iTestingId']);
$oVersion->GetOutputEditorValues();
$oTest->GetOutputEditorValues();
- if ($aClean['apptype'] == "application") // application
+ if ($aClean['sAppType'] == "application") // application
{
- $oApp = new Application($aClean['appId']);
+ $oApp = new Application($aClean['iAppId']);
$oApp->GetOutputEditorValues(); // load the values from $_REQUEST
// add new vendor
- if($aClean['appVendorName'] and !$aClean['appVendorId'])
+ if($aClean['sAppVendorName'] and !$aClean['iAppVendorId'])
{
$oVendor = new Vendor();
- $oVendor->create($aClean['appVendorName'],$aClean['appWebpage']);
+ $oVendor->create($aClean['sAppVendorName'],$aClean['sAppWebpage']);
$oApp->iVendorId = $oVendor->iVendorId;
}
$oApp->update(true);
@@ -214,16 +214,16 @@ if ($aClean['sub'])
$oTest->unQueue();
redirect($_SERVER['PHP_SELF']);
}
- else if ($aClean['sub'] == 'duplicate')
+ else if ($aClean['sSub'] == 'duplicate')
{
- if(is_numeric($aClean['appIdMergeTo']))
+ if(is_numeric($aClean['iAppIdMergeTo']))
{
/* move this version submission under the existing app */
- $oVersion->iAppId = $aClean['appIdMergeTo'];
+ $oVersion->iAppId = $aClean['iAppIdMergeTo'];
$oVersion->update();
/* delete the appId that is the duplicate */
- $aClean['replyText'] = "Your Vesion information was moved to an existing Application";
+ $aClean['sReplyText'] = "Your Vesion information was moved to an existing Application";
$oAppDelete = new Application($oApp->iAppId);
$oAppDelete->delete();
}
@@ -231,51 +231,51 @@ if ($aClean['sub'])
/* redirect back to the main page */
redirect(apidb_fullurl("admin/adminAppQueue.php"));
}
- else if ($aClean['sub'] == 'movetest')
+ else if ($aClean['sSub'] == 'movetest')
{
- if(is_numeric($aClean['versionIdMergeTo']))
+ if(is_numeric($aClean['iVersionIdMergeTo']))
{
// move this Test submission under the existing version
- $oTest->iVersionId = $aClean['versionIdMergeTo'];
+ $oTest->iVersionId = $aClean['iVersionIdMergeTo'];
$oTest->update();
// delete the Version entry
- $aClean['replyText'] = "Your Test results were moved to existing version";
- $oVersion = new Version($aClean['versionId']);
+ $aClean['sReplyText'] = "Your Test results were moved to existing version";
+ $oVersion = new Version($aClean['iVersionId']);
$oVersion->delete();
}
// redirect back to the main page
redirect(apidb_fullurl("admin/adminAppQueue.php"));
}
- else if ($aClean['sub'] == 'Delete')
+ else if ($aClean['sSub'] == 'Delete')
{
- if (($aClean['apptype'] == "application") && is_numeric($aClean['appId'])) // application
+ if (($aClean['sAppType'] == "application") && is_numeric($aClean['iAppId'])) // application
{
// delete the application entry
- $oApp = new Application($aClean['appId']);
+ $oApp = new Application($aClean['iAppId']);
$oApp->delete();
- } else if(($aClean['apptype'] == "version") && is_numeric($aClean['versionId'])) // version
+ } else if(($aClean['sAppType'] == "version") && is_numeric($aClean['iVersionId'])) // version
{
// delete the Version entry
- $oVersion = new Version($aClean['versionId']);
+ $oVersion = new Version($aClean['iVersionId']);
$oVersion->delete();
}
redirect(apidb_fullurl("admin/adminAppQueue.php"));
}
- else if ($aClean['sub'] == 'Reject')
+ else if ($aClean['sSub'] == 'Reject')
{
- $oVersion = new Version($aClean['versionId']);
+ $oVersion = new Version($aClean['iVersionId']);
$oTest = new testData($aClean['iTestingId']);
$oVersion->GetOutputEditorValues();
$oTest->GetOutputEditorValues();
- if ($aClean['apptype'] == "application") // application
+ if ($aClean['sAppType'] == "application") // application
{
- $oApp = new Application($aClean['appId']);
+ $oApp = new Application($aClean['iAppId']);
$oApp->GetOutputEditorValues(); // load the values from $_REQUEST
$oApp->update(true);
$oApp->reject();
@@ -288,13 +288,13 @@ if ($aClean['sub'])
}
//process according to sub flag
- if ($aClean['sub'] == 'view')
+ if ($aClean['sSub'] == 'view')
{
$x = new TableVE("view");
apidb_header("Admin App Queue");
- echo '',"\n";
@@ -432,7 +432,7 @@ if ($aClean['sub'])
redirect(apidb_fullurl("admin/adminAppQueue.php"));
}
}
-else /* if ($aClean['sub']) is not defined, display the main app queue page */
+else /* if ($aClean['sSub']) is not defined, display the main app queue page */
{
apidb_header("Admin App Queue");
diff --git a/admin/adminBugs.php b/admin/adminBugs.php
index c1abc34..78855a4 100644
--- a/admin/adminBugs.php
+++ b/admin/adminBugs.php
@@ -13,11 +13,11 @@ require(BASE."include/mail.php");
$aClean = array(); //array of filtered user input
-$aClean['sub'] = makeSafe($_REQUEST['sub']);
-$aClean['buglinkId'] = makeSafe($_REQUEST['buglinkId']);
-$aClean['ItemsPerPage'] = makeSafe($_REQUEST['ItemsPerPage']);
-$aClean['QueuedOnly'] = makeSafe($_REQUEST['QueuedOnly']);
-$aClean['page'] = makeSafe($_REQUEST['page']);
+$aClean['sSub'] = makeSafe($_REQUEST['sSub']);
+$aClean['iBuglinkId'] = makeSafe($_REQUEST['iBuglinkId']);
+$aClean['iItemsPerPage'] = makeSafe($_REQUEST['iItemsPerPage']);
+$aClean['sQueuedOnly'] = makeSafe($_REQUEST['sQueuedOnly']);
+$aClean['iPage'] = makeSafe($_REQUEST['iPage']);
// deny access if not logged in
@@ -27,19 +27,19 @@ if(!$_SESSION['current']->hasPriv("admin"))
exit;
}
-if ($aClean['sub'])
+if ($aClean['sSub'])
{
- if(($aClean['sub'] == 'delete' ) && ($aClean['buglinkId']))
+ if(($aClean['sSub'] == 'delete' ) && ($aClean['iBuglinkId']))
{
- $oBuglink = new bug($aClean['buglinkId']);
+ $oBuglink = new bug($aClean['iBuglinkId']);
$oBuglink->delete();
}
- if(($aClean['sub'] == 'unqueue' ) && ($aClean['buglinkId']))
+ if(($aClean['sSub'] == 'unqueue' ) && ($aClean['iBuglinkId']))
{
- $oBuglink = new bug($aClean['buglinkId']);
+ $oBuglink = new bug($aClean['iBuglinkId']);
$oBuglink->unqueue();
}
- redirect($_SERVER['PHP_SELF']."?ItemsPerPage=".$aClean['ItemsPerPage']."&QueuedOnly=".$aClean['QueuedOnly']."&page=".$aClean['page']);
+ redirect($_SERVER['PHP_SELF']."?iItemsPerPage=".$aClean['iItemsPerPage']."&sQueuedOnly=".$aClean['sQueuedOnly']."&ipage=".$aClean['iPage']);
exit;
}
@@ -49,13 +49,13 @@ if ($aClean['sub'])
$pageRange = 10;
$ItemsPerPage = 10;
$currentPage = 1;
- $QueuedOnly = empty($aClean['QueuedOnly'])? NULL: $aClean['QueuedOnly'];
+ $QueuedOnly = empty($aClean['sQueuedOnly'])? NULL: $aClean['sQueuedOnly'];
$BugLinks = ($QueuedOnly == 'on')?getNumberOfQueuedBugLinks():getNumberOfBugLinks();
- if($aClean['ItemsPerPage'])
- $ItemsPerPage = $aClean['ItemsPerPage'];
+ if($aClean['iItemsPerPage'])
+ $ItemsPerPage = $aClean['iItemsPerPage'];
- if($aClean['page'])
- $currentPage = $aClean['page'];
+ if($aClean['iPage'])
+ $currentPage = $aClean['iPage'];
$ItemsPerPage = min($ItemsPerPage,100);
$totalPages = max(ceil($BugLinks/$ItemsPerPage),1);
@@ -63,18 +63,18 @@ if ($aClean['sub'])
$offset = (($currentPage-1) * $ItemsPerPage);
/* display page selection links */
- echo '
',"\n";
//email response
echo '
| Email reply | ',"\n";
- echo " |
\n";
+ echo "
| \n";
/* Add button */
echo '
| ' ,"\n";
- echo ' |
',"\n";
+ echo '
',"\n";
/* Reject button */
echo '
| ' ,"\n";
- echo ' |
',"\n";
+ echo '
',"\n";
echo '',"\n";
- echo '
',"\n";
- echo '
',"\n";
+ echo '
',"\n";
+ echo '
',"\n";
echo html_frame_end(" ");
echo html_back_link(1,'adminMaintainerQueue.php');
@@ -180,7 +180,7 @@ if ($aClean['sub'])
exit;
}
- else if ($aClean['add'] && $aClean['queueId'])
+ else if ($aClean['sAdd'] && $aClean['iQueueId'])
{
/* create a new user object for the maintainer */
$maintainerUser = new User($oRow->userId);
@@ -188,11 +188,11 @@ if ($aClean['sub'])
/* add the user as a maintainer and return the statusMessage */
$statusMessage = $maintainerUser->addAsMaintainer($oRow->appId, $oRow->versionId,
$oRow->superMaintainer,
- $aClean['queueId']);
+ $aClean['iQueueId']);
//done
addmsg("
$statusMessage
", 'green');
}
- else if (($aClean['reject'] || ($aClean['sub'] == 'reject')) && $aClean['queueId'])
+ else if (($aClean['sReject'] || ($aClean['sSub'] == 'sReject')) && $aClean['iQueueId'])
{
$sEmail = $oUser->sEmail;
if ($sEmail)
@@ -201,7 +201,7 @@ if ($aClean['sub'])
$oVersion = new Version($oRow->versionId);
$sSubject = "Application Maintainer Request Report";
$sMsg = "Your application to be the maintainer of ".$oApp->sName." ".$oVersion->sName." was rejected. ";
- $sMsg .= $aClean['replyText'];
+ $sMsg .= $aClean['sReplyText'];
$sMsg .= "";
$sMsg .= "-The AppDB admins\n";
@@ -210,7 +210,7 @@ if ($aClean['sub'])
//delete main item
$sQuery = "DELETE from appMaintainerQueue where queueId = '?'";
- $hResult = query_parameters($sQuery, $aClean['queueId']);
+ $hResult = query_parameters($sQuery, $aClean['iQueueId']);
if(!$hResult) addmsg("unable to delete selected maintainer application", "red");
echo html_frame_start("Delete maintainer application",400,"",0);
if($hResult)
@@ -230,7 +230,7 @@ if ($aClean['sub'])
/* display the list of all outstanding maintainer requests */
{
apidb_header("Admin Maintainer Queue");
- echo '
',"\n";
+ echo '',"\n";
//get available maintainers
$sQuery = "SELECT queueId, appId, versionId,".
@@ -291,7 +291,7 @@ if ($aClean['sub'])
}
echo " sEmail."\">".$oUser->sRealname." | \n";
- echo " [queueId\">answer] | \n";
+ echo " [queueId\">answer] | \n";
echo "\n\n";
$c++;
}
diff --git a/admin/adminMaintainers.php b/admin/adminMaintainers.php
index b58737b..309946a 100644
--- a/admin/adminMaintainers.php
+++ b/admin/adminMaintainers.php
@@ -11,8 +11,8 @@ require(BASE."include/incl.php");
$aClean = array(); //array of filtered user input
-$aClean['sub'] = makeSafe($_REQUEST['sub']);
-$aClean['maintainerId'] = makeSafe($_REQUEST['maintainerId']);
+$aClean['sSub'] = makeSafe($_REQUEST['sSub']);
+$aClean['iMaintainerId'] = makeSafe($_REQUEST['iMaintainerId']);
// deny access if not logged in
if(!$_SESSION['current']->hasPriv("admin"))
@@ -22,15 +22,15 @@ if(!$_SESSION['current']->hasPriv("admin"))
}
apidb_header("Admin Maintainers");
-echo '',"\n";
+echo '',"\n";
-if ($aClean['sub'])
+if ($aClean['sSub'])
{
- if($aClean['sub'] == 'delete')
+ if($aClean['sSub'] == 'delete')
{
$sQuery = "DELETE FROM appMaintainers WHERE maintainerId = '?'";
- $hResult = query_parameters($sQuery, $aClean['maintainerId']);
- echo html_frame_start("Delete maintainer: ".$aClean['maintainerId'],400,"",0);
+ $hResult = query_parameters($sQuery, $aClean['iMaintainerId']);
+ echo html_frame_start("Delete maintainer: ".$aClean['iMaintainerId'],400,"",0);
if($hResult)
{
// success
@@ -115,14 +115,14 @@ if ($aClean['sub'])
echo " sEmail."\">".$oUser->sRealname." | \n";
if($oRow->superMaintainer)
{
- echo " ".Application::lookup_name($oRow->appId)." | \n";
+ echo " ".Application::lookup_name($oRow->appId)." | \n";
echo " * | \n";
} else
{
- echo " ".Application::lookup_name($oRow->appId)." | \n";
- echo " ".Version::lookup_name($oRow->versionId)." | \n";
+ echo " ".Application::lookup_name($oRow->appId)." | \n";
+ echo " ".Version::lookup_name($oRow->versionId)." | \n";
}
- echo " [delete] | \n";
+ echo " [delete] | \n";
echo "\n\n";
$c++;
}
diff --git a/admin/adminScreenshots.php b/admin/adminScreenshots.php
index a784b2e..b4e19ad 100644
--- a/admin/adminScreenshots.php
+++ b/admin/adminScreenshots.php
@@ -12,12 +12,12 @@ require(BASE."include/mail.php");
$aClean = array(); //array of filtered user input
-$aClean['cmd'] = makeSafe($_REQUEST['cmd']);
-$aClean['imageId'] = makeSafe($_REQUEST['imageId']);
-$aClean['ItemsPerPage'] = makeSafe($_REQUEST['ItemsPerPage']);
-$aClean['page'] = makeSafe($_REQUEST['page']);
-$aClean['regenerate'] = makeSafe($_REQUEST['regenerate']);
-$aClean['versionId'] = makeSafe($_REQUEST['versionId']);
+$aClean['sCmd'] = makeSafe($_REQUEST['sCmd']);
+$aClean['iImageId'] = makeSafe($_REQUEST['iImageId']);
+$aClean['iItemsPerPage'] = makeSafe($_REQUEST['iItemsPerPage']);
+$aClean['iPage'] = makeSafe($_REQUEST['iPage']);
+$aClean['bRegenerate'] = makeSafe($_REQUEST['bRegenerate']);
+$aClean['iVersionId'] = makeSafe($_REQUEST['iVersionId']);
// deny access if not admin
if(!$_SESSION['current']->hasPriv("admin"))
@@ -28,18 +28,18 @@ if(!$_SESSION['current']->hasPriv("admin"))
/*
* We issued a delete command.
*/
-if($aClean['cmd'])
+if($aClean['sCmd'])
{
// process screenshot deletion
- if($aClean['cmd'] == "delete" && is_numeric($aClean['imageId']))
+ if($aClean['sCmd'] == "delete" && is_numeric($aClean['iImageId']))
{
- $oScreenshot = new Screenshot($aClean['imageId']);
+ $oScreenshot = new Screenshot($aClean['iImageId']);
$oScreenshot->delete();
$oScreenshot->free();
}
redirect($_SERVER['PHP_SELF'].
- "?ItemsPerPage=".$aClean['ItemsPerPage'].
- "&page=".$aClean['page']);
+ "?iItemsPerPage=".$aClean['iItemsPerPage'].
+ "&iPage=".$aClean['iPage']);
exit;
}
@@ -47,7 +47,7 @@ if($aClean['cmd'])
apidb_header("Screenshots");
// regenerate all screenshots
-if($aClean['regenerate'])
+if($aClean['sRegenerate'])
{
$sQuery = "SELECT id FROM appData WHERE type = 'image'";
$hResult = query_parameters($sQuery);
@@ -62,7 +62,7 @@ if($aClean['regenerate'])
}
echo "";
echo "Regenerate all screenshots ! ".
+ "?bRegenerate=true\">Regenerate all screenshots ! ".
"(use only if you know what you are doing)
";
echo "";
@@ -72,10 +72,10 @@ $pageRange = 10;
$ItemsPerPage = 6;
$currentPage = 1;
-if($aClean['ItemsPerPage'])
- $ItemsPerPage = $aClean['ItemsPerPage'];
-if($aClean['page'])
- $currentPage = $aClean['page'];
+if($aClean['iItemsPerPage'])
+ $ItemsPerPage = $aClean['iItemsPerPage'];
+if($aClean['iPage'])
+ $currentPage = $aClean['iPage'];
$ItemsPerPage = min($ItemsPerPage,100);
$totalPages = ceil(getNumberOfImages()/$ItemsPerPage);
@@ -87,14 +87,14 @@ $offset = (($currentPage-1) * $ItemsPerPage);
echo "";
echo "Page $currentPage of $totalPages
";
display_page_range($currentPage, $pageRange, $totalPages,
- $_SERVER['PHP_SELF']."?ItemsPerPage=".$ItemsPerPage);
+ $_SERVER['PHP_SELF']."?iItemsPerPage=".$ItemsPerPage);
echo "
";
echo "
";
/* display the option to choose how many screenshots per-page to display */
echo '';
echo 'Number of Screenshots per page:';
-echo "