Bravo List
Register
Go Back   > Bravo List > Source Code > Active Trackers > Torrent Trader > Mods & Themes
Reply
  #1  
Old 17th December 2021, 14:21
BamBam0077 BamBam0077 is offline
Banned
 
Join Date: Jul 2013
P2P
Posts: 410
Default systembot script
Save As chatbot.php
PHP Code:
<?php

if($row[0] == '6' || '15'){

$query "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'System', 'if you would like to become a team member just send a pm to xo.', '".get_date_time()."', '36')";
        
SQL_Query_exec($query);
}

?>

Edit:
Username = System
MESSAGE = If you would like...
ID = 36


FIND:
shoutbox.php inside shall be something similar to this:

PHP Code:
//INSERT MESSAGE
if (!empty($_POST['message']) && $CURUSER) {    
    
$_POST['message'] = sqlesc($_POST['message']);
    
$query "SELECT COUNT(*) FROM shoutbox WHERE message=".$_POST['message']." AND user='".$CURUSER['username']."' AND UNIX_TIMESTAMP('".get_date_time()."')-UNIX_TIMESTAMP(date) < 30";
    
$result SQL_Query_exec($query);
    
$row mysqli_fetch_row($result);

    if (
$row[0] == '0') {

 
$query "INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, '".$CURUSER['username']."', ".$_POST['message'].", '".get_date_time()."', '".$CURUSER['id']."')";
        
SQL_Query_exec($query);

Stop dupe post for boysys
BEFORE LAST } ON PREVIOUS SCRIPT INSERT THIS MAYBE?
PHP Code:
if($row[0] < '6' || '15' ){

$query "INSERT IGNORE INSERT INTO shoutbox (msgid, user, message, date, userid) VALUES (NULL, 'SystemAlert', 'if you would like to become a team member just send me a pm.', '".get_date_time()."', '2')";
        
SQL_Query_exec($query);

Click the image to open in full size.
Click the image to open in full size.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +2. The time now is 12:13. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.