Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $upload = new upload();
- if (isset($_POST['single_remote_upload']) && isset($_POST['remote_upload']) && strlen($_POST['remote_upload']) > 5 && REMOTE_UPLOAD == 1) {
- echo "<div style='width:600px; margin:auto;'><div id='accordion'>";
- echo "<h3><a href='#'>Image 1</a></h3><div>";
- $upload->remoteUpload($_POST['remote_upload'], randomServer());
- echo "</div>";
- for($i=2;$i<=REMOTE_UPLOAD_COUNT;$i++){
- if(strlen($_POST["remote_upload$i"])>5){
- echo "<h3><a href='#'>Image $i</a></h3><div>";
- $upload->remoteUpload($_POST["remote_upload$i"], randomServer());
- echo "</div>";
- }else{
- break;
- }
- }
- echo "</div></div>";
- } elseif (isset($_POST['single_remote_upload']) && isset($_POST['remote_upload']) && strlen($_POST['remote_upload']) > 5 && REMOTE_UPLOAD == 0) {
- echo "<p class='error'>Sorry, remote upload function is deactivated</p>";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement