2012-06-03, 10:56 PM
(2012-06-03, 10:53 PM)pavemen Wrote: [ -> ]you can get that version from http://www.mybbsecurity.net/topic-stop-f...m-ip-check
Note that works differently to this plugin, and is less efficent in many ways.
(2012-06-03, 10:53 PM)pavemen Wrote: [ -> ]you can get that version from http://www.mybbsecurity.net/topic-stop-f...m-ip-check
(2012-06-03, 10:00 PM)anori Wrote: [ -> ]Is there any way to change the code so that everything is echo'ed ? meaning you can just grab the page and view it instead of having to go into the cpanel to view it?
I saw the code lines where you create it etc. but could those simply be changed to:"
And the removal of the die() function ofcourse.echo " (normal code here) "; ?
The last small thing i would like to do is only make this viewable to the admin and nobobdy else.
Or how would you go about doing this.
<?php
define('IN_MYBB', 1);
require "./global.php";
$logInfo = file_get_contents('sfs_log.php');
$previous = array('Time:','/ Username:','/ Email:','/ IP:');
$replacements = array('</tr></td><tr><td>','</td><td>','</td><td>','</td><td>');
if ( ($mybb->user['usergroup'] == "X") or ($mybb->user['usergroup'] == "X") or ($mybb->user['usergroup'] == "X") )
{
$newString = str_replace($previous, $replacements, $logInfo);
echo "<table border='1' cellpadding='5'><tr><th>Time :</th><th>Username :</th><th>E-Mail :</th><th>IP-adress :</th></tr>";
echo $newString;
echo "</table>";
}
else
{
echo "<strong><center>Im sorry to inform you but you have no rights to view this page <br /> If this is incorrect please contact the forum administrator</strong></center>";
}
?>
http://www.stopforumspam.com/forum/
require "./forum/global.php";
$logInfo = file_get_contents('./forum/sfs_log.php');
date_default_timezone_set('Europe/Amsterdam');
List can be found here: http://php.net/manual/en/timezones.phpif ( ($mybb->user['usergroup'] == "4") or ($mybb->user['usergroup'] == "3") or ($mybb->user['usergroup'] == "6") )
You can allow as many group or as little amount of groups as you wish (simply remove/add them using [or ($mybb->user['usergroup'] == "X")] where x is the group id number)<?php
define('IN_MYBB', 1);
require "./forum/global.php";
date_default_timezone_set('Europe/Amsterdam');
$logInfo = file_get_contents('./forum/sfs_log.php');
$previous = array('Mon,','Tue,','Wed,','Thu,','Fri,','Sat,','Sun,','/ Username:','/ Email:','/ IP:');
$replacements = array('</tr></td><tr><td>','</tr></td><tr><td>','</tr></td><tr><td>','</tr></td><tr><td>','</tr></td><tr><td>','</tr></td><tr><td>','</tr></td><tr><td>','</td><td>','</td><td>','</td><td>');
$cMonth = 0;
$aMonth = 0;
$cDate = date('M Y');
$lCheck = explode('Time:',$logInfo);
if ( ($mybb->user['usergroup'] == "4") or ($mybb->user['usergroup'] == "3") or ($mybb->user['usergroup'] == "6") )
{
echo "<table border='1' cellpadding='5'><tr><th>Time :</th><th>Username :</th><th>E-Mail :</th><th>IP-adress :</th></tr>";
foreach ($lCheck as $cString) {
if (strpos($cString, $cDate) !== false) {
$newString = str_replace($previous, $replacements, $cString);
echo $newString;
$cMonth++;
}
else {
$aMonth++;
}
}
echo "</table>";
$counter = $cMonth+$aMonth;
if($counter !== 0){
echo '<br />Total amount of spam detected: '.$counter.'<br />';
echo 'Total amount of spam this month is: '.$cMonth.'<br />';
echo 'Total amount of spam previous months/years is: '.$aMonth.'<br />';
}else{
echo 'No spam detected';
}
}
else
{
echo "<strong><center>Im sorry to inform you but you have no rights to view this page <br /> If this is incorrect please contact the forum administrator</strong></center>";
}
?>
(2012-09-09, 08:08 AM)lexy Wrote: [ -> ]I notice to lots of spamers registered on my board last week,seems this plugin needs BIG update or replace it with another ones,good thing for that its this http://peoplesign.com/main/officialDemo.html Phpbb3 use this also SMF and Vbulletin,but no one wants to develop it for Mybb,only need to ask and contact Dave from people sign to give you test version and develop it for Mybb http://peoplesign.com/main/getPeoplesign.html