Ejemplo n.º 1
0
        ob_end_flush();
    }
    ob_implicit_flush(1);
    echo "<!-- " . str_repeat(' ', 2000) . " -->";
}
?>

<?php 
if (isset($_FILES["userfile"])) {
    $file = $_FILES['userfile']['name'];
    $dropbox->UploadFile($_FILES['userfile']['tmp_name'], $file);
}
if (isset($_GET["delete"])) {
    $del_image = $_GET["delete"];
    //echo $dropbox->GetLink($del_image,false);
    $dropbox->delete($del_image);
    header("Location: album.php");
}
?>
<html>
	<head>
		<title>Photo Album</title>
	</head>
	<body style="margin: auto; width: 1000px;">
		<div id="header" style="width:1000px; background-color: LightGrey; height: 100px;">
			<div style="padding-top: 30px; margin: auto; text-align: center;">
			<h2>Photo Album</h2>
			</div>
		</div>
		<div id="upload-form" style="width:1000px; background-color: BlanchedAlmond; height: 100px;">
		<form enctype="multipart/form-data" action="album.php" method="POST">