PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
sting
Involved
Involved


Joined: Sep 23, 2003
Posts: 460
Location: Somewhere out there...

PostPosted: Sat May 29, 2004 11:19 pm Reply with quote Back to top

Great script so far, looks really good - and I LOVE the admin functionality and flexibility that this offers.

One suggestion, just a request more than anything - could you put the release version in the Sentinel Block, so all that see it know what version its running?

-sting
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
Captain_Computer
Hangin' Around


Joined: May 30, 2004
Posts: 46

PostPosted: Sun May 30, 2004 7:24 am Reply with quote Back to top

Very nice job on this script. Has all the functionality of all the other scripts put together without the overhead.

I run a large computer modding site and I have created 3 'G_O_D' admins, each of us having certain responsibilities. The alert emails are sent to the Site Admin. I would like to have the ability to enter the emailto address as was in the hackattempt script.
View user's profile Send private message Visit poster's website
stephen2417
Worker
Worker


Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Sun May 30, 2004 8:13 am Reply with quote Back to top

Line 360 of the includes/sentinel.php May help

Code:
@mail($adminmail, $subject, $message,"From: $adminmail\r\nX-Mailer: "._AB_ABUSEBLOCKER."\r\n");


Mabye change it to..
Code:
@mail($adminmail, $subject, $message,"From: $adminmail,
Only registered users can see links on this board!
Get registered or login to the forums!
,
Only registered users can see links on this board!
Get registered or login to the forums!
\r\nX-Mailer: "._AB_ABUSEBLOCKER."\r\n");

It should work, i didnt test it tho. Wink
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun May 30, 2004 8:28 am Reply with quote Back to top

stephen2417 wrote:
Line 360 of the includes/sentinel.php May help

Code:
@mail($adminmail, $subject, $message,"From: $adminmail\r\nX-Mailer: "._AB_ABUSEBLOCKER."\r\n");


Mabye change it to..
Code:
@mail($adminmail, $subject, $message,"From: $adminmail,
Only registered users can see links on this board!
Get registered or login to the forums!
,
Only registered users can see links on this board!
Get registered or login to the forums!
\r\nX-Mailer: "._AB_ABUSEBLOCKER."\r\n");

It should work, i didnt test it tho. Wink
Give the man a cigar! Idea
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
stephen2417
Worker
Worker


Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Sun May 30, 2004 8:30 am Reply with quote Back to top

hehe well i also just realized that i read it wrong..

If you would like to change that all togehter check out line 315 Very Happy
View user's profile Send private message Visit poster's website
stephen2417
Worker
Worker


Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Sun May 30, 2004 9:13 am Reply with quote Back to top

sting wrote:
One suggestion, just a request more than anything - could you put the release version in the Sentinel Block, so all that see it know what version its running?


Also another suggestion, I see you have this running on your site raven. Mabye we could make the IP linked to a whois database..

EDIT just happened to look at the code and do see that you allow admins to see it. Why not users?
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun May 30, 2004 10:41 am Reply with quote Back to top

Me? I have it set to all visitors.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
stephen2417
Worker
Worker


Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Sun May 30, 2004 10:46 am Reply with quote Back to top

No no.. Look at the actual block code.. You will notice that when your an admin you get to click on the ip to get whois info. Why couldnt we make it for all users to see.
View user's profile Send private message Visit poster's website
stephen2417
Worker
Worker


Joined: Jan 18, 2004
Posts: 244
Location: Bristolville, OH

PostPosted: Sun May 30, 2004 10:49 am Reply with quote Back to top

Here like this...

Code:
<?php

if (eregi("block-Sentinel.php",$_SERVER['PHP_SELF'])) {
    Header("Location: ../index.php");
    die();
}
global $prefix, $db;
$content = "";
$result = $db->sql_query("SELECT remote_addr, reason FROM $prefix"._nsnst_ips." ORDER BY date DESC LIMIT 10");
while (list($ip_addr, $ip_reason) = $db->sql_fetchrow($result)) {
    $content .= "<b><big>&middot;</big></b>&nbsp;<a href=\"http://www.dnsstuff.com/tools/whois.ch?ip=$ip_addr\" target=\"_blank\">$ip_addr</a>\n";
  if($ip_reason == 0) {
    $ip_reason = _AB_REASON0A;
  } elseif($ip_reason == 1) {
    $ip_reason = _AB_REASON1A;
  } elseif($ip_reason == 2) {
    $ip_reason = _AB_REASON2A;
  } elseif($ip_reason == 3) {
    $ip_reason = _AB_REASON3A;
  } elseif($ip_reason == 4) {
    $ip_reason = _AB_REASON4A;
  } elseif($ip_reason == 5) {
    $ip_reason = _AB_REASON5A;
  }
  $content .= "&nbsp;-&nbsp;$ip_reason<br />\n";
}
  $content .= "<hr><center><a href=\"http://www.nukescripts.net\"><img src=\"images/sentinel/Sentinel_Small.png\" height=\"31\" width=\"88\" border=\"0\"></a></center>\n";

?>


I just took the copyright out for now so u get the general idea.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Sun May 30, 2004 10:56 am Reply with quote Back to top

Oh. Well, tradition has always reserved that for an admin, but I don't have any immediate issue with it. We'll let Bob, Chat, and GanjaUK chime in here since we are all collaborating on this now.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
BobMarion
Former Admin in Good Standing


Joined: Oct 30, 2002
Posts: 1043
Location: RedNeck Land (known as Kentucky)

PostPosted: Sun May 30, 2004 11:38 am Reply with quote Back to top

I coded it for admins only due to the traditional style of coding such things for admin. I have no problem with coding it for all to see Smile Means less code in the block Wink
View user's profile Send private message Send e-mail Visit poster's website
SmackDaddy
Involved
Involved


Joined: Jun 02, 2004
Posts: 268
Location: Englewood, OH

PostPosted: Wed Jun 02, 2004 6:59 am Reply with quote Back to top

Regarding adding additional emails to the alerts, I have confirmed one of Raven's suggestions as a working fix:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum