Diff of /packages/web/353/php_top/snapfull.php [9d6280] .. [45d5e8]  Maximize  Restore

  Switch to side-by-side view

--- a/packages/web/353/php_top/snapfull.php
+++ b/packages/web/353/php_top/snapfull.php
@@ -22,6 +22,9 @@
 *!  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *! -----------------------------------------------------------------------------**
 *!  $Log: snapfull.php,v $
+*!  Revision 1.3  2009/10/12 19:20:24  elphel
+*!  Added "Content-Disposition" support to suggest filenames to save images
+*!
 *!  Revision 1.2  2008/12/14 05:37:11  elphel
 *!  Added turning off autoexposure+white balance during snapshot sequence
 *!
@@ -45,6 +48,7 @@
 *!
 */
  $imgsrv='http://'.$_SERVER['HTTP_HOST'].':8081/';
+   $suggestSave=false;
    $ahead=3;
    $delay=2;
    $sensorSize=array('SENSOR_WIDTH'=>0,'SENSOR_HEIGHT'=>0);
@@ -61,6 +65,9 @@
                       'BIN_HOR'   => 1,
                       'BIN_VERT'  => 1);
    foreach($_GET as $key=>$value) switch ($key){
+     case 'save':
+       $suggestSave=true;
+       break;
      case 'ahead':
        $ahead=myval($value);
        break;
@@ -104,7 +111,8 @@
       $meta=current($circbuf_pointers);
    }
 /// Redirect browser to the imgsrv with the frame needed. Unfortunately "reload" button in the browser will not work
-header('Location: '.$imgsrv.$meta['circbuf_pointer'].'/bimg');
+if ($suggestSave) header('Location: '.$imgsrv.$meta['circbuf_pointer'].'/sbimg');
+else              header('Location: '.$imgsrv.$meta['circbuf_pointer'].'/bimg');
 exit();
 
 function myval ($s) {

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks