From 53d3a53dc0ec7dc3fdf12c2a999c5a46d65c3f53 Mon Sep 17 00:00:00 2001 From: Jan Vales Date: Sat, 18 Jul 2015 03:06:04 +0200 Subject: [PATCH] Reworked stuff for file upload. --- db_funcs.php | 2 +- funcs.php | 9 +++-- html_funcs.php | 6 ++-- index.php | 31 ++++++++++++++--- intern/.gitignore | 3 ++ intern/index.php | 86 +++++++++++++++++++++++++++++++++++++++++++++++ intern/upload.php | 49 --------------------------- 7 files changed, 123 insertions(+), 63 deletions(-) create mode 100644 intern/.gitignore create mode 100644 intern/index.php delete mode 100644 intern/upload.php diff --git a/db_funcs.php b/db_funcs.php index f358087..cab21df 100644 --- a/db_funcs.php +++ b/db_funcs.php @@ -5,7 +5,7 @@ * by Jan Vales (aka. Someone ) */ -require_once('./settings.php'); +require_once(FUNCS_PATH.'/settings.php'); function db_get_uinfo($user, $pass){ $lvl = -1; diff --git a/funcs.php b/funcs.php index fad9d0a..bb470ba 100644 --- a/funcs.php +++ b/funcs.php @@ -1,13 +1,12 @@ - (aka. Someone ) */ -require_once('./settings.php'); -require_once('./db_funcs.php'); -require_once('./html_funcs.php'); +require_once(FUNCS_PATH.'/settings.php'); +require_once(FUNCS_PATH.'/db_funcs.php'); +require_once(FUNCS_PATH.'/html_funcs.php'); function login(){ if(!isset($_SERVER['HTTPS'])){ diff --git a/html_funcs.php b/html_funcs.php index 5737545..26033a9 100644 --- a/html_funcs.php +++ b/html_funcs.php @@ -14,7 +14,7 @@ function html_top($title = ""){ $title - + EOF; } @@ -22,7 +22,7 @@ function html_bottom(){ return << -

Live-Support-WebChat (Ist ein WebIRC zu #w2c auf irc.fsinf.at) +

Support-WebChat (Ist ein WebIRC zu #w2c auf irc.fsinf.at)
Auch möglich: eMail an someone@fsinf.at

@@ -33,7 +33,7 @@ function html_linkbox($current = "") { $items = array( 'index' => "Home", 'list' => "Anmeldungen", - 'intern/upload' => "Dateiupload", + 'intern/index' => "Dateiupload", 'stats' => "Stats" ); $out = '