"Fossies" - the Fresh Open Source Software Archive

Member "astrocam-2.7.6/pic.php" (26 May 2009, 1110 Bytes) of package /linux/www/old/astrocam-2.7.6.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "pic.php" see the Fossies "Dox" file reference documentation.

    1 <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    2 <!--
    3                /* pic.php */
    4 
    5 /* This is part of the AstroCam Webinterface PHP Code written by
    6  * Steffen Wendzel <cdp_xe (at) gmx.net>
    7  *
    8  * Copyright 2001-2008 by Steffen Wendzel <cdp_xe (at) gmx.net>
    9  */
   10 -->
   11 
   12 
   13 <?   /* init */
   14     $picfile = $HTTP_GET_VARS['picfile'];
   15     $refreshtime = $HTTP_GET_VARS['refreshtime'];
   16     
   17     /* check refreshtime value */
   18     if(!ereg("^([1-9]+[0-9]*)$", $refreshtime, $regs)) {
   19         die('refreshtime value not allowed (must be at least 1)!');
   20     }
   21     /* check picfile url */
   22     if($picfile == "")
   23         die('no picfile value set!');
   24     if(ereg("[<>\'\&\"]+", $picfile, $regs)) {
   25         die('picfile value not allowed!');
   26     }
   27     
   28 ?>
   29 
   30 <html>
   31 <head>
   32     <meta http-equiv="pragma" content="no-cache">
   33     <meta http-equiv="refresh" content="<? echo $refreshtime; ?>;pic.php<? printf("?picfile=%s&refreshtime=%s", $picfile, $refreshtime); ?>">
   34     <link rel="stylesheet" type="text/css" href="design.css" title="primary">
   35 </head>
   36 <body>
   37 <table>
   38 <tr>
   39     <td class="menu">
   40         <img src="<? echo $picfile; ?>" alt="current image">
   41     </td>
   42 </tr>
   43 </body>
   44 </html>
   45