Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. $upload = new upload();
  2. if (isset($_POST['single_remote_upload']) && isset($_POST['remote_upload']) && strlen($_POST['remote_upload']) > 5 && REMOTE_UPLOAD == 1) {
  3. echo "<div style='width:600px; margin:auto;'><div id='accordion'>";
  4. echo "<h3><a href='#'>Image 1</a></h3><div>";
  5. $upload->remoteUpload($_POST['remote_upload'], randomServer());
  6. echo "</div>";
  7. for($i=2;$i<=REMOTE_UPLOAD_COUNT;$i++){
  8. if(strlen($_POST["remote_upload$i"])>5){
  9. echo "<h3><a href='#'>Image $i</a></h3><div>";
  10. $upload->remoteUpload($_POST["remote_upload$i"], randomServer());
  11. echo "</div>";
  12. }else{
  13. break;
  14. }
  15. }
  16. echo "</div></div>";
  17. } elseif (isset($_POST['single_remote_upload']) && isset($_POST['remote_upload']) && strlen($_POST['remote_upload']) > 5 && REMOTE_UPLOAD == 0) {
  18. echo "<p class='error'>Sorry, remote upload function is deactivated</p>";
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement