-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.php
More file actions
executable file
·32 lines (32 loc) · 1.25 KB
/
Copy pathsetup.php
File metadata and controls
executable file
·32 lines (32 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<html>
<head>
</head>
<body>
<h1> Welcome to the Dropbox PHP Server</h1>
<?php if (is_writable(getcwd())): ?>
<p> You need to register an app at Dropbox. It's very easy, just enter <a href="https://www.dropbox.com/developers/apps" target="_blank">here</a> and click on 'Create an app'. Choose Core Api. You can select either 'App folder' to share a unique folder of your Dropbox Account or Full Dropbox to access all the files. Copy the App key and App secret and paste them here, we we'll need that to create an Access Token. You'll only need to do this once.</p>
<form method="POST">
<div>
<label>App key</label>
<input name="app_key"></input>
</div>
<div>
<label>App secret</label>
<input name="app_secret"></input>
</div>
<div>
<label>Access type</label>
<select name="root">
<option value='sandbox'>App folder</option>
<option value='dropbox'>Full Dropbox</option>
</select>
</div>
<div>
<input type="submit" name="submit"></input>
</div>
</form>
<?php else:?>
<p> You need to make this directory writable (<?php echo(getcwd())?>) or provide a valid config.php file</p>
<?php endif ?>
<body>
</html>