View Single Post
  #1  
Old 5th May 2011, 07:37
smoky28's Avatar
smoky28 smoky28 is offline
Senior Member
 
Join Date: Aug 2010
Hungary
Posts: 82
Smile Shoutbox delete.
/admin/index.php?act=uzenofaltorles.php
add is mod staff pult usergrup Team leader
add include/plugins/shoutbox.php lines 162 add System user id 0 and VIP usergrup .Nice day.Click the image to open in full size.
PHP Code:
<tr>
        <
td>
            
'.($is_mod ? '<span id="adminarea" align="center">
<
a href="'.$BASEURL.'/admin/index.php?act=uzenofaltorles" title="Üzenőfaltörlés" target="_blank"><img src="'.$BASEURL.'/images/delete.gif" alt="" title="Üzenőfaltörlés"></a></center
PHP Code:
<?

require_once('../global.php');
gzip();
dbconn();
stdhead();
loggedinorreturn ();
maxsysop ();
define ('D_VERSION''0.7 by xam');



if(
$_GET['ja'] == 1){

sql_query("DELETE FROM shoutbox") or sqlerr(__FILE____LINE__);
write_log ('' '  <font color = darkred> Shouts emptied: </font> ' $CURUSER['username']);
sql_query("INSERT INTO shoutbox (userid, id, date, content) VALUES(73, 'RENDSZER', UNIX_TIMESTAMP(NOW() ), '[color=red][b]Shouts emptied: $CURUSER[username] [/b][/color]')");

echo 
"<table>Shoutbox delete!</table>";

}

else{

echo 
"<table>Are you sure you emptied the shoutbox? <a href='uzenofaltorles.php?ja=1'>Yes</a></table>";

}



stdfoot();







?>
Click the image to open in full size.
__________________
Sky-Tech Developer Team Hungary

Reply With Quote
The Following 4 Users Say Thank You to smoky28 For This Useful Post:
DARCK (28th May 2011), eckeO5 (17th January 2012), Nick (13th May 2011), Titya (6th May 2011)