예제 #1
0
 /**
  * Shows the main page with public file list
  * and links to login and public upload
  */
 public function showFileList()
 {
     $uploadBTN = new UploadView();
     $fileView = new FileView();
     echo "<H1>File Upload</H1>";
     echo "<p><H2>Public List</H2>";
     $fileView->showPublicFileList();
     echo "<br>" . $uploadBTN->showloginButton();
     echo ' ';
     echo $uploadBTN->showUploadButton();
 }
예제 #2
0
<?php

include 'upload-model.php';
include 'upload-controller.php';
include 'upload-view.php';
$upload_model = new UploadModel();
$upload_controller = new UploadController($upload_model);
$upload_view = new UploadView($upload_controller, $upload_model);
if ($_FILES) {
    $upload_controller->saveFiles($_FILES);
    $error = "files!";
}
echo $upload_view->output();