-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathadmin_notes.php
More file actions
29 lines (25 loc) · 1017 Bytes
/
admin_notes.php
File metadata and controls
29 lines (25 loc) · 1017 Bytes
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
<?php
/**
* DeepSID
*
* Show the notes page in the 'Admin' tab.
*
* For administrators only.
*
* @used-by main.js
*/
require_once("class.account.php"); // Includes setup
if (!isset($_SERVER['HTTP_X_REQUESTED_WITH']) || $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest')
die("Direct access not permitted.");
if (!$account->IsAdmin())
die("This is for administrators only.");
$html = '<h3>Notes</h3>
<textarea id="admin-notes-1" class="admin-notes-text" name="admin-notes-1"></textarea>
<textarea id="admin-notes-2" class="admin-notes-text" name="admin-notes-2"></textarea>
<textarea id="admin-notes-3" class="admin-notes-text" name="admin-notes-3"></textarea>
<textarea id="admin-notes-4" class="admin-notes-text" name="admin-notes-4"></textarea>
<textarea id="admin-notes-5" class="admin-notes-text" name="admin-notes-5"></textarea>
<button id="admin-notes-save">Save</button><span id="admin-notes-info"></span>
';
die(json_encode(array('status' => 'ok', 'html' => $html)));
?>