[AppDB] Refactor admin/adminAppDataQueue.php to use get_thumbnail()

Tony Lambregts tony.lambregts at gmail.com
Sat Jul 23 21:06:20 CDT 2005


This patch should be applied after the "Make admin/adminScreenshots.php display
Screenshots" patches.

Change Log: Refactor admin/adminAppDataQueue.php to use get_thumbnail()

Files Changed: admin/adminAppDataQueue.php



-------------- next part --------------
Index: admin/adminAppDataQueue.php
===================================================================
RCS file: /home/wine/appdb/admin/adminAppDataQueue.php,v
retrieving revision 1.17
diff -u -r1.17 adminAppDataQueue.php
--- admin/adminAppDataQueue.php	25 Jun 2005 01:22:09 -0000	1.17
+++ admin/adminAppDataQueue.php	24 Jul 2005 02:03:30 -0000
@@ -118,21 +118,9 @@
         //data
         if($obj_row->type == "image") 
         {
-           $oScreenshot = new Screenshot($obj_row->id);
+           $img = get_thumbnail($obj_row->id);
            echo '<tr valign=top><td class=color0><b>Submited image</b></td>',"\n";
            echo '<td>';
-           $imgSRC = '<img width="'.$oScreenshot->oThumbnailImage->width.'" height="'.$oScreenshot->oThumbnailImage->height.'" src="../appimage.php?queued=true&id='.$obj_row->id.'" />';
-           // generate random tag for popup window
-           $randName = generate_passwd(5);
-           // set image link based on user pref
-           $img = '<a href="javascript:openWin(\'../appimage.php?queued=true&id='.$obj_row->id.'\',\''.$randName.'\','.$oScreenshot->oScreenshotImage->width.','.($oScreenshot->oScreenshotImage->height+4).');">'.$imgSRC.'</a>';
-           if ($_SESSION['current']->isLoggedIn())
-           {
-               if ($_SESSION['current']->getpref("window:screenshot") == "no")
-               { 
-                   $img = '<a href="../appimage.php?queued=true&id='.$obj_row->id.'">'.$imgSRC.'</a>';
-               }
-           }
            echo $img;
            echo '</td></tr>',"\n";
         } elseif($obj_row->type == "url")


More information about the wine-patches mailing list