Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/graph.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="ZETTA HOSTING SOLUTIONS">
<meta name="Copyright" content="Copyright 2003 - 2006 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" type="text/css" href="images/styles.css">
</head><body>
<?
include ("config.php");
include ("login.inc.php");
$hypergraph = '<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE GraphXML SYSTEM "GraphXML.dtd">
<GraphXML xmlns:xlink="http://www.w3.org/1999/xlink">
<graph id="MyOWNfriendGraph">

';
if (isset($_GET['go'])) {$go=$_GET['go'];
$allfriends=array();
$i=$go;

$hypergraphedge='<edge target="'.$i.'" source="myownspace" />';
$hypergraph .= '
<node name="myownspace">';
$hypergraph .= '<label>MyOWNspace</label>';
$hypergraph .= '<dataref><ref xlink:href="http://myownspace.fr/myowngraph.php"/></dataref></node>
';
$friends="myownfriends/friends.".$i.".php";
include $friends;
foreach($myownfriend as $myownfriends)
{

$allfriends[].=$myownfriends;
$hypergraphedge .= '<edge target="'.$i.'" source="'.$myownfriends.'" />
';
$hypergraph .= '
<node name="'.$myownfriends.'">';
if($myspace[$myownfriends][artiste]!="") $hypergraph .= '<label>'.utf8_encode ($myspace[$myownfriends][artiste]).'</label>';
else $hypergraph .= '<label>'.$i.'</label>';
$hypergraph .= '<dataref><ref xlink:href="http://myownspace.fr/'.$myownfriends.'"/></dataref></node>
';
}

$hypergraph .= '
<node name="'.$i.'">';
if($myspace[$go][artiste]!="") $hypergraph .= '<label>'.utf8_encode ($myspace[$go][artiste]).'</label>';
else $hypergraph .= '<label>'.$i.'</label>';
$hypergraph .= '<dataref><ref xlink:href="http://myownspace.fr/'.$i.'"/></dataref></node>
';

$graphfile="myowngraph.xml";
$hypergraph .= $hypergraphedge."
</graph></GraphXML>";
writeTXT($graphfile,$hypergraph);
}
else {
$allfriends=array();
$i=0;

$hypergraphedge="";
foreach($myspace as $myownspace)
{
$i++;
$friends="myownfriends/friends.".$i.".php";
include $friends;
foreach($myownfriend as $myownfriends)
{

//if(array_search($myownfriends,$allfriends)===FALSE){
$allfriends[].=$myownfriends;
$hypergraphedge .= '<edge target="'.$i.'" source="'.$myownfriends.'" />
';
//}
}
}
//$allfriends=array_unique($allfriends);
//print_r($allfriends);
$i=0;
$max=100;

foreach($myspace as $myownspace)
{
$i++;

//if(in_array($i,$allfriends)){
$hypergraph .= '
<node name="'.$i.'">';
if($myownspace[artiste]!="") $hypergraph .= '<label>'.utf8_encode ($myownspace[artiste]).'</label>';
else $hypergraph .= '<label>'.$i.'</label>';
$hypergraph .= '<dataref><ref xlink:href="http://myownspace.fr/myowngraph.php?go='.$i.'"/></dataref></node>
';

//}
}

$graphfile="myowngraph.xml";
$hypergraph .= $hypergraphedge."
</graph></GraphXML>";
writeTXT($graphfile,$hypergraph);
}
if (isset($_GET['go'])) {
$go=$_GET['go'];
echo'<center><div class="big_offer_title"><img width=80 src="'.$myspace[$i][image].'">'.$myspace[$i][artiste].'</div></center>';
}
else {
$go=rand(1,count($myspace));
}
?>
<applet code="hypergraph.applications.hexplorer.HExplorerApplet.class" 
archive="classes/hyperapplet.jar" width="590" height="370"/>
<param name="file" value="myowngraph.xml"/>
<param name="properties" value="classes/sitemap.black.prop"/>
<param name="center" value="<? echo $go; ?>"/>
</applet>
</body>
</html>
Return current item: MyOWNSpace