Basic changes
This commit is contained in:
parent
62f062abed
commit
c015e6660c
13 changed files with 10 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
<Files ~ "\.(ini|log|sql)$">
|
||||
<Files ~ "\.(ini|sql)$">
|
||||
Order Allow,Deny
|
||||
Deny from All
|
||||
</Files>
|
1
app/.htaccess
Normal file
1
app/.htaccess
Normal file
|
@ -0,0 +1 @@
|
|||
deny from all
|
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -1,11 +1,13 @@
|
|||
<?php
|
||||
|
||||
// Define PROJECT PATH
|
||||
define('DS', DIRECTORY_SEPARATOR);
|
||||
define('PROJECT_PATH', dirname(__FILE__));
|
||||
define('APP_PATH', PROJECT_PATH.DS.'app');
|
||||
|
||||
// Load Autoloader
|
||||
require "lib/splclassloader.class.php";
|
||||
$classLoader = new SplClassLoader(null, PROJECT_PATH.'/lib');
|
||||
require APP_PATH.DS."splclassloader.class.php";
|
||||
$classLoader = new SplClassLoader(null, APP_PATH);
|
||||
$classLoader->setFileExtension('.class.php');
|
||||
$classLoader->register();
|
||||
|
||||
|
|
1
logs/.htaccess
Normal file
1
logs/.htaccess
Normal file
|
@ -0,0 +1 @@
|
|||
deny from all
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue