Advertisement
Guest User

johnburn

a guest
Jan 27th, 2011
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.47 KB | None | 0 0
  1. <?php
  2.  @session_start();
  3.  @extract($_GET);
  4.  @extract($_POST);
  5.  @extract($_SERVER);
  6.  include("vars.php");
  7.  include("dbconnect.php");
  8.  include("funcs.php");
  9.  
  10.  $allsbsites = mysql_query("SELECT * FROM bookmarkers") or die(mysql_error());
  11.  $sbsites = mysql_num_rows($allsbsites);
  12.  $alladirs = mysql_query("SELECT * FROM article_dirs") or die(mysql_error());
  13.  $adirs = mysql_num_rows($alladirs);
  14.  $allldirs = mysql_query("SELECT * FROM dirs") or die(mysql_error());
  15.  $ldirs = mysql_num_rows($allldirs);
  16.  
  17.  include("meta.php");
  18.  if (($menu=="link_directories") or ($menu=="article_directories") or ($menu=="social_bookmarks")) { echo "<script type=\"text/javascript\" language=\"Javascript\" src=\"jquery.js\"></script>
  19. <script type=\"text/javascript\" language=\"Javascript\" src=\"tablesorter.js\"></script>
  20. <script type=\"text/javascript\">
  21. $(document).ready(function()
  22.    {
  23.        $(\"#dirlist\").tablesorter({sortList: [[0,0]]});
  24.    }
  25. );
  26. </script>
  27. "; }
  28. ?>
  29.  
  30. <script type="text/javascript">
  31. /* ajax.Request */
  32. function bookmark(url,data,mydiv) {
  33.   var ldr = $(mydiv);
  34.   ldr.innerHTML = "<img src=\"images/loader.gif\" alt=\"loader\" />";
  35.  
  36.   var aj = new Ajax.Request( url, { method:'get', parameters: data, onComplete: function(testing){ var ldr = $(mydiv);  ldr.innerHTML = "";  ldr.innerHTML = testing.responseText; }} );
  37. }
  38.  
  39. function ajaxRequest(url,data) {
  40.   var ldr = $("dirinfo");
  41.   ldr.innerHTML = "<img src=\"images/loader.gif\" id=\"loadergif\" alt=\"loader\" />";
  42.   var aj = new Ajax.Request( url, { method:'get', parameters: data, onComplete: getResponse } );
  43. }
  44. /* ajax.Response */
  45. function getResponse(oReq) {
  46.   var ldr = $("dirinfo");
  47.   ldr.innerHTML = "";
  48.   $('dirinfo').innerHTML = oReq.responseText;
  49. }
  50. </script>
  51. </head>
  52.  
  53. <body id="homepage">
  54. <?php
  55. // check install directory
  56. $dir = 'install/installer.php';
  57. if (file_exists($dir)) {
  58.     echo '<div id="warning">Remove The <strong>"Install"</strong> Folder to Secure This Site</div>';
  59. } else {
  60. // do nothing
  61. }
  62. ?>
  63. <div id="wrapper">
  64. <?php include("header.php"); ?>
  65. <div id="content">
  66.  
  67. <div id="leftcol">
  68.              <?php
  69.              include("login.php");
  70.              $login = new login();
  71.              $login->beleptet();
  72.              $usrid = $login->loginNev;
  73.              if ($usrid){
  74.               extract(mysql_fetch_array(mysql_query("SELECT * FROM users WHERE username='$usrid'")));
  75.              }
  76.              $var = mysql_query("SELECT * FROM site_stats WHERE stid=1") or die(mysql_error());
  77.              extract(mysql_fetch_array($var));
  78.              ?>
  79. </div>
  80.  
  81. <div id="rightcol">
  82. <?php
  83.          if ((!$menu) or ($menu=="home")) { include("home.php"); }//
  84.          if ($menu=="signup") { include("signup.php"); }//
  85.          if ($menu=="signupcheck") { include("signupcheck.php"); }//
  86.          if ($menu=="suggest") { include("suggest.php"); }//
  87.          if ($menu=="confirm") { include("confirm.php"); }//
  88.          if ($menu=="faq") { include("faq.php"); }//
  89.          if ($menu=="contact") { include("contact.php"); }//
  90.          if ($menu=="social_bookmarks") { include("social_bookmarks.php"); }//
  91.          if ($menu=="link_directories") { include("link_directories.php"); }//
  92.          if ($menu=="article_directories") { include("article_directories.php"); }//
  93.          if ($menu=="skipped_directories") { include("skipped_directories.php"); }//
  94.          if ($menu=="forgot") { include("forgot.php"); }//
  95.  
  96.          if ($menu=="urls"){
  97.           if (!$usrid) { include("home.php"); } else { include("urls.php"); }//
  98.          }
  99.          if ($menu=="change_pass"){
  100.           if (!$usrid) { include("home.php"); } else { include("change_pass.php"); }//
  101.          }
  102.          if ($menu=="showarticle"){
  103.           if (!$usrid) { include("home.php"); } else { include("showarticle.php"); }//
  104.          }
  105.          if ($menu=="articles"){
  106.           if (!$usrid) { include("home.php"); } else { include("articles.php"); }//
  107.          }
  108.          if ($menu=="article_submitter"){
  109.           if (!$usrid) { include("home.php"); } else { include("article_submitter.php"); }
  110.          }
  111.          if ($menu=="article_submitter_2"){
  112.           if (!$usrid) { include("home.php"); } else { include("article_submitter_2.php"); }
  113.          }
  114.          if ($menu=="submitter"){
  115.           if (!$usrid) { include("home.php"); } else { include("submitter.php"); }
  116.          }
  117.          if ($menu=="bookmarker"){
  118.           if (!$usrid) { include("home.php"); } else { include("bookmarker.php"); }
  119.          }
  120.          if ($menu=="buy"){
  121.           if (!$usrid) { include("home.php"); } else { include("buy.php"); }//
  122.          }
  123.          if ($menu=="submit"){
  124.           if (!$usrid) { include("home.php"); } else { include("submit.php"); }
  125.          }
  126.          if ($menu=="bookmark"){
  127.           if (!$usrid) { include("home.php"); } else { include("bookmark.php"); }
  128.          }
  129.          if ($menu=="update") {
  130.             if ($usrid){ include("update.php"); } else { include("home.php"); }//
  131.          }
  132.          if ($menu=="campaigns") {
  133.             if ($usrid){ include("campaigns.php");  } else {  include("home.php");  }//
  134.          }       
  135.          if ($menu=="browse") {
  136.             if ($usrid){ include("browse.php"); } else {  include("login.php"); }//
  137.          } 
  138.          
  139.          if ($menu=="check_dugg") {
  140.             if ($usrid){ include("check_dugg.php"); } else { include("mustlogin.php");  }//
  141.          }
  142.          if ($menu=="buyxpoints") {
  143.             if ($usrid){ include("buyxpoints.php"); } else { include("mustlogin.php");  }
  144.          }
  145.         if ($menu=='invalidbuy') { include("invalidbuy.php"); }
  146.         if ($menu=='buydone') { include("buydone.php"); }
  147. ?>
  148. </div>
  149.  
  150. <div class="clear"></div>
  151. </div>
  152. <?php include("footer.php"); ?>
  153.  
  154. <li>Powered by <a href="http://www.phpdirsubmit.com">PHP Dir Submit</a></li>
  155. <li><a href="http://www.kaizenet.com">Website Design</a> by <a href="http://www.kaizenet.com">Kaizenet</a></li>
  156. </ul>
  157. </div>
  158. </div>
  159. </body>
  160. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement