Mr Chad |
04-18-2006 02:24 AM |
hmm lets see, I hacked the hell out of my hack :P
Quote:
require_once('****FULL PATH****/counter/counter.php');
$to = "email@yahoo.com";
$from = "person";
$subject = "Hits";
$message = " $pageviewstoday page views today!";
mail( $to, $subject, $message,"From: $from\r\nX-Priority: 1 (Highest)" ) or print "could not send mail";
|
Put that right after the <? (starting php line) of your file, and you will need to go through the files and add all the full paths instead of ./counter/
if you don't know your path then just upload this in the same directory
make a php file named 'path.php' and put this in it:
PHP Code:
<?php if ($_SERVER['PATH_TRANSLATED']) { $path = $_SERVER['PATH_TRANSLATED']; } else if ($_SERVER['SCRIPT_FILENAME']) { $path = $_SERVER['SCRIPT_FILENAME']; } else { echo 'We are sorry, but this script is unable to determine your forums path.'; exit; } echo substr($path, 0, (strlen($path) - 8)); ?>
run that and it will tell you it.
|