[ PHPXref.com ] [ Generated: Sun Jul 20 20:11:31 2008 ] [ SAPID CMS 1.2.3 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/ -> preview_image.php (source)

   1  <?PHP
   2  /************************************************************************/

   3  /* BCWB: Business Card Web Builder                                      */

   4  /* ============================================                         */

   5  /*                                                                      */

   6  /*     The author of this program code:                                    */

   7  /*  Dmitry Sheiko (sheiko@cmsdevelopment.com)                            */

   8  /*     Copyright by Dmitry Sheiko                                            */

   9  /*     http://bcwb.cmsdevelopment.com                                         */

  10  /*                                                                      */

  11  /* This program is free software. You can redistribute it and/or modify */

  12  /* it under the terms of the GNU General Public License as published by */

  13  /* the Free Software Foundation; either version 2 of the License.       */

  14  /************************************************************************/

  15  include_once ("etc/rc.conf.php");
  16  ?>
  17  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  18  <html>
  19  <head>
  20  <title>SAPID Gallery</title>
  21  </head>
  22  <body onclick="window.close(); return false;" leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
  23  <?PHP
  24  $imagesize = GetImageSize ( preg_replace("/preview_image\.php/", "", $root_path)."usr/templates/images/".$filename );
  25  $filename = $http_path."usr/templates/images/".$filename;
  26  
  27  if($imagesize[2]==4)
  28  echo '
  29      <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  30       codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
  31       WIDTH="'.$imagesize[0].'" HEIGHT="'.$imagesize[1].'" ALIGN="">
  32       <PARAM NAME=movie VALUE="'.$filename.'"> <PARAM NAME=quality VALUE=high><EMBED src="'.$filename.'" quality=high  WIDTH="'.$imagesize[0].'" HEIGHT="'.$imagesize[1].'" ALIGN=""
  33       TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
  34      </OBJECT>
  35          ';
  36  else
  37  echo '<a href=# onclick="window.close(); return false;"><img src="'.$filename."\" width=\"$imagesize[0]\" height=\"$imagesize[1]\"".' border="0" alt="'.$alt.'"></a>';
  38  ?><BR>
  39  <script>
  40  top.window.resizeTo(<?PHP echo ($imagesize[0]+10).",".($imagesize[1]+50); ?>);
  41  </script>
  42  </body>
  43  </html>


[ Powered by PHPXref - Served by Debian GNU/Linux ]