"Fossies" - the Fresh Open Source Software Archive

Member "faqadmin/faq/admin/forum_build.php" (7 Oct 2003, 819 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_build.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>Your New Forum has been Added</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 
   20 <?php
   21 
   22 include ("../connect.php");
   23 
   24 if (ereg(".", $forum_name) == 1)
   25 {
   26 
   27 $sql = "insert into faq_forum(forum_name, description)
   28     values ('$forum_name', '$description')";
   29 $result = mysql_query($sql);
   30 
   31 
   32 echo  "Your Forum Has Been Built !<BR> Thank You for using Faq Administrator<BR>\n";
   33 
   34 }
   35 
   36 
   37 
   38 else
   39 {
   40     print ("<B>Error:</B> A Forum Title is required. Save was aborted!!");
   41     $verify = "bad";
   42     
   43 }
   44 
   45 ?>
   46 </body>
   47 </html>