From 38d469f590f00881f259a72b7ff4a7648b3022c6 Mon Sep 17 00:00:00 2001 From: Harvie Date: Fri, 17 Dec 2010 12:00:20 +0100 Subject: [PATCH] Rewrite cleanup, TODO: rename images to _images --- .gitignore | 2 +- doc/TODO | 3 +++ wwwroot/config/config_default.inc | 2 +- wwwroot/data/.gitignore | 1 - wwwroot/images | 2 +- wwwroot/templates | 1 - 6 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 wwwroot/data/.gitignore delete mode 120000 wwwroot/templates diff --git a/.gitignore b/.gitignore index 465733a..2b24adc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -_* +-* *~ *.part diff --git a/doc/TODO b/doc/TODO index 612b088..0866ad2 100644 --- a/doc/TODO +++ b/doc/TODO @@ -53,3 +53,6 @@ - (IMHO we should use SHA1 or stronger algorithm instead of MD5 for storing passwords) (I've implemented this partially. We can now login using various hash algorithms, it's backward compatible, but we still need to edit registration/password changing to use SHA1 when updating passwords in DB) + +- Rename all files&directories that should not be rewrited to PATH_INFO to start with "_" (and if they should be also ignored by git they should start with "-") + (Rename images to _images - and fix hardcoded stuff...) diff --git a/wwwroot/config/config_default.inc b/wwwroot/config/config_default.inc index aa21caf..96e1021 100644 --- a/wwwroot/config/config_default.inc +++ b/wwwroot/config/config_default.inc @@ -10,7 +10,7 @@ define('DB_DATABASE', 'kyberia'); date_default_timezone_set('Europe/Prague'); define('SYSTEM_ROOT', '/srv/kyberia/'); -define('SYSTEM_DATA', SYSTEM_ROOT . '/wwwroot/data/'); +define('SYSTEM_DATA', SYSTEM_ROOT . '/wwwroot/_data/'); define('CONFIG_DIR', SYSTEM_ROOT . 'config/'); define('AJAX_DIR', SYSTEM_ROOT . 'wwwroot/ajax/'); define('INCLUDE_DIR', SYSTEM_ROOT . 'wwwroot/inc/'); diff --git a/wwwroot/data/.gitignore b/wwwroot/data/.gitignore deleted file mode 100644 index 72e8ffc..0000000 --- a/wwwroot/data/.gitignore +++ /dev/null @@ -1 +0,0 @@ -* diff --git a/wwwroot/images b/wwwroot/images index 1070d1d..4bd300f 120000 --- a/wwwroot/images +++ b/wwwroot/images @@ -1 +1 @@ -data/images/ \ No newline at end of file +_data/images/ \ No newline at end of file diff --git a/wwwroot/templates b/wwwroot/templates deleted file mode 120000 index 2165c66..0000000 --- a/wwwroot/templates +++ /dev/null @@ -1 +0,0 @@ -data/templates/own_templates/ \ No newline at end of file -- 2.30.2