"Fossies" - the Fresh Open Source Software Archive

Member "faqadmin/faq/admin/forum_delselect.php" (7 Oct 2003, 1012 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_delselect.php" see the Fossies "Dox" file reference documentation.

    1 <table align="left" width=200 border=1>
    2 <tr><td rowspan=1>
    3 <H3>Forum Deletion</H3>
    4 <FONT COLOR=RED><B>WARNING!!!</B> Deletions are <U><B>FINAL</B></U></font>
    5 <font color=red><B>This is your last chance to Cancel.</B></FONT>
    6 </td></tr>
    7 
    8 <?
    9 
   10 // session check
   11 session_start();
   12 if (!session_is_registered("SESSION_NAME"))
   13 {
   14         // if session check fails, invoke error handler
   15         header("Location: login.php");
   16         exit();
   17 }
   18 ?>
   19 
   20 
   21 <?php
   22 
   23 include ("../connect.php");
   24 
   25 if ($userid == "")
   26 {$userid == "";}
   27 
   28 $result = mysql_query ("SELECT *
   29             FROM faq_forum, faq_admin
   30             where faq_admin.userid = '$userid'
   31                ");
   32 
   33 if ($myrow = mysql_fetch_array($result)) {
   34 
   35 do {
   36 
   37 $fid = $myrow["fid"];
   38 $forum = $myrow["forum_name"];
   39 print "<tr><td align=center>";
   40  printf("<font size=3><a href=\"forum_delete.php?fid=$fid&userid=$userid&userpass=$userpass\">$forum</a></font>\n\n");
   41 print "</td></tr>";
   42 
   43 } while ($myrow = mysql_fetch_array($result));
   44 
   45 } else {
   46     echo "Sorry, no records were found!";
   47  
   48 }
   49 
   50 ?>
   51 </table>