Directory.php 

<?php include("global.inc.php");
echo "<HTML>";
echo "<HEAD>";
echo "<META http-equiv=Content-Type content=\"text/html;
charset=windows-1252\">";
echo "<META http-equiv=Keywords content=\"michael, jackson, mj, michael
jackson, king of pop, king, pop, bad, dangerous, music, r&b, off the
wall, history, thriller, scream,  invincible, gloria brown, rahul s
johari, album, songs, grammy, awards, you rock my world, cry, black or
white, world, earth, pop, mp3, guestbook, mailing list, directory,
guide, countries, sites, websites, list, site\" name=Keywords>";
echo "<META http-equiv=Description content=\"Michael Jackson Sites ::
The Definitive Michael Jackson Internet Directory\" name=Description>";
echo "<title>: MichaelJacksonSites.Com : The Definitive
Directory</title>";
echo "</head>";
echo "<body bgcolor=#314160 background=\"bg.jpg\" topmargin=0
marginheight=0 link=#ffdead vlink=#ffffff alink=#ffdead>";
echo "<center>";
echo "<table width=780 bgcolor=#5A657A>";
echo "<tr><td colspan=2 align=\"center\"><img src=\"top.gif\"
width=769></td></tr>";
echo "<tr>";
echo "<td bgcolor=#5A657A width=374><a href=\"index.html\"><img
src=\"logo.gif\" width=374 height=49 alt=\"goto : Home >
MichaelJacksonSites.Com\" border=0></a></td>";
echo "<td align=\"right\" valign=\"center\">";
echo "<!-- URL's used in the movie-->";
echo "<!-- text used in the movie-->";
echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swfla
sh.cab#version=6,0,0,0\" WIDTH=\"240\" HEIGHT=\"52\" id=\"Top_Nav\"
ALIGN=\"\"> <PARAM NAME=movie VALUE=\"Top_Nav.swf\"> <PARAM NAME=loop
VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality
VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor
VALUE=#5A657A> <EMBED src=\"Top_Nav.swf\" loop=false menu=false
quality=high wmode=transparent bgcolor=#5A657A  WIDTH=\"240\"
HEIGHT=\"52\" NAME=\"Top_Nav\" ALIGN=\"\"
TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\";></EMBED></OB
JECT>";
echo "</td>";
echo "</tr>";
echo "<tr>";
echo "<td colspan=2 align=\"center\">";
echo "<!-- URL's used in the movie-->";
echo "<!-- text used in the movie-->";
echo "<!--BeginSubmit Your SiteSuggest A LinkCommunitySearchNew
AdditionsPromoteBegin--><OBJECT
classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swfla
sh.cab#version=6,0,0,0\" WIDTH=\"769\" HEIGHT=\"40\" id=\"Menu\"
ALIGN=\"\"> <PARAM NAME=movie VALUE=\"Menu.swf\"> <PARAM NAME=loop
VALUE=false> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality
VALUE=high> <PARAM NAME=bgcolor VALUE=#314160> <EMBED src=\"Menu.swf\"
loop=false menu=false quality=high bgcolor=#314160  WIDTH=\"769\"
HEIGHT=\"40\" NAME=\"Menu\" ALIGN=\"\"
TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\";></EMBED></OB
JECT>";
echo "</td>";
echo "</tr>";
echo "<!--Content Table-->";
echo "<tr>";
echo "<td colspan=2 bgcolor=#314160 align=\"center\">";
echo "<table width=769>";
echo "<tr>";
echo "<td valign=\"top\">";
echo "<font face=\"verdana\" size=1 color=#ffd700>";

$admin = is_admin();
$return = numlinks_array(); // Build array of number of links in each
category
$numlinks = $return[0];
$numlinkstree = $return[1];
$thematrix="1";

if ((!$cat) && (!$go) && (!$action))
        $cat = 0;

if (isset($go))
{
        jump_to($go);
}


if ($action == "login")
{
        if ($username)
                login($username, $password);
}

if ($action == "loginform")
{
        echo html_header("$sitename - Links Login");
        echo ss_template('login_form.tmpl');
        echo html_footer();
        exit;
}

if ($action == "logout")
{
        logout();
}

if ($action == "rate")
{
        do_rating($id, $score);
}

if ($action == "build")
{
        build_numlinks();
        echo html_header('Build Complete');
        echo ss_template('links_built.tmpl');
        echo html_footer();
        exit;
}

if ($action == "addlink")
{
        add_link($link_name, $link_url, $link_desc, $link_webmaster,
$link_contact, $link_category, $link_cat, $link_recommended);
}

if ($action == "addcat")
{
        add_cat($lcat_name, $lcat_header, $lcat_cat, $lcat_ranking);
}

if ($action == "delcat")
{
        del_cat($id);
}

if ($action == "reclink")
{
        rec_link($cat);
        $thematrix="0";
}

if ($action == "dellink")
{
        delete_link($id);
}

if ($action == "editlink")
{
        edit_link($id);
}
if ($action == "validate")
{
        validate_list();
}

if ($action == "vallink")
{
        val_link($id);
}

if ($action == "search")
{
        show_searchpage();
        $thematrix="0";
}
if ($action == "reject_link")
{
        reject_link($id);
}

if ($action == "newlinks")
{
        new_links($days);
        $thematrix="0";
}
if ($action == "popular")
{
        popular_links();
        $thematrix="0";
}
if ($action == "rated")
{
        top_rated();
        $thematrix="0";
}
if ($action == "editcat")
{
        edit_cat($id);
        exit;
}

if ($search)
{
        search_results($search);
        $thematrix="0";
}

// if all else fails then show normal page

if($thematrix=="1") {

if (!ereg("^[0-9]+$", $cat))
        $cat = 0;
$breadcrumbshtml = do_breadcrumbs($cat);
$html = cats_table($cat);
echo html_header("$sitename - Links");

// Check if Category is 0 .. that is, The Category HOME, if so, call
different template and remove Suggest a Link & No Links message

if ($cat == 0) {
        $cat = '0';
echo ss_template('category0_header.tmpl', array('%breadcrumbs%' =>
$breadcrumbshtml, '%catid%' => $cat));
echo get_catheader($cat);
echo cats_table($cat);
$linkshtml = show_links($cat);
if ($linkshtml)
{
        echo $linkshtml;
} 
if ($admin)
{
        echo admin_options($cat);
}
echo html_footer();
}

// If Category is not 0.. call original template and show Suggest a Link
and No links message

else  {
echo ss_template('category_header.tmpl', array('%breadcrumbs%' =>
$breadcrumbshtml, '%catid%' => $cat));
echo get_catheader($cat);
echo cats_table($cat);
$linkshtml = show_links($cat);
if ($linkshtml)
{
        echo $linkshtml;
} 

else 
{
        echo ss_template('category_nolinks.tmpl');
}
if ($admin)
{
        echo admin_options($cat);
}
echo html_footer();
}

}

echo "</td>";
echo "<!--Content Table ENDS-->";
echo "<!-- RIGHT HAND TABLE -->";
echo "<td valign=\"top\" width=120 bgcolor=#5D6B84 align=\"center\">";
echo "<img src=\"dir.gif\" width=104 height=25 hspace=0 vspace=0><br>";
echo "<font face=\"verdana\" size=1 color=#ffffff>";
echo "Browse through our MJ Sites Directory<br>";
echo "<div align=\"right\"><b><a href=\"directory.php\"><font
color=#ffd700>... Click Here]|</font></a></b></div><br>";
echo "Browse through the Top Rated Sites .. by Votes<br>";
echo "<div align=\"right\"><b><a
href=\"directory.php?action=rated\"><font color=#ffd700>... Click
Here]|</font></a></b></div><br>";
echo "Browse through the Popular Sites .. by Hits<br>";
echo "<div align=\"right\"><b><a
href=\"directory.php?action=popular\"><font color=#ffd700>... Click
Here]|</font></a></b></div>";
echo "<hr width=100 color=#ffffff size=1>";
echo "<!-- URL's used in the movie-->";
echo "<!-- text used in the movie-->";
echo "<OBJECT classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"
codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swfla
sh.cab#version=6,0,0,0\" WIDTH=\"100\" HEIGHT=\"95\" id=\"Banner\"
ALIGN=\"\"> <PARAM NAME=movie VALUE=\"Banner.swf\"> <PARAM NAME=quality
VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor
VALUE=#5D6B84> <EMBED src=\"Banner.swf\" quality=high wmode=transparent
bgcolor=#5D6B84  WIDTH=\"100\" HEIGHT=\"95\" NAME=\"Banner\" ALIGN=\"\"
TYPE=\"application/x-shockwave-flash\"
PLUGINSPAGE=\"http://www.macromedia.com/go/getflashplayer\";></EMBED></OB
JECT>";
echo "</td>";
echo "<!-- RIGHT HAND TABLE -->";
echo "</tr>";
echo "</table>";
echo "</td>";
echo "</tr>";
echo "<!--END Content Table-->";
echo "<tr>";
echo "<td colspan=3 align=\"center\">";
echo "<!--Mini Table-->";
echo "<table width=100% border=1 bordercolorlight=#5A657A>";
echo "<tr>";
echo "<td width=248><img src=\"t_fs.gif\" width=248 hieght=18></td>";
echo "<td width=248><img src=\"t_tell.gif\" width=248 hieght=18></td>";
echo "<td width=248><img src=\"t_credits.gif\" width=248 hieght=18
align=\"right\"></td>";
echo "</tr>";
echo "<tr>";
echo "<td width=248 bgcolor=#314160><br>";
echo "<font face=\"verdana\" size=1 color=#ffffff><b>";
echo "<img align=\"left\" src=\"demo.gif\" hspace=6> Some really cool
site can go here weekly or something like that as a Featured Site!";
echo "<br><br>";
echo "</td>";
echo "<td width=248 bgcolor=#314160 align=\"center\">";
echo "<form action=\"tellafriend.php\" method=\"post\"
action\"_blank\"><br>";
echo "<font face=\"verdana\" size=1 color=#ffffff><b>";
echo "Invite your friend to our site.. <br><br>";
echo "<input type=\"text\" size=30 name=\"tellafriend\"
style=\"height=18;font-family:verdana;font-color:#ffffff;font-weight:bol
d;font-size=9;background:#ffd700\">";
echo "<input type=\"submit\" value=\"Mail\"
style=\"height=18;font-family:verdana;font-color:#ffffff;font-weight:bol
d;font-size=9;background:#ffd700\"><br>";
echo "</form>";
echo "</td>";
echo "<td width=248 bgcolor=#314160>";
echo "<font face=\"verdana\" size=1 color=#ffffff><b>";
echo "<img align=\"left\" src=\"demo2.gif\" hspace=6> | Gloria Brown ]
<br> | Rahul Sitaram Johari ]</b> <br><br> Our logo & name goes here.";
echo "<br><br>";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<!--END Mini Table-->";
echo "<tr>";
echo "<td bgcolor=#314160 valign=\"top\"><font face=\"verdana\" size=1
color=#ffffff>&#169; Copyright 2003. OurBrandName. All Rights Reserved.
<br>Best view : 1024 X 768 | Flash 6 plugin reqd.";
echo "</td>";
echo "<td bgcolor=#314160 valign=\"top\" align=\"right\"><font
face=\"verdana\" size=1
color=#ffffff>MichaelJacksonSites.Com<sup>tm</sup> and
MichaelJacksonWebsites.Com<sup></sup> are Registered Trademarks of
OurBrandName.";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "<br><br><br><br><br><br><br><br><br><br><br><br><br><br>";
echo "</body>";
echo "</html>";
?>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to