"Fossies" - the Fresh Open Source Software Archive

Member "sendpage-1.001001/docs/sendpage.php" (3 Jan 2008, 2486 Bytes) of package /linux/privat/old/sendpage-1.001001.tar.gz:


The requested HTML page contains a <FORM> tag that is unusable on "Fossies" in "automatic" (rendered) mode so that page is shown as HTML 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 "sendpage.php" see the Fossies "Dox" file reference documentation.

    1 <html>
    2 <head>
    3 <title>Send Page</title>
    4 </head>
    5 <body>
    6 <!--
    7 
    8 $Id: sendpage.php 158 2004-01-16 02:03:20Z nemies $
    9 
   10 # Copyright (C) 2000,2001 Kees Cook
   11 # kees@outflux.net, http://outflux.net/
   12 #
   13 # This program is free software; you can redistribute it and/or
   14 # modify it under the terms of the GNU General Public License
   15 # as published by the Free Software Foundation; either version 2
   16 # of the License, or (at your option) any later version.
   17 #
   18 # This program is distributed in the hope that it will be useful,
   19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
   20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21 # GNU General Public License for more details.
   22 #
   23 # You should have received a copy of the GNU General Public License
   24 # along with this program; if not, write to the Free Software
   25 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
   26 # http://www.gnu.org/copyleft/gpl.html
   27 
   28 -->
   29 <h1>Send Page</h1>
   30 <?php
   31     if (isset($pageto) && $pageto != "" &&
   32         isset($pagefrom) && $pagefrom != "" &&
   33         isset($pagetext) && $pagetext != "") {
   34 ?>
   35 <ul>
   36 <hr>
   37 <?php
   38         $snpp = popen ("/usr/local/bin/snpp -f ".EscapeShellCmd($pagefrom)." ".EscapeShellCmd($pageto),"w");
   39         if ($snpp) {
   40             fwrite ($snpp,$pagetext);
   41             $ret=(pclose($snpp)>>8)&0xFF;
   42             $snpp=($ret == 0);
   43         }
   44         if (!$snpp) {
   45 ?>Sorry, an error occured sending your page!<?php
   46         }
   47         else {
   48 ?>
   49 Page sent:<br>
   50 <pre>
   51 To: <?php echo stripslashes($pageto) ?>
   52 
   53 From: <?php echo stripslashes($pagefrom) ?>
   54 
   55 Text:
   56 <?php echo stripslashes($pagetext) ?>
   57 </pre>
   58 <?php
   59         }
   60 ?>
   61 <hr>
   62 </ul>
   63 <?php
   64     }
   65 ?>
   66 Please fill out the following information to send a page....
   67 <p>
   68 <form method="POST" action="<?php print $SCRIPT_NAME ?>">
   69 <table border=0 cellspacing=0 cellpadding=0>
   70  <tr>
   71   <td><font<?php if ($pageto=="" && isset($send)) print ' color="#FF0000"'; ?>>To:</font></td>
   72   <td><input type=text name="pageto" value="<?php echo $pageto ?>" columns="15"><br></td>
   73  </tr>
   74  <tr>
   75   <td><font<?php if ($pagefrom=="" && isset($send)) print ' color="#FF0000"'; ?>>From:</font></td>
   76   <td><input type=text name="pagefrom" value="<?php echo $pagefrom ?>" columns="40"><br></td>
   77  </tr>
   78  <tr>
   79   <td><font<?php if ($pagetext=="" && isset($send)) print ' color="#FF0000"'; ?>>Text:</font><br></td>
   80   <td><TEXTAREA NAME="pagetext" ROWS="4" COLS="40" WRAP="SOFT"><?php echo stripslashes($pagetext) ?></TEXTAREA></td>
   81  </tr>
   82 </table>
   83 <p>
   84 <input type="submit" name="send" value="Send">
   85 </form> 
   86 <hr>
   87 </body>
   88 </html>