starting to clean up this code
This commit is contained in:
parent
162bd9c8cb
commit
38075fd0c0
14 changed files with 103 additions and 98 deletions
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require("../libs/test_secret.php");
|
||||
require(__DIR__ . "/test_secret.php");
|
||||
|
||||
function auth($token) {
|
||||
if (is_null($token)) return null;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require("../libs/markdown.php");
|
||||
require(__DIR__ . "/markdown.php");
|
||||
function comments($typer, $idr, $disable = false) {
|
||||
$ref = 1732684297;
|
||||
global $username;
|
||||
|
@ -11,7 +11,7 @@
|
|||
array('key' => '','type' => 'hidden','name' => 'type', 'default' => $typer),
|
||||
array('key' => '','type' => 'hidden','name' => 'id', 'default' => $idr),
|
||||
array('key' => 'Attachments', 'type' => 'file', 'name' => 'file', 'default' => '')
|
||||
),'/index.php');
|
||||
),'/api/comment.php');
|
||||
}
|
||||
|
||||
$qs = parse_url($_SERVER['REQUEST_URI']);
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
require("../libs/auth.php");
|
||||
require(__DIR__ . "/auth.php");
|
||||
global $username;
|
||||
function page_header() {
|
||||
global $username; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue