-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb027ab
commit 2ad6ede
Showing
1,001 changed files
with
229,944 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
; This file is for unifying the coding style for different editors and IDEs. | ||
; More information at http://editorconfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.bat] | ||
end_of_line = crlf | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,42 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
# Define the line ending behavior of the different file extensions | ||
# Set default behaviour, in case users don't have core.autocrlf set. | ||
* text=auto | ||
* text eol=lf | ||
|
||
# Explicitly declare text files we want to always be normalized and converted | ||
# to native line endings on checkout. | ||
*.php text | ||
*.default text | ||
*.ctp text | ||
*.sql text | ||
*.md text | ||
*.po text | ||
*.js text | ||
*.css text | ||
*.ini text | ||
*.properties text | ||
*.txt text | ||
*.xml text | ||
*.svg text | ||
*.yml text | ||
.htaccess text | ||
|
||
# Declare files that will always have CRLF line endings on checkout. | ||
*.bat eol=crlf | ||
|
||
# Declare files that will always have LF line endings on checkout. | ||
*.pem eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified. | ||
*.png binary | ||
*.jpg binary | ||
*.gif binary | ||
*.ico binary | ||
*.mo binary | ||
*.pdf binary | ||
*.phar binary | ||
*.woff binary | ||
*.woff2 binary | ||
*.ttf binary | ||
*.otf binary | ||
*.eot binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,4 @@ | ||
# CakePHP 3 | ||
|
||
/vendor/* | ||
/config/app.php | ||
|
||
/tmp/cache/models/* | ||
!/tmp/cache/models/empty | ||
/tmp/cache/persistent/* | ||
!/tmp/cache/persistent/empty | ||
/tmp/cache/views/* | ||
!/tmp/cache/views/empty | ||
/tmp/sessions/* | ||
!/tmp/sessions/empty | ||
/tmp/tests/* | ||
!/tmp/tests/empty | ||
|
||
/tmp/* | ||
/logs/* | ||
!/logs/empty | ||
|
||
# CakePHP 2 | ||
|
||
/app/tmp/* | ||
/app/Config/core.php | ||
/app/Config/database.php | ||
/vendors/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Uncomment the following to prevent the httpoxy vulnerability | ||
# See: https://httpoxy.org/ | ||
#<IfModule mod_headers.c> | ||
# RequestHeader unset Proxy | ||
#</IfModule> | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
RewriteRule ^$ webroot/ [L] | ||
RewriteRule (.*) webroot/$1 [L] | ||
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
language: php | ||
|
||
dist: trusty | ||
|
||
sudo: false | ||
|
||
php: | ||
- 5.6 | ||
- 7.0 | ||
- 7.1 | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
include: | ||
- php: 7.0 | ||
env: PHPCS=1 | ||
|
||
before_script: | ||
- if [[ $PHPCS = 1 ]]; then composer require cakephp/cakephp-codesniffer:~2.1; fi | ||
- if [[ $PHPCS != 1 ]]; then composer install; fi | ||
- if [[ $PHPCS != 1 ]]; then composer require phpunit/phpunit:"^5.7|^6.0"; fi | ||
- if [[ $PHPCS != 1 ]]; then composer run-script post-install-cmd --no-interaction; fi | ||
|
||
script: | ||
- if [[ $PHPCS != 1 ]]; then vendor/bin/phpunit; fi | ||
- if [[ $PHPCS = 1 ]]; then vendor/bin/phpcs -p --extensions=php --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests ./config ./webroot; fi | ||
|
||
notifications: | ||
email: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# SimpleForums | ||
Very basic forum project built in PHP using CakePHP 3.4. | ||
|
||
### Features | ||
--- | ||
* Categories | ||
* Sub Forums | ||
* Threads |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/usr/bin/env sh | ||
################################################################################ | ||
# | ||
# Cake is a shell script for invoking CakePHP shell commands | ||
# | ||
# CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
# Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
# | ||
# Licensed under The MIT License | ||
# For full copyright and license information, please see the LICENSE.txt | ||
# Redistributions of files must retain the above copyright notice. | ||
# | ||
# @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
# @link http://cakephp.org CakePHP(tm) Project | ||
# @since 1.2.0 | ||
# @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
# | ||
################################################################################ | ||
|
||
# Canonicalize by following every symlink of the given name recursively | ||
canonicalize() { | ||
NAME="$1" | ||
if [ -f "$NAME" ] | ||
then | ||
DIR=$(dirname -- "$NAME") | ||
NAME=$(cd -P "$DIR" > /dev/null && pwd -P)/$(basename -- "$NAME") | ||
fi | ||
while [ -h "$NAME" ]; do | ||
DIR=$(dirname -- "$NAME") | ||
SYM=$(readlink "$NAME") | ||
NAME=$(cd "$DIR" > /dev/null && cd $(dirname -- "$SYM") > /dev/null && pwd)/$(basename -- "$SYM") | ||
done | ||
echo "$NAME" | ||
} | ||
|
||
CONSOLE=$(dirname -- "$(canonicalize "$0")") | ||
APP=$(dirname "$CONSOLE") | ||
|
||
if [ $(basename $0) != 'cake' ] | ||
then | ||
exec php "$CONSOLE"/cake.php $(basename $0) "$@" | ||
else | ||
exec php "$CONSOLE"/cake.php "$@" | ||
fi | ||
|
||
exit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
:: | ||
:: Cake is a Windows batch script for invoking CakePHP shell commands | ||
:: | ||
:: CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
:: Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
:: | ||
:: Licensed under The MIT License | ||
:: Redistributions of files must retain the above copyright notice. | ||
:: | ||
:: @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
:: @link http://cakephp.org CakePHP(tm) Project | ||
:: @since 2.0.0 | ||
:: @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
:: | ||
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: | ||
|
||
@echo off | ||
|
||
SET app=%0 | ||
SET lib=%~dp0 | ||
|
||
php "%lib%cake.php" %* | ||
|
||
echo. | ||
|
||
exit /B %ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/php -q | ||
<?php | ||
/** | ||
* Command-line code generation utility to automate programmer chores. | ||
* | ||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) | ||
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* | ||
* Licensed under The MIT License | ||
* For full copyright and license information, please see the LICENSE.txt | ||
* Redistributions of files must retain the above copyright notice. | ||
* | ||
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) | ||
* @link http://cakephp.org CakePHP(tm) Project | ||
* @since 2.0.0 | ||
* @license http://www.opensource.org/licenses/mit-license.php MIT License | ||
*/ | ||
|
||
$minVersion = '5.6.0'; | ||
if (file_exists('composer.json')) { | ||
$composer = json_decode(file_get_contents('composer.json')); | ||
if (isset($composer->require->php)) { | ||
$minVersion = preg_replace('/([^0-9\.])/', '', $composer->require->php); | ||
} | ||
} | ||
if (version_compare(phpversion(), $minVersion, '<')) { | ||
fwrite(STDERR, sprintf("Minimum PHP version: %s. You are using: %s.\n", $minVersion, phpversion())); | ||
exit(-1); | ||
} | ||
|
||
require dirname(__DIR__) . '/vendor/autoload.php'; | ||
include dirname(__DIR__) . '/config/bootstrap.php'; | ||
|
||
exit(Cake\Console\ShellDispatcher::run($argv)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ | ||
"name": "cakephp/app", | ||
"description": "CakePHP skeleton app", | ||
"homepage": "http://cakephp.org", | ||
"type": "project", | ||
"license": "MIT", | ||
"require": { | ||
"php": ">=5.6", | ||
"cakephp/cakephp": "3.4.*", | ||
"mobiledetect/mobiledetectlib": "2.*", | ||
"cakephp/migrations": "~1.0", | ||
"cakephp/plugin-installer": "~1.0" | ||
}, | ||
"require-dev": { | ||
"psy/psysh": "@stable", | ||
"cakephp/debug_kit": "~3.2", | ||
"cakephp/bake": "~1.1" | ||
}, | ||
"suggest": { | ||
"markstory/asset_compress": "An asset compression plugin which provides file concatenation and a flexible filter system for preprocessing and minification.", | ||
"dereuromark/cakephp-ide-helper": "After baking your code, this keeps your annotations in sync with the code evolving from there on for maximum IDE and PHPStan compatibility.", | ||
"phpunit/phpunit": "Allows automated tests to be run without system-wide install.", | ||
"cakephp/cakephp-codesniffer": "Allows to check the code against the coding standards used in CakePHP." | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src", | ||
"Codebase\\": "./plugins/Codebase/src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"App\\Test\\": "tests", | ||
"Cake\\Test\\": "./vendor/cakephp/cakephp/tests", | ||
"Codebase\\Test\\": "./plugins/Codebase/tests" | ||
} | ||
}, | ||
"scripts": { | ||
"post-install-cmd": "App\\Console\\Installer::postInstall", | ||
"post-create-project-cmd": "App\\Console\\Installer::postInstall", | ||
"post-autoload-dump": "Cake\\Composer\\Installer\\PluginInstaller::postAutoloadDump", | ||
"check": [ | ||
"@test", | ||
"@cs-check" | ||
], | ||
"cs-check": "phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", | ||
"cs-fix": "phpcbf --colors --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests", | ||
"test": "phpunit --colors=always" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true | ||
} |
Oops, something went wrong.