Discussion Board Code
  Home arrow Discussion Board Code arrow Super Simple Discussion 4 sysadmins
Codewalker Forums 
  Tutorials  
Database Articles  
Miscellaneous  
Navigation Usability  
PEAR Articles  
Programming Basics  
Server Administration  
XML Tutorials  
  Reviews  
Database Book Reviews  
Linux Book Reviews  
Miscellaneous Reviews  
PHP Book Reviews  
PHP Software Reviews  
Server Admin Reviews  
SQL Tool Reviews  
  Code Gallery  
Content Management Code  
Contest Code  
Counters Code  
Database Code  
Date Time Code  
Discussion Board Code  
Email Code  
File Manipulation Code  
GUI Code  
Link Farm Code  
Miscellaneous Code  
Search Code  
Site Navigation Code  
User Management Code  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Download TestComplete 
Forums Sitemap 
Weekly Newsletter 
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DISCUSSION BOARD CODE

Super Simple Discussion 4 sysadmins
By: Codewalkers
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 2
    2003-05-11

    Table of Contents:

    Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    A small board for communication between
    sysadmins or such like. Or at least thats why I designed it. If you need to keep admins up to date then use this. Its simple easy and basic. Only has 4 user support, but its brill for a small team building a website.

    By : rock

    <?php
    /*
    A small board for communication between
    sysadmins or such like.

    The board uses file access to display the
    messages. Search and replace message2 with
    the users name required and do the same for
    the other users. Once logged in just Click
    on the radio box you wish to post to and
    then just write your message. Click POST
    and hey presto Bob's your uncle.

    The user is identified by $REMOTE_USER
    If the user is identified then he/she can
    delete his/her own messages.

    $REMOTE_USER is an apache variable and can
    be used. Or you can write a login script to
    parse the variable.

    */

    ?>

    <html>
    <head>
    </head>
    <body>


    <?

    function date_str($timestamp) {
    $date_str = getdate($timestamp);
    $year = $date_str["year"];
    $mon = $date_str["mon"];
    $mday = $date_str["mday"];
    $hours = $date_str["hours"];
    $minutes = $date_str["minutes"];
    $seconds = $date_str["seconds"];

    return "$hours:$minutes:$seconds $mday/$mon/$year";
    }

    $message1 = "message1.txt";
    $message2 = "message2.txt";
    $message3 = "message3.txt";
    $message4 = "message4.txt";


    if ($deluser) {
    copy("./blank.txt", "./$deluser.txt");
    }
    $message1fp = fopen("./message1.txt", "a+");
    $message2fp = fopen("./message2.txt", "a+");
    $message3fp = fopen("./message3.txt", "a+");
    $message4fp = fopen("./message4.txt", "a+");
    if ($postto == "message2") fwrite($message2fp, $posttext);
    else if ($postto == "messagel") fwrite($message1fp, $posttext);
    else if ($postto == "message3") fwrite($message3fp, $posttext);
    else if ($postto == "message4") fwrite($message4fp, $posttext);
    else echo "......";

    if ($REMOTE_USER) echo "Welcome: $REMOTE_USER";
    else echo "Welcome: Unknow person";





    ?>

    <form method=post action="./post.php">
    <table width=100% border=1>
    <tr><td bgcolor=gray width=50%><font size=1><b>message2</b> &nbsp; - &nbsp; Last Modified <? echo date_str(filemtime($message2)); ?> &nbsp; &nbsp &nbsp; <input type=radio name="postto" value="message2">
    <td bgcolor=gray width=50%><font size=1><b>message3</b> &nbsp; - &nbsp; Last Modified <? echo date_str(filemtime($message3)); ?> &nbsp; &nbsp &nbsp; <input type=radio name="postto" value="message3">

    <tr><td><?
    $lines = file($message2);
    while (list($ElementIndexValue, $ElementContents) = each($lines))
    {
    echo $ElementContents."<br>";
    }
    ?><td> <?
    $lines = file($message3);
    while (list($ElementIndexValue, $ElementContents) = each($lines))
    {
    echo $ElementContents."<br>";
    }
    ?>
    <tr><td bgcolor=gray width=50%><font size=1><b>message1</b> &nbsp; - &nbsp; Last Modified <? echo date_str(filemtime($message1)); ?> &nbsp; &nbsp &nbsp; <input type=radio name="postto" value="message1">
    <td bgcolor=gray width=50%><font size=1><b>message4</b> &nbsp; - &nbsp; Last Modified <? echo date_str(filemtime($message4)); ?> &nbsp; &nbsp &nbsp; <input type=radio name="postto" value="message4">
    <tr><td> <?
    $lines = file($message1);
    while (list($ElementIndexValue, $ElementContents) = each($lines))
    {
    echo $ElementContents."<br>";
    }
    ?> <td> <?
    $lines = file($message4);
    while (list($ElementIndexValue, $ElementContents) = each($lines))
    {
    echo $ElementContents."<br>";
    }
    ?>
    </table>


    <center>
    <TEXTAREA name="posttext" cols=60 rows=15></TEXTAREA>
    <br>
    <input type=submit value="Post Message">
    </form>
    <p>
    <form method=post action="./post.php">

    <input type=hidden name="deluser" value="<? echo $REMOTE_USER; ?>">
    <input type=submit value="Delete my messages">
    </form>
    <p>


    <?
    fclose($message1fp);
    fclose($message2fp);
    fclose($message4fp);
    fclose($message3fp);
    ?>
    </html>
    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

    More Discussion Board Code Articles
    More By Codewalkers

     

    IBM® developerWorks developerWorks - FREE Tools!


    NEW! Addressing software-as-a-service challenges using Tivoli security and WebSphere solutions

    Building a software-as-a-service solution requires addressing a few key technical challenges. In this webcast, we'll focus on the role of IBM Tivoli Directory Server and WebSphere Portlet Factory in creating a Software as a Service solution. We will demonstrate how to use Tivoli Directory Server to prevent the user population of one tenant from accessing the virtual portal and portlet components of another tenant. We will also use the dynamic profile capability of WebSphere Portlet Factory to create multiple highly customized applications from one code base.
    FREE! Go There Now!


    NEW! Application Development Tools for the Mainframe Developer

    You probably have thousands of lines of COBOL code loaded with business intelligence and being used to run your business, along with an army of developers maintaining these applications. Learn how to prepare your applications and developers so you can keep that competitive edge and move to a service-oriented architecture with the IBM Rational Enterprise Modernization solutions. Replay is available for 9 months.
    FREE! Go There Now!


    NEW! BlammoSplat: Build a community Web site of OpenLaszlo animations, Part 3: The community animation

    Learn to enable users to both rate existing animations and to combine existing animations into new snippets. This is the third in a series of three tutorials that chronicle the building of a site that enables collaborative discussion and animation building using Domino and OpenLaszlo.
    FREE! Go There Now!


    NEW! Download DB2 9.5 for Linux, Unix, and Windows

    Download a free trial version of IBM DB2 9.5 for Linux, UNIX, and Windows. DB2 9 is the result of a five-year development project that transformed traditional (static) database technology into an interactive data server that merges the high performance and ease of use of DB2 with the self-describing benefits of XML.
    FREE! Go There Now!


    NEW! Download IBM Data Studio V1.1

    Visit IBM developerWorks to download the latest trial version of IBM Data Studio V1.1 at no cost. IBM Data Studio is a comprehensive data management solution that helps you effectively design, develop, deploy and manage your data, databases, and database applications throughout the data management life cycle utilizing a consistent and integrated user interface. Unlike other client-side data management solutions that focus on only one aspect of the application lifecycle or database administration, Data Studio complements the Rational Software Delivery platform, providing unparalleled flexibility for a heterogeneous data server environment across platforms.
    FREE! Go There Now!


    NEW! Evaluate IBM Rational Software Analyzer V7.0

    Download a free trial version of IBM Rational Software Analyzer Developer Edition V7.0 to identify bug defects earlier in the software development cycle. Rational Software Analyzer is an extensible software development solution that reduces the expense of bug-fixes by enabling static analysis code reviews and bug identification very early in the development cycle.
    FREE! Go There Now!


    NEW! Maintaining QoS and Process Integrity in an SOA Environment

    This webcast outlines the best practices that must be instituted to gain the maximum benefit from SOA while maintaining high quality of service. Whether you are deploying new applications or managing and monitoring your existing infrastructure, learn how you can ensure high quality of services with SOA based solutions from IBM. All registrants who attend this live Web Seminar will receive complimentary access to a white paper titled “Maintaining QoS in an SOA Environment”.
    FREE! Go There Now!


    NEW! Rational Talks to You: Manage RUP-based CMMI initiatives

    Join this Rational Talks to You teleconference on December 4 at 1:00 pm ET to discuss how Rational Method Composer can help meet your compliance objectives. Get your questions answered!
    FREE! Go There Now!


    NEW! Trial download: IBM Rational Functional Tester V7.0.1

    Get a free trial download of the latest version of IBM Rational Functional Tester V7.0.1. Rational Functional Tester is an automated functional and regression testing solution for QA teams concerned with the quality of their Java, Microsoft Visual Studio .NET, and Web-based applications.
    FREE! Go There Now!


    NEW! Try IBM Rational Asset Manager V7.0 online!

    You can now evaluate IBM Rational Asset Manager V7.0 online without installing or configuring it on your own system! Rational Asset Manager helps create, modify, govern, find, and reuse any type of development assets, including SOA and systems development assets. Rational Asset Manager helps you reduce software development costs and improve quality by facilitating the reuse of all types of software development-related assets. Visit developerWorks to learn more about this product and register to explore its capabilities online.
    FREE! Go There Now!



    All FREE IBM® developerWorks Tools!

    DISCUSSION BOARD CODE ARTICLES

    - phpBB Google Sitemap XML generator v2.1
    - myPHPWiKi
    - Simple Shoutbox 1.3
    - Chipmunk Board
    - TagIt! Tagboard v2.1.B Build 2 - UPDATED 11....
    - Internal Mail System
    - phpAdBoard
    - Super Simple Discussion 4 sysadmins
    - Powerbox Version 0.2
    - SXMB
    - J.A.G. (Just Another Guestbook)
    - PowerBox
    - TagIt! Tagboard
    - Tom's Corkboard
    - MiniChat





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    Stay green...Green IT