Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

ok mi don
preg_match issn
there is only code not show anithing at your site.

the function is easy.

a user type in shout <hello an the script makes no output, thats all

it blocks the < so nobidy can make <script href=xxxx.xx/javascriptXSS.js></script> or other code
hello all i have a feature for your shoutbox whit this little modification would block

<html

<script

<?php

also nobody kann inject code in your shoutbox, i hope you know what i mean   :)

lets start.

open shoutbox.php or shoutin.php and find

//INSERT MESSAGE

if (!empty($_POST['message']) && $CURUSER) {

$_POST['message'] = sqlesc($_POST['message']);
set bevor this




$text=utf8_decode(trim($_POST['message']));

// blocking some code links

if ( ereg('\<', $text))

$text='';





for blocking code an this when you will blocking code and <a href=... links





$text=utf8_decode(trim($_POST["message"]));

// blocking www links and code

if ( ereg("\<(a|A)\ (href|HREF|Href|HrEf|hReF|hrEF|HRef|HREf|hreF)", $text))

$text='';

else

if ( ereg("\<", $text))

$text='';




thats all

PS: sorry for bad english  :huh:
hi all a little hack from me


go in shoutbox.php and find this
 

if (isset($_GET['history'])) {
if (isset($_GET['page'])) {
if($_GET['page'] > '1') {
$lowerlimit = $_GET['page'] * 100 - 100;
$upperlimit = $_GET['page'] * 100;
} else {
$lowerlimit = 0;
$upperlimit = 100;
}
} else {
$lowerlimit = 0;
$upperlimit = 100;
}
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;
} else {
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}and under it make this
 

//Check staffmessage
if ($CURUSER["class"] >= "5") {
$staffmessres= mysql_query("SELECT * FROM staffmessages WHERE answered=0");
if (mysql_num_rows($staffmessres)>0)
{
if ($unreadmail) print ("<br>");

print("<font color=#FF0000 size=3><B><center>Neue Team-Pm </font></b>[<a href=staffbox.php class=link2 target=_blank><font color=#FF0000>".mysql_num_rows($staffmessres)."</font></a>]</center>");

}
}
//Check staffmessage ende


if ($CURUSER["class"] >= "5") {

musst replace with you moderator group id

thats it have a nice day greets bolzen
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728