Ejemplo n.º 1
0
function themeheader()
{
    global $slogan, $sitename, $banners;
    echo "<body bgcolor=\"#FFC53A\" text=\"#000000\" link=\"#035D8A\" vlink=\"#035D8A\">";
    echo "<br><center><table border=0 width=100% cellpadding=3 cellspacing=0><tr><td>\n\n";
    echo "<a href={$nuke_url}><img src=themes/Sunset/images/logo.gif Alt=\"" . _WELCOMETO . " {$sitename}\" border=0></a>\n";
    echo "</td>\n";
    if ($banners) {
        echo "<td>";
        include "banners.php";
        echo "</td>";
    }
    echo "<td align=right>\n";
    echo "<form action=modules.php?name=Search method=post><font size=2 color=000000>\n";
    echo "" . _SEARCH . " \n";
    echo "<input type=text name=query>\n";
    echo "</form>\n";
    echo "</td></tr></table>\n";
    echo "<br>\n";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr><td valign=top width=140>\n";
    blocks(left);
    echo "</td><td>&nbsp;</td><td valign=top width=100%>\n\n\n";
}
Ejemplo n.º 2
0
function themeheader()
{
    global $prefix, $db, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
    echo "<body bgcolor=\"{$bgcolor1}\">";
    ads(0);
    if (is_user($user)) {
        cookiedecode($user);
        $username = $cookie[1];
        $bienvenida = "Hello {$username}! [ <a href=\"modules.php?name=Your_Account&amp;op=logout\"><b>Logout</b></a> ]";
    } else {
        $bienvenida = "<a href=\"modules.php?name=Your_Account&amp;op=new_user\">Create an Account</a>";
    }
    $topics_list = "<select name=\"topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = $db->sql_query("select topicid, topictext from {$prefix}" . _topics . " order by topictext");
    while (list($topicid, $topics) = $toplist->fetch_row()) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        $topics_list .= "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    echo "<center><a href=\"index.php\"><img src=\"themes/Sand_Journey/images/LogoLeft.gif\" alt=\"Welcome to {$sitename}\" title=\"Welcome to {$sitename}\" border=\"0\"></a><br><br></center>" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" border=\"0\" align=\"center\" bgcolor=\"{$bgcolor1}\"><tr><td align=\"center\">" . "<form action=\"modules.php?name=Search\" method=\"post\">" . "<font class=\"content\"><b>Search</b> <input type=\"text\" size=\"15\" name=\"query\">&nbsp;&nbsp;<b>in</b>&nbsp;&nbsp;{$topics_list}</font>" . "</select>" . "</form>" . "</td></tr></table>" . "<br>" . "<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\">\n" . "<tr><td bgcolor=\"{$bgcolor2}\" align=\"left\" width=\"20%\">&nbsp;{$bienvenida}</td>" . "<td bgcolor=\"{$bgcolor2}\" align=\"center\" width=\"60%\"><a href=\"index.php\">Home</a> | <a href=\"modules.php?name=Submit_News\">Submit News</a> | <a href=\"modules.php?name=Your_Account\">Your Account</a> | <a href=\"modules.php?name=Content\">Content</a> | <a href=\"modules.php?name=Topics\">Topics</a> | <a href=\"modules.php?name=Top\">Top 10</a></td>\n" . "<td bgcolor=\"{$bgcolor2}\" align=\"right\" width=\"20%\">" . "<b><script type=\"text/javascript\">\n\n" . "<!--   // Array ofmonth Names\n" . "var monthNames = new Array( \"" . _JANUARY . "\",\"" . _FEBRUARY . "\",\"" . _MARCH . "\",\"" . _APRIL . "\",\"" . _MAY . "\",\"" . _JUNE . "\",\"" . _JULY . "\",\"" . _AUGUST . "\",\"" . _SEPTEMBER . "\",\"" . _OCTOBER . "\",\"" . _NOVEMBER . "\",\"" . _DECEMBER . "\");\n" . "var now = new Date();\n" . "thisYear = now.getYear();\n" . "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n" . "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n" . "// -->\n\n" . "</script></b>&nbsp;\n" . "</td></tr>\n" . "<tr><td valign=\"top\" width=\"100%\" colspan=3>\n";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor={$bgcolor1}>";
    blocks("left");
    echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}
Ejemplo n.º 3
0
function themeheader()
{
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#000000\" vlink=\"#000000\">" . "<br>";
    ads(0);
    echo "<br>" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"FFFFFF\">" . "<tr><td width=\"100%\">" . "<a href=\"index.php\"><img src=\"themes/Traditional/images/logo.gif\" alt=\"" . _WELCOMETO . " {$sitename}\" border=\"0\"></a>" . "</td><td align=\"right\">" . "<form action=\"modules.php?name=Search\" method=\"post\">" . "<input type=\"text\" name=\"query\" width=\"20\" size=\"15\" length=\"20\">" . "</td>" . "<td width=\"60\" align=\"left\"><input type=\"submit\" value=\"" . _SEARCH . "\"></td>" . "</tr></table></form>" . "<br>";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table border=\"0\" width=\"100%\" cellspacing=\"5\"><tr><td valign=\"top\">";
}
Ejemplo n.º 4
0
function themeheader()
{
    echo "<body bgcolor=\"ffffff\" text=\"000000\" link=\"0000ff\" vlink=\"0000ff\">" . "<br>";
    ads(0);
    echo "<br>" . "<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"ffffff\">" . "<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"ffffff\"><tr><td>" . "<a href=\"index.php\"><img src=\"themes/ExtraLite/images/logo.gif\" alt=\"Welcome to {$sitename}\" title=\"Welcome to {$sitename}\" border=\"0\"></a>" . "</td><td align=\"right\">" . "<form action=\"modules.php?name=Search\" method=\"post\">" . "<font class=\"content\">Search" . "<input type=\"text\" name=\"query\">" . "</font></form>" . "</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\" bgcolor=\"ffffff\">";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"ffffff\">";
    blocks("left");
    echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}
Ejemplo n.º 5
0
function themeheader()
{
    global $banners, $sitename;
    echo "<body bgcolor=\"#0E3259\" text=\"#000000\" link=\"0000ff\">" . "<br>";
    $ads = ads(0);
    echo "{$ads}";
    echo "<br>";
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\" align=\"center\">\n" . "<tr><td width=\"100%\">\n" . "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n" . "<tr><td width=\"100%\">\n" . "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"840\">\n" . "<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n" . "<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.gif\" alt=\"Welcome to {$sitename}!\" hspace=\"20\"></a></td><td align=\"right\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n" . "<tr><td width=\"100%\" bgcolor=\"#000000\" height=\"19\" valign=\"bottom\">\n" . "<a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/home.gif\" width=\"140\" height=\"18\"></a>" . "<a href=\"modules.php?name=Your_Account\"><img border=\"0\" src=\"themes/DeepBlue/images/account.gif\" width=\"140\" height=\"18\"></a>" . "<a href=\"modules.php?name=Downloads\"><img border=\"0\" src=\"themes/DeepBlue/images/downloads.gif\" width=\"140\" height=\"18\"></a>" . "<a href=\"modules.php?name=Submit_News\"><img border=\"0\" src=\"themes/DeepBlue/images/submit.gif\" width=\"140\" height=\"18\"></a>" . "<a href=\"modules.php?name=Topics\"><img border=\"0\" src=\"themes/DeepBlue/images/topics.gif\" width=\"140\" height=\"18\"></a>" . "<a href=\"modules.php?name=Top\"><img border=\"0\" src=\"themes/DeepBlue/images/top10.gif\" width=\"140\" height=\"18\"></a>" . "</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#d3e2ea\">\n" . "</td></tr></table>\n" . "</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#d3e2ea'>\n";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "</td></tr></table><table width=\"840\" cellpadding=\"0\" bgcolor=\"d3e2ea\" cellspacing=\"0\" border=\"0\">\n" . "<tr valign=\"top\">\n" . "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n" . "<td width=\"138\" bgcolor=\"d3e2ea\" valign=\"top\">\n";
    blocks("left");
    echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
Ejemplo n.º 6
0
function themeheader()
{
    global $slogan, $sitename, $banners;
    echo "<body bgcolor=FFFFFF text=000000 link=101070 vlink=101070>\n<br>";
    ads(0);
    echo "<br>\n<center>\n<table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>\n<a href={$nukeurl}><img src=themes/SlashOcean/images/logo.gif Alt=\"Welcome to {$sitename}\" border=0></a>\n</td><td align=right width=100%>\n\t<form action=modules.php?name=Search&amp;method=post>\n\t<font class=content><input type=text name=query width=20 size=20 length=20>\n\t</td>\n\t<td align=right>&nbsp;&nbsp;<input type=submit value=\"" . _SEARCH . "\"></td>\n\t</form>";
    echo "</td></tr></table><br>";
    echo "\n<table cellpadding=0 cellspacing=0 border=0 width=99% bgcolor=101070><tr><td>\n<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>\n<font class=content>{$slogan}</td></tr></table></td></tr></table>";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table width=99% align=center cellpadding=0 cellspacing=0 border=0><tr><td valign=top rowspan=15>";
    blocks("left");
    echo "</td><td>&nbsp;&nbsp;</td><td valign=top width=100%>";
}
Ejemplo n.º 7
0
function themeheader()
{
    global $slogan, $sitename;
    echo "<body bgcolor=DDDDDD text=222222 link=660000 vlink=222222>\n<br>";
    if ($banners) {
        include "banners.php";
    }
    echo "<br>\n<center>\n<table cellpadding=0 cellspacing=0 border=0 width=99% align=center><tr><td align=left>\n<a href={$nukeurl}><img src=themes/Slash/images/logo.gif border=0></a>\n</td><td align=right width=100%>\n    <form action=modules.php?name=Search&amp;method=post>\n    <font class=content><input type=text name=query width=20 size=20 length=20>\n    </td>\n    <td align=right>&nbsp;&nbsp;<input type=submit value=\"" . _SEARCH . "\"></td>\n    </form>";
    echo "</td></tr></table><br>";
    echo "\n<table cellpadding=0 cellspacing=1 border=0 width=99% bgcolor=660000><tr><td>\n<table cellpadding=5 cellspacing=1 border=0 width=100% bgcolor=FFFFFF><tr><td>\n<font class=content>{$slogan}</td></tr></table></td></tr></table>";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table width=99% align=center cellpadding=0 cellspacing=0 border=0><tr><td valign=top rowspan=5>";
    blocks(left);
    echo "</td><td>&nbsp;</td><td valign=top width=100%>";
}
Ejemplo n.º 8
0
function themeheader()
{
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "******";
    }
    echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\"><br>\n\n\n";
    if ($banners == 1) {
        include "banners.php";
    }
    $topics_list = "<select name=\"topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = $db->sql_query("select topicid, topictext from " . $prefix . "_topics order by topictext");
    while (list($topicid, $topics) = $db->sql_fetchrow($toplist)) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        $topics_list .= "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    if ($username == "Anonymous") {
        $theuser = "******"modules.php?name=Your_Account\">Create an account";
    } else {
        $theuser = "******";
    }
    $public_msg = public_message();
    $tmpl_file = "themes/3D-Fantasy/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/3D-Fantasy/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
}
Ejemplo n.º 9
0
function themeheader()
{
    global $user, $sitename;
    cookiedecode($user);
    $username = $cookie[1];
    if (empty($username)) {
        $username = "******";
    }
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n" . "<br>\n";
    ads(0);
    OpenTable();
    echo "<table border=\"0\"><tr><td rowspan=\"2\">" . "<a href=\"index.php\"><img src=\"themes/Kaput/images/logo.gif\" border=\"0\" alt=\"" . _WELCOMETO . " {$sitename}\" align=\"left\"></a></td>" . "<td align=right width=100%>" . "<form action=\"modules.php?name=Search\" method=\"post\">" . "<font class=\"content\" color=\"#000000\"><b>" . _SEARCH . " </b>" . "<input type=\"text\" name=\"query\" size=\"14\"></font></form>" . "</td></tr><tr>" . "<td align=\"right\" valign=\"bottom\" width=\"100%\">" . "<font class=\"content\"><b>" . "<A href=\"/\">Home</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Topics\">Topics</a>&nbsp;&middot;&nbsp" . "<A href=\"modules.php?name=Downloads\">Downloads</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Your_Account\">Your Account</a>" . "&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Forum\">Forums</a>&nbsp;&middot;&nbsp;<A href=\"modules.php?name=Top\">Top 10</a>" . "</b></font></td></tr></table>\n";
    CloseTable();
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table cellpadding=\"0\" cellspacing=\"0\" width=\"99%\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n" . "<tr><td bgcolor=\"#ffffff\" valign=\"top\">\n";
    blocks("left");
    echo "</td><td><img src=\"themes/NukeNews/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\" valign=top>\n";
}
Ejemplo n.º 10
0
function themeheader()
{
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $anonymous;
    cookiedecode($user);
    $username = $cookie[1];
    if (empty($username)) {
        $username = $anonymous;
    }
    echo "<body bgcolor=\"#505050\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">";
    ads(0);
    $topics_list = "<select name=\"new_topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = $db->sql_query("select topicid, topictext from " . $prefix . "_topics order by topictext");
    while (list($topicid, $topics) = $toplist->fetch_row()) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        $topics_list .= "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    if ($username == $anonymous) {
        $theuser = "******"modules.php?name=Your_Account&op=new_user\">Create an account";
    } else {
        $theuser = "******";
    }
    $public_msg = public_message();
    $tmpl_file = "themes/NukeNews/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
    blocks("left");
    $tmpl_file = "themes/NukeNews/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
}
Ejemplo n.º 11
0
function themeheader()
{
    global $user, $sitename, $slogan, $nukeuser, $prefix, $mainindex;
    echo "<body bgcolor=\"#000000\" text=\"#FFFFFF\" onLoad=\"doblocks('themes/MP3Tunes/images/');\">";
    if (!is_user($user)) {
        $theuser = "******"{$mainindex}?name=Your_Account&amp;op=new_user\">Create an account</a>";
    } else {
        $theuser = "******";
    }
    $public_msg = public_message();
    $thefile = implode("", file("themes/MP3Tunes/header.html"));
    $thefile = addslashes($thefile);
    $thefile = '$r_file="' . $thefile . '";';
    eval($thefile);
    print $r_file;
    blocks('left');
    $thefile = implode("", file("themes/MP3Tunes/left_center.html"));
    $thefile = addslashes($thefile);
    $thefile = '$r_file="' . $thefile . '";';
    eval($thefile);
    print $r_file;
}
Ejemplo n.º 12
0
function themeheader()
{
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $anonymous;
    cookiedecode($user);
    $username = $cookie[1];
    if (empty($username)) {
        $username = $anonymous;
    }
    echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\">\n" . "<br>\n";
    ads(0);
    echo "<br>\n" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n" . "<tr>\n" . "<td bgcolor=\"#ffffff\" width=\"306\">\n" . "<a href=\"index.php\"><img src=\"themes/Milo/images/logo.gif\" align=\"left\" alt=\"" . _WELCOMETO . " {$sitename}\" border=\"0\"></a></td>\n" . "</tr>\n" . "</table><br>\n" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n" . "<tr>\n" . "<td bgcolor=\"#808080\">\n" . "<img src=\"themes/Milo/images/tophighlight.gif\"></td>\n" . "</tr>\n" . "</table>\n" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#ffffff\">\n" . "<tr valign=\"middle\">\n" . "<td width=\"400\" bgcolor=\"#C0C0C0\" align=\"left\">\n" . "&nbsp;</td>\n" . "<td bgcolor=\"#C0C0C0\" align=\"center\">\n" . "<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"content\" color=\"#000000\"><b>" . _SEARCH . " </b>\n" . "<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n" . "<td bgcolor=\"#C0C0C0\" align=\"center\">\n" . "<form action=\"modules.php?name=Search\" method=\"get\"><font class=\"content\"><b>" . _TOPICS . " </b>\n";
    $toplist = $db->sql_query("select topicid, topictext from {$prefix}" . _topics . " order by topictext");
    echo "<select name=\"topic\"onChange='submit()'>\n" . "<option value=\"\">" . _ALLTOPICS . "</option>\n";
    while (list($topicid, $topics) = $toplist->fetch_row()) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        echo "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    echo "</select></font></form></td>\n" . "</tr></table>\n" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"750\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n" . "<tr>\n" . "<td bgcolor=\"#000000\" colspan=\"4\"><IMG src=\"themes/Milo/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n" . "</tr>\n" . "<tr valign=\"middle\" bgcolor=\"#808080\">\n" . "<td width=\"15%\" nowrap><font class=\"content\" color=\"#363636\">\n";
    if ($username == "Anonymous") {
        echo "&nbsp;&nbsp;<font color=\"#363636\"><a href=\"modules.php?name=Your_Account\">Create</a></font> an account\n";
    } else {
        echo "&nbsp;&nbsp;" . _HELLO . " {$username}! &nbsp;&nbsp;[ <a href=\"modules.php?name=Your_Account&amp;op=logout\">Logout</a> ]";
    }
    echo "</font></td>\n" . "<td align=\"center\" height=\"20\" width=\"60%\"><font class=\"content\">\n" . "&nbsp;\n" . "</td>\n" . "<td align=\"right\" width=\"25%\"><font class=\"content\">\n" . "<script type=\"text/javascript\">\n\n" . "<!--   // Array ofmonth Names\n" . "var monthNames = new Array( \"January\",\"February\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October\",\"November\",\"December\");\n" . "var now = new Date();\n" . "thisYear = now.getYear();\n" . "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n" . "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n" . "// -->\n\n" . "</script></font></td>\n" . "<td>&nbsp;</td>\n" . "</tr>\n" . "<tr>\n" . "<td bgcolor=\"#000000\" colspan=\"4\"><IMG src=\"themes/Milo/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n" . "</tr>\n" . "</table>\n" . "<!-- FIN DEL TITULO -->\n" . "<table width=\"750\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\">\n" . "<tr valign=\"top\">\n" . "<td bgcolor=\"#C0C0C0\"><img src=\"themes/Milo/images/pixel.gif\" width=\"1\" height=\"3\" border=\"0\" alt=\"\"></td>\n" . "</tr>\n" . "<tr valign=\"top\">\n" . "<td bgcolor=\"#ffffff\"><img src=\"themes/Milo/images/pixel.gif\" width=\"1\" height=\"5\" border=\"0\" alt=\"\"></td>\n" . "</tr>\n" . "</table>\n";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<table width=\"750\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#ffffff\" align=\"center\"><tr valign=\"top\">\n" . "<td bgcolor=\"#eeeeee\" width=\"150\" valign=\"top\">\n";
    blocks("left");
    echo "</td><td><img src=\"themes/Milo/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}
Ejemplo n.º 13
0
function themeheader()
{
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $anonymous, $swapblock, $name, $db;
    cookiedecode($user);
    $username = $cookie[1];
    if (empty($username)) {
        $username = $anonymous;
    }
    ?>
    
    <!-- contenido arriba body -->
    
    <?php 
    echo "<body>";
    //ads(0);
    $topics_list = "<select name=\"topic\" onChange='submit()'>\n";
    $topics_list .= "<option value=\"\">All Topics</option>\n";
    $toplist = $db->sql_query("select topicid, topictext from " . $prefix . "_topics order by topictext");
    while (list($topicid, $topics) = $toplist->fetch_row()) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        $topics_list .= "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    if ($username == $anonymous) {
        $theuser = "******"modules.php?name=Your_Account\">Create an account";
    } else {
        $theuser = "******";
    }
    $public_msg = public_message();
    if (defined('INDEX_FILE')) {
        $tmpl_file = "themes/org_green/header.html";
        $thefile = implode("", file($tmpl_file));
        $thefile = addslashes($thefile);
        $thefile = "\$r_file=\"" . $thefile . "\";";
        eval($thefile);
        print $r_file;
    } else {
        $tmpl_file = "themes/org_green/headernrb.html";
        $thefile = implode("", file($tmpl_file));
        $thefile = addslashes($thefile);
        $thefile = "\$r_file=\"" . $thefile . "\";";
        eval($thefile);
        print $r_file;
    }
    $swapblock = "1";
    $tmpl_file = "themes/org_green/leftb.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/org_green/leftbb.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
    $swapblock = "0";
    if (defined('INDEX_FILE')) {
        $tmpl_file = "themes/org_green/left_center.html";
        $thefile = implode("", file($tmpl_file));
        $thefile = addslashes($thefile);
        $thefile = "\$r_file=\"" . $thefile . "\";";
        eval($thefile);
        print $r_file;
    } else {
        //$swapblock = "0";
        $tmpl_file = "themes/org_green/left_centernrb.html";
        $thefile = implode("", file($tmpl_file));
        $thefile = addslashes($thefile);
        $thefile = "\$r_file=\"" . $thefile . "\";";
        eval($thefile);
        print $r_file;
    }
}
Ejemplo n.º 14
0
function themeheader()
{
    global $user, $banners, $sitename, $slogan, $cookie, $prefix, $anonymous, $db;
    cookiedecode($user);
    $username = $cookie[1];
    if (empty($username)) {
        $username = $anonymous;
    }
    echo "<body bgcolor=\"#ffffff\" text=\"#000000\">\n";
    ads(0);
    echo "<br>\n" . "<table cellpadding=\"0\" cellspacing=\"10\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#EEEEEE\">\n" . "<tr>\n" . "<td bgcolor=\"#EEEEEE\">\n" . "<a href=\"index.php\"><img src=\"themes/Anagram/images/logo.gif\" align=\"left\" alt=\"" . _WELCOMETO . " {$sitename}\" border=\"0\"></a></td>\n" . "<td bgcolor=\"#EEEEEE\" align=\"right\">\n" . "<form action=\"modules.php?name=Search\" method=\"post\"><font class=\"content\" color=\"#000000\"><b>" . _SEARCH . " </b>\n" . "<input type=\"text\" name=\"query\" size=\"14\"></font></form></td>\n" . "<td bgcolor=\"#EEEEEE\" align=\"right\">\n" . "<form action=\"modules.php?name=Search\" method=\"get\"><font class=\"content\"><b>" . _TOPICS . " </b>\n";
    $toplist = $db->sql_query("select topicid, topictext from {$prefix}" . _topics . " order by topictext");
    echo "<select name=\"topic\"onChange='submit()'>\n" . "<option value=\"\">" . _ALLTOPICS . "</option>\n";
    while (list($topicid, $topics) = $toplist->fetch_row()) {
        $topicid = intval($topicid);
        if ($topicid == $topic) {
            $sel = "selected ";
        }
        echo "<option {$sel} value=\"{$topicid}\">{$topics}</option>\n";
        $sel = "";
    }
    echo "</select></font></form></td>\n" . "</tr></table>\n" . "<table cellpadding=\"1\" cellspacing=\"2\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#DAD8D8\">\n" . "<tr>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='/'\"><a href=\"/\">Home</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Your_Account'\"><a href=\"modules.php?name=Your_Account\">Your Account</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=FAQ'\"><a href=\"modules.php?name=FAQ\">FAQ</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Topics'\"><a href=\"modules.php?name=Topics\">Topics</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Content'\"><a href=\"modules.php?name=Contenido\">Content</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Submit_News'\"><a href=\"modules.php?name=Submit_News\">Submit News</a></td>\n" . "<td width=\"14%\" bgcolor=\"#EEEEEE\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#DAD8D8'\" onMouseOut=\"this.style.background='#EEEEEE'\" onClick=\"window.location.href='modules.php?name=Top'\"><a href=\"modules.php?name=Top\">Top 10</a></td>\n" . "</tr>\n" . "</table>\n" . "<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\" bgcolor=\"#fefefe\">\n" . "<tr>\n" . "<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/Anagram/images/pixel.gif\" width=\"1\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n" . "</tr>\n" . "<tr valign=\"middle\" bgcolor=\"#DAD8D8\">\n" . "<td width=\"20%\" nowrap><font class=\"content\">\n";
    if ($username == "Anonymous") {
        echo "&nbsp;&nbsp;<a href=\"modules.php?name=Your_Account\">" . _LOGINCREATE . "</a>\n";
    } else {
        echo "&nbsp;&nbsp;" . _HELLO . " {$username}!";
    }
    echo "</font></td>\n" . "<td align=\"center\" height=\"20\" width=\"60%\">\n" . "&nbsp;\n" . "</td>\n" . "<td align=\"right\" width=\"20%\"><font class=\"content\">\n" . "<script type=\"text/javascript\">\n\n" . "<!--   // Array ofmonth Names\n" . "var monthNames = new Array( \"" . _JANUARY . "\",\"" . _FEBRUARY . "\",\"" . _MARCH . "\",\"" . _APRIL . "\",\"" . _MAY . "\",\"" . _JUNE . "\",\"" . _JULY . "\",\"" . _AUGUST . "\",\"" . _SEPTEMBER . "\",\"" . _OCTOBER . "\",\"" . _NOVEMBER . "\",\"" . _DECEMBER . "\");\n" . "var now = new Date();\n" . "thisYear = now.getYear();\n" . "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n" . "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n" . "// -->\n\n" . "</script></b></font></td>\n" . "<td>&nbsp;</td>\n" . "</tr>\n" . "<tr>\n" . "<td bgcolor=\"#DAD8D8\" colspan=\"4\"><IMG src=\"themes/ Anagram/images/pixel.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n" . "</tr>\n" . "</table>\n";
    $public_msg = public_message();
    echo "{$public_msg}<br>";
    echo "<!-- Begin Main Content -->\n" . "<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n" . "<td background=\"themes/Anagram/images/column-bg.gif\" width=\"150\" valign=\"top\">\n";
    blocks("left");
    echo "</td>\n" . "<td><img src=\"themes/Anagram/images/pixel.gif\" width=\"1\" height=\"1\" border=\"0\" alt=\"\"></td>\n" . "<td><img src=\"themes/Anagram/images/pixel.gif\" width=\"5\" height=\"1\" border=\"0\" alt=\"\"></td>\n" . "<td width=\"100%\">\n";
}
Ejemplo n.º 15
0
function themeheader()
{
    global $admin, $user, $banners, $sitename, $slogan, $cookie, $prefix, $db, $nukeurl, $anonymous;
    if ($banners == 1) {
        $numrows = $db->sql_numrows($db->sql_query("SELECT * FROM " . $prefix . "_banner WHERE type='0' AND active='1'"));
        /* Get a random banner if exist any. */
        /* More efficient random stuff, thanks to Cristian Arroyo from http://www.planetalinux.com.ar */
        if ($numrows > 1) {
            $numrows = $numrows - 1;
            mt_srand((double) microtime() * 1000000);
            $bannum = mt_rand(0, $numrows);
        } else {
            $bannum = 0;
        }
        $sql = "SELECT bid, imageurl, clickurl, alttext FROM " . $prefix . "_banner WHERE type='0' AND active='1' LIMIT {$bannum},1";
        $result = $db->sql_query($sql);
        $row = $db->sql_fetchrow($result);
        $bid = $row[bid];
        $imageurl = $row[imageurl];
        $clickurl = $row[clickurl];
        $alttext = $row[alttext];
        if (!is_admin($admin)) {
            $db->sql_query("UPDATE " . $prefix . "_banner SET impmade=impmade+1 WHERE bid='{$bid}'");
        }
        if ($numrows > 0) {
            $sql2 = "SELECT cid, imptotal, impmade, clicks, date FROM " . $prefix . "_banner WHERE bid='{$bid}'";
            $result2 = $db->sql_query($sql2);
            $row2 = $db->sql_fetchrow($result2);
            $cid = $row2[cid];
            $imptotal = $row2[imptotal];
            $impmade = $row2[impmade];
            $clicks = $row2[clicks];
            $date = $row2[date];
            /* Check if this impression is the last one and print the banner */
            if ($imptotal <= $impmade and $imptotal != 0) {
                $db->sql_query("UPDATE " . $prefix . "_banner SET active='0' WHERE bid='{$bid}'");
                $sql3 = "SELECT name, contact, email FROM " . $prefix . "_bannerclient WHERE cid='{$cid}'";
                $result3 = $db->sql_query($sql3);
                $row3 = $db->sql_fetchrow($result3);
                $c_name = $row3[name];
                $c_contact = $row3[contact];
                $c_email = $row3[email];
                if ($c_email != "") {
                    $from = "{$sitename} <{$adminmail}>";
                    $to = "{$c_contact} <{$c_email}>";
                    $message = "" . _HELLO . " {$c_contact}:\n\n";
                    $message .= "" . _THISISAUTOMATED . "\n\n";
                    $message .= "" . _THERESULTS . "\n\n";
                    $message .= "" . _TOTALIMPRESSIONS . " {$imptotal}\n";
                    $message .= "" . _CLICKSRECEIVED . " {$clicks}\n";
                    $message .= "" . _IMAGEURL . " {$imageurl}\n";
                    $message .= "" . _CLICKURL . " {$clickurl}\n";
                    $message .= "" . _ALTERNATETEXT . " {$alttext}\n\n";
                    $message .= "" . _HOPEYOULIKED . "\n\n";
                    $message .= "" . _THANKSUPPORT . "\n\n";
                    $message .= "- {$sitename} " . _TEAM . "\n";
                    $message .= "{$nukeurl}";
                    $subject = "{$sitename}: " . _BANNERSFINNISHED . "";
                    mail($to, $subject, $message, "From: {$from}\nX-Mailer: PHP/" . phpversion());
                }
            }
            $showbanners = "<a href=\"banners.php?op=click&bid={$bid}\" target=\"_blank\"><img src=\"{$imageurl}\" border=\"0\" alt='{$alttext}' title='{$alttext}'></a>&nbsp;";
        }
    }
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "******";
    }
    echo "<body bgcolor=\"#FFFFFF\" text=\"#000000\">";
    if ($username == "Anonymous") {
        $theuser = "******"modules.php?name=Your_Account\">" . _LOGIN . "</a> or <a href=\"modules.php?name=Your_Account&op=new_user\">" . _BREG . "</a>";
    } else {
        $theuser = "******" . _BWEL . " {$username}!";
    }
    $datetime = "<script type=\"text/javascript\">\n\n" . "<!--   // Array ofmonth Names\n" . "var monthNames = new Array( \"" . _JANUARY . "\",\"" . _FEBRUARY . "\",\"" . _MARCH . "\",\"" . _APRIL . "\",\"" . _MAY . "\",\"" . _JUNE . "\",\"" . _JULY . "\",\"" . _AUGUST . "\",\"" . _SEPTEMBER . "\",\"" . _OCTOBER . "\",\"" . _NOVEMBER . "\",\"" . _DECEMBER . "\");\n" . "var now = new Date();\n" . "thisYear = now.getYear();\n" . "if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n" . "document.write(monthNames[now.getMonth()] + \" \" + now.getDate() + \", \" + thisYear);\n" . "// -->\n\n" . "</script>";
    $public_msg = public_message();
    $tmpl_file = "themes/iCGstation/header.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
    blocks(left);
    $tmpl_file = "themes/iCGstation/left_center.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "\$r_file=\"" . $thefile . "\";";
    eval($thefile);
    print $r_file;
}