<?php
include "login.inc.php";
include "config.php";
include "myownusers.php";
////list page by users... OR ... list everypage by users
$code='<br><center><a class="big_title" href="browse.php">Visit MyOwnSpace Users!</a></center><br>';
$request=0;
reset($myown_user);
//si un nom de user est fourni après /
if(isset($_GET['user'])&&$request==0) //en plus le nom de user existe ou aété demùandé par redirection de index.php
{
$user=urldecode($_GET['user']);
$code.='<table align="center" border="0" cellpadding="2" cellspacing="4" width="550">
<tbody><tr><td colspan="2" class="title"><tr><td colspan="3" class="offer_title"><img src="images/small_arr.jpg" height="9" width="9">
View '.$user.'\'s Own Space '//.$log_users[$key]
.'</td></tr><tr>';
$code.="<td colspan=\"3\">
<embed src=\"classes/flash_mp3_player/mp3player.swf\"
width=\"450\" height=\"140\" allowfullscreen=\"true\"
flashvars=\"&height=140&width=450&displaywidth=120&overstretch=true&repeat=true&thumbsinplaylist=true&autostart=true&callback=myownmp3/statistics.php&linkfromdisplay=true&file=randomplaylistuser.php?user=".$user."\" /></center>
</td></tr><tr>";
while (list($key2,$val2) = each($myspace)) {
if($myspace[$key2]['owner']==$user&&$user!=""&&$myspace[$key2]['status']==1)
{
$request++;
$code.='<tr><td width="110">
<center><img src="'.$myspace[$key2]['image'].'" width="80" title="'.$myspace[$key2]['title'].'!">
<b><br><img src="images/red_arr.jpg" width="8" height="7">
<a class="small" href="'.$host.'/'.$key2.'">CHECK NOW!</a></b>
</center>
<br>
<p class="plan_monthly_price" style="padding-left: 5px;"><span class="currency_sign">></span>'.$myspace[$key2]['artiste'].'</p>
<p class="plan_price_per_month">'.$myspace[$key2]['label'].'</p>
</td>
<td width="235" align="left">
<img src="images/bullet_white.gif" width="9" height="9"> '.$myspace[$key2]['def'].'<br>
</td></tr>';
$url=$host.'/'.$key2;
}
}
if ($request==1) header("location:".$url."");
//else $code.="##". $request."##";
}
//}
if($home==1&&$request==0) header("Location: home.php");
if($request==0)
{
$code.='<table align="center" border="0" cellpadding="2" cellspacing="4" width="550">
<tbody><tr><td colspan="2" class="title"><tr><td colspan="3" class="offer_title">';
rsort($myown_user,SORT_NUMERIC);
while (list($key,$val) = each($myown_user)) {
$user= $myown_user[$key]['login'];
$space=0;
reset($myspace);
while (list($key2,$val2) = each($myspace)) {
if($myspace[$key2]['owner']==$user){ //this user at at least one space
$space++;
//echo $myspace[$key2]['owner'];
}
}
if ($space>=1&&$user!="") {
$code.='<p class="plan_monthly_price" style="padding-left: 5px;">'.$user.'</p>
<p class="plan_price_per_month"> has '.$space.' own space';
if ($space>1) $code.='s';
if($myown_user[$key]['country']=="us") $flag='http://cordis.europa.eu/marketplace/fr/icons/us_flag.gif';
else $flag='http://www.google.com/images/flags/'.strtolower($myown_user[$key]['country']);
$code.='!</p><img src="'.$flag.'_flag.gif" width="25">
'//.$log_users[$key]
;
$code.='<br><br><img src="images/red_arr.jpg" height="7" width="8">
<a class="small" href="'.$host.'/'.$myown_user[$key]['login'].'">CHECK NOW!</a></b><br><hr align="left" width="500">';
}
}
$code.='</td></tr>';
}
$code.='</tbody></table>';
include("header.php");
echo $code;
include "footer.php";
?>