Advertisement
scriptz-team

[PHP] mediafire.com public folder api

Apr 24th, 2012
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2. /* _____ _____ _ _____ _____ _____ _____ _____ _____
  3. ___| | __ |_| _ |_ _|___ ___|_ _| __| _ | |
  4. |_ -| --| -| | __| | | |- _|___| | | | __| | | | |
  5. |___|_____|__|__|_|__| |_| |___| |_| |_____|__|__|_|_|_|
  6. |s C R i P T z - T E A M . i N F O|----------------------------
  7.  
  8. mediafire.com public folder api
  9. */
  10. define("FOLDER_KEY", "");
  11.  
  12. $loadxml_folder_info = simplexml_load_file('http://www.mediafire.com/api/folder/get_info.php?folder_key=' . FOLDER_KEY);
  13. $max = $loadxml_folder_info->folder_info->file_count;
  14. $output = '';
  15. for ($i = 0; $i < $max; $i++) {
  16. $mf_url_link = 'http://www.mediafire.com/?' . $loadxml_folder_info->folder_info->files->file[$i]->quickkey;
  17. $mf_file_name = $loadxml_folder_info->folder_info->files->file[$i]->filename;
  18. $output .= '<a href="' . $mf_url_link . '" target="_blank"><strong>' . $mf_file_name . '</strong></a><br />';
  19. }
  20. echo $output;
  21. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement