"Fossies" - the Fresh Open Source Software Archive

Member "phpESP/admin/include/where/response_purge.inc" (28 Dec 2007, 1688 Bytes) of package /linux/www/old/phpESP-2.1.4.tgz:


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

    1 <?php
    2 
    3 /* $Id$ */
    4 
    5 /* vim: set tabstop=4 shiftwidth=4 expandtab: */
    6 
    7 // Written by James Flemer
    8 // For eGrad2000.com
    9 // <jflemer@alum.rpi.edu>
   10 
   11     if($_SESSION['acl']['superuser'] != 'Y') {
   12         echo(mkerror(_('Only superusers allowed.'))."<br>\n");
   13         echo("<a href=\"". $GLOBALS['ESPCONFIG']['ME'] ."?where=manage\">" . _('Go back to Management Interface') . "</a>\n");
   14         return;
   15     }
   16 
   17     if(isset($_POST['q_rid']) && !empty($_POST['q_rid'])) {
   18        response_purge($_POST['q_rid']);
   19     }
   20 
   21     $bg = $ESPCONFIG['bgalt_color2'];
   22 ?>
   23 <h2><?php echo(_('Purge response')); ?></h2>
   24 
   25     <p><?php echo(_('
   26 This page is not directly on the main menu because it is
   27 dangerous. This <b>completely</b> removes everything about a
   28 response from the database <b>forever</b>. Do
   29 not do anything here that you are not completely certain
   30 about. There is no confirmation, there is no turning
   31 back.')); ?></p>
   32 
   33 <table cellspacing="0" cellpadding="4">
   34     <tr style="background-color: <?php echo($bg); ?>">
   35         <td><?php echo(_('Response')); echo(_('ID')); ?></td>
   36     </tr>
   37 <?php
   38             $bg = $ESPCONFIG['bgalt_color2'];
   39 ?>
   40     <tr style="background-color: <?php echo($bg); ?>">
   41         <td><input type="text" name="q_rid" value="" /></td>
   42     </tr>
   43 <?php
   44     if($bg != $ESPCONFIG['bgalt_color1'])
   45         $bg = $ESPCONFIG['bgalt_color1'];
   46     else
   47         $bg = $ESPCONFIG['bgalt_color2'];
   48 ?>
   49     <tr style="background-color: <?php echo($bg); ?>">
   50         <td colspan="8">
   51             <input type="hidden" name="where" value="response_purge" />
   52             <input type="submit" name="submit" value="<?php echo(_('Purge response')); ?>" />
   53         </td>
   54     </tr>
   55 </table>
   56 <?php echo("<a href=\"". $GLOBALS['ESPCONFIG']['ME'] ."?where=manage\">" . _('Go back to Management Interface') . "</a>\n"); ?>