Rename appData type 'image' to 'screenshot'
This commit is contained in:
committed by
WineHQ
parent
ebb47fedc7
commit
5f6cc94def
@@ -106,10 +106,10 @@ if (!$aClean['iId'])
|
||||
echo '<td><textarea name="sDescription" rows=10 cols=35>'.stripslashes($obj_row->description).'</textarea></td></tr>',"\n";
|
||||
|
||||
//data
|
||||
if($obj_row->type == "image")
|
||||
if($obj_row->type == "screenshot")
|
||||
{
|
||||
$oScreenshot = new Screenshot($obj_row->id);
|
||||
echo '<tr valign=top><td class=color0><b>Submited image</b></td>',"\n";
|
||||
echo '<tr valign=top><td class=color0><b>Submited screenshot</b></td>',"\n";
|
||||
echo '<td>';
|
||||
$imgSRC = '<img width="'.$oScreenshot->get_thumbnail_width().'" height="'.$oScreenshot->get_thumbnail_height().'" src="../appimage.php?bQueued=true&iId='.$obj_row->id.'" />';
|
||||
// generate random tag for popup window
|
||||
@@ -152,7 +152,7 @@ if (!$aClean['iId'])
|
||||
$statusMessage = "";
|
||||
$goodtogo = 0;
|
||||
|
||||
if($obj_row->type == "image")
|
||||
if($obj_row->type == "screenshot")
|
||||
{
|
||||
$oScreenshot = new Screenshot($obj_row->id);
|
||||
$oScreenshot->unQueue();
|
||||
@@ -186,7 +186,7 @@ if (!$aClean['iId'])
|
||||
util_redirect_and_exit(apidb_fullurl("admin/adminAppDataQueue.php"));
|
||||
} elseif ($aClean['sReject'])
|
||||
{
|
||||
if($obj_row->type == "image")
|
||||
if($obj_row->type == "screenshot")
|
||||
{
|
||||
$oScreenshot = new Screenshot($obj_row->id);
|
||||
$oScreenshot->delete();
|
||||
|
||||
@@ -35,7 +35,7 @@ apidb_header("Screenshots");
|
||||
// regenerate all screenshots
|
||||
if($aClean['sRegenerate'])
|
||||
{
|
||||
$sQuery = "SELECT id FROM appData WHERE type = 'image'";
|
||||
$sQuery = "SELECT id FROM appData WHERE type = 'screenshot'";
|
||||
$hResult = query_parameters($sQuery);
|
||||
while($oRow = mysql_fetch_object($hResult))
|
||||
{
|
||||
@@ -64,7 +64,7 @@ if($aClean['iPage'])
|
||||
$currentPage = $aClean['iPage'];
|
||||
|
||||
$ItemsPerPage = min($ItemsPerPage,100);
|
||||
$totalPages = ceil(getNumberOfImages()/$ItemsPerPage);
|
||||
$totalPages = ceil(appData::objectGetEntriesCount("all", "screenshot")/$ItemsPerPage);
|
||||
$currentPage = min($currentPage,$totalPages);
|
||||
$offset = (($currentPage-1) * $ItemsPerPage);
|
||||
|
||||
@@ -100,7 +100,7 @@ echo "</center>";
|
||||
|
||||
/* query for all of the Screenshots in assending order */
|
||||
$Ids = query_parameters("SELECT * from appData
|
||||
WHERE type = 'image'
|
||||
WHERE type = 'screenshot'
|
||||
ORDER BY id ASC LIMIT ?, ?", $offset, $ItemsPerPage);
|
||||
$c = 1;
|
||||
echo "<div align=center><table><tr>\n";
|
||||
|
||||
Reference in New Issue
Block a user