moozzl.com like - mp3 search engine

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

67 replies · 20,256 views · started 17 years ago · 1 min read

TL;DR · summary of 67 replies
  • - The script needs to be converted for mobile devices and remove the "Loading Please Wait For A While" message.
  • - The original script uses download.php which is missing in the current version, and a solution was proposed to use Snoopy class instead of download.php.
  • - There are issues with login redirection after clicking on links, and suggestions were made to use cURL for login and downloading files.
  • - The maximum execution time error was encountered when trying to remove JavaScript and AJAX from the script.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

25 participants
GumSlone Administrator Principal · 1,690 posts #1

Here is a script which is very similar to the script which im using at moozzl.com it has all the functions as at moozzl.com, the only ththing you need to do is to convert it to work with mobiles.

[HIDE-THANKS]

http://rapidshare.com/files/232444954/hotsmusic.com.rar
http://depositfiles.com/files/i72kf67w1

[/HIDE-THANKS]

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Guest #2

if someone converts this script please post it im having no luck trying but i guess im gna carry on maybe i will be able to get somewhere and if i do i will post it but i doubt it so dont even count on me😐

modfiles Developer · 200 posts #3

my only problem in this is

<script type="text/javascript" language="javascript">
   http_request = new Array();
   function makeRequest(url, parameters, xId) {
      if (window.XMLHttpRequest) { // Mozilla, Safari,...
         http_request[xId] = new XMLHttpRequest();
         if (http_request[xId].overrideMimeType) {
            http_request[xId].overrideMimeType('text/html');
         }
      } else if (window.ActiveXObject) { // IE
         try {
            http_request[xId] = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               http_request[xId] = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!http_request[xId]) {
     document.getElementById(xId).innerHTML = 'Result not available';
         return false;
      }
      http_request[xId].onreadystatechange = function() {
          if (http_request[xId].readyState == 4) {
                document.getElementById(xId).innerHTML = http_request[xId].responseText;
          }
        }
      http_request[xId].open('GET', url + parameters, true);
      http_request[xId].send(null);
   }
function popitup(url) {
    newwindow=window.open(url,'name','height=150,width=300');
    if (window.focus) {newwindow.focus()}
    return false;
}
</script>

and heres another one

<script type="text/javascript" language="javascript">
  makeRequest('wrapper.php?1&','search=<?=$srch?>&source=<?=$source?>&page=<?=$_GET[page]?>',
'<?=$source?>');
</script>

i dunno anythin bout javascript 😛 My edit works fine with third party browser but default browser dont cause it didnt support javascript. lol did anyone manage to remove Loading Please Wait for a While..... and instead of that making request from a javascript, it will return a result automatically?

modfiles Developer · 200 posts #5

file download.php is missing?

Guest #6

agreed . im not having any luck with this 😕

GumSlone Administrator Principal · 1,690 posts #7

modfiles wrote: file download.php is missing?

actually you dont need the download.php for your mobile version, after you done the mobile version, post the script here so i can create the download php for it.

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

Anshul Senior · 296 posts #8

GumSlone wrote: actually you dont need the download.php for your mobile version, after you done the mobile version, post the script here so i can create the download php for it.

ok done but i need download.php 🙂

pimpin Junior · 20 posts #9

I seen something in the script like this:

if(isset($_GET[unlink])) unlink(./index.php);

So if some1 goes on that page n puts ?unlink at the end of the URL its gunna delete the main index file :/ :/ :/ whats all that about??

strikingv Developer · 70 posts #10

pimpin wrote: I seen something in the script like this:

if(isset($_GET[unlink])) unlink(./index.php);

So if some1 goes on that page n puts ?unlink at the end of the URL its gunna delete the main index file :/ :/ :/ whats all that about??

lol i think the script is full of JS and erors

Guest #11

gum why cant you just post the version you converted lol 😉

Anshul Senior · 296 posts #12

NoFx wrote: gum why cant you just post the version you converted lol ;)

try it urself trust me it will not take more then half an hour lol

modfiles Developer · 200 posts #13

Anshul wrote: try it urself trust me it will not take more then half an hour lol

its not that easy for someone whos still learning (like me. lol) especially with those ajax and javascript. its like new thing for me the fact that php is still a new thing. jumping to another scripting language is another story again 🙂 anyway, i still keep trying to do it. just keep on thinking how to make it work witout those weird new scripting language

strikingv Developer · 70 posts #14

modfiles wrote: its not that easy for someone whos still learning (like me. lol) especially with those ajax and javascript. its like new thing for me the fact that php is still a new thing. jumping to another scripting language is another story again 🙂 anyway, i still keep trying to do it. just keep on thinking how to make it work witout those weird new scripting language

Drop by Drop makes the Ocean. Lets share the Converted version 😀

GumSlone Administrator Principal · 1,690 posts #15

here is a simplyfied index.php

<?
echo '<?xml version="1.0"?>';
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Search music</title>
</head>

<body>
<form method="GET" action="audio/index.php">
<div>
<input name="search" type="text" size="60"  style="background-color:#CCCCCC; color:#990000; font-weight:bolder" />
<input type="submit" value="Search Audio !" style="background-color:black; color: #FFFFFF; font-weight: bolder; font-size: 14px; margin-left: 10px;" />
<input type="radio" name="source" value="all" checked style="visibility:hidden" />
</div>
</form>
<div>
<span style="font-size: 9pt; text-align: justify; ">
<? include 'audio/latestsearches.php'; ?>
</span>
</div>
</body>
</html>

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

modfiles Developer · 200 posts #16

ok, this is how far ive gone already in this script. havent check it though if its a valid page coz at the moment, thats not my concern. lol. but work in my phone using opera brower 😀 javascript and ajax havent remove yet. i dunno how to make it work if i remove those. lol and if you see the download link. its still a link from original script coz i cant find download.php file anyone who make it better. please be generous and post it here 😛

Attachments: hotsmusic.rar
GumSlone Administrator Principal · 1,690 posts #17

download.php only for jamglue source

download.php only for jamglue source

 include "Snoopy.class.php";
$snoopy = new Snoopy;
$snoopy->agent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
$snoopy->referer = "http://www.google.com/";

$submit_url = "http://www.jamglue.com/sign_in";
	
	$submit_vars["name"] = "hotsmusic";
	$submit_vars["password"] = "fareast91";
	$submit_vars["url"] = $_GET['url'];
	$submit_vars["commit"] = "Sign in";
		
	if($snoopy->submit($submit_url,$submit_vars))
	{
		while(list($key,$val) = each($snoopy->headers))
			header ($val);
		
	}
	else
		echo "error fetching document: ".$snoopy->error."\n";	
		
	print $snoopy->results;

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

modfiles Developer · 200 posts #18

oh my.. its not downloading the file but instead, signing in to jamglue site 😀

Anshul Senior · 296 posts #19

change

$link = '&src=jamglue&link='.$download.'&name='.$name;

to

$link = "url={$download}";

in sources/jamglue/index.php

modfiles Developer · 200 posts #20

and now i get this 🙁 InvalidArgumentEither the Signature query string parameter or the Authorization header should be specified, not bothBasic aG90c211c2ljOmZhcmVhc3Q5MQ==Authorization57823C469895D67F6cZkf2eVxfhFEVwpTUz2HN48yA4obtjKg28Ox2Rd15bcpYAq1kfv/lCkYKnPoKi2

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close