What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Shoutbox help

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
PHP Shoutbox help
Author: Message:
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: RE: PHP Shoutbox help
code:
<?php

  /* -------------------------------------------------------

                           ShoutBox v1.1
                     By: Mark Lethbridge, 2007

     -------------------------------------------------------

     Install notes:
     Only thing that needs to be changed in this file is the
     line: $shoutbox_page = "index.php";
     You simple change "index.php" into the correct page
     that the shoutbox will appear in.

     -------------------------------------------------------- */

$file='shouts.txt';
$new = $_POST['user'].":".$_POST['shout'] . "\n" . file_get_contents($file);
$fp =fopen($file,'w');
fwrite($fp, $new);
fclose($fp);
   $shoutbox_page = "http://pps3.awardspace.com/Shoutbox/index.php";
   header("Location: $shoutbox_page");

?>


I have no idea if that will work btw

This post was edited on 06-08-2007 at 07:16 PM by Veggie.
06-08-2007 07:16 PM
Profile E-Mail PM Web Find Quote Report
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: PHP Shoutbox help
this also isnt very secure, the input really should be striped of bad things, but i dont have time to do that for you.
06-08-2007 07:18 PM
Profile E-Mail PM Web Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: PHP Shoutbox help
you rock veggie!! works perfect (L)! :D

[Image: lost7ru.gif]
06-08-2007 07:19 PM
Profile E-Mail PM Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: PHP Shoutbox help
You could also just use:
code:
fseek ($handle, 0);
To place the pointer at the beginning of the file ;)
[Image: 1-0.png]
             
06-08-2007 07:24 PM
Profile PM Web Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: PHP Shoutbox help
quote:
Originally posted by Veggie
this also isnt very secure, the input really should be striped of bad things, but i dont have time to do that for you.
lol bad things? :|

tell me what you meant and ill look into that one;)

[Image: lost7ru.gif]
06-08-2007 07:25 PM
Profile E-Mail PM Find Quote Report
vikke
Senior Member
****

Avatar

Posts: 900
Reputation: 28
31 / Male / Flag
Joined: May 2006
RE: RE: PHP Shoutbox help
quote:
Originally posted by M73A
quote:
Originally posted by Veggie
this also isnt very secure, the input really should be striped of bad things, but i dont have time to do that for you.
lol bad things? :|

tell me what you meant and ill look into that one;)

Evil javascript code for example.
4 8 15 16 23 42
06-08-2007 07:43 PM
Profile E-Mail PM Find Quote Report
Nathan
Veteran Member
*****

Avatar
Yeah, "large dimensions" ;)

Posts: 2984
Reputation: 76
– / Male / Flag
Joined: Apr 2005
RE: PHP Shoutbox help
You could delete files and directorys with that.
Touch Innovation - touch friendly programs/applications for the windows mobile!


06-08-2007 07:44 PM
Profile E-Mail PM Web Find Quote Report
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: PHP Shoutbox help
quote:
Originally posted by vikke
Evil javascript code for example.

A simple
code:
$stripped = strip_tags ($str);

should be enough, no SQL used so no SQL Injection ;)
[Image: 1-0.png]
             
06-08-2007 07:44 PM
Profile PM Web Find Quote Report
M73A
Veteran Member
*****

Avatar


Posts: 3213
Reputation: 37
34 / Male / Flag
Joined: Jul 2004
O.P. RE: PHP Shoutbox help
:|

er, is it hard to put in like $find javascript $ Delete

[Image: lost7ru.gif]
06-08-2007 09:30 PM
Profile E-Mail PM Find Quote Report
ShawnZ
Veteran Member
*****

Avatar

Posts: 3146
Reputation: 43
32 / Male / Flag
Joined: Jan 2003
RE: PHP Shoutbox help
quote:
Originally posted by M73A
:|

er, is it hard to put in like $find javascript $ Delete

wtf o.o
Spoiler:
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
the game.
06-08-2007 09:49 PM
Profile PM Web Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On