コード例 #1
0
ファイル: index.php プロジェクト: pandey-rohit/php-fms-test

<?php 
/* Database connection establishment */
include "config/db_connection.php";
$conn = new DatabaseConnection();
include "classes/files.php";
$files = new file();
include "classes/folders.php";
include "classes/filesystem.php";
if (isset($_REQUEST['folder_submit'])) {
    $folder = new folder();
    $folder->setName($_REQUEST['folder']);
    $folder->setCreatedTime(date('Y-m-d h:i:s'));
    $folder->setPath("storage");
    $folder->insert_folder_record();
    mkdir("storage/" . $_REQUEST['folder']);
}
?>


<body>
<header>
	<ul class="nav">		
		<li><a href="javascript:;" id="my_files">My Files</a></li>	
		<li><a href="javascript:;" id="new_folder">Create New Folder</a></li>
		<li><a href="javascript:;" id="upload_file">Upload File</a></li>
	</ul>
</header>

<div>