"Fossies" - the Fresh Open Source Software Archive

Member "faqadmin/faq/admin/forum_delete.php" (7 Oct 2003, 820 Bytes) of package /linux/www/old/faqadmin-current.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 "forum_delete.php" see the Fossies "Dox" file reference documentation.

    1 <html>
    2 <HEAD>
    3 <meta HTTP-EQUIV="REFRESH" CONTENT="2;URL=forum_mgt.php?userid=<? echo $userid ?>&userpass=<? echo $userpass ?>">
    4 <TITLE>GoldWeb</TITLE>
    5 </HEAD>
    6 <body bgcolor="ffffff">
    7 
    8 <?
    9 // session check
   10 session_start();
   11 if (!session_is_registered("SESSION_NAME"))
   12 {
   13         // if session check fails, invoke error handler
   14         header("Location: login.php");
   15         exit();
   16 }
   17 ?>
   18 
   19 <?php
   20 
   21 include ("../connect.php");
   22 
   23 #del forum data from faq_dat
   24 $sql = "delete from faq_dat
   25     where faq_fid = '$fid'
   26 ";
   27 $result = mysql_query($sql);
   28 
   29 #del forum data from faq_re_dat
   30 $sql = "delete from faq_re_dat
   31     where faq_re_fid = '$fid'
   32 ";
   33 $result = mysql_query($sql);
   34 
   35 #del forum data from faq_forum
   36 $sql = "delete from faq_forum
   37     where fid = '$fid'
   38 ";
   39 $result = mysql_query($sql);
   40 
   41 #include ("forum_mgt.php");
   42 ?>
   43 
   44 
   45 </body>
   46 </html>