commit 0e5781ac5dcb2efad192a23f01a6b4ba270239e5 Author: Abel Date: Mon Jul 11 13:12:00 2016 +0200 Initial Commit. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..dfd6caa --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +/vendor +composer.lock \ No newline at end of file diff --git a/application/Config/config.cache.php b/application/Config/config.cache.php new file mode 100644 index 0000000..b4e6c35 --- /dev/null +++ b/application/Config/config.cache.php @@ -0,0 +1,15 @@ + false, + 'memcached' => array( + 'default' => array( + 'hostname' => '127.0.0.1', + 'port' => '11211', + 'weight' => '1', + ) + ), + 'redis' => array( + '' => '' + ) +); \ No newline at end of file diff --git a/application/Config/config.contact.php b/application/Config/config.contact.php new file mode 100644 index 0000000..d8d8382 --- /dev/null +++ b/application/Config/config.contact.php @@ -0,0 +1,12 @@ + '', + 'contact_name' => '', + 'contact_adress' => '', + 'contact_phone' => '', + 'contact_postal_code' => '', + 'contact_region' => '', + 'contact_country' => '', + 'contact_city' => '', +); diff --git a/application/Config/config.core.php b/application/Config/config.core.php new file mode 100644 index 0000000..9308f23 --- /dev/null +++ b/application/Config/config.core.php @@ -0,0 +1,11 @@ + true, + 'enable_modules' => true, + 'enable_events' => true, + 'composer_autoloader' => '', + 'registry_caching' => false, + 'registry_caching_method' => 'file', + 'registry_caching_time' => 300, +); diff --git a/application/Config/config.database.php b/application/Config/config.database.php new file mode 100644 index 0000000..493d4ef --- /dev/null +++ b/application/Config/config.database.php @@ -0,0 +1,33 @@ + 'default', + 'query_builder' => true, + 'databases' => array( + + 'default' => array( + 'dsn' => '', + 'hostname' => '', + 'username' => '', + 'password' => '', + 'database' => '', + 'dbdriver' => '', + 'subdriver'=> '', + 'dbprefix' => '', + 'pconnect' => FALSE, + 'db_debug' => FALSE, + 'cache_on' => FALSE, + 'char_set' => 'utf8', + 'dbcollat' => 'utf8_general_ci', + 'swap_pre' => '', + 'encrypt' => FALSE, + 'compress' => FALSE, + 'stricton' => FALSE, + 'failover' => array(), + ), + + + ), +); + + diff --git a/application/Config/config.encryption.php b/application/Config/config.encryption.php new file mode 100644 index 0000000..4e70c30 --- /dev/null +++ b/application/Config/config.encryption.php @@ -0,0 +1,5 @@ + '', +); diff --git a/application/Config/config.error.php b/application/Config/config.error.php new file mode 100644 index 0000000..dc5844b --- /dev/null +++ b/application/Config/config.error.php @@ -0,0 +1,5 @@ + true, + 'log_to_file' => false, + 'logger_template' => 'logger_default', +) ; \ No newline at end of file diff --git a/application/Config/config.main.php b/application/Config/config.main.php new file mode 100644 index 0000000..1a2872a --- /dev/null +++ b/application/Config/config.main.php @@ -0,0 +1,59 @@ + '', + 'index_page' => 'index.php', + 'server_name' => '', + + 'administrator_mail' => '', + + 'default_controller' => 'standard', + 'default_function' => 'index', + 'application_prefix' => 'MY_', + + 'charset' => 'UTF-8', + 'language' => 'english', + + /* + |-------------------------------------------------------------------------- + | Cookie Related Variables + |-------------------------------------------------------------------------- + | + | 'cookie_prefix' = Set a cookie name prefix if you need to avoid collisions + | 'cookie_domain' = Set to .your-domain.com for site-wide cookies + | 'cookie_path' = Typically will be a forward slash + | 'cookie_secure' = Cookie will only be set if a secure HTTPS connection exists. + | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript) + | + | Note: These settings (with the exception of 'cookie_prefix' and + | 'cookie_httponly') will also affect sessions. + | + */ + 'cookie_prefix' => '', + 'cookie_domain' => '', + 'cookie_path' => '/', + 'cookie_secure' => FALSE, + 'cookie_httponly' => FALSE, + + /* + |-------------------------------------------------------------------------- + | Output Compression + |-------------------------------------------------------------------------- + | + | Enables Gzip output compression for faster page loads. When enabled, + | the output class will test whether your server supports Gzip. + | Even if it does, however, not all browsers support compression + | so enable only if you are reasonably sure your visitors can handle it. + | + | Only used if zlib.output_compression is turned off in your php.ini. + | Please do not use it together with httpd-level output compression. + | + | VERY IMPORTANT: If you are getting a blank page when compression is enabled it + | means you are prematurely outputting something to your browser. It could + | even be a line of whitespace at the end of one of your scripts. For + | compression to work, nothing can be sent before the output buffer is called + | by the output class. Do not 'echo' any values with compression enabled. + | + */ + 'compress_output' => FALSE, +); diff --git a/application/Config/config.mimes.php b/application/Config/config.mimes.php new file mode 100644 index 0000000..b03d134 --- /dev/null +++ b/application/Config/config.mimes.php @@ -0,0 +1,166 @@ + array('application/mac-binhex40', 'application/mac-binhex', 'application/x-binhex40', 'application/x-mac-binhex40'), + 'cpt' => 'application/mac-compactpro', + 'csv' => array('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel', 'text/plain'), + 'bin' => array('application/macbinary', 'application/mac-binary', 'application/octet-stream', 'application/x-binary', 'application/x-macbinary'), + 'dms' => 'application/octet-stream', + 'lha' => 'application/octet-stream', + 'lzh' => 'application/octet-stream', + 'exe' => array('application/octet-stream', 'application/x-msdownload'), + 'class' => 'application/octet-stream', + 'psd' => array('application/x-photoshop', 'image/vnd.adobe.photoshop'), + 'so' => 'application/octet-stream', + 'sea' => 'application/octet-stream', + 'dll' => 'application/octet-stream', + 'oda' => 'application/oda', + 'pdf' => array('application/pdf', 'application/force-download', 'application/x-download', 'binary/octet-stream'), + 'ai' => array('application/pdf', 'application/postscript'), + 'eps' => 'application/postscript', + 'ps' => 'application/postscript', + 'smi' => 'application/smil', + 'smil' => 'application/smil', + 'mif' => 'application/vnd.mif', + 'xls' => array('application/vnd.ms-excel', 'application/msexcel', 'application/x-msexcel', 'application/x-ms-excel', 'application/x-excel', 'application/x-dos_ms_excel', 'application/xls', 'application/x-xls', 'application/excel', 'application/download', 'application/vnd.ms-office', 'application/msword'), + 'ppt' => array('application/powerpoint', 'application/vnd.ms-powerpoint', 'application/vnd.ms-office', 'application/msword'), + 'pptx' => array('application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/x-zip', 'application/zip'), + 'wbxml' => 'application/wbxml', + 'wmlc' => 'application/wmlc', + 'dcr' => 'application/x-director', + 'dir' => 'application/x-director', + 'dxr' => 'application/x-director', + 'dvi' => 'application/x-dvi', + 'gtar' => 'application/x-gtar', + 'gz' => 'application/x-gzip', + 'gzip' => 'application/x-gzip', + 'php' => array('application/x-httpd-php', 'application/php', 'application/x-php', 'text/php', 'text/x-php', 'application/x-httpd-php-source'), + 'php4' => 'application/x-httpd-php', + 'php3' => 'application/x-httpd-php', + 'phtml' => 'application/x-httpd-php', + 'phps' => 'application/x-httpd-php-source', + 'js' => array('application/x-javascript', 'text/plain'), + 'swf' => 'application/x-shockwave-flash', + 'sit' => 'application/x-stuffit', + 'tar' => 'application/x-tar', + 'tgz' => array('application/x-tar', 'application/x-gzip-compressed'), + 'z' => 'application/x-compress', + 'xhtml' => 'application/xhtml+xml', + 'xht' => 'application/xhtml+xml', + 'zip' => array('application/x-zip', 'application/zip', 'application/x-zip-compressed', 'application/s-compressed', 'multipart/x-zip'), + 'rar' => array('application/x-rar', 'application/rar', 'application/x-rar-compressed'), + 'mid' => 'audio/midi', + 'midi' => 'audio/midi', + 'mpga' => 'audio/mpeg', + 'mp2' => 'audio/mpeg', + 'mp3' => array('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'), + 'aif' => array('audio/x-aiff', 'audio/aiff'), + 'aiff' => array('audio/x-aiff', 'audio/aiff'), + 'aifc' => 'audio/x-aiff', + 'ram' => 'audio/x-pn-realaudio', + 'rm' => 'audio/x-pn-realaudio', + 'rpm' => 'audio/x-pn-realaudio-plugin', + 'ra' => 'audio/x-realaudio', + 'rv' => 'video/vnd.rn-realvideo', + 'wav' => array('audio/x-wav', 'audio/wave', 'audio/wav'), + 'bmp' => array('image/bmp', 'image/x-bmp', 'image/x-bitmap', 'image/x-xbitmap', 'image/x-win-bitmap', 'image/x-windows-bmp', 'image/ms-bmp', 'image/x-ms-bmp', 'application/bmp', 'application/x-bmp', 'application/x-win-bitmap'), + 'gif' => 'image/gif', + 'jpeg' => array('image/jpeg', 'image/pjpeg'), + 'jpg' => array('image/jpeg', 'image/pjpeg'), + 'jpe' => array('image/jpeg', 'image/pjpeg'), + 'jp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'j2k' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpf' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpg2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpx' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'jpm' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'mj2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'mjp2' => array('image/jp2', 'video/mj2', 'image/jpx', 'image/jpm'), + 'png' => array('image/png', 'image/x-png'), + 'tiff' => 'image/tiff', + 'tif' => 'image/tiff', + 'css' => array('text/css', 'text/plain'), + 'html' => array('text/html', 'text/plain'), + 'htm' => array('text/html', 'text/plain'), + 'shtml' => array('text/html', 'text/plain'), + 'txt' => 'text/plain', + 'text' => 'text/plain', + 'log' => array('text/plain', 'text/x-log'), + 'rtx' => 'text/richtext', + 'rtf' => 'text/rtf', + 'xml' => array('application/xml', 'text/xml', 'text/plain'), + 'xsl' => array('application/xml', 'text/xsl', 'text/xml'), + 'mpeg' => 'video/mpeg', + 'mpg' => 'video/mpeg', + 'mpe' => 'video/mpeg', + 'qt' => 'video/quicktime', + 'mov' => 'video/quicktime', + 'avi' => array('video/x-msvideo', 'video/msvideo', 'video/avi', 'application/x-troff-msvideo'), + 'movie' => 'video/x-sgi-movie', + 'doc' => array('application/msword', 'application/vnd.ms-office'), + 'docx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword', 'application/x-zip'), + 'dot' => array('application/msword', 'application/vnd.ms-office'), + 'dotx' => array('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip', 'application/msword'), + 'xlsx' => array('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip', 'application/vnd.ms-excel', 'application/msword', 'application/x-zip'), + 'word' => array('application/msword', 'application/octet-stream'), + 'xl' => 'application/excel', + 'eml' => 'message/rfc822', + 'json' => array('application/json', 'text/json'), + 'pem' => array('application/x-x509-user-cert', 'application/x-pem-file', 'application/octet-stream'), + 'p10' => array('application/x-pkcs10', 'application/pkcs10'), + 'p12' => 'application/x-pkcs12', + 'p7a' => 'application/x-pkcs7-signature', + 'p7c' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), + 'p7m' => array('application/pkcs7-mime', 'application/x-pkcs7-mime'), + 'p7r' => 'application/x-pkcs7-certreqresp', + 'p7s' => 'application/pkcs7-signature', + 'crt' => array('application/x-x509-ca-cert', 'application/x-x509-user-cert', 'application/pkix-cert'), + 'crl' => array('application/pkix-crl', 'application/pkcs-crl'), + 'der' => 'application/x-x509-ca-cert', + 'kdb' => 'application/octet-stream', + 'pgp' => 'application/pgp', + 'gpg' => 'application/gpg-keys', + 'sst' => 'application/octet-stream', + 'csr' => 'application/octet-stream', + 'rsa' => 'application/x-pkcs7', + 'cer' => array('application/pkix-cert', 'application/x-x509-ca-cert'), + '3g2' => 'video/3gpp2', + '3gp' => array('video/3gp', 'video/3gpp'), + 'mp4' => 'video/mp4', + 'm4a' => 'audio/x-m4a', + 'f4v' => array('video/mp4', 'video/x-f4v'), + 'flv' => 'video/x-flv', + 'webm' => 'video/webm', + 'aac' => 'audio/x-acc', + 'm4u' => 'application/vnd.mpegurl', + 'm3u' => 'text/plain', + 'xspf' => 'application/xspf+xml', + 'vlc' => 'application/videolan', + 'wmv' => array('video/x-ms-wmv', 'video/x-ms-asf'), + 'au' => 'audio/x-au', + 'ac3' => 'audio/ac3', + 'flac' => 'audio/x-flac', + 'ogg' => array('audio/ogg', 'video/ogg', 'application/ogg'), + 'kmz' => array('application/vnd.google-earth.kmz', 'application/zip', 'application/x-zip'), + 'kml' => array('application/vnd.google-earth.kml+xml', 'application/xml', 'text/xml'), + 'ics' => 'text/calendar', + 'ical' => 'text/calendar', + 'zsh' => 'text/x-scriptzsh', + '7zip' => array('application/x-compressed', 'application/x-zip-compressed', 'application/zip', 'multipart/x-zip'), + 'cdr' => array('application/cdr', 'application/coreldraw', 'application/x-cdr', 'application/x-coreldraw', 'image/cdr', 'image/x-cdr', 'zz-application/zz-winassoc-cdr'), + 'wma' => array('audio/x-ms-wma', 'video/x-ms-asf'), + 'jar' => array('application/java-archive', 'application/x-java-application', 'application/x-jar', 'application/x-compressed'), + 'svg' => array('image/svg+xml', 'application/xml', 'text/xml'), + 'vcf' => 'text/x-vcard', + 'srt' => array('text/srt', 'text/plain'), + 'vtt' => array('text/vtt', 'text/plain'), + 'ico' => array('image/x-icon', 'image/x-ico', 'image/vnd.microsoft.icon') +); diff --git a/application/Config/config.routes.php b/application/Config/config.routes.php new file mode 100644 index 0000000..9a25907 --- /dev/null +++ b/application/Config/config.routes.php @@ -0,0 +1,4 @@ + TRUE, + 'enable_query_strings' => FALSE, + 'controller_trigger' => 'c', + 'function_trigger' => 'm', + 'directory_trigger' => 'd', + + /* + |-------------------------------------------------------------------------- + | Allowed URL Characters + |-------------------------------------------------------------------------- + | + | This lets you specify which characters are permitted within your URLs. + | When someone tries to submit a URL with disallowed characters they will + | get a warning message. + | + | As a security measure you are STRONGLY encouraged to restrict URLs to + | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- + | + | Leave blank to allow all characters -- but only if you are insane. + | + | The configured value is actually a regular expression character group + | and it will be executed as: ! preg_match('/^[]+$/i + | + | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!! + | + */ + 'permitted_uri_chars' => 'a-z 0-9~%.:_\-', + + /* + |-------------------------------------------------------------------------- + | URI PROTOCOL + |-------------------------------------------------------------------------- + | + | This item determines which server global should be used to retrieve the + | URI string. The default setting of 'REQUEST_URI' works for most servers. + | If your links do not seem to work, try one of the other delicious flavors: + | + | 'REQUEST_URI' Uses $_SERVER['REQUEST_URI'] + | 'QUERY_STRING' Uses $_SERVER['QUERY_STRING'] + | 'PATH_INFO' Uses $_SERVER['PATH_INFO'] + | + | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded! + */ + 'uri_protocol' => 'REQUEST_URI', + + /* + |-------------------------------------------------------------------------- + | URL suffix + |-------------------------------------------------------------------------- + | + | This option allows you to add a suffix to all URLs generated by CodeIgniter. + | For more information please see the user guide: + | + | https://codeigniter.com/user_guide/general/urls.html + */ + 'url_suffix' => '', + + 'default_controller' => 'standard', + 'default_function' => 'index', + +); diff --git a/application/Config/config.security.php b/application/Config/config.security.php new file mode 100644 index 0000000..5254097 --- /dev/null +++ b/application/Config/config.security.php @@ -0,0 +1,72 @@ + true, + 'csrf_token_name' => 'csrf_test_name', + 'csrf_cookie_name' => 'csrf_cookie_name', + 'csrf_expire' => 7200, + 'csrf_regenerate' => TRUE, + 'csrf_exclude_uris' => array(), + + /* + |-------------------------------------------------------------------------- + | Standardize newlines + |-------------------------------------------------------------------------- + | + | Determines whether to standardize newline characters in input data, + | meaning to replace \r\n, \r, \n occurrences with the PHP_EOL value. + | + | This is particularly useful for portability between UNIX-based OSes, + | (usually \n) and Windows (\r\n). + | + */ + 'standardize_newlines' => FALSE, + + /* + |-------------------------------------------------------------------------- + | Global XSS Filtering + |-------------------------------------------------------------------------- + | + | Determines whether the XSS filter is always active when GET, POST or + | COOKIE data is encountered + | + | WARNING: This feature is DEPRECATED and currently available only + | for backwards compatibility purposes! + | + */ + 'global_xss_filtering' => FALSE, + + /* + |-------------------------------------------------------------------------- + | Reverse Proxy IPs + |-------------------------------------------------------------------------- + | + | If your server is behind a reverse proxy, you must whitelist the proxy + | IP addresses from which CodeIgniter should trust headers such as + | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify + | the visitor's IP address. + | + | You can use both an array or a comma-separated list of proxy addresses, + | as well as specifying whole subnets. Here are a few examples: + | + | Comma-separated: '10.0.1.200,192.168.5.0/24' + | Array: array('10.0.1.200', '192.168.5.0/24') + */ + 'proxy_ips' => '' + +); diff --git a/application/Controller/controller.standard.php b/application/Controller/controller.standard.php new file mode 100644 index 0000000..4770792 --- /dev/null +++ b/application/Controller/controller.standard.php @@ -0,0 +1,60 @@ +. + * + * @author TechFuze + * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) + * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License + * + * @link http://fuzeworks.techfuze.net + * @since Version 0.0.1 + * + * @version Version 0.0.1 + */ + +namespace Application\Controller; + +use FuzeWorks\ControllerAbstract; + +/** + * The default controller of FuzeWorks. + * + * This controller gets loaded when the '/' path is provided, eg. the home page. + * By default, the index function gets loaded. + * + * @author Abel Hoogeveen + * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) + */ +class Standard extends ControllerAbstract +{ + /** + * The default function of FuzeWorks. + * + * This code gets loaded for the Home page + * + * @param array $path The path provided by the HTTP Server + */ + public function index($path = null) + { + $this->output->cache(60); + $this->layout->view('home'); + } +} diff --git a/application/Controller/put_controllers_here b/application/Controller/put_controllers_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Helpers/put_helpers_here b/application/Helpers/put_helpers_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Language/put_languages_here b/application/Language/put_languages_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Libraries/put_libraries_here b/application/Libraries/put_libraries_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Models/put_models_here b/application/Models/put_models_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Modules/put_modules_here b/application/Modules/put_modules_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Views/errors/view.404.php b/application/Views/errors/view.404.php new file mode 100644 index 0000000..98c765d --- /dev/null +++ b/application/Views/errors/view.404.php @@ -0,0 +1,95 @@ +. + * + * @author TechFuze + * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) + * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License + * + * @link http://fuzeworks.techfuze.net + * @since Version 0.0.1 + * + * @version Version 0.0.1 + */ +?> + + + + Page not found + + + + +
+
+
+ + + +
+
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/application/Views/errors/view.500.php b/application/Views/errors/view.500.php new file mode 100644 index 0000000..16d330a --- /dev/null +++ b/application/Views/errors/view.500.php @@ -0,0 +1,95 @@ +. + * + * @author TechFuze + * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) + * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License + * + * @link http://fuzeworks.techfuze.net + * @since Version 0.0.1 + * + * @version Version 0.0.1 + */ +?> + + + + Page not found + + + + +
+
+
+ + + +
+
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/application/Views/put_views_here b/application/Views/put_views_here new file mode 100644 index 0000000..e69de29 diff --git a/application/Views/view.home.php b/application/Views/view.home.php new file mode 100644 index 0000000..4756d12 --- /dev/null +++ b/application/Views/view.home.php @@ -0,0 +1,106 @@ +. + * + * @author TechFuze + * @copyright Copyright (c) 2013 - 2016, Techfuze. (http://techfuze.net) + * @copyright Copyright (c) 1996 - 2015, Free Software Foundation, Inc. (http://www.fsf.org/) + * @license http://opensource.org/licenses/GPL-3.0 GPLv3 License + * + * @link http://fuzeworks.techfuze.net + * @since Version 0.0.1 + * + * @version Version 0.0.1 + */ +?> + + + + FuzeWorks - Home + + + + +
+
+
+ + + +
+
+
+
+ + + + +
+ + \ No newline at end of file diff --git a/application/bootstrap.php b/application/bootstrap.php new file mode 100644 index 0000000..0011945 --- /dev/null +++ b/application/bootstrap.php @@ -0,0 +1,15 @@ +setDebugMode('23.75.345.200'); // enable for your remote IP + +$configurator->setTimeZone('Europe/Amsterdam'); +$configurator->setTempDirectory(dirname(__DIR__) . '/temp'); +$configurator->setLogDirectory(dirname(__DIR__). '/log'); + +$container = $configurator->createContainer(); + +return $container; \ No newline at end of file diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..6437ccc --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "fuzeworks/application", + "description": "FuzeWorks Application Skeleton", + "homepage": "https://techfuze.net/fuzeworks", + "license": ["GPL-3.0"], + "authors": [ + { + "name": "Abel Hoogeveen", + "homepage": "https://myfuze.net" + }, + { + "name": "FuzeWorks Community", + "homepage": "https://techfuze.net/fuzeworks/contributors" + } + ], + "repositories": [ + { + "type": "vcs", + "url": "http://10.0.0.32/fuzeworks/core.git" + } + ], + "require": { + "php": ">=5.6.0", + "fuzeworks/core": "dev-master", + "latte/latte": "^2.4", + "tracy/tracy": "^2.4", + "smarty/smarty": "~3.1" + }, + "require-dev": { + "phpunit/phpunit": "5.3.*" + }, + "config": { + "secure-http": false + } +} \ No newline at end of file diff --git a/log/.gitignore b/log/.gitignore new file mode 100644 index 0000000..c96a04f --- /dev/null +++ b/log/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/temp/.gitignore b/temp/.gitignore new file mode 100755 index 0000000..c96a04f --- /dev/null +++ b/temp/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore \ No newline at end of file diff --git a/www/.htaccess b/www/.htaccess new file mode 100644 index 0000000..e25cb61 --- /dev/null +++ b/www/.htaccess @@ -0,0 +1,4 @@ +RewriteEngine On +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule (.*) index.php?path=$1 [QSA,L] diff --git a/www/index.php b/www/index.php new file mode 100644 index 0000000..1795751 --- /dev/null +++ b/www/index.php @@ -0,0 +1,6 @@ +router; +$router->route(); \ No newline at end of file diff --git a/www/robots.txt b/www/robots.txt new file mode 100644 index 0000000..e69de29