From: Roland Häder Date: Sat, 2 Sep 2017 23:31:17 +0000 (+0200) Subject: No more PHP4: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=91a2154503925b8db1003a4068c3f72513cf50d7;p=mailer.git No more PHP4: - updated .gitattributes - added some disallowed paths to robots.txt - updated cache system class to PHP5, no more PHP4! Signed-off-by: Roland Häder --- diff --git a/.gitattributes b/.gitattributes index 17cdcd5373..72184ce6ea 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,33 @@ -# Use Linux/Uni* line-feed for new lines (prevents converting) -* text=lf +# +### Distribute this file on all GIT projects! +# +# Autodetect text files +* text=auto + +# Force the following filetypes to have unix eols, so Windows does not break them +*.* text eol=lf + +# Force images/fonts to be handled as binaries +*.jpg binary +*.jpeg binary +*.gif binary +*.png binary +*.t3x binary +*.t3d binary +*.exe binary +*.data binary +*.ttf binary +*.eof binary +*.eot binary +*.swf binary +*.mov binary +*.mp4 binary +*.mp3 binary +*.ogg binary +*.flv binary +*.jar binary +*.pdf binary +*.woff* binary +*.otf binary +*.z binary +*.docx binary diff --git a/inc/classes/cachesystem.class.php b/inc/classes/cachesystem.class.php index 25057b6922..c9dcc71a44 100644 --- a/inc/classes/cachesystem.class.php +++ b/inc/classes/cachesystem.class.php @@ -38,32 +38,32 @@ if (!defined('__SECURITY')) { // Caching class class CacheSystem { // Status code - var $statusCode = 'init'; + public $statusCode = 'init'; // Full-qualified filename - var $fqfn = ''; + public $fqfn = ''; // Resource to cache file - var $pointer = FALSE; + public $pointer = FALSE; // Data array from cache - var $data = array(); + public $data = array(); // Version data from cache - var $version = array(); + public $version = array(); // Cache name - var $name = ''; - var $rebuilt = array(); + public $name = ''; + public $rebuilt = array(); // File extension - var $extension = ''; - var $status = array(); - var $readable = array(); - var $fullPath = ''; + public $extension = ''; + public $status = array(); + public $readable = array(); + public $fullPath = ''; // Constructor - function CacheSystem () { + public function __construct () { // Set extension $this->extension = getCacheExtension(); diff --git a/robots.txt b/robots.txt index e9fc0fd59c..cb4f5500d2 100644 --- a/robots.txt +++ b/robots.txt @@ -27,7 +27,9 @@ Disallow: /sponsor_confirm.php Disallow: /sponsor_ref.php Disallow: /surfbar.php Disallow: /view.php +Disallow: /assets/ Disallow: /css/ +Disallow: /js/ Disallow: /inc/ Disallow: /images/ Disallow: /templates/ @@ -62,7 +64,9 @@ Disallow: /sponsor_confirm.php Disallow: /sponsor_ref.php Disallow: /surfbar.php Disallow: /view.php +Disallow: /assets/ Disallow: /css/ +Disallow: /js/ Disallow: /inc/ Disallow: /images/ Disallow: /templates/