include"auth_check_header.php";
function nicetrim ($s) {
// limit the length of the given string to $MAX_LENGTH char
// If it is more, it keeps the first $MAX_LENGTH-3 characters
// and adds "..."
// It counts HTML char such as á as 1 char.
//
$MAX_LENGTH = 80;
$str_to_count = html_entity_decode($s);
if (strlen($str_to_count) <= $MAX_LENGTH) {
return $s;
}
$s2 = substr($str_to_count, 0, $MAX_LENGTH - 3);
$s2 .= "...";
return htmlentities($s2);
}
?>
Basic Login - Download a free basic PHP Login Script
//View Tracking Code for reference
//Time & Date
$date = date ('m/d/y g:i a');
//IP Address
$ip = $_SERVER['REMOTE_ADDR'];
$type = "view";
$site = "basiclogin.com";
//Query Block Tracking: WHERE '$ip' != '69.254.101.167'
$query = "INSERT INTO `traffic` (`date`,`ip`,`link`,`notes`,`site`,`type`)
VALUES ( '$date','$ip','$link','$notes','$site','$type' WHERE '$ip' != '69.254.101.167')";
// save the info to the database
$results = mysqli_query( $query );
?>