Example #1
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\">";
}
Example #2
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\">";
}
Example #3
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\">";
}
Example #4
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";
}
Example #5
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%>";
}
Example #6
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";
}
Example #7
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\" link=\"#363636\" vlink=\"#363636\" alink=\"#d5ae83\"><br>\n\n\n";
    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();
    $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;
}
Example #8
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";
    echo "<td>";
    ads(0);
    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";
}
Example #9
0
function main()
{
    global $_PAGE;
    $s = isset($_GET["s"]) ? $_GET["s"] : 0;
    // web site only
    $k = isset($_GET["k"]) ? $_GET["k"] : 0;
    // _catid
    $n = isset($_GET["n"]) ? $_GET["n"] : $_PAGE;
    // per page, n-count
    $f = isset($_GET["f"]) ? $_GET["f"] : 0;
    // from
    $ww = isset($_GET["w"]) ? $_GET["w"] : "";
    //word
    $fwght = isset($_GET["g"]) ? $_GET["g"] : 0;
    //max weight
    $np = $f;
    $tp = $f;
    $w = config_prep($ww);
    echo "<hr>";
    echo "<table width='960px'><tr><td width='840px'>";
    if (isset($_GET["sitemap"])) {
        sm($_GET["sitemap"]);
    }
    if (isset($_GET["sitasets"])) {
        sa($_GET["sitasets"], $_GET['sid']);
    }
    if (isset($_GET["wcount"])) {
        coutwords($_GET["wcount"]);
    } else {
        if (strlen($w)) {
            if (substr($w, 0, 4) == "http") {
                dbcontent($w);
            }
            if ($w == "xxx") {
                sites();
            } else {
                $np = ex($w, $f, $n, $k, $s, $fwght);
            }
        } else {
            ads();
        }
    }
    if ($np != $f) {
        if ($np > $n) {
            $x = $f - $n;
            echo "<a href='index.php?w={$ww}&f={$x}&n={$n}&s={$s}&g={$fwght}'><<-Prev</a> MITZA-1.0.0.1 <font color='red'>Mitzzzzzzzzzz</font><font color='blue'>z</font> <font color='green'>z </font> <font color='blue'>z</font> <font color='red'> i </font> <font color='yellow'>n </font> <font color='blue'>g</font>...";
        } else {
            echo "X<-Prev  MITZA-1.0.0.1 <font color='red'>Mitzzzzzzzzzz</font><font color='blue'>z</font> <font color='green'>z </font> <font color='blue'>z</font> <font color='red'> i </font> <font color='yellow'>n </font> <font color='blue'>g</font>...";
        }
        if ($tp + $_PAGE == $np) {
            echo "<a href='index.php?w={$ww}&f={$np}&n={$n}&s={$s}&g={$fwght}'>Next->></a> ";
        } else {
            echo "Next->X";
        }
    }
    global $CAT;
    echo "</td><td valign='top' class='fancy'><div align='center'>";
    if ($CAT == 0) {
        echo "<a href='donate.html'>support</div><div><img src='include/logo.png'></a>";
    } else {
        echo "Powered by<bt><a href='http://enjoydecor.com' title='Toronto home staging and interior decorating'><img src='http://enjoydecor.com/_themes/_simple3/llogo.jpg' width='110px' alt='home staging enjoydecor logo'></a>";
    }
    echo "</div></td></tr></table>";
    echo "<hr>";
    return $f;
}
Example #10
0
function home($access)
{
    $mc = new myclass();
    // if ( $i1%6==0 ) {
    // 		ads($i1); // and number 6 nga look gi ilisan ani nga ads to be fixed..
    // }
    if ($access[0] == 'home') {
        $q = "SELECT * from activity act where act.action='Posted' order by act._table_id desc limit {$access['1']},11";
    }
    // || $access[0]=='ratealook'
    // $_SESSION['rate_That_I']
    // $_SESSION['rate_Sort_By']
    $ex = mysql_query($q) or die(mysql_error());
    //echo"<li >page:$page from:$from to:$to - records:".mysql_num_rows($ex)."</li>";
    while ($r = mysql_fetch_array($ex)) {
        if ($r["action"] == "Posted" || $r["action"] == "posted") {
            $j++;
            $plq = mysql_query("select * from postedlooks where plno=" . $r["_table_id"]) or die(mysql_error());
            $rsplq = mysql_fetch_array($plq);
            $plinfo = $mc->posted_look_info($rsplq[0]);
            $memq = mysql_query("select * from fs_members fs,fs_member_accounts fa  where fs.mno=fa.mno and fs.mno=" . $r["mno"]) or die(mysql_error());
            $rsmemq = mysql_fetch_array($memq);
            $xx = mysql_query("select sum(rating) from ratings where plno=" . $r["_table_id"]) or die(mysql_error());
            $rr = mysql_fetch_array($xx);
            $xxx = mysql_query("select count(rating) from ratings where plno=" . $r["_table_id"]) or die(mysql_error());
            $rrr = mysql_fetch_array($xxx);
            $xxxx = mysql_query("select count(*) from posted_looks_comments where plno=" . $r["_table_id"]) or die(mysql_error());
            $rrrr = mysql_fetch_array($xxxx);
            $x5 = mysql_query("select count(*) from pl_loves where plno=" . $r["_table_id"]) or die(mysql_error());
            $r5 = mysql_fetch_array($x5);
            $qr = mysql_query("select sum(r.rating) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
            $rsqr = mysql_fetch_array($qr);
            $qc = mysql_query("select count(*) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
            $rsqc = mysql_fetch_array($qc);
            $ql = mysql_query("select count(*) from pl_loves l, postedlooks pl where pl.plno=l.plno and pl.mno=" . $r["mno"]);
            $qd = mysql_query("select count(*) from pl_drips l, postedlooks pl where pl.plno=l.plno and pl.mno=" . $r["mno"]);
            $rsql = mysql_fetch_array($ql);
            $rsqd = mysql_fetch_array($qd);
            $qf = mysql_query("select count(*) from friends f where mno2=" . $r["mno"]);
            $rsqf = mysql_fetch_array($qf);
            $qff = mysql_query("select count(*) from friends f where mno1=" . $r["mno"]);
            $rsqff = mysql_fetch_array($qff);
            // $rsplq[0] = 935;
            // $rsmemq[mno] = 133;
            echo "\n\t\t\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\t\t.stands b{\n\t\t\t\t\t\t\t\t\t\tcolor:#000\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t\t";
            echo "\n\t\t\t\t\t\t\t\t<li >\n\t\t\t\t\t\t\t\t\t<div onmouseover=\"showRate({$rsplq['0']},'block')\" onmouseout=\"showRate({$rsplq['0']},'none')\" >\n\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;display:none;' id='rate{$rsplq['0']}'>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style='position:relative;left:44px;top:-20px;'><img src='images/corner.png' /></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"overflow:hidden;font:bold 12px 'helvetica';padding:10px;position:relative;left:50px;top:15px;background:url('images/trans-back.png');width:218px;color:white\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<b style=\"font:bold 15px 'helvetica'\">" . $rsplq["lookName"] . "</b>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $rsplq["lookAbout"] . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tPosted on " . $rsplq["date_"] . "\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\n\n\t\t\t\t\t\t\t\t\t\t\t<div class='rate' style='background:white;WIDTH:35px;padding:1px;position:relative;left:5px;top:-20px;border:1px solid #6d6d6d' >\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:5px 2px 5px 2px;background:#02c7ea;font:bold 11px 'helvetica';color:#fff\">" . @round($rr[0] / ($rrr[0] * 5) * 100) . "%</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:0px;background:white;font:12px helveticaBold;color:#3b3b3b\">RATE</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r5' onclick=\"ratethis({$rsplq['0']},5)\">5</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r4' onclick=\"ratethis({$rsplq['0']},4)\" >4</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r3' onclick=\"ratethis({$rsplq['0']},3)\" >3</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r2' onclick=\"ratethis({$rsplq['0']},2)\" >2</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r1' onclick=\"ratethis({$rsplq['0']},1)\" >1</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"dripthis({$rsplq['0']})\" style=\"background:white url('images/drip.png') center no-repeat\">&nbsp;</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"lovethis({$rsplq['0']})\"  style=\"background:white url('images/love.png') center no-repeat\">&nbsp;</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<table border=0 width=100% >\n\t\t\t\t\t\t\t\t\t\t\t<td valign=top align=center >\n\t\t\t\t\t\t\t\t\t\t\t\t<div>";
            // look posted
            echo "<a href='lookdetails.php?id={$rsplq['0']}'><img src='images/members/posted looks/{$rsplq['0']}.jpg' style='width:287px;height:450px'  /></a></div>";
            echo "\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t<div style='padding:5px;'></div>\n\t\t\t\t\t\t\t\t\t\t<table width=100% class='stands' border=0>";
            if (file_exists("../images/members/{$rsmemq['mno']}.jpg")) {
                echo "<td width=1><a  ><img src='images/members/" . $rsmemq["mno"] . ".jpg' width=50px height=53px style='margin-top:6px;' /></a></td>";
            } else {
                echo "<td width=1><a ><img src='images/members/0.jpg' width=50px height=53px style='margin-top:6px;' /></a></td>";
            }
            echo "\t\n\t\t\t\t\t\t\t\t\t\t\t<td style='padding:5px;'> ";
            // echo "<a href='".$rsmemq["username"]."' style='color:#454545;font:15px helveticaBold;text-decoration:none;//text-transform:uppercase'>".$rsmemq["firstname"]." ".$rsmemq["lastname"]."</a><br>";
            echo "<a  style='color:#454545;font:12px helveticaBold;text-decoration:none;//text-transform:uppercase'>" . $rsmemq["firstname"] . " " . $rsmemq["lastname"] . " </a> <span style='font-size:11px'>posted a new look </span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:11px helvetica; font-weight:bold;' >" . $plinfo['tlrates'] . " Rates |  Ratings " . $plinfo['tlrpercent'] . "%</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<table style='width:auto;color:#454545;font:bold 11px helvetica' border=0>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td > <b>{$plinfo['tldrips']}</b></td><td><img  title='drip' src='images/drip.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td > | <b>{$plinfo['tllove']}</b></td><td><img title='love' src='images/love.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<td> |  " . $plinfo['tlcomments'] . " Comments</b></td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t<span style='font-size:11px;font-weight:bold'>" . get_look_tview($rsplq[0]) . "total Views</span>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t<td valign=center ><br><img src='images/look-icon.png' /></td>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</li>\t\t\t\t\t\t\n\t\t\t\t\t\t\t";
        } elseif ($r["action"] == "Joined" || $r["action"] == "joined") {
            $i++;
        }
    }
    if ($j == 11) {
        ads($j);
        // and number 6 nga look gi ilisan ani nga ads to be fixed..
    }
}
Example #11
0
<?php

require_once "../config.php";
require_once "../function.php";
ob_start();
session_start();
date_default_timezone_set('Asia/Ho_Chi_Minh');
$_SESSION["admin"] = $_COOKIE["admin"];
if ($_SESSION["admin"] != 1) {
    header("refresh: 0; url=/admin.php");
}
require_once "header.php";
echo "<script>\ndocument.getElementById('x2').setAttribute('class', 'active');\n</script>";
echo "\n                    \t<li><a href='basic.php'>Thiết lập cơ bản</a></li>\n                    \t<li><a href='admininfo.php'>Thông tin quản trị viên</a></li>\n                    \t<li><a href='social.php'>Mạng xã hội</a></li>\n                    \t<li><a href='ads.php' class='active'>Quảng cáo</a></li>\n                    \t<li><a href='sublist.php'>Đăng ký nhận đề mới</a></li>\n                    </ul>\n                </div>\n                <h2><a href='#'>Bảng điều khiển chính</a> &raquo; <a href='#' class='active'>Quảng cáo</a></h2>\n                <div id='main'>";
if (isset($_POST["ads"])) {
    ads();
}
echo "\n\t\t\t\t<br/>\n\t\t\t\t<form action='' class='jNice' method='post'>\n                    \t<fieldset>\n\t\t\t\t\t\t\t<p><label>Quảng cáo 1</label><input name='qc1' type='text' class='text-long' value='" . settings("ads_1") . "' required/></p>\n\t\t\t\t\t\t\t<p><label>Quảng cáo 2</label><input name='qc2' type='text' class='text-long' value='" . settings("ads_2") . "' required/></p>\n\t\t\t\t\t\t\t<p><label>Quảng cáo 3</label><input name='qc3' type='text' class='text-long' value='" . settings("ads_3") . "' required/></p>\n\t\t\t\t\t\t\t<p><label>Quảng cáo 4</label><input name='qc4' type='text' class='text-long' value='" . settings("ads_4") . "' required/></p>\n\t\t\t\t\t\t\t<p><label>Quảng cáo 5</label><input name='qc5' type='text' class='text-long' value='" . settings("ads_5") . "' required/></p>\n                            <input name='ads' type='submit' value='Chỉnh sửa' />\n                        </fieldset>\n                    </form>";
require_once "footer.php";
Example #12
0
<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System                                          */
/* ===========================                                          */
/*                                                                      */
/* Copyright (c) 2007 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
if (!defined('BLOCK_FILE')) {
    Header("Location: ../index.php");
    die;
}
// Position "1" by default is for block advertising. You can change this from your admin panel
$content = "<br>";
$content .= ads(1);
$content .= "<br>";
Example #13
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";
}
Example #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";
}
function process_domain($d)
{
    global $stats;
    global $inputdir;
    global $triggers;
    global $domains;
    global $messages;
    global $nresources;
    // echo("$d\n");
    $stats['n_domains']++;
    $c = file_get_contents($inputdir . $d);
    $lines = explode("\n", $c);
    foreach ($lines as $i => $line) {
        if (substr($line, 0, 1) != '{') {
            $lines[$i] = '';
        }
    }
    $c = implode("\n", $lines);
    $c = "[" . $c . "]";
    $c = str_replace("\n", "", $c);
    $c = str_replace(",]", "]", $c);
    $c = str_replace("Syntax error: parse error", "", $c);
    $c = str_replace("\n", "", $c);
    $resources = array_unique(json_decode($c, 1), SORT_REGULAR);
    $n = count($resources);
    if ($n == 0) {
        echo "{$d} has errors\n";
        $stats['n_domains_with_errors']++;
        return;
    }
    @$nresources[$n / 10]++;
    if ($n > 500) {
        $messages[] = "{$d} has {$n} resources";
    }
    // and then update the statistics
    $has_js = false;
    $has_external_js = false;
    $has_flash = false;
    $has_external_flash = false;
    $has_external_content = false;
    $has_google = false;
    $has_facebook = false;
    $has_yahoo = false;
    $has_twitter = false;
    $has_ads = false;
    $triggered = [];
    foreach ($triggers as $trigger) {
        $triggered[$trigger] = false;
    }
    foreach ($resources as $res) {
        $url = $res['url'];
        $type = $res['content-type'];
        if (isflash($type, $url)) {
            $has_flash = true;
            $is_flash = true;
        } else {
            $is_flash = false;
        }
        if (isjs($type, $url)) {
            $has_js = true;
            $is_js = true;
        } else {
            $is_js = false;
        }
        if (!$has_ads) {
            if (ads($url)) {
                echo "{$d} contains ads from {$url}\n";
                $has_ads = true;
            }
        }
        foreach ($triggers as $trigger) {
            if (contains($url, $trigger)) {
                $triggered[$trigger] = $url;
            }
        }
        if (contains($url, 'jquery')) {
            $has_jquery = true;
        }
        if (facebook($url)) {
            $has_facebook = true;
        }
        if (google($url)) {
            $has_google = true;
        }
        if (yahoo($url)) {
            $has_yahoo = true;
        }
        if (twitter($url)) {
            $has_twitter = true;
        }
        if (!same_domain($d, $url)) {
            if ($is_js) {
                $has_external_js = true;
            }
            if ($is_flash) {
                $has_external_flash = true;
            }
            $has_external_content = true;
        }
    }
    foreach ($triggers as $trigger) {
        if ($triggered[$trigger]) {
            $stats["n_domains_with_{$trigger}"] += 1;
            $domains[$trigger][$d] = $triggered[$trigger];
        }
    }
    $stats['n_domains_with_js'] += $has_js ? 1 : 0;
    $stats['n_domains_with_external_js'] += $has_external_js ? 1 : 0;
    $stats['n_domains_with_external_content'] += $has_external_content ? 1 : 0;
    $stats['n_domains_clean'] += $has_external_content ? 0 : 1;
    $stats['n_domains_with_flash'] += $has_flash ? 1 : 0;
    $stats['n_domains_with_external_flash'] += $has_external_flash ? 1 : 0;
    $stats['n_domains_with_google'] += $has_google ? 1 : 0;
    $stats['n_domains_with_facebook'] += $has_facebook ? 1 : 0;
    $stats['n_domains_with_yahoo'] += $has_yahoo ? 1 : 0;
    $stats['n_domains_with_twitter'] += $has_twitter ? 1 : 0;
    $stats['n_domains_with_ads'] += $has_ads ? 1 : 0;
}
    $pMgr = new PageManager("pages", "page");
    $websiteProperty = new WebsiteProperty();
    $ban = new Ban();
    $layout = new Layout($websiteProperty->getProperty('website_title') . ' :: ' . $pMgr->getTitle(), $pMgr->navigation());
    echo $layout->buildTop();
    if ($ban->checkBan()) {
        echo '<p class="notification red">Your IP has been banned on ' . $ban->checkBan("dtime") . '<br />Reason: ' . $ban->checkBan("reason") . '</p>';
    } else {
        if ($_GET['page'] == 'admin') {
            $pMgr->getPageContent();
        } else {
            $announcement = new Announcement();
            $dataArr = $announcement->getAnnouncements();
            if ($dataArr !== false) {
                foreach ($dataArr as $data) {
                    echo '<p class="notification ' . strtolower($data['announcement_type']) . '">[' . $data['date_added'] . '] ' . stripslashes($data['announcement_text']) . '</p>';
                }
            }
            echo ads();
            $pMgr->getPageContent();
            echo supportMe();
            echo ads();
        }
    }
    echo $layout->buildBottom();
    /* Statistics + end fix php redirects
     ******************************************************************/
    $statistics = new Statistics();
    $statistics->log_ip($_GET['page']);
    ob_end_flush();
}