From c8cadb17a45cc6a01ebb0836e3515b1556ab725a Mon Sep 17 00:00:00 2001 From: d4rkfly3r Date: Tue, 18 Aug 2015 14:43:12 -0700 Subject: [PATCH] Fixed a stupid foldername --- {application => app}/Controllers/Welcome.php | 0 {application => app}/Core/Config.php | 0 {application => app}/Core/Controller.php | 0 {application => app}/Core/Error.php | 0 {application => app}/Core/Language.php | 0 {application => app}/Core/Logger.php | 0 {application => app}/Core/Model.php | 0 {application => app}/Core/Router.php | 0 {application => app}/Core/View.php | 0 {application => app}/Helpers/Arr.php | 0 {application => app}/Helpers/Assets.php | 0 {application => app}/Helpers/Data.php | 0 {application => app}/Helpers/Database.php | 0 {application => app}/Helpers/Date.php | 0 {application => app}/Helpers/Document.php | 0 {application => app}/Helpers/Form.php | 0 {application => app}/Helpers/Ftp.php | 0 {application => app}/Helpers/GeoCode.php | 0 {application => app}/Helpers/Number.php | 0 {application => app}/Helpers/Paginator.php | 0 {application => app}/Helpers/Password.php | 0 .../Helpers/PhpMailer/Exception.php | 0 .../Helpers/PhpMailer/Mail.php | 0 .../Helpers/PhpMailer/PhpMailer.php | 0 .../Helpers/PhpMailer/Pop3.php | 0 .../Helpers/PhpMailer/Smtp.php | 0 {application => app}/Helpers/RainCaptcha.php | 0 {application => app}/Helpers/Request.php | 0 {application => app}/Helpers/Session.php | 0 {application => app}/Helpers/SimpleCurl.php | 0 {application => app}/Helpers/TableBuilder.php | 0 {application => app}/Helpers/Tags.php | 0 {application => app}/Helpers/Url.php | 0 {application => app}/Helpers/page_eloq.md | 0 {application => app}/Models/index.html | 0 {application => app}/files/password.php | 0 {application => app}/language/de/Welcome.php | 0 {application => app}/language/en/Welcome.php | 0 {application => app}/language/fr/Welcome.php | 0 {application => app}/language/it/Welcome.php | 0 {application => app}/language/nl/Welcome.php | 0 {application => app}/language/pl/Welcome.php | 0 {application => app}/language/ro/Welcome.php | 0 {application => app}/language/ru/Welcome.php | 0 .../templates/default/css/bootstrap-theme.css | 0 .../default/css/bootstrap-theme.css.map | 0 .../default/css/bootstrap-theme.min.css | 0 .../templates/default/css/bootstrap.css | 0 .../templates/default/css/bootstrap.css.map | 0 .../templates/default/css/bootstrap.min.css | 0 .../templates/default/css/style.css | 0 .../fonts/glyphicons-halflings-regular.eot | Bin .../fonts/glyphicons-halflings-regular.svg | 0 .../fonts/glyphicons-halflings-regular.ttf | Bin .../fonts/glyphicons-halflings-regular.woff | Bin .../fonts/glyphicons-halflings-regular.woff2 | Bin .../templates/default/footer.php | 9 ------- .../templates/default/header.php | 14 ----------- .../templates/default/js/bootstrap.js | 0 .../templates/default/js/bootstrap.min.js | 0 .../templates/default/js/jquery.js | 0 .../templates/default/js/npm.js | 0 {application => app}/views/error/404.php | 0 .../views/welcome/subpage.php | 0 .../views/welcome/welcome.php | 0 composer.json | 23 ++++++++++++++++++ composer.lock | 19 +++++++++++++++ index.php | 5 ---- vendor/composer/ClassLoader.php | 8 +++--- 69 files changed, 46 insertions(+), 32 deletions(-) rename {application => app}/Controllers/Welcome.php (100%) rename {application => app}/Core/Config.php (100%) rename {application => app}/Core/Controller.php (100%) rename {application => app}/Core/Error.php (100%) rename {application => app}/Core/Language.php (100%) rename {application => app}/Core/Logger.php (100%) rename {application => app}/Core/Model.php (100%) rename {application => app}/Core/Router.php (100%) rename {application => app}/Core/View.php (100%) rename {application => app}/Helpers/Arr.php (100%) rename {application => app}/Helpers/Assets.php (100%) rename {application => app}/Helpers/Data.php (100%) rename {application => app}/Helpers/Database.php (100%) rename {application => app}/Helpers/Date.php (100%) rename {application => app}/Helpers/Document.php (100%) rename {application => app}/Helpers/Form.php (100%) rename {application => app}/Helpers/Ftp.php (100%) rename {application => app}/Helpers/GeoCode.php (100%) rename {application => app}/Helpers/Number.php (100%) rename {application => app}/Helpers/Paginator.php (100%) rename {application => app}/Helpers/Password.php (100%) rename {application => app}/Helpers/PhpMailer/Exception.php (100%) rename {application => app}/Helpers/PhpMailer/Mail.php (100%) rename {application => app}/Helpers/PhpMailer/PhpMailer.php (100%) rename {application => app}/Helpers/PhpMailer/Pop3.php (100%) rename {application => app}/Helpers/PhpMailer/Smtp.php (100%) rename {application => app}/Helpers/RainCaptcha.php (100%) rename {application => app}/Helpers/Request.php (100%) rename {application => app}/Helpers/Session.php (100%) rename {application => app}/Helpers/SimpleCurl.php (100%) rename {application => app}/Helpers/TableBuilder.php (100%) rename {application => app}/Helpers/Tags.php (100%) rename {application => app}/Helpers/Url.php (100%) rename {application => app}/Helpers/page_eloq.md (100%) rename {application => app}/Models/index.html (100%) rename {application => app}/files/password.php (100%) rename {application => app}/language/de/Welcome.php (100%) rename {application => app}/language/en/Welcome.php (100%) rename {application => app}/language/fr/Welcome.php (100%) rename {application => app}/language/it/Welcome.php (100%) rename {application => app}/language/nl/Welcome.php (100%) rename {application => app}/language/pl/Welcome.php (100%) rename {application => app}/language/ro/Welcome.php (100%) rename {application => app}/language/ru/Welcome.php (100%) rename {application => app}/templates/default/css/bootstrap-theme.css (100%) rename {application => app}/templates/default/css/bootstrap-theme.css.map (100%) rename {application => app}/templates/default/css/bootstrap-theme.min.css (100%) rename {application => app}/templates/default/css/bootstrap.css (100%) rename {application => app}/templates/default/css/bootstrap.css.map (100%) rename {application => app}/templates/default/css/bootstrap.min.css (100%) rename {application => app}/templates/default/css/style.css (100%) rename {application => app}/templates/default/fonts/glyphicons-halflings-regular.eot (100%) rename {application => app}/templates/default/fonts/glyphicons-halflings-regular.svg (100%) rename {application => app}/templates/default/fonts/glyphicons-halflings-regular.ttf (100%) rename {application => app}/templates/default/fonts/glyphicons-halflings-regular.woff (100%) rename {application => app}/templates/default/fonts/glyphicons-halflings-regular.woff2 (100%) rename {application => app}/templates/default/footer.php (54%) rename {application => app}/templates/default/header.php (64%) rename {application => app}/templates/default/js/bootstrap.js (100%) rename {application => app}/templates/default/js/bootstrap.min.js (100%) rename {application => app}/templates/default/js/jquery.js (100%) rename {application => app}/templates/default/js/npm.js (100%) rename {application => app}/views/error/404.php (100%) rename {application => app}/views/welcome/subpage.php (100%) rename {application => app}/views/welcome/welcome.php (100%) create mode 100644 composer.json create mode 100644 composer.lock diff --git a/application/Controllers/Welcome.php b/app/Controllers/Welcome.php similarity index 100% rename from application/Controllers/Welcome.php rename to app/Controllers/Welcome.php diff --git a/application/Core/Config.php b/app/Core/Config.php similarity index 100% rename from application/Core/Config.php rename to app/Core/Config.php diff --git a/application/Core/Controller.php b/app/Core/Controller.php similarity index 100% rename from application/Core/Controller.php rename to app/Core/Controller.php diff --git a/application/Core/Error.php b/app/Core/Error.php similarity index 100% rename from application/Core/Error.php rename to app/Core/Error.php diff --git a/application/Core/Language.php b/app/Core/Language.php similarity index 100% rename from application/Core/Language.php rename to app/Core/Language.php diff --git a/application/Core/Logger.php b/app/Core/Logger.php similarity index 100% rename from application/Core/Logger.php rename to app/Core/Logger.php diff --git a/application/Core/Model.php b/app/Core/Model.php similarity index 100% rename from application/Core/Model.php rename to app/Core/Model.php diff --git a/application/Core/Router.php b/app/Core/Router.php similarity index 100% rename from application/Core/Router.php rename to app/Core/Router.php diff --git a/application/Core/View.php b/app/Core/View.php similarity index 100% rename from application/Core/View.php rename to app/Core/View.php diff --git a/application/Helpers/Arr.php b/app/Helpers/Arr.php similarity index 100% rename from application/Helpers/Arr.php rename to app/Helpers/Arr.php diff --git a/application/Helpers/Assets.php b/app/Helpers/Assets.php similarity index 100% rename from application/Helpers/Assets.php rename to app/Helpers/Assets.php diff --git a/application/Helpers/Data.php b/app/Helpers/Data.php similarity index 100% rename from application/Helpers/Data.php rename to app/Helpers/Data.php diff --git a/application/Helpers/Database.php b/app/Helpers/Database.php similarity index 100% rename from application/Helpers/Database.php rename to app/Helpers/Database.php diff --git a/application/Helpers/Date.php b/app/Helpers/Date.php similarity index 100% rename from application/Helpers/Date.php rename to app/Helpers/Date.php diff --git a/application/Helpers/Document.php b/app/Helpers/Document.php similarity index 100% rename from application/Helpers/Document.php rename to app/Helpers/Document.php diff --git a/application/Helpers/Form.php b/app/Helpers/Form.php similarity index 100% rename from application/Helpers/Form.php rename to app/Helpers/Form.php diff --git a/application/Helpers/Ftp.php b/app/Helpers/Ftp.php similarity index 100% rename from application/Helpers/Ftp.php rename to app/Helpers/Ftp.php diff --git a/application/Helpers/GeoCode.php b/app/Helpers/GeoCode.php similarity index 100% rename from application/Helpers/GeoCode.php rename to app/Helpers/GeoCode.php diff --git a/application/Helpers/Number.php b/app/Helpers/Number.php similarity index 100% rename from application/Helpers/Number.php rename to app/Helpers/Number.php diff --git a/application/Helpers/Paginator.php b/app/Helpers/Paginator.php similarity index 100% rename from application/Helpers/Paginator.php rename to app/Helpers/Paginator.php diff --git a/application/Helpers/Password.php b/app/Helpers/Password.php similarity index 100% rename from application/Helpers/Password.php rename to app/Helpers/Password.php diff --git a/application/Helpers/PhpMailer/Exception.php b/app/Helpers/PhpMailer/Exception.php similarity index 100% rename from application/Helpers/PhpMailer/Exception.php rename to app/Helpers/PhpMailer/Exception.php diff --git a/application/Helpers/PhpMailer/Mail.php b/app/Helpers/PhpMailer/Mail.php similarity index 100% rename from application/Helpers/PhpMailer/Mail.php rename to app/Helpers/PhpMailer/Mail.php diff --git a/application/Helpers/PhpMailer/PhpMailer.php b/app/Helpers/PhpMailer/PhpMailer.php similarity index 100% rename from application/Helpers/PhpMailer/PhpMailer.php rename to app/Helpers/PhpMailer/PhpMailer.php diff --git a/application/Helpers/PhpMailer/Pop3.php b/app/Helpers/PhpMailer/Pop3.php similarity index 100% rename from application/Helpers/PhpMailer/Pop3.php rename to app/Helpers/PhpMailer/Pop3.php diff --git a/application/Helpers/PhpMailer/Smtp.php b/app/Helpers/PhpMailer/Smtp.php similarity index 100% rename from application/Helpers/PhpMailer/Smtp.php rename to app/Helpers/PhpMailer/Smtp.php diff --git a/application/Helpers/RainCaptcha.php b/app/Helpers/RainCaptcha.php similarity index 100% rename from application/Helpers/RainCaptcha.php rename to app/Helpers/RainCaptcha.php diff --git a/application/Helpers/Request.php b/app/Helpers/Request.php similarity index 100% rename from application/Helpers/Request.php rename to app/Helpers/Request.php diff --git a/application/Helpers/Session.php b/app/Helpers/Session.php similarity index 100% rename from application/Helpers/Session.php rename to app/Helpers/Session.php diff --git a/application/Helpers/SimpleCurl.php b/app/Helpers/SimpleCurl.php similarity index 100% rename from application/Helpers/SimpleCurl.php rename to app/Helpers/SimpleCurl.php diff --git a/application/Helpers/TableBuilder.php b/app/Helpers/TableBuilder.php similarity index 100% rename from application/Helpers/TableBuilder.php rename to app/Helpers/TableBuilder.php diff --git a/application/Helpers/Tags.php b/app/Helpers/Tags.php similarity index 100% rename from application/Helpers/Tags.php rename to app/Helpers/Tags.php diff --git a/application/Helpers/Url.php b/app/Helpers/Url.php similarity index 100% rename from application/Helpers/Url.php rename to app/Helpers/Url.php diff --git a/application/Helpers/page_eloq.md b/app/Helpers/page_eloq.md similarity index 100% rename from application/Helpers/page_eloq.md rename to app/Helpers/page_eloq.md diff --git a/application/Models/index.html b/app/Models/index.html similarity index 100% rename from application/Models/index.html rename to app/Models/index.html diff --git a/application/files/password.php b/app/files/password.php similarity index 100% rename from application/files/password.php rename to app/files/password.php diff --git a/application/language/de/Welcome.php b/app/language/de/Welcome.php similarity index 100% rename from application/language/de/Welcome.php rename to app/language/de/Welcome.php diff --git a/application/language/en/Welcome.php b/app/language/en/Welcome.php similarity index 100% rename from application/language/en/Welcome.php rename to app/language/en/Welcome.php diff --git a/application/language/fr/Welcome.php b/app/language/fr/Welcome.php similarity index 100% rename from application/language/fr/Welcome.php rename to app/language/fr/Welcome.php diff --git a/application/language/it/Welcome.php b/app/language/it/Welcome.php similarity index 100% rename from application/language/it/Welcome.php rename to app/language/it/Welcome.php diff --git a/application/language/nl/Welcome.php b/app/language/nl/Welcome.php similarity index 100% rename from application/language/nl/Welcome.php rename to app/language/nl/Welcome.php diff --git a/application/language/pl/Welcome.php b/app/language/pl/Welcome.php similarity index 100% rename from application/language/pl/Welcome.php rename to app/language/pl/Welcome.php diff --git a/application/language/ro/Welcome.php b/app/language/ro/Welcome.php similarity index 100% rename from application/language/ro/Welcome.php rename to app/language/ro/Welcome.php diff --git a/application/language/ru/Welcome.php b/app/language/ru/Welcome.php similarity index 100% rename from application/language/ru/Welcome.php rename to app/language/ru/Welcome.php diff --git a/application/templates/default/css/bootstrap-theme.css b/app/templates/default/css/bootstrap-theme.css similarity index 100% rename from application/templates/default/css/bootstrap-theme.css rename to app/templates/default/css/bootstrap-theme.css diff --git a/application/templates/default/css/bootstrap-theme.css.map b/app/templates/default/css/bootstrap-theme.css.map similarity index 100% rename from application/templates/default/css/bootstrap-theme.css.map rename to app/templates/default/css/bootstrap-theme.css.map diff --git a/application/templates/default/css/bootstrap-theme.min.css b/app/templates/default/css/bootstrap-theme.min.css similarity index 100% rename from application/templates/default/css/bootstrap-theme.min.css rename to app/templates/default/css/bootstrap-theme.min.css diff --git a/application/templates/default/css/bootstrap.css b/app/templates/default/css/bootstrap.css similarity index 100% rename from application/templates/default/css/bootstrap.css rename to app/templates/default/css/bootstrap.css diff --git a/application/templates/default/css/bootstrap.css.map b/app/templates/default/css/bootstrap.css.map similarity index 100% rename from application/templates/default/css/bootstrap.css.map rename to app/templates/default/css/bootstrap.css.map diff --git a/application/templates/default/css/bootstrap.min.css b/app/templates/default/css/bootstrap.min.css similarity index 100% rename from application/templates/default/css/bootstrap.min.css rename to app/templates/default/css/bootstrap.min.css diff --git a/application/templates/default/css/style.css b/app/templates/default/css/style.css similarity index 100% rename from application/templates/default/css/style.css rename to app/templates/default/css/style.css diff --git a/application/templates/default/fonts/glyphicons-halflings-regular.eot b/app/templates/default/fonts/glyphicons-halflings-regular.eot similarity index 100% rename from application/templates/default/fonts/glyphicons-halflings-regular.eot rename to app/templates/default/fonts/glyphicons-halflings-regular.eot diff --git a/application/templates/default/fonts/glyphicons-halflings-regular.svg b/app/templates/default/fonts/glyphicons-halflings-regular.svg similarity index 100% rename from application/templates/default/fonts/glyphicons-halflings-regular.svg rename to app/templates/default/fonts/glyphicons-halflings-regular.svg diff --git a/application/templates/default/fonts/glyphicons-halflings-regular.ttf b/app/templates/default/fonts/glyphicons-halflings-regular.ttf similarity index 100% rename from application/templates/default/fonts/glyphicons-halflings-regular.ttf rename to app/templates/default/fonts/glyphicons-halflings-regular.ttf diff --git a/application/templates/default/fonts/glyphicons-halflings-regular.woff b/app/templates/default/fonts/glyphicons-halflings-regular.woff similarity index 100% rename from application/templates/default/fonts/glyphicons-halflings-regular.woff rename to app/templates/default/fonts/glyphicons-halflings-regular.woff diff --git a/application/templates/default/fonts/glyphicons-halflings-regular.woff2 b/app/templates/default/fonts/glyphicons-halflings-regular.woff2 similarity index 100% rename from application/templates/default/fonts/glyphicons-halflings-regular.woff2 rename to app/templates/default/fonts/glyphicons-halflings-regular.woff2 diff --git a/application/templates/default/footer.php b/app/templates/default/footer.php similarity index 54% rename from application/templates/default/footer.php rename to app/templates/default/footer.php index 708df1a..b5080fc 100644 --- a/application/templates/default/footer.php +++ b/app/templates/default/footer.php @@ -2,10 +2,6 @@ use Helpers\Assets; use Helpers\Url; -use Helpers\Hooks; - -//initialise hooks -$hooks = Hooks::get(); ?> @@ -17,11 +13,6 @@ '//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js' )); -//hook for plugging in javascript -$hooks->run('js'); - -//hook for plugging in code into the footer -$hooks->run('footer'); ?> diff --git a/application/templates/default/header.php b/app/templates/default/header.php similarity index 64% rename from application/templates/default/header.php rename to app/templates/default/header.php index 5fc2d65..7b40fc7 100644 --- a/application/templates/default/header.php +++ b/app/templates/default/header.php @@ -2,10 +2,6 @@ use Helpers\Assets; use Helpers\Url; -use Helpers\Hooks; - -//initialise hooks -$hooks = Hooks::get(); ?> @@ -13,10 +9,6 @@ - run('meta'); - ?> <?php echo $data['title'].' - '.SITETITLE; //SITETITLE defined in app/Core/Config.php ?> @@ -26,15 +18,9 @@ Url::templatePath() . 'css/style.css', )); - //hook for plugging in css - $hooks->run('css'); ?> -run('afterBody'); -?>
diff --git a/application/templates/default/js/bootstrap.js b/app/templates/default/js/bootstrap.js similarity index 100% rename from application/templates/default/js/bootstrap.js rename to app/templates/default/js/bootstrap.js diff --git a/application/templates/default/js/bootstrap.min.js b/app/templates/default/js/bootstrap.min.js similarity index 100% rename from application/templates/default/js/bootstrap.min.js rename to app/templates/default/js/bootstrap.min.js diff --git a/application/templates/default/js/jquery.js b/app/templates/default/js/jquery.js similarity index 100% rename from application/templates/default/js/jquery.js rename to app/templates/default/js/jquery.js diff --git a/application/templates/default/js/npm.js b/app/templates/default/js/npm.js similarity index 100% rename from application/templates/default/js/npm.js rename to app/templates/default/js/npm.js diff --git a/application/views/error/404.php b/app/views/error/404.php similarity index 100% rename from application/views/error/404.php rename to app/views/error/404.php diff --git a/application/views/welcome/subpage.php b/app/views/welcome/subpage.php similarity index 100% rename from application/views/welcome/subpage.php rename to app/views/welcome/subpage.php diff --git a/application/views/welcome/welcome.php b/app/views/welcome/welcome.php similarity index 100% rename from application/views/welcome/welcome.php rename to app/views/welcome/welcome.php diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b4c0c9b --- /dev/null +++ b/composer.json @@ -0,0 +1,23 @@ +{ + "name": "simple-mvc-framework/framework", + "type": "project", + "description": "Framework for PHP 5.4+", + "homepage": "https://github.com/simple-mvc-framework/framework", + "license": "MIT", + "authors": [ + { + "name": "David Carr", + "email": "dave@daveismyname.com", + "homepage": "http://daveismyname.com", + "role": "Developer" + } + ], + "require": { + "php": ">=5.4.0" + }, + "autoload": { + "psr-4": {"": "app/"}, + "files": ["app/files/password.php"] + }, + "minimum-stability": "dev" +} diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..9061fd4 --- /dev/null +++ b/composer.lock @@ -0,0 +1,19 @@ +{ + "_readme": [ + "This file locks the dependencies of your project to a known state", + "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", + "This file is @generated automatically" + ], + "hash": "0032d92693d9ef45e195473367f046ea", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": { + "php": ">=5.4.0" + }, + "platform-dev": [] +} diff --git a/index.php b/index.php index 48e6fa8..0b26b97 100644 --- a/index.php +++ b/index.php @@ -57,16 +57,11 @@ //create alias for Router use Core\Router; -use Helpers\Hooks; use Helpers\Session; //define routes Router::any('', 'Controllers\Welcome@index'); -//module routes -$hooks = Hooks::get(); -$hooks->run('routes'); - //if no route found Router::error('Core\Error@index'); diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index 5e1469e..4e05d3b 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -351,7 +351,7 @@ private function findFileWithExtension($class, $ext) foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { if (0 === strpos($class, $prefix)) { foreach ($this->prefixDirsPsr4[$prefix] as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { return $file; } } @@ -361,7 +361,7 @@ private function findFileWithExtension($class, $ext) // PSR-4 fallback dirs foreach ($this->fallbackDirsPsr4 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) { return $file; } } @@ -380,7 +380,7 @@ private function findFileWithExtension($class, $ext) foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) { if (0 === strpos($class, $prefix)) { foreach ($dirs as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { return $file; } } @@ -390,7 +390,7 @@ private function findFileWithExtension($class, $ext) // PSR-0 fallback dirs foreach ($this->fallbackDirsPsr0 as $dir) { - if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { + if (is_file($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) { return $file; } }