Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/header.php
<html>
<head>
<title>MyOWNspace</title>
<meta name="Description" content="MYOWNSPACE is a Bastard version of Social Software similar to Myspace . MYOWNSPACE.FR is an underground community that lets you meet your OwnFriends 's friends.  ">
<meta name="keywords" content="friends networking sharing photos finding friends blogs journals blogging journaling bands music rate pics join groups forums classifieds online social networking" />
<meta name="abstract" content="Web Hosting Services, Domain Name Registration, High Quality, Inexpensive Plans, Low Cost, Affordable, Reliable Provider, Reseller Program, Complete Ecommerce Solutions, Best Customer Support, PHP, MySQL, Linux, CGI, Perl, LAMP">
<meta name="Author" content="MyOWNspace.COM - Web Hosting, Domain Name Registration, Inexpensive, Low Cost, Affordable, Reliable Provider, Reseller Program, PHP, MySQL, Linux, Ecommerce">
<meta name="Creator" content="MY OWN HOSTING SOLUTIONS">
<meta name="Copyright" content="Nopyright 2006 - 2007 MYOWNfuckinSPACE HOSTING SOLUTIONS. no right reserved.">
<meta name="Publisher" content="MYOWNfuckinSPACE HOSTING SOLUTIONS">
<meta name="Owner" content="MYOWNfuckinSPACE">
<meta name="Distribution" content="Global">
<meta name="Revisit" content="2 days">
<meta name="Language" content="EN">
<meta name="Robots" content="all">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<link rel="stylesheet" href="classes/bettertip/jquery.bettertip.css" type="text/css" />
<script type="text/javascript" src="classes/jquery/jquery-1.1.4.js"></script>
<script type="text/javascript" src="classes/bettertip/jquery.bettertip.js"></script>

<link rel="stylesheet" href="classes/js_color_picker/js_color_picker_v2.css" media="screen">
<script type="text/javascript" src="classes/js_color_picker/color_functions.js"></script>		
<script type="text/javascript" src="classes/js_color_picker/js_color_picker_v2.js"></script>
<link rel="STYLESHEET" type="text/css" href="images/styles.css">
<script type="text/javascript">
<!--
if (self != top) {
top.location = self.location;
}
// -->
</script>
<script language="JavaScript" type="text/JavaScript" src="images/scripts_MM.js"></script>
<script type="text/javascript" src="http://www.greatfirewallofchina.org/banner/gfoc_notavailable_banner.js"></script>
<script type="text/javascript">
    var GB_ROOT_DIR = "http://myownspace.fr/classes/greybox/";
</script>
<script type="text/javascript" src="classes/greybox/AJS.js"></script>
<script type="text/javascript" src="classes/greybox/AJS_fx.js"></script>
<script type="text/javascript" src="classes/greybox/gb_scripts.js"></script>
<link href="classes/greybox/gb_styles.css" rel="stylesheet" type="text/css" />

</head>

<body bgcolor="#FFFFFF" marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
 <table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--
    <tr>
    <td background="images/top_logo.jpg" width="1000" height="87"><a href="index.html"><img src="images/spacer.gif" width="1000" height="87" border="0"></a></td>
    <td background="images/top_bgr.jpg"><img src="images/spacer.gif" width="1" height="87"></td>
    <td background="images/top_bgr.jpg" width="100%" ><img src="images/spacer.gif" width="1" height="87"></td>
    </tr>
-->
<?
include "myownrecommend.php";
$i=rand(1,count($myownrecommend));
$url=$myownrecommend[$i]['url'];
$image=$myownrecommend[$i]['image'];
$titre=$myownrecommend[$i]['titre'];
include "myownnews/config.php";


?>
  <table width="100%" height="80" cellspacing="0" cellpadding="0" class="cp_logo">
        <tr>
          <td width="1000" class="cp_logo1" colspan="3"><img src="images/spacer.gif" width="1" height="80"></td>

        </tr>
  <tr valign="middle">
    <td colspan="3">
    <table width="100%" height="22" cellspacing="0" cellpadding="0" class="top_nav_menu">
        <tr>
          <td width="60"><a href="home.php" class="menu2">Home</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
    <!--  <td width="90"><a href="free_web_hosting.php" class="menu2">Free Hosting</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>-->

          <td width="90"><a href="browse.php" class="menu2">Browse</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="60"><a href="search.php" class="menu2">Search</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="60"><a href="invite.php" class="menu2">Invite</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>                    
          <td width="95"><a href="signup.php" class="menu2">Sign up NOW</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="60"><a href="charts.php" class="menu2">Charts</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="105"><a href="members.php" class="menu2">Members Zone</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>

          <td width="50"><a href="news.php" class="menu2">News</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="55"><a href="web_hosting_faq.php" class="menu2">FAQ's</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="60"><a href="terms_and_conditions.php" class="menu2">Terms</a></td>

          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="70"><a href="partners.php" class="menu2">Partners</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="70"><a href="about_us.php" class="menu2">About us</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>
          <td width="70"><a href="contacts.php" class="menu2">Contacts</a></td>
          <td width="2"><div class="top_nav_menu_pipe"></div></td>

          <td>&nbsp;</td>
        </tr>
        <tr>
          <td colspan="25" class="top_nav_menu_bottom"></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- Start Active content -->

<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
  <tr valign="top">
    <td height="100%" width="223">
        <table width="223" height="100%" border="0" cellspacing="0" cellpadding="0">
      <!--<tr>
        <td background="images/cent_news_bgr.jpg" height="22" class="top_nav_menu">
          <div class="title">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">&nbsp;Hosting Members Login</div>
        </td>
      </tr>
      <tr>
        <td colspan="25" class="top_nav_menu_bottom"></td>
      </tr>-->
      <form name="login" method="post" action="login.inc.php">
	<input type=hidden name=auth value=login>
	<input type=hidden name=refurl value=".$QUERY_STRING.">
      <tr background="images/gray_bgr.jpg">
        <td background="images/gray_bgr.jpg" width="223"><br>
          <table width="100%" border="0" cellspacing="2" cellpadding="2" class="login_form">

            <tr>
              <td align="right"><b>Username:</b></td>
              <td><input type="text" name="user"></td>
            </tr>
            <tr>
              <td align="right"><b>Password:</b></td>
              <td><input type="password" name="pass"><input type="hidden" name="login" value="1"></td>
            </tr>

            <tr>
              <td colspan="2" align="center"><a href="mylostpassword.php" class="login_form">Lost password?</a>
              &nbsp;&nbsp; <input type="submit" name="Login" value="Login Now" class="inputbox"></td>
            </tr>
          </table>
          <br>
        </td>
      </tr>

      </form>
      <tr>
        <td height="22" class="top_nav_menu"><div align="left">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">&nbsp;&nbsp;<a class="menu2" style="text-decoration: none">We recommend!</a></div></td>
      </tr>
      <tr>
        <td class="top_nav_menu_bottom"></td>
      </tr>
      

<!-- We Recommend -->      
      <tr background="images/gray_bgr.jpg">

        <td background="images/gray_bgr.jpg" class="news_text_small">
        <a href="<? echo $url;?>" target="_blank" title="<? echo $titre;?>"><img src="<? echo $image;?>" width="195"  border="0" style="padding-bottom:5px;"></a>
        </td>
      </tr>
  
<!-- WHOS ONLINE -->
 <?
///test user online
$filename = 'useronline.php';
$online=array();
if ($handle= @fopen($filename, "r")) {
   while (!feof($handle)) {
      $buffer = fgets($handle, 4096);
      $parts = explode("-", $buffer);
      $user=$parts[0];
      $stamp=$parts[1];
$time=mktime();
if(($time-$stamp)<=1800) {$online[]=$user;}
   }
fclose($handle);
$nb=count($online);
}
        
 ?> 

      <tr>
        <td height="22" class="top_nav_menu"><div align="left">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">&nbsp;&nbsp;<a class="menu2" style="text-decoration: none"><? echo $nb; ?> Member<? if($nb>1) echo "s";?> online!</a></div></td>
      </tr>
    
      </tr>
      <tr background="images/gray_bgr.jpg">
        <td background="images/gray_bgr.jpg" class="news_text_small">
       <? for($i=0;$i<=count($online);$i++){
       $user= $online[$i];
       echo '<span class="page"><b><a class="page" style="text-decoration: none" href="/'.$user.'">'.$user.'</a></b><br>';
       }
       ?>
        </td>  
      </tr>      
 <!-- MyOWNnews -->      
      <tr>
        <td height="22" class="top_nav_menu"><div align="left">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">&nbsp;&nbsp;<a href="news.html" class="menu2" style="text-decoration: none">News and Events</a></div></td>
      </tr>
      <tr>

        <td class="top_nav_menu_bottom"></td>
      </tr>
      <tr background="images/gray_bgr.jpg">
        <td background="images/gray_bgr.jpg" class="news_text_small">
  
         


<?

$max=5;
$n=count($myownnews);
$result='';
for($i=$n;$i>=($n-$max);$i--){
$result.= '<font color="#ff0000"><b>'.$date=$myownnews[$i][date].'</b></font><br>
        <a href="news.php#'.$i.'" ><strong>'
        .$myownnews[$i][titre].
        '</strong></a><br><span class="page">';
        $result.= 'posted by <b>'.$myownnews[$i][author].'</b> <br>
         
              <hr noshade size="1" width="98%" align="left">';
}

echo $result;
    

?> 



          <br>
        </td>

      </tr>
      <tr>
        <td height="22" class="top_nav_menu">
          <div align="left">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">&nbsp;&nbsp;<a href="testimonials.html" class="menu2" style="text-decoration: none">Testimonials</a></div>
        </td>
      </tr>
      <tr>
        <td colspan="25" class="top_nav_menu_bottom"></td>

      </tr>
      <tr background="images/gray_bgr.jpg">
        <td background="images/gray_bgr.jpg" class="testimonials_text_small">
          <br>
          Hi,<br>
          Just a short note. My compliments about the quality and speed of getting online with my first own webpage.<br>
          <br>
          Keep up the formidable work.<br>

          Regards,<br>
          Robert Janssen<br>
          <br>
          <hr noshade size="1" width="98%" align="left">
          <br>
          I just want to thank you all for this great hosting :) I will recomend you to all i know...<br>
          Once more thank you for this great service!<br>

          <br>
          Yours fan,<br>
          Frank Carter
<br><br>

        </td>
      </tr>
       <tr>
        <td height="22" class="top_nav_menu">

          <div align="left">&nbsp;&nbsp;&nbsp;<img src="images/red_arr.jpg" width="8" height="7">
          &nbsp;&nbsp;<a href="testimonials.html" class="menu2" style="text-decoration: none">We recommend!</a></div>
        </td>
      </tr>
      <tr>
        <td colspan="25" class="top_nav_menu_bottom"></td>
      </tr>
      <tr background="images/gray_bgr.jpg">

        <td background="images/gray_bgr.jpg" class="testimonials_text_small">
          <br><img src="images/small_arr.jpg" width="9" height="9">
          
          <font color="red"><b>NoHost.NoWeb.org</b></font><span style="TEXT-DECORATION: none;"> - Des bAtisseurs au service du cha0s.</span>
          <br><a href="http://NoHost.NoWeb.org/" class="news_text_small" target="_blank" title="NOHOST">visit website</a><br><br>

          <img src="images/small_arr.jpg" width="9" height="9">

          <font color="#FF0000"><b>FreeWebspace.net</b></font> - The largest searchable guide to free webhosting.
          <br><a href="http://www.freewebspace.net/" class="small" target="_blank">visit website</a>

        </td>
      </tr>
      
      <tr >
        <td valign=top background="images/gray_bgr.jpg" class="testimonials_text_small"><br><br>
        <a href="http://www2.clustrmaps.com/counter/maps.php?url=http://myownspace.fr" target="_blank" id="clustrMapsLink">
        <img src="http://www2.clustrmaps.com/counter/index2.php?url=http://myownspace.fr"/></a>
        </td>
      </tr>



 <tr >
        <td valign=top background="images/gray_bgr.jpg" class="testimonials_text_small"><br>      
<!--************CODE GEOCOUNTER************-->
<script type="text/javascript" src="http://geoloc6.geovisite.com:82/private/geocounter.js?compte=350292703703"></script>
<noscript>
<a href="http://www.geovisite.com/zoom.php?compte=350292703703"  target="_blank"><img src="http://geoloc6.geovisite.com:82/private/geocounter.php?compte=350292703703" border="0" alt="free counter"></a><br>
<a href="http://www.geovisite.com/en/">free counter</a>
</noscript>
<!--************END CODE GEOCOUNTER************-->
        </td>
      </tr>
      <tr background="images/gray_bgr.jpg">
        <td background="images/gray_bgr.jpg" height="100%"><div class="news"><br></div></td>
      </tr>
    </table>    </td>
    <td height="100%">
        <table border="0" cellspacing="0" cellpadding="0" class="text">
        <tr><td colspan="4" class="ads_top">
        <iframe name="my_ads_frame" width="728" height="90" frameborder="0" src="myownad/index.php?f=h" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no">
        </iframe>
        </td></tr>
        <tr>
                  <td valign="top" width="590">
            <a href="signup.php">
                <?php

/****
 * Titre : image aléatoire, script personnalisable 
 * Auteur : chapodepay 
 * Email : hide@address.com
 * Url : www.horslimite.net
 * Description : Fonction simple mais efficace d'affichage d'image aléatoire en quelque ligne mais avec plusieur sécurité pour le bon fonctionnement :
...
utiliser comme ceci : 
echo image_aleatoire();
ou
$var=image_aleatoire();
****/

/****
 * Titre : Image aleatoire 
 * Auteur : Cedric Fronteau 
 * Email : hide@address.com
 * Url : 
 * Description : Selectionne aleatoirement une image dans un repertoire.
Retourne une balise <IMG> prete a etre utilisee.
****/
function select_random_pic($dir,$neverthesame=1){

   /* mettre $neverthesame a 1 pour ne pas selectionner
    *   2 fois la meme image lors d'appels successifs,
    *   le mettre a 0 sinon.
    * La variable globale $pics_tab contient les noms des images deja envoyées
    * Parametre supplementaire :
    *      $pic_options : options de la balise <IMG> a inserer
    *                     comme un texte ALT ou une bordure par exemple.
    */
   
   global $pics_tab;
   
   if (func_num_args()>= 3)
       {
       $options = func_get_arg(2);
       }
   
   if (!preg_match("/\/$/",$dir))
      {
      $dir .= "/";
      }

   if (!$neverthesame || !isset($pics_tab[$dir]) || sizeof($pics_tab[$dir]) == 0)
      {
      $fp = @opendir($dir);
      if (!$fp)
      return "Repertoire illisible";
      $pics = array();
      while ($file = readdir($fp))
         {
         if (!@is_dir($file) && preg_match("/\.(bmp|jpg|jpe|jpeg|gif|png|wbmp)$/i",$file))
            {
            array_push($pics,"$dir$file");
            }
         }
      closedir($fp);
      if (sizeof($pics) == 0)
         return "Le repertoire \"$dir\"ne contient pas d'images aux formats supportes : GIF,JPEG,BMP,PNG,WBMP";
      srand((double)microtime()*1000000);
      shuffle($pics);
      $pics_tab[$dir] = $pics;
      }
   $pic_name = array_pop($pics_tab[$dir]);
   $size = GetImageSize($pic_name);
   $str = "<IMG src=\"" . $pic_name."\" ";
   if (isset($options))
      {
      $str .= $options . ">";
      }
   else
      {
      $str .= "border=0 ".$size[3].">";
      }
   return ($str);
}

$dir= "images/pub";

echo select_random_pic($dir);
?>
            
            </a><br>

            <div style="padding-left: 15px; padding-right: 5px">
            
            <!-- CONTENU DE LA PAGE -->
Return current item: MyOWNSpace