include_once "func/vars.php";
include_once "func/functions.php";
$i = $_GET['i'];
if (!(isset($i)) && (isUser())) {
$i = $_SESSION['user'];
}
if (!isset($i)) {
$i = $_GET['get_user'];
}
$_SESSION['showbio'] = $i;
$update_limit = $_ENV['time'] - 6*30*24*60*60;
$r = ips_query("SELECT * FROM skaters WHERE id = '". $i ."' AND update_time > '$update_limit';");
$page = "showbio";
if (mysqli_num_rows($r) == 0) {
$r = ips_query("SELECT * FROM removed WHERE user_id = '". $i ."';");
if (mysqli_num_rows($r) > 0) {
$bio = mysqli_fetch_object($r);
$title_extra = "Biography Removed";
$pageDescription = "I have removed my biography from Ice Partner Search.";
include "inc/header.php";
?>
This skater has removed his/her biography.
} else {
$r = ips_query("SELECT * FROM skaters WHERE id = '". $i ."' AND update_time <= '$update_limit';");
if (mysqli_num_rows($r) > 0) {
$bio = mysqli_fetch_object($r);
$title_extra = $bio->fname ." ". $bio->lname;
$pageDescription = $bio->fname ." ". $bio->lname ." hasn't updated his/her biography in at least 6 months, so his/her biography will not be displayed.";
include "inc/header.php";
?> hasn't updated his/her biography in at least 6 months, so his/her biography will not be displayed.
} else {
$title_extra = "Not Found";
$pageDescription = "The skater you are looking for could not be found.";
include "inc/header.php";
?>The skater you are looking for could not be found.
}
}
} else {
$bio = mysqli_fetch_object($r);
$title_extra = $bio->fname ." ". $bio->lname;
$pageDescription = $bio->gender ." from ". $bio->loc_citystate .", ". $bio->loc_country;
if ($bio->goals != "") {
$pageDescription .= ": ". str_replace("
", "", $bio->goals);
}
$pageKeywords = $bio->fname ." ". $bio->lname .", figure skater, ". $bio->loc_citystate .", ". $bio->loc_country;
include "inc/header.php";
if ($bio->visibility == "private") {
usersOnlyBio();
}
// add to bio views
ips_query("INSERT INTO bio_views (time, userID, viewer_id, viewer_ip, date) VALUES ('". $_ENV['time'] ."', '". $i ."', '". $_SESSION['user'] ."', '". $_SERVER['REMOTE_ADDR'] ."', '". $_ENV['date'] ." ". $_ENV['date_time'] ."');");
?>
$videos = getVideoHashArray($i);
if (count($videos) > 0) {
?>
if (count($videos) > 1) { ?>
} ?>
if (count($videos) > 1) { ?>
1 /