logo
 
Go Back   WebSiteWarriors - Blackhat/Whitehat Seo and Internet Marketing > Special VIP Section > PlatinumVIP Section > BlackHatWorld VIP

[VIP] My PHP script to generate Mediafire-cloned pages

Subject content: [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 ...
Tags: generate, mediafirecloned, pages, php, script, vip,[VIP] My PHP script to generate Mediafire-cloned pages...

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 02-20-2012, 06:30 PM
stylus's Avatar
BOSS
 
Join Date: Jan 2012
Posts: 640
Default [VIP] My PHP script to generate Mediafire-cloned pages

[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">&nbsp;</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;">&nbsp;</td>

<td width="162" style="width:162px">&nbsp;</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">&nbsp;</td>

<td width="339" rowspan="6" valign="top" 
style="padding-top:15px;"><a href="#"><img 
src="images/adleft1.jpg" width="339" height="282" 
/></a>&nbsp;<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;">&nbsp;</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">&nbsp;&nbsp;&nbsp;Share this file:<div 
style="float:right; background:url(images/link.gif) 
no-repeat;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href="#" style="color:#06D">More Sharing 
Options</a>&nbsp;&nbsp;&nbsp;</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">&nbsp;</td>

</tr>

<tr>

<td>&nbsp;</td>

<td width="339">&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

<td>&nbsp;</td>

</tr>

<tr>

<td bgcolor="#E7F4FF">&nbsp;</td>

<td colspan="4" bgcolor="#E7F4FF" style="background:"><img src="images/footer.gif" /></td>

<td bgcolor="#E7F4FF">&nbsp;</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/>');

}



?>
Images and stylesheet (upload to /images/):
Hidden content You will have to reply to see hidden content


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}
I'm no PHP guru, so I didn't code any
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.


Reply With Quote
  #2  
Old 05-09-2012, 11:23 PM
Junior Member
 
Join Date: May 2012
Posts: 1
Default

nice one


Reply With Quote
  #3  
Old 05-10-2012, 10:08 AM
Mak's Avatar
Mak Mak is offline
Senior Member
 
Join Date: Apr 2012
Location: India
Posts: 126
Default

You are really great man...


__________________
[Only Registered Users Can See Links. Click Here To Register...]
Reply With Quote
  #4  
Old 05-14-2012, 06:29 AM
Junior Member
 
Join Date: May 2012
Posts: 2
Default

Looking sweet


Reply With Quote
  #5  
Old 05-14-2012, 11:20 AM
Senior Member
 
Join Date: Apr 2012
Posts: 130
Default

'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...]
Reply With Quote
Reply

Tags
generate, mediafirecloned, pages, php, script, vip

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:23 AM.

Powered by vBulletin™ Version 3.8.5  Copyright Jelsoft Enterprises Ltd. ©2000 - 2012
Search Engine Optimization by vBSEO 3.6.0
Support by tr-vBulletin - Mesut DOĞAN