diff --git a/.htaccess b/.htaccess index e43bd09..8360226 100644 --- a/.htaccess +++ b/.htaccess @@ -1,4 +1,4 @@ - + Order Allow,Deny Deny from All \ No newline at end of file diff --git a/app/.htaccess b/app/.htaccess new file mode 100644 index 0000000..3418e55 --- /dev/null +++ b/app/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/lib/ajax.class.php b/app/ajax.class.php similarity index 100% rename from lib/ajax.class.php rename to app/ajax.class.php diff --git a/lib/config.class.php b/app/config.class.php similarity index 100% rename from lib/config.class.php rename to app/config.class.php diff --git a/lib/db.class.php b/app/db.class.php similarity index 100% rename from lib/db.class.php rename to app/db.class.php diff --git a/lib/image.class.php b/app/image.class.php similarity index 100% rename from lib/image.class.php rename to app/image.class.php diff --git a/lib/log.class.php b/app/log.class.php similarity index 76% rename from lib/log.class.php rename to app/log.class.php index 6302df2..377787b 100644 --- a/lib/log.class.php +++ b/app/log.class.php @@ -9,14 +9,14 @@ class Log "visitors" ]; - private static $_path = 'logs/'; + private static $_path = 'logs'; public static function put($_file, $_text = null){ if(!Config::get_safe("logs", false) || !in_array($_file, static::$_files)){ return ; } - if(false === file_put_contents(PROJECT_PATH.DIRECTORY_SEPARATOR.static::$_path.$_file.".log", self::line($_text), FILE_APPEND)){ + if(false === file_put_contents(PROJECT_PATH.DS.static::$_path.DS.$_file.".log", self::line($_text), FILE_APPEND)){ trigger_error("Can't write to {$_file}.log file.", E_USER_NOTICE); } } diff --git a/lib/post.class.php b/app/post.class.php similarity index 100% rename from lib/post.class.php rename to app/post.class.php diff --git a/lib/splclassloader.class.php b/app/splclassloader.class.php similarity index 100% rename from lib/splclassloader.class.php rename to app/splclassloader.class.php diff --git a/lib/user.class.php b/app/user.class.php similarity index 100% rename from lib/user.class.php rename to app/user.class.php diff --git a/common.php b/common.php index 3c9be39..9175649 100644 --- a/common.php +++ b/common.php @@ -1,11 +1,13 @@ setFileExtension('.class.php'); $classLoader->register(); diff --git a/logs/.htaccess b/logs/.htaccess new file mode 100644 index 0000000..3418e55 --- /dev/null +++ b/logs/.htaccess @@ -0,0 +1 @@ +deny from all \ No newline at end of file diff --git a/static/styles/design.css b/static/styles/design.css index 302d4a0..013886a 100644 --- a/static/styles/design.css +++ b/static/styles/design.css @@ -36,7 +36,7 @@ body { .cover { font-size: 0; position: relative; - /*height: 315px;*/ + min-height: 315px; } .cover .overlay { background: url(../images/UgNUNkKQar6.png) bottom left repeat-x;