X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=register%2Ftraffic.php;h=e928f875abc9c9acb3f7182032fbdc4d80b2bdc2;hb=HEAD;hp=528a4bcb148949272a5955237aa66acf4187c222;hpb=92b54af1cedbf2a78b4499c61d012c4b9732e985;p=php-addressbook.git
diff --git a/register/traffic.php b/register/traffic.php
index 528a4bc..e928f87 100644
--- a/register/traffic.php
+++ b/register/traffic.php
@@ -1,202 +1,404 @@
- 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
-
-
-
-
-
-
- BasicLogin.com
-
-
-
-
-
-
-
- |
-
-
-
-//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 );
-
-?>
-
-
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+ BasicLogin.com
+
+ | |
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
| | |
+
+
+
+
+
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+//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 );
+
+
+
+?>
+
+
+
+
+