include ("db.inc.php"); ?>
$timestamp = date(time());
$today = date("m-d");
$ip = $REMOTE_ADDR;
$logouttid_real = date("H:i");
$logins=0;
include ("ban.inc.php");
if (isset($guestname)) {
$query = "select allow_stat,email,url,password from users where username='$guestname'";
$result = mysql_query($query) or die(mysql_error());
while ($row=mysql_fetch_array($result)) {
$allow_stat = chop($row[0]);
if (isset($allow_stat) AND $allow_stat == "1") {
$guestemail = chop($row[1]);
$guesturl = chop($row[2]);
$guestpass = chop($row[3]);
if ($guestpass == $guestpassword) { } else { $guestname = $guestname."(gæst)"; }
}
}
}
$m = 0;
$query2 = "select username,name,email,url,icq,city,birthday,text,last_online,allow_stat,imgid,kon,hojde,vaegt,ojenfarve,antal_born,ryger,stjernetegn,landsdel,soger,partnerstatus,jobtype,musikstil,interesser,selvbeskriv,vist,point,online,webcam,created from users where username='$user'";
$result2 = mysql_query($query2) or die(mysql_error());
while ($row=mysql_fetch_array($result2)) {
$m++;
$username = chop($row[0]);
$name = chop($row[1]);
$email = chop($row[2]);
$url = chop($row[3]);
$icq = chop($row[4]);
$city = chop($row[5]);
$birthday = chop($row[6]);
$text = chop($row[7]);
$last_online = chop($row[8]);
$allow_stat = chop($row[9]);
$imgid = chop($row[10]);
$kon = chop($row[11]);
$hojde = chop($row[12]);
$vaegt = chop($row[13]);
$ojenfarve = chop($row[14]);
$antal_born = chop($row[15]);
$ryger = chop($row[16]);
$stjernetegn = chop($row[17]);
$landsdel = chop($row[18]);
$soger = chop($row[19]);
$partnerstatus = chop($row[20]);
$jobtype = chop($row[21]);
$musikstil = chop($row[22]);
$interesser = chop($row[23]);
$selvbeskriv = chop($row[24]);
$vist = chop($row[25]);
$point = chop($row[26]);
$online = chop($row[27]);
$webcam = chop($row[28]);
$created = chop($row[29]);
$fodselsdag = substr("$birthday", 5, 10);
$text = strip_tags($text,"
");
}
$query = "select sum(logout - tid) time, count(username) logins from login where logout <> '' AND username = '$username' group by username";
$result = mysql_query($query) or die(mysql_error());
while($row=mysql_fetch_array($result)) {
$time = $row[0];
$logins = $row[1];
if ($logins == 0) {
$onlinetid = intval($time / $logins);
}
}
$vist++;
$query_update_vist = "UPDATE users set vist = '$vist' where username = '$user'";
$query_update_vist_result = mysql_query($query_update_vist) or die(mysql_error());
if (isset($id) AND $id <> "") {
$log_query = "SELECT username,status from active where id = '$id'";
$log_query_result = mysql_query($log_query) or die(mysql_error());
while ($row=mysql_fetch_array($log_query_result)) { $friend = $row[0]; $friend_status = $row[1]; }
$log_query = "SELECT username,password from users where username = '$friend'";
$log_query_result = mysql_query($log_query) or die(mysql_error());
while ($row=mysql_fetch_array($log_query_result)) { $guestname = $row[0]; $guestpassword = $row[1]; }
$log_query = "SELECT friend from friends where friend = '$friend' AND username = '$username'";
$log_query_result = mysql_query($log_query) or die(mysql_error());
while ($row=mysql_fetch_array($log_query_result)) { $friendcheck++; }
if ($username == $friend OR $friend_status >= 6) { $friendcheck = 1; }
}
if ($m == "0") {
include ("header.inc.php");
?>
">
" color="# echo "$header_font_color";?>">
Det valgte brugernavn eksisterer ikke!
Hvis du vil, kan du selv registrere det ">Her
Hvis du vil finde et lignende brugernavn kan du klikke ">Her
|
exit;
}
if ($allow_stat == "0") {
include ("header.inc.php");
?>
">
" color="# echo "$header_font_color";?>">
Brugeren har valgt ikke at have sin profil tilgængelig for nogen.
Hvis det er meningen at du skal se denne profil, kan echo "$user"; ?> gøre dig til ven
og åbne profilen for venner.
|
exit;
}
if ($allow_stat == 2 AND $friendcheck <> "1") {
include ("header.inc.php");
?>
">
" color="# echo "$header_font_color";?>">
Det er desværre kun mine venner der må se min profil!
Med venlig hilsen
echo "$username"; ?>
|
exit;
}
if ($last_online > 0) { $last_online = date("d/m-y H:i:s",$last_online); } else { $last_online = ""; }
if ($created > 0) { $created = date("d/m-y H:i:s",$created); } else { $created = ""; }
$username = stripslashes($username);
$name = stripslashes($name);
//Lidt datoleg
$datoidag_day = date("d",$timestamp);
$datoidag_month = date("m",$timestamp);
$datoidag_year = date("Y",$timestamp);
list($birth_year,$birth_month,$birth_day) = explode ('-', $birthday);
$alder = $datoidag_year - $birth_year;
if ($datoidag_month - $birth_month < 0) { $alder = $alder - 1; $adjusted = "yes"; }
if (($datoidag_day - $birth_day < 0) AND ($datoidag_month - $birth_month < 0) AND ($adjusted <> "yes")) { $alder = $alder - 1; }
if ($alder > 90) { $alder = ""; }
?>
Vis profil for echo "$username"; ?>
if (file_exists("userbackground/$imgid.gif")) { $ext = "gif"; }
if (file_exists("userbackground/$imgid.jpg")) { $ext = "jpg"; }
?>
" bgproperties="fixed">
include ("header.inc.php"); ?>
">
" color="# echo "$header_font_color";?>">
if (isset($fodselsdag) AND $today == $fodselsdag) { echo " "; }
?>
//if (file_exists("userpics/$imgid.jpg")) {
// echo "";
// echo " ";
// echo " | ";
// }
if (isset($url)) { $url = str_replace("http://", "",$url); $url = "$url"; }
if (isset($email)) { $email = "$email"; }
$text = str_replace("\n"," ",$text);
$selvbeskriv = str_replace("\n"," ",$selvbeskriv);
$online = format_seconds($online);
$onlinetid = format_snit($onlinetid);
?>
Chatnavn: | echo "$username"; ?> |
if (isset($name) AND $name <> "") { ?>
Navn: | echo "$name"; ?> |
} ?>
if (isset($email) AND $email <> "") { ?>
Email: | echo "$email"; ?> |
} ?>
if (isset($url) AND $url <> "") { ?>
Hjemmeside: | echo "$url"; ?> |
} ?>
if (isset($icq) AND $icq <> "") { ?>
ICQ: | echo "$icq"; ?> |
} ?>
if (isset($city) AND $city <> "") { ?>
By: | echo "$city"; ?> |
} ?>
if (isset($alder) AND $alder <> "") { ?>
Alder: | echo "$alder"; ?> år. |
} ?>
if (isset($kon) AND $kon <> "") { ?>
Køn: | echo "$kon"; ?> |
} ?>
if (isset($hojde) AND $hojde <> "") { ?>
Højde: | echo "$hojde"; ?> |
} ?>
if (isset($vaegt) AND $vaegt <> "") { ?>
Vægt: | echo "$vaegt"; ?> |
} ?>
if (isset($ojenfarve) AND $ojenfarve <> "") { ?>
Øjenfarve: | echo "$ojenfarve"; ?> |
} ?>
if (isset($antal_born) AND $antal_born <> "") { ?>
Antal Børn: | echo "$antal_born"; ?> |
} ?>
|
if (isset($ryger) AND $ryger <> "") { ?>
Ryger: | echo "$ryger"; ?> |
} ?>
if (isset($stjernetegn) AND $stjernetegn <> "") { ?>
Stjernetegn: | echo "$stjernetegn"; ?> |
} ?>
if (isset($landsdel) AND $landsdel <> "") { ?>
Landsdel: | echo "$landsdel"; ?> |
} ?>
if (isset($soger) AND $soger <> "") { ?>
Søger: | echo "$soger"; ?> |
} ?>
if (isset($partnerstatus) AND $partnerstatus <> "") { ?>
Partnerstatus: | echo "$partnerstatus"; ?> |
} ?>
if (isset($jobtype) AND $jobtype <> "") { ?>
Jobtype: | echo "$jobtype"; ?> |
} ?>
if (isset($musikstil) AND $musikstil <> "") { ?>
Musikstil: | echo "$musikstil"; ?> |
} ?>
if (isset($interesser) AND $interesser <> "") { ?>
Interesser: | echo "$interesser"; ?> |
} ?>
Oprettet:
| echo "$created"; ?>
|
Sidst Online:
| echo "$last_online"; ?>
|
Point:
| echo "$point"; ?>
|
Onlinetid:
| echo "$online"; ?>
|
if (isset($onlinetid) AND $onlinetid > 0) { ?>
Gns. Onlinetid:
| echo "$onlinetid"; ?>
|
} ?>
Profilen er vist:
| echo "$vist"; ?> gange
|
if (isset($webcam) AND $webcam <> "") { echo " | Brugeren har webcam | "; } ?>
|
if ((isset($text) AND $text <> "") OR (isset($selvbeskriv) AND $selvbeskriv <> "")) { ?>
Fritekst: | echo "$text"; ?>
echo "$selvbeskriv"; ?> |
} ?>
if (file_exists("userpics/$imgid.jpg")) { echo "
Fotoalbum"; }
?>
if (file_exists("userpics/$imgid.jpg")) { echo " "; }
?>
|
if (file_exists("userpics/$imgid-2.jpg")) { echo " "; }
?>
|
if (file_exists("userpics/$imgid-3.jpg")) { echo " "; }
?>
|
if (file_exists("userpics/$imgid-4.jpg")) { echo " "; }
?>
|
if (file_exists("userpics/$imgid-5.jpg")) { echo " "; }
?>
|
if (file_exists("userpics/$imgid-6.jpg")) { echo " "; }
?>
|
|
include ("footer.inc.php"); ?>