Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- @session_start();
- @extract($_GET);
- @extract($_POST);
- @extract($_SERVER);
- include("vars.php");
- include("dbconnect.php");
- include("funcs.php");
- $allsbsites = mysql_query("SELECT * FROM bookmarkers") or die(mysql_error());
- $sbsites = mysql_num_rows($allsbsites);
- $alladirs = mysql_query("SELECT * FROM article_dirs") or die(mysql_error());
- $adirs = mysql_num_rows($alladirs);
- $allldirs = mysql_query("SELECT * FROM dirs") or die(mysql_error());
- $ldirs = mysql_num_rows($allldirs);
- include("meta.php");
- if (($menu=="link_directories") or ($menu=="article_directories") or ($menu=="social_bookmarks")) { echo "<script type=\"text/javascript\" language=\"Javascript\" src=\"jquery.js\"></script>
- <script type=\"text/javascript\" language=\"Javascript\" src=\"tablesorter.js\"></script>
- <script type=\"text/javascript\">
- $(document).ready(function()
- {
- $(\"#dirlist\").tablesorter({sortList: [[0,0]]});
- }
- );
- </script>
- "; }
- ?>
- <script type="text/javascript">
- /* ajax.Request */
- function bookmark(url,data,mydiv) {
- var ldr = $(mydiv);
- ldr.innerHTML = "<img src=\"images/loader.gif\" alt=\"loader\" />";
- var aj = new Ajax.Request( url, { method:'get', parameters: data, onComplete: function(testing){ var ldr = $(mydiv); ldr.innerHTML = ""; ldr.innerHTML = testing.responseText; }} );
- }
- function ajaxRequest(url,data) {
- var ldr = $("dirinfo");
- ldr.innerHTML = "<img src=\"images/loader.gif\" id=\"loadergif\" alt=\"loader\" />";
- var aj = new Ajax.Request( url, { method:'get', parameters: data, onComplete: getResponse } );
- }
- /* ajax.Response */
- function getResponse(oReq) {
- var ldr = $("dirinfo");
- ldr.innerHTML = "";
- $('dirinfo').innerHTML = oReq.responseText;
- }
- </script>
- </head>
- <body id="homepage">
- <?php
- // check install directory
- $dir = 'install/installer.php';
- if (file_exists($dir)) {
- echo '<div id="warning">Remove The <strong>"Install"</strong> Folder to Secure This Site</div>';
- } else {
- // do nothing
- }
- ?>
- <div id="wrapper">
- <?php include("header.php"); ?>
- <div id="content">
- <div id="leftcol">
- <?php
- include("login.php");
- $login = new login();
- $login->beleptet();
- $usrid = $login->loginNev;
- if ($usrid){
- extract(mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$usrid'")));
- }
- $var = mysql_query("SELECT * FROM site_stats WHERE stid=1") or die(mysql_error());
- extract(mysql_fetch_array($var));
- ?>
- </div>
- <div id="rightcol">
- <?php
- if ((!$menu) or ($menu=="home")) { include("home.php"); }//
- if ($menu=="signup") { include("signup.php"); }//
- if ($menu=="signupcheck") { include("signupcheck.php"); }//
- if ($menu=="suggest") { include("suggest.php"); }//
- if ($menu=="confirm") { include("confirm.php"); }//
- if ($menu=="faq") { include("faq.php"); }//
- if ($menu=="contact") { include("contact.php"); }//
- if ($menu=="social_bookmarks") { include("social_bookmarks.php"); }//
- if ($menu=="link_directories") { include("link_directories.php"); }//
- if ($menu=="article_directories") { include("article_directories.php"); }//
- if ($menu=="skipped_directories") { include("skipped_directories.php"); }//
- if ($menu=="forgot") { include("forgot.php"); }//
- if ($menu=="urls"){
- if (!$usrid) { include("home.php"); } else { include("urls.php"); }//
- }
- if ($menu=="change_pass"){
- if (!$usrid) { include("home.php"); } else { include("change_pass.php"); }//
- }
- if ($menu=="showarticle"){
- if (!$usrid) { include("home.php"); } else { include("showarticle.php"); }//
- }
- if ($menu=="articles"){
- if (!$usrid) { include("home.php"); } else { include("articles.php"); }//
- }
- if ($menu=="article_submitter"){
- if (!$usrid) { include("home.php"); } else { include("article_submitter.php"); }
- }
- if ($menu=="article_submitter_2"){
- if (!$usrid) { include("home.php"); } else { include("article_submitter_2.php"); }
- }
- if ($menu=="submitter"){
- if (!$usrid) { include("home.php"); } else { include("submitter.php"); }
- }
- if ($menu=="bookmarker"){
- if (!$usrid) { include("home.php"); } else { include("bookmarker.php"); }
- }
- if ($menu=="buy"){
- if (!$usrid) { include("home.php"); } else { include("buy.php"); }//
- }
- if ($menu=="submit"){
- if (!$usrid) { include("home.php"); } else { include("submit.php"); }
- }
- if ($menu=="bookmark"){
- if (!$usrid) { include("home.php"); } else { include("bookmark.php"); }
- }
- if ($menu=="update") {
- if ($usrid){ include("update.php"); } else { include("home.php"); }//
- }
- if ($menu=="campaigns") {
- if ($usrid){ include("campaigns.php"); } else { include("home.php"); }//
- }
- if ($menu=="browse") {
- if ($usrid){ include("browse.php"); } else { include("login.php"); }//
- }
- if ($menu=="check_dugg") {
- if ($usrid){ include("check_dugg.php"); } else { include("mustlogin.php"); }//
- }
- if ($menu=="buyxpoints") {
- if ($usrid){ include("buyxpoints.php"); } else { include("mustlogin.php"); }
- }
- if ($menu=='invalidbuy') { include("invalidbuy.php"); }
- if ($menu=='buydone') { include("buydone.php"); }
- ?>
- </div>
- <div class="clear"></div>
- </div>
- <?php include("footer.php"); ?>
- <li>Powered by <a href="http://www.phpdirsubmit.com">PHP Dir Submit</a></li>
- <li><a href="http://www.kaizenet.com">Website Design</a> by <a href="http://www.kaizenet.com">Kaizenet</a></li>
- </ul>
- </div>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement