$link) {
if (isset($_GET['host']) && strpos($link['url'], $_GET['host']) !== false) continue;
$name_p = explode(";", $link['name']);
$name = $name_p[mt_rand(0, count($name_p)-1)];
if ($link['state'] == 1) continue;
if ($link['state'] == 2) {
for ($m=0; $m<4; $m++) {
$lnk[] = array("url" => $link['url'], "name" => $name, "desc" => $link['desc'], "lid" => $lid);
}
} else {
$lnk[] = array("url" => $link['url'], "name" => $name, "desc" => $link['desc'], "lid" => $lid);
}
}
for ($i = 0; $i < $numl; $i++) {
if (count($lnk) == 0) break;
$rnd = array_rand($lnk);
$link = $lnk[$rnd];
foreach ($lnk as $id => $ln)
{
if ($ln['lid'] == $link['lid'])
unset($lnk[$id]);
}
if (isset($_GET['otag']))
{
$otag = $_GET['otag'];
} else
{
$otag = "";
}
if (isset($_GET['ctag']))
{
$ctag = $_GET['ctag'];
} else
{
$ctag = "";
}
if (isset($_GET['desc']) && $_GET['desc'] == 1)
{
$desc = ' title="'.$link['name'].'"';
} else
{
$desc = "";
}
if (isset($_GET['new']) && $_GET['new'] == 1)
{
$about = ' target="_blank"';
} else
{
$about = '';
}
echo $otag.''.$link['name'].''.$ctag."\n";
}
}
?>
This entry was posted
on Tuesday, January 16th, 2007 at 10:50 am and is filed under Bay Area.
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
No Responses to “About”
No comments yet
Leave a Reply