Simple Chat / Shoutbox Script For Anonymous Users

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Simple Chat / Shoutbox Script For Anonymous Users

    You need three files:
    messages.txt (chmod 755)
    button.gif
    index.php (chmod 755)

    source of index.php:
    <div class='codetop'>CODE</div><div class='codemain' style='height:200px;white-space:pre;overflow:auto'>
    <?php
    header("Content-type: text/html; charset=utf-8");
    $name = $_POST[&#39;name&#39;];
    $message = $_POST[&#39;message&#39;];
    if ($name !=&#39;&#39;)
    {
    if ($message !=&#39;&#39;)
    {
    $file = fopen(&#39;messages.txt&#39;, &#39;r+&#39;);
    $ind=file_get_contents (&#39;messages.txt&#39;);
    $mess1=&#39;[&#39;.$_POST[&#39;name&#39;].&#39;] &#39;.stripslashes($message).&#39;

    &#39;.$ind;
    fputs($file, $mess1);
    fclose($file);
    }
    echo &#39;
    <html>
    <head>
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">&#39;;
    echo &#39;<title>&#39;.$_POST[&#39;name&#39;].&#39;@mobile.universumi.org</title>&#39;;
    echo &#39;</head>
    <body bgcolor="#FFFF99">&#39;;
    echo &#39;<form action="index.php" method="post">
    <input type="hidden" name="name" value="&#39;.$_POST[&#39;name&#39;].&#39;">
    <input type="text" name="message" maxlength="256">
    <input type="submit" value="Send / Refresh"></form>&#39;;
    echo "\n";
    $lines=file(&#39;messages.txt&#39;);
    $num = count($lines);
    for ($i=0; $i<15; $i++)
    {
    echo $lines[$i]."\n";
    }

    echo &#39;</body></html>&#39;;}
    else
    {
    echo &#39;
    <html>
    <head>
    <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">&#39;;
    echo "<title>mobile.universumi.org</title>";
    echo &#39;</head>
    <body bgcolor="#FFFF99">

    &#39;;
    echo &#39;<center><form action="index.php" method="post">
    <input type="text" name="name" value="Username" maxlength="16">
    <input type="image" src="http://www.universumi.org/ngeo/button.gif" alt="Kirjaudu" />
    </form></center>&#39;;
    echo &#39;</body></html>&#39;;
    }
    ?>
    </div>
    Attached Files

    #2
    am i ryt by saying you have a script alredi but want to add the feature shoutbox wer ppl can shout anonymously?
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      am i ryt by saying you have a script alredi but want to add the feature shoutbox wer ppl can shout anonymously?[/b]
      OMG HE IS AT IT AGAIN LOL THINKS HE KNOWS EVERYTHING PMPL

      Comment


        #4
        DONNA FUK OF YA TRAMP LUK AT YA YU LUK LIKE YA LIVIN ON THE STREETS
        Want something coded email me at sales@webnwaphost.com for a prices.




        Comment


          #5
          DONNA FUK OF YA TRAMP LUK AT YA YU LUK LIKE YA LIVIN ON THE STREETS[/b]
          PMPL GROW UP CHILD WHO THE HELL DO U THINK U R AND U DO THINK YOUR A SOMEBODY BUT YOUR NOT YOUR JUST A JUMPED UP LITTLE 16 YEAR OLD PRICK WHO LIKES 2 TRY AND **** UP SITES BUT OH DEAR U KEEP GETING COURT OUT WANKA HA

          Comment


            #6
            LOL I WILL BET YU 2MILLION POUNDS HU EVER TOLD U THAT I TRY HAKIN YA SITE COS THERE WRONG I ENT HACKD NY OF YA SITES EVER, AND OH IF I DID YU WOULD NEED TO START ALL OVER AGEN THE HOLE SITE WOULD GET DELETED. OH AND BY THE WAY RUSS AND PAULINE ARE THE ONES THAT NOT FUK ALL ABOUT SITES, U CAN ASK NYONE ON WAP THAT
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              why argue behind fake names? plus a dictionary would be useful before hitting the add reply button

              Comment


                #8
                amy it was all sound before immortal got her and her hubb yon av never had an argument on this site apart from this once and wudnt want to as there no point over a pc, people like this jus kum on to seek for argument,s and she has a history of it on her sites, a even told GumSlone to delete my post in here with inappropriate language, an i u thnk about itshe cald me a child she actuli is on the same level as me for carryin on u would expect and adult to bk of and not start the argument. giv us a message if ya want amy
                Want something coded email me at sales@webnwaphost.com for a prices.




                Comment


                  #9
                  amy it was all sound before immortal got her and her hubb yon av never had an argument on this site apart from this once and wudnt want to as there no point over a pc, people like this jus kum on to seek for argument,s and she has a history of it on her sites, a even told GumSlone to delete my post in here with inappropriate language, an i u thnk about itshe cald me a child she actuli is on the same level as me for carryin on u would expect and adult to bk of and not start the argument. giv us a message if ya want amy[/b]


                  brumi i dont claim to be a coder unlike yaself i can edit sites etc but i cannot build a site from scratch all my own coding , but then again can you

                  Comment


                    #10
                    why don&#39;t you lot just pretend the other ones don&#39;t exist, it&#39;d make this site more enjoyable for the rest of us

                    Comment

                    Working...
                    X