Monday, July 27, 2009

yet another mysql login

Posted by Anonymous on Fri 24 Jul 19:53 (modification of post by
  1. <?php
  2.  
  3. //Set our script to use $['INFO'] tags.
  4. include "conf_global/multiforums.config.inc.php";
  5.  
  6. //Define our database connections
  7. $host = "localhost";
  8. $user = "ipbtest_ipb";
  9. $pass = "cono1616";
  10. $db = "ipbtest_ipb";
  11.  
  12. //Open the database connection
  13. mysql_connect($host ,$user, $pass);
  14. //Which database to use
  15.  
  16. //Set our variables.
  17. $boardurl = $INFO['freeforum_board_access_name'];
  18. //Start our query
  19. $res = mysql_query("SELECT * FROM `multiforums_forums` WHERE `access_name` = '".$boardurl."'");
  20. //Go get the rows
  21. $row = mysql_fetch_assoc($res);
  22.  
  23. //What if
  24.  
  25. if($row['adsDisabled'] == 0){
  26.   echo "<center><script type='text/javascript'><!--
  27. google_ad_client = 'pub-8664046583357847';
  28. /* GeekBoads Forum Ads */
  29. google_ad_slot = '3884588789';
  30. google_ad_width = 728;
  31. google_ad_height = 90;
  32. //-->
  33. </script>
  34. <script type='text/javascript'
  35. src='http://pagead2.googlesyndication.com/pagead/show_ads.js'>
  36. </script></center>";
  37.  
  38. }else{
  39.  
  40.  
  41. }
  42.  
  43.  
  44. ?>


The paste: http://php.pastebin.com/m3b3e75e4
blog comments powered by Disqus