• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Admin

Well-Known Member
Staff member
Administrator
Tạo tập tin tuoitreit_them.php dán code này vào
PHP:
<?php
$submit=$_POST["submit"];
if(!$submit){echo'<form method="post" enctype="multipart/form-data"><font color="blue">Tải lên tập tin zip html:<br/><input type="file" name="file"><br/>Nhập địa chỉ:</font><br><input type="text" name="link" value="http://">
<br>Nhập code head <input type="text" name="head"><br>Nhập code foot <input type="text" name="foot"><br><input type="submit" name="submit" value="Thêm"></form><br>';}else{$file=$_FILES['file']['name'];
$link=$_POST['link'];
$head=$_POST['head'];
$foot=$_POST['foot'];
if($file){$type=$_FILES['file']['type'];
if(($type!="application/zip")){echo'<font color="purple">Định dạng tập tin không hợp lệ</font>';
exit("</body></html>");}

$file=str_replace(' ','_',$file);
$file=rand(100,900).'_'.$file;
move_uploaded_file($_FILES['file']['tmp_name'],"file/".$file);}
if(($link)&&($link!="http://")){$file=basename($link);

$ex=explode('.',$file);
if(end($ex)!='zip'){echo'<font color="green">Địa chỉ không hợp lệ</font><br>';
exit("</body></html>");}else{$file=rand(100,900).'_'.$file;
copy($link,"file/".$file);}}
if($file){$zip=new ZipArchive();
if($zip->open('file/'.$file)===TRUE){$zip1=zip_open('file/'.$file);
if($zip1){while($entry=zip_read($zip1)){$name=zip_entry_name($entry);
$size=zip_entry_filesize($entry);
$noidung=zip_entry_read($entry,$size);
$nd=$head.$noidung.$foot;
$zip->addFromString($name,$nd);}
zip_close($zip1);}
$zip->addFromString('tuoitreit.html',$head.'tuoitreit.vn'.$foot);
$zip->close();
$down='file/'.$file;
echo
'<font color="blue"><a href="'.$down.'">Tải về </a></font><br>Đã thêm head foot thành công';}else{echo'<br><br><font color="red">Thêm head foot thất bại</font>';}}}
?>
Lưu lại là xong
Chúc các bạn thành công!
 

Facebook Comments

New posts New threads New resources

Back
Top