[AppDB] fix situation when AppDB is not at DocumentRoot (patch 1
of 3)
Tony Lambregts
tony.lambregts at gmail.com
Sat Jul 23 21:19:31 CDT 2005
These patch are to meant address situations like mine when the AppDB is located
a http://localhost/appdb instead of http://localhost/. These patches can be
applied independatly from my other patches.
Change Log: fix situation when AppDB is not at DocumentRoot.
Files Changed: include/config.php.sample
-------------- 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