[hot] New working MP3 Search engine that you have always wanted

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [hot] New working MP3 Search engine that you have always wanted

    I found this great nulled mp3 search engine somewhere on the net and then i uploaded and installed it on a good free webhost. The configurations needed on this script are ok with the webhost.

    The only problem i found that when i install it, it cannot create table on mysql database. this is the last step i cannot go thru when doing the installation.

    i hope somebody can figure out this problem

    Demo below
    Attached Files

    #2
    archer helpme
    Last edited by getwapid; 23.04.14, 04:55.

    Comment


      #3
      I do not understand this problem please help me

      Comment


        #4
        No search results... example
        http://maliang-mp3.20gbfree.com/search.html?q=korn
        Last edited by getwapid; 25.04.14, 05:55.

        Comment


          #5
          Ive got erro code unexpected error "{" on line 1 whats this?
          Parse error: syntax error, unexpected '{' in /home/u737446977/public_html/includes/class/_class_mysql.php on line 1 This error wew

          Comment


            #6
            after upload your script, replace code or copy paste again in binary public_html/includes/class/_class_mysql.php
            this demo http://mp3ku.t15.org

            Comment


              #7
              Thanks coderess thats good idea. guys please replce your includes/class/_class_mysql.php with this one:

              PHP Code:
              <?php

              if ( extension_loaded('mysqli') AND version_compare("5.0.5"phpversion(), "!=") )
              {
                  class 
              mysqldb
                      
              {
                          var 
              $db_id false;
                          var 
              $query_num 0;
                          var 
              $query_list = array();
                          var 
              $mysql_error '';
                          var 
              $mysql_version '';
                          var 
              $mysql_error_num 0;
                          var 
              $mysql_extend "MySQLi";
                          var 
              $MySQL_time_taken 0;
                          var 
              $query_id false;
                          
                          function 
              connect($db_user$db_pass$db_name$db_location 'localhost'$show_error=1)
                          {
                              
              $db_location explode(":"$db_location);
                              if (isset(
              $db_location[1])) {
                                  
              $this->db_id = @mysqli_connect($db_location[0], $db_user$db_pass$db_name$db_location[1]);
                              } else {
                                  
              $this->db_id = @mysqli_connect($db_location[0], $db_user$db_pass$db_name);
                              }
                              if(!
              $this->db_id) {
                                  if(
              $show_error == 1) {
                                      
              $this->display_error(mysqli_connect_error(), '1');
                                  } else {
                                      return 
              false;
                                  }
                              } 
                              
              $this->mysql_version mysqli_get_server_info($this->db_id);
                              if(!
              defined('COLLATE'))
                              { 
                                  
              define ("COLLATE""utf8");
                              }
                              
              mysqli_query($this->db_id"SET NAMES '" COLLATE "'");
                              return 
              true;
                          }
                          
                          function 
              query($query$show_error=true)
                          {
                              
              $time_before $this->get_real_time();
                              if(!
              $this->db_id$this->connect(MYSQLDBUSERMYSQLDBPASSMYSQLDBNAMEMYSQLHOST);
                              
                              if(!(
              $this->query_id mysqli_query($this->db_id$query) )) {
                                  
              $this->mysql_error mysqli_error($this->db_id);
                                  
              $this->mysql_error_num mysqli_errno($this->db_id);
                                  if(
              $show_error) {
                                      
              $this->display_error($this->mysql_error$this->mysql_error_num$query);
                                  }
                              }
                                  
                              
              $this->MySQL_time_taken += $this->get_real_time() - $time_before;
                              
                      
              //            $this->query_list[] = array( 'time'  => ($this->get_real_time() - $time_before), 
                      //                                         'query' => $query,
                      //                                         'num'   => (count($this->query_list) + 1));
                              
                              
              $this->query_num ++;
                              return 
              $this->query_id;
                          }
                          
                          function 
              get_row($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysqli_fetch_assoc($query_id);
                          }
                          function 
              get_array($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysqli_fetch_array($query_id);
                          }
                          
                          function 
              super_query($query$multi false)
                          {
                              if(!
              $multi) {
                                  
              $this->query($query);
                                  
              $data $this->get_row();
                                  
              $this->free();            
                                  return 
              $data;
                              } else {
                                  
              $this->query($query);
                                  
                                  
              $rows = array();
                                  while(
              $row $this->get_row()) {
                                      
              $rows[] = $row;
                                  }
                                  
              $this->free();            
                                  return 
              $rows;
                              }
                          }
                          
                          function 
              num_rows($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysqli_num_rows($query_id);
                          }
                          
                          function 
              insert_id()
                          {
                              return 
              mysqli_insert_id($this->db_id);
                          }
                          function 
              get_result_fields($query_id '') {
                              if (
              $query_id == ''$query_id $this->query_id;
                              while (
              $field mysqli_fetch_field($query_id))
                              {
                                  
              $fields[] = $field;
                              }
                              
                              return 
              $fields;
                             }
                          function 
              safesql$source )
                          {
                              if (
              $this->db_id) return mysqli_real_escape_string ($this->db_id$source);
                              else return 
              mysql_escape_string($source);
                          }
                          function 
              free$query_id '' )
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              @
              mysqli_free_result($query_id);
                          }
                          function 
              close()
                          {
                              @
              mysqli_close($this->db_id);
                          }
                          function 
              get_real_time()
                          {
                              list(
              $seconds$microSeconds) = explode(' 'microtime());
                              return ((float)
              $seconds + (float)$microSeconds);
                          }    
                          function 
              display_error($error$error_num$query '')
                          {
                              if(
              $query) {
                                  
              // Safify query
                                  
              $query preg_replace("/([0-9a-f]){32}/""********************************"$query); // Hides all hashes
                                  
              $query_str "$query";
                              }
                              
                              
              $sqlerror="<table cellpadding=\"0\" cellspacing=\4\" class=\"smallgrey\" border=\"0\" align=\"center\">\n";
                              
              $sqlerror.="<tr><td class=\"smallorange\"><font size=4><B><U>".$error."</U></B></td></tr>\n";
                              
              $sqlerror.="<tr><td height=\"10\"></td></tr>\n";
                              
              $sqlerror.="<tr><td>MySQL Error </td><td>: ".$query_str."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Error Number</td><td>: ".$error_num."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Date</td><td>: ".date("D, F j, Y H:i:s")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>IP</td><td>: ".getenv("REMOTE_ADDR")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Browser</td><td>: ".getenv("HTTP_USER_AGENT")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Script</td><td>: ".getenv("REQUEST_URI")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Referer</td><td>: ".getenv("HTTP_REFERER")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>PHP Version </td><td>: ".PHP_VERSION."</td></tr>\n";
                              
              $sqlerror.="<tr><td>OS</td><td>: ".PHP_OS."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Server</td><td>: ".getenv("SERVER_SOFTWARE")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Server Name</td><td>: ".getenv("SERVER_NAME")."</td></tr>\n";
                              
              $sqlerror.="</table>";

                              echo 
              '<?xml version="1.0" encoding="iso-8859-1"?>
                              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                              <html xmlns="http://www.w3.org/1999/xhtml">
                              <head>
                              <title>MySQL Fatal Error</title>
                              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                              <style type="text/css">
                              <!--
                                  BODY {
                                  FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal;  FONT-FAMILY: Arial, Verdana;
                                  SCROLLBAR-FACE-COLOR: #e8e8e8; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #e8e8e8; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: #cccccc
                                  }
                                  .smallorange {
                                  FONT-SIZE: 8pt; COLOR: #FF6600; FONT-FAMILY: Arial, Verdana
                                  }
                              -->
                              </style>
                              </head>
                              <body>
                              '
              .$sqlerror.'
                              </body>
                              </html>'
              ;
                              
                              exit();
                          }
                      }

              }
              else
              {
                  class 
              mysqldb
                      
              {
                          var 
              $db_id false;
                          var 
              $connected false;
                          var 
              $query_num 0;
                          var 
              $query_list = array();
                          var 
              $mysql_error '';
                          var 
              $mysql_version '';
                          var 
              $mysql_error_num 0;
                          var 
              $mysql_extend "MySQL";
                          var 
              $MySQL_time_taken 0;
                          var 
              $query_id false;
                          
                          function 
              connect($db_user$db_pass$db_name$db_location 'localhost'$show_error=1)
                          {
                              if(!
              $this->db_id = @mysql_connect($db_location$db_user$db_pass)) {
                                  if(
              $show_error == 1) {
                                      
              $this->display_error(mysql_error(), mysql_errno());
                                  } else {
                                      return 
              false;
                                  }
                              } 
                              if(!@
              mysql_select_db($db_name$this->db_id)) {
                                  if(
              $show_error == 1) {
                                      
              $this->display_error(mysql_error(), mysql_errno());
                                  } else {
                                      return 
              false;
                                  }
                              }
                              
              $this->mysql_version mysql_get_server_info();
                              if(!
              defined('COLLATE'))
                              { 
                                  
              define ("COLLATE""utf8");
                              }
                              if (
              version_compare($this->mysql_version'4.1'">=")) mysql_query("/*!40101 SET NAMES '" COLLATE "' */");
                              
              $this->connected true;
                              return 
              true;
                          }
                          
                          function 
              query($query$show_error=true)
                          {
                              
              $time_before $this->get_real_time();
                              if(!
              $this->connected$this->connect(MYSQLDBUSERMYSQLDBPASSMYSQLDBNAMEMYSQLHOST);
                              
                              if(!(
              $this->query_id mysql_query($query$this->db_id) )) {
                                  
              $this->mysql_error mysql_error();
                                  
              $this->mysql_error_num mysql_errno();
                                  if(
              $show_error) {
                                      
              $this->display_error($this->mysql_error$this->mysql_error_num$query);
                                  }
                              }
                                  
                              
              $this->MySQL_time_taken += $this->get_real_time() - $time_before;
                              
                      
              //            $this->query_list[] = array( 'time'  => ($this->get_real_time() - $time_before), 
                      //                                         'query' => $query,
                      //                                         'num'   => (count($this->query_list) + 1));
                              
              $this->query_num ++;
                              return 
              $this->query_id;
                          }
                          
                          function 
              get_row($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysql_fetch_assoc($query_id);
                          }
                          function 
              get_array($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysql_fetch_array($query_id);
                          }
                          
                          
                          function 
              super_query($query$multi false)
                          {
                              if(!
              $multi) {
                                  
              $this->query($query);
                                  
              $data $this->get_row();
                                  
              $this->free();            
                                  return 
              $data;
                              } else {
                                  
              $this->query($query);
                                  
                                  
              $rows = array();
                                  while(
              $row $this->get_row()) {
                                      
              $rows[] = $row;
                                  }
                                  
              $this->free();            
                                  return 
              $rows;
                              }
                          }
                          
                          function 
              num_rows($query_id '')
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              return 
              mysql_num_rows($query_id);
                          }
                          
                          function 
              insert_id()
                          {
                              return 
              mysql_insert_id($this->db_id);
                          }
                          function 
              get_result_fields($query_id '') {
                              if (
              $query_id == ''$query_id $this->query_id;
                              while (
              $field mysql_fetch_field($query_id))
                              {
                                  
              $fields[] = $field;
                              }
                              
                              return 
              $fields;
                             }
                          function 
              safesql$source )
                          {
                              if (
              $this->db_id) return mysql_real_escape_string ($source$this->db_id);
                              else return 
              mysql_escape_string($source);
                          }
                          function 
              free$query_id '' )
                          {
                              if (
              $query_id == ''$query_id $this->query_id;
                              @
              mysql_free_result($query_id);
                          }
                          function 
              close()
                          {
                              @
              mysql_close($this->db_id);
                          }
                          function 
              get_real_time()
                          {
                              list(
              $seconds$microSeconds) = explode(' 'microtime());
                              return ((float)
              $seconds + (float)$microSeconds);
                          }    
                          function 
              display_error($error$error_num$query '')
                          {
                              if(
              $query) {
                                  
              // Safify query
                                  
              $query preg_replace("/([0-9a-f]){32}/""********************************"$query); // Hides all hashes
                                  
              $query_str "$query";
                              }
                              
                              
              $sqlerror="<table cellpadding=\"0\" cellspacing=\4\" class=\"smallgrey\" border=\"0\" align=\"center\">\n";
                              
              $sqlerror.="<tr><td class=\"smallorange\"><font size=4><B><U>".$error."</U></B></td></tr>\n";
                              
              $sqlerror.="<tr><td height=\"10\"></td></tr>\n";
                              
              $sqlerror.="<tr><td>MySQL Error </td><td>: ".$query_str."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Error Number</td><td>: ".$error_num."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Date</td><td>: ".date("D, F j, Y H:i:s")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>IP</td><td>: ".getenv("REMOTE_ADDR")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Browser</td><td>: ".getenv("HTTP_USER_AGENT")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Script</td><td>: ".getenv("REQUEST_URI")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Referer</td><td>: ".getenv("HTTP_REFERER")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>PHP Version </td><td>: ".PHP_VERSION."</td></tr>\n";
                              
              $sqlerror.="<tr><td>OS</td><td>: ".PHP_OS."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Server</td><td>: ".getenv("SERVER_SOFTWARE")."</td></tr>\n";
                              
              $sqlerror.="<tr><td>Server Name</td><td>: ".getenv("SERVER_NAME")."</td></tr>\n";
                              
              $sqlerror.="</table>";

                              echo 
              '<?xml version="1.0" encoding="iso-8859-1"?>
                              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                              <html xmlns="http://www.w3.org/1999/xhtml">
                              <head>
                              <title>MySQL Fatal Error</title>
                              <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                              <style type="text/css">
                              <!--
                                  BODY {
                                  FONT-SIZE: 8pt; COLOR: #000000; FONT-STYLE: normal;  FONT-FAMILY: Arial, Verdana;
                                  SCROLLBAR-FACE-COLOR: #e8e8e8; SCROLLBAR-HIGHLIGHT-COLOR: #ffffff; OVERFLOW: auto; SCROLLBAR-SHADOW-COLOR: #ffffff; SCROLLBAR-3DLIGHT-COLOR: #cccccc; SCROLLBAR-ARROW-COLOR: #e8e8e8; SCROLLBAR-TRACK-COLOR: #eeeeee; SCROLLBAR-DARKSHADOW-COLOR: #cccccc
                                  }
                                  .smallorange {
                                  FONT-SIZE: 8pt; COLOR: #FF6600; FONT-FAMILY: Arial, Verdana
                                  }
                              -->
                              </style>
                              </head>
                              <body>
                              '
              .$sqlerror.'
                              </body>
                              </html>'
              ;
                              
                              exit();
                          }
                      }

              }
              ?>

              Comment


                #8
                thanks its working but the problem is site is slow to load when searching - http://qmusic.t15.org/
                and got this error any idea on this?


                Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/u138719352/public_html/includes/class/_class_curl.php on line 60 Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /home/u138719352/public_html/includes/class/_class_curl.php on line 60
                Last edited by baki; 29.04.14, 13:07.

                Comment


                  #9
                  your welcome Archer hihihiii

                  Comment


                    #10
                    @ baki : please change your includes/class/_class_curl.php
                    find code in _class_curl.php :
                    PHP Code:
                    if ($this->follow) {
                                
                    curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                            } else {
                                
                    curl_setopt($chCURLOPT_FOLLOWLOCATION0);
                            } 
                    and change the number 1 with 0

                    Comment


                      #11
                      @codepress same result sir... site so slow when searching

                      Comment


                        #12
                        @baki do not open two or many source, make soundcloud source Boss

                        Comment


                          #13
                          @codepress its okey now but one more error i encountered - Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/melchor/public_html/qmobilez.tk/includes/class/_class_mysql.php on line 116

                          at the top of the page


                          Comment


                          • rajkumar
                            rajkumar commented
                            Editing a comment
                            Help me am also get the same issue . What is the solution to fix the issue

                          #14
                          Originally posted by coderess View Post
                          @ baki : please change your includes/class/_class_curl.php
                          find code in _class_curl.php :
                          PHP Code:
                          if ($this->follow) {
                          curl_setopt($chCURLOPT_FOLLOWLOCATION1);
                          } else {
                          curl_setopt($chCURLOPT_FOLLOWLOCATION0);

                          and change the number 1 with 0
                          if you just share the fix version
                          Last edited by pmeSCo; 30.04.14, 02:45.

                          Comment


                            #15
                            @pmeSCo but my site the Download not working,.. how to solve this problem boss ?

                            Comment

                            Working...
                            X