Jira Abfrage
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
"license": "MIT",
|
||||
"require": {
|
||||
"php": ">=5.5.9",
|
||||
"cakephp/cakephp": "3.7.*",
|
||||
"cakephp/cakephp": "3.8.*",
|
||||
"mobiledetect/mobiledetectlib": "2.*",
|
||||
"cakephp/migrations": "~1.0",
|
||||
"cakephp/plugin-installer": "*",
|
||||
"sunra/php-simple-html-dom-parser": "^1.5",
|
||||
"spatie/array-to-xml": "^2.7",
|
||||
"phpoffice/phpspreadsheet": "^1.5"
|
||||
"phpoffice/phpspreadsheet": "^1.5",
|
||||
"cakedc/users": "^8.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"psy/psysh": "@stable",
|
||||
|
||||
322
composer.lock
generated
322
composer.lock
generated
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "520139bc99d21b2a3c8a43f89f907c30",
|
||||
"content-hash": "d94f0d566d7dcdcbd0b86cc387673045",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aura/intl",
|
||||
@@ -53,17 +53,140 @@
|
||||
"time": "2017-01-20T05:00:11+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/cakephp",
|
||||
"version": "3.7.7",
|
||||
"name": "cakedc/auth",
|
||||
"version": "3.0.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/cakephp.git",
|
||||
"reference": "b0aeff37f78e6cca7ed35bc0e49dedd6cf5fb3d6"
|
||||
"url": "https://github.com/CakeDC/auth.git",
|
||||
"reference": "83ac6e545515acc1d0aaa440fb13ac1d1fe1ffa0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/cakephp/zipball/b0aeff37f78e6cca7ed35bc0e49dedd6cf5fb3d6",
|
||||
"reference": "b0aeff37f78e6cca7ed35bc0e49dedd6cf5fb3d6",
|
||||
"url": "https://api.github.com/repos/CakeDC/auth/zipball/83ac6e545515acc1d0aaa440fb13ac1d1fe1ffa0",
|
||||
"reference": "83ac6e545515acc1d0aaa440fb13ac1d1fe1ffa0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"cakephp/cakephp": "^3.6.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^5.0"
|
||||
},
|
||||
"type": "cakephp-plugin",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"CakeDC\\Auth\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "CakeDC",
|
||||
"homepage": "https://www.cakedc.com",
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": "Others",
|
||||
"homepage": "https://github.com/CakeDC/auth/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Auth objects for CakePHP",
|
||||
"homepage": "https://github.com/CakeDC/auth",
|
||||
"keywords": [
|
||||
"Authentication",
|
||||
"auth",
|
||||
"cakedc",
|
||||
"cakephp"
|
||||
],
|
||||
"time": "2019-04-26T11:46:35+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakedc/users",
|
||||
"version": "8.4.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/CakeDC/users.git",
|
||||
"reference": "3f817d9fe86e819a964ab2687a1adc4a33e7f2f8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/CakeDC/users/zipball/3f817d9fe86e819a964ab2687a1adc4a33e7f2f8",
|
||||
"reference": "3f817d9fe86e819a964ab2687a1adc4a33e7f2f8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"cakedc/auth": "^3.0",
|
||||
"cakephp/cakephp": "^3.7"
|
||||
},
|
||||
"require-dev": {
|
||||
"cakephp/cakephp-codesniffer": "^2.0",
|
||||
"google/recaptcha": "@stable",
|
||||
"league/oauth2-facebook": "@stable",
|
||||
"league/oauth2-google": "@stable",
|
||||
"league/oauth2-instagram": "@stable",
|
||||
"league/oauth2-linkedin": "@stable",
|
||||
"luchianenco/oauth2-amazon": "^1.1",
|
||||
"phpunit/phpunit": "^5.0",
|
||||
"robthree/twofactorauth": "~1.6",
|
||||
"yubico/u2flib-server": "^1.0"
|
||||
},
|
||||
"suggest": {
|
||||
"google/recaptcha": "Provides reCAPTCHA validation for registration form",
|
||||
"league/oauth1-client": "Provides Social Authentication with Twitter",
|
||||
"league/oauth2-facebook": "Provides Social Authentication with Facebook",
|
||||
"league/oauth2-google": "Provides Social Authentication with Google+",
|
||||
"league/oauth2-instagram": "Provides Social Authentication with Instagram",
|
||||
"league/oauth2-linkedin": "Provides Social Authentication with LinkedIn",
|
||||
"luchianenco/oauth2-amazon": "Provides Social Authentication with Amazon",
|
||||
"robthree/twofactorauth": "Provides Google Authenticator functionality"
|
||||
},
|
||||
"type": "cakephp-plugin",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"CakeDC\\Users\\": "src"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "CakeDC",
|
||||
"homepage": "http://www.cakedc.com",
|
||||
"role": "Author"
|
||||
},
|
||||
{
|
||||
"name": "Others",
|
||||
"homepage": "https://github.com/CakeDC/users/graphs/contributors"
|
||||
}
|
||||
],
|
||||
"description": "Users Plugin for CakePHP",
|
||||
"homepage": "https://github.com/CakeDC/users",
|
||||
"keywords": [
|
||||
"Authentication",
|
||||
"auth",
|
||||
"cakedc",
|
||||
"cakephp",
|
||||
"oauth2"
|
||||
],
|
||||
"time": "2019-03-13T12:15:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/cakephp",
|
||||
"version": "3.8.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/cakephp.git",
|
||||
"reference": "69643f58dd110a4c5cce7ff867707de176c64bc4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/cakephp/zipball/69643f58dd110a4c5cce7ff867707de176c64bc4",
|
||||
"reference": "69643f58dd110a4c5cce7ff867707de176c64bc4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -139,20 +262,20 @@
|
||||
"rapid-development",
|
||||
"validation"
|
||||
],
|
||||
"time": "2019-04-24T01:30:19+00:00"
|
||||
"time": "2019-06-27T02:33:24+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/chronos",
|
||||
"version": "1.2.5",
|
||||
"version": "1.2.8",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/chronos.git",
|
||||
"reference": "8a2b005a2db173e1b5493002afb8e1e13c71a62a"
|
||||
"reference": "0292f06e8cc23fc82f0574889da2d8bf27b613c1"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/chronos/zipball/8a2b005a2db173e1b5493002afb8e1e13c71a62a",
|
||||
"reference": "8a2b005a2db173e1b5493002afb8e1e13c71a62a",
|
||||
"url": "https://api.github.com/repos/cakephp/chronos/zipball/0292f06e8cc23fc82f0574889da2d8bf27b613c1",
|
||||
"reference": "0292f06e8cc23fc82f0574889da2d8bf27b613c1",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -196,7 +319,7 @@
|
||||
"datetime",
|
||||
"time"
|
||||
],
|
||||
"time": "2019-04-23T19:00:57+00:00"
|
||||
"time": "2019-06-17T15:19:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/migrations",
|
||||
@@ -511,16 +634,16 @@
|
||||
},
|
||||
{
|
||||
"name": "phpoffice/phpspreadsheet",
|
||||
"version": "1.6.0",
|
||||
"version": "1.8.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/PHPOffice/PhpSpreadsheet.git",
|
||||
"reference": "bf00f0cc5f55c354018f9a9ef15e6e3e1a229051"
|
||||
"reference": "352c7002fefe4e4037d02654d853a1b09520946f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/bf00f0cc5f55c354018f9a9ef15e6e3e1a229051",
|
||||
"reference": "bf00f0cc5f55c354018f9a9ef15e6e3e1a229051",
|
||||
"url": "https://api.github.com/repos/PHPOffice/PhpSpreadsheet/zipball/352c7002fefe4e4037d02654d853a1b09520946f",
|
||||
"reference": "352c7002fefe4e4037d02654d853a1b09520946f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -601,7 +724,7 @@
|
||||
"xls",
|
||||
"xlsx"
|
||||
],
|
||||
"time": "2019-01-02T04:42:54+00:00"
|
||||
"time": "2019-07-01T20:46:51+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psr/http-message",
|
||||
@@ -816,24 +939,25 @@
|
||||
},
|
||||
{
|
||||
"name": "spatie/array-to-xml",
|
||||
"version": "2.8.1",
|
||||
"version": "2.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/spatie/array-to-xml.git",
|
||||
"reference": "2bf193b3f795d5a42e147c4fa155c288878312e7"
|
||||
"reference": "68a181261df9ba16688abb87d8658638157b8f90"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/spatie/array-to-xml/zipball/2bf193b3f795d5a42e147c4fa155c288878312e7",
|
||||
"reference": "2bf193b3f795d5a42e147c4fa155c288878312e7",
|
||||
"url": "https://api.github.com/repos/spatie/array-to-xml/zipball/68a181261df9ba16688abb87d8658638157b8f90",
|
||||
"reference": "68a181261df9ba16688abb87d8658638157b8f90",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"php": "^7.1"
|
||||
"ext-dom": "*",
|
||||
"php": "^7.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"mockery/mockery": "^1.0",
|
||||
"phpunit/phpunit": "^7.0",
|
||||
"phpunit/phpunit": "^8.0",
|
||||
"spatie/phpunit-snapshot-assertions": "^2.0"
|
||||
},
|
||||
"type": "library",
|
||||
@@ -861,7 +985,7 @@
|
||||
"convert",
|
||||
"xml"
|
||||
],
|
||||
"time": "2019-03-15T18:43:25+00:00"
|
||||
"time": "2019-06-26T21:54:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "sunra/php-simple-html-dom-parser",
|
||||
@@ -913,16 +1037,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/config",
|
||||
"version": "v3.4.26",
|
||||
"version": "v3.4.29",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/config.git",
|
||||
"reference": "177a276c01575253c95cefe0866e3d1b57637fe0"
|
||||
"reference": "29a33f66194fbe2ed4555981810f15fd8440e4a8"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/config/zipball/177a276c01575253c95cefe0866e3d1b57637fe0",
|
||||
"reference": "177a276c01575253c95cefe0866e3d1b57637fe0",
|
||||
"url": "https://api.github.com/repos/symfony/config/zipball/29a33f66194fbe2ed4555981810f15fd8440e4a8",
|
||||
"reference": "29a33f66194fbe2ed4555981810f15fd8440e4a8",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -973,20 +1097,20 @@
|
||||
],
|
||||
"description": "Symfony Config Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-02-23T15:06:07+00:00"
|
||||
"time": "2019-05-30T15:47:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/console",
|
||||
"version": "v3.4.26",
|
||||
"version": "v3.4.29",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/console.git",
|
||||
"reference": "15a9104356436cb26e08adab97706654799d31d8"
|
||||
"reference": "c4d2f3529755ffc0be9fb823583b28d8744eeb3d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/15a9104356436cb26e08adab97706654799d31d8",
|
||||
"reference": "15a9104356436cb26e08adab97706654799d31d8",
|
||||
"url": "https://api.github.com/repos/symfony/console/zipball/c4d2f3529755ffc0be9fb823583b28d8744eeb3d",
|
||||
"reference": "c4d2f3529755ffc0be9fb823583b28d8744eeb3d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1045,20 +1169,20 @@
|
||||
],
|
||||
"description": "Symfony Console Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-04-08T09:29:13+00:00"
|
||||
"time": "2019-06-05T11:33:52+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/debug",
|
||||
"version": "v4.2.7",
|
||||
"version": "v4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/debug.git",
|
||||
"reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37"
|
||||
"reference": "d8f4fb38152e0eb6a433705e5f661d25b32c5fcd"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/2d279b6bb1d582dd5740d4d3251ae8c18812ed37",
|
||||
"reference": "2d279b6bb1d582dd5740d4d3251ae8c18812ed37",
|
||||
"url": "https://api.github.com/repos/symfony/debug/zipball/d8f4fb38152e0eb6a433705e5f661d25b32c5fcd",
|
||||
"reference": "d8f4fb38152e0eb6a433705e5f661d25b32c5fcd",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1074,7 +1198,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.2-dev"
|
||||
"dev-master": "4.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1101,20 +1225,20 @@
|
||||
],
|
||||
"description": "Symfony Debug Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-04-11T11:27:41+00:00"
|
||||
"time": "2019-06-19T15:27:09+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/filesystem",
|
||||
"version": "v4.2.7",
|
||||
"version": "v4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/filesystem.git",
|
||||
"reference": "e16b9e471703b2c60b95f14d31c1239f68f11601"
|
||||
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/e16b9e471703b2c60b95f14d31c1239f68f11601",
|
||||
"reference": "e16b9e471703b2c60b95f14d31c1239f68f11601",
|
||||
"url": "https://api.github.com/repos/symfony/filesystem/zipball/b9896d034463ad6fd2bf17e2bf9418caecd6313d",
|
||||
"reference": "b9896d034463ad6fd2bf17e2bf9418caecd6313d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1124,7 +1248,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.2-dev"
|
||||
"dev-master": "4.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -1151,7 +1275,7 @@
|
||||
],
|
||||
"description": "Symfony Filesystem Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-02-07T11:40:08+00:00"
|
||||
"time": "2019-06-23T08:51:25+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-ctype",
|
||||
@@ -1272,7 +1396,7 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/yaml",
|
||||
"version": "v3.4.26",
|
||||
"version": "v3.4.29",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/yaml.git",
|
||||
@@ -1568,20 +1692,20 @@
|
||||
},
|
||||
{
|
||||
"name": "cakephp/bake",
|
||||
"version": "1.9.5",
|
||||
"version": "1.11.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/bake.git",
|
||||
"reference": "8a93a8867a1fcf2e9ab0deff4c4651dcd4a478ac"
|
||||
"reference": "0769020dda9e2014463fba9457b855017058fed4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/bake/zipball/8a93a8867a1fcf2e9ab0deff4c4651dcd4a478ac",
|
||||
"reference": "8a93a8867a1fcf2e9ab0deff4c4651dcd4a478ac",
|
||||
"url": "https://api.github.com/repos/cakephp/bake/zipball/0769020dda9e2014463fba9457b855017058fed4",
|
||||
"reference": "0769020dda9e2014463fba9457b855017058fed4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"cakephp/cakephp": "^3.7.0",
|
||||
"cakephp/cakephp": "^3.8.0",
|
||||
"cakephp/plugin-installer": "^1.0",
|
||||
"php": ">=5.6.0",
|
||||
"wyrihaximus/twig-view": "^4.3.7"
|
||||
@@ -1612,20 +1736,20 @@
|
||||
"bake",
|
||||
"cakephp"
|
||||
],
|
||||
"time": "2019-04-13T01:13:37+00:00"
|
||||
"time": "2019-07-01T22:46:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "cakephp/debug_kit",
|
||||
"version": "3.18.0",
|
||||
"version": "3.19.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/cakephp/debug_kit.git",
|
||||
"reference": "6f5ab6ad9a5f36e1ea32cf4fca1afc71d36a0f89"
|
||||
"reference": "e2d856ed7c504b80354038b22d6f342c13ac5145"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/cakephp/debug_kit/zipball/6f5ab6ad9a5f36e1ea32cf4fca1afc71d36a0f89",
|
||||
"reference": "6f5ab6ad9a5f36e1ea32cf4fca1afc71d36a0f89",
|
||||
"url": "https://api.github.com/repos/cakephp/debug_kit/zipball/e2d856ed7c504b80354038b22d6f342c13ac5145",
|
||||
"reference": "e2d856ed7c504b80354038b22d6f342c13ac5145",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1672,7 +1796,7 @@
|
||||
"debug",
|
||||
"kit"
|
||||
],
|
||||
"time": "2019-04-04T17:27:59+00:00"
|
||||
"time": "2019-05-31T13:45:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/ca-bundle",
|
||||
@@ -1732,16 +1856,16 @@
|
||||
},
|
||||
{
|
||||
"name": "composer/composer",
|
||||
"version": "1.8.5",
|
||||
"version": "1.8.6",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/composer.git",
|
||||
"reference": "949b116f9e7d98d8d276594fed74b580d125c0e6"
|
||||
"reference": "19b5f66a0e233eb944f134df34091fe1c5dfcc11"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/composer/composer/zipball/949b116f9e7d98d8d276594fed74b580d125c0e6",
|
||||
"reference": "949b116f9e7d98d8d276594fed74b580d125c0e6",
|
||||
"url": "https://api.github.com/repos/composer/composer/zipball/19b5f66a0e233eb944f134df34091fe1c5dfcc11",
|
||||
"reference": "19b5f66a0e233eb944f134df34091fe1c5dfcc11",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1808,7 +1932,7 @@
|
||||
"dependency",
|
||||
"package"
|
||||
],
|
||||
"time": "2019-04-09T15:46:48+00:00"
|
||||
"time": "2019-06-11T13:03:06+00:00"
|
||||
},
|
||||
{
|
||||
"name": "composer/semver",
|
||||
@@ -1934,16 +2058,16 @@
|
||||
},
|
||||
{
|
||||
"name": "composer/xdebug-handler",
|
||||
"version": "1.3.2",
|
||||
"version": "1.3.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/composer/xdebug-handler.git",
|
||||
"reference": "d17708133b6c276d6e42ef887a877866b909d892"
|
||||
"reference": "46867cbf8ca9fb8d60c506895449eb799db1184f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/d17708133b6c276d6e42ef887a877866b909d892",
|
||||
"reference": "d17708133b6c276d6e42ef887a877866b909d892",
|
||||
"url": "https://api.github.com/repos/composer/xdebug-handler/zipball/46867cbf8ca9fb8d60c506895449eb799db1184f",
|
||||
"reference": "46867cbf8ca9fb8d60c506895449eb799db1184f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -1974,7 +2098,7 @@
|
||||
"Xdebug",
|
||||
"performance"
|
||||
],
|
||||
"time": "2019-01-28T20:25:53+00:00"
|
||||
"time": "2019-05-27T17:52:04+00:00"
|
||||
},
|
||||
{
|
||||
"name": "dnoegel/php-xdg-base-dir",
|
||||
@@ -2275,16 +2399,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
"version": "v4.2.1",
|
||||
"version": "v4.2.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0"
|
||||
"reference": "1bd73cc04c3843ad8d6b0bfc0956026a151fc420"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/5221f49a608808c1e4d436df32884cbc1b821ac0",
|
||||
"reference": "5221f49a608808c1e4d436df32884cbc1b821ac0",
|
||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bd73cc04c3843ad8d6b0bfc0956026a151fc420",
|
||||
"reference": "1bd73cc04c3843ad8d6b0bfc0956026a151fc420",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2322,7 +2446,7 @@
|
||||
"parser",
|
||||
"php"
|
||||
],
|
||||
"time": "2019-02-16T20:54:15+00:00"
|
||||
"time": "2019-05-25T20:07:01+00:00"
|
||||
},
|
||||
{
|
||||
"name": "psy/psysh",
|
||||
@@ -2493,16 +2617,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/finder",
|
||||
"version": "v4.2.7",
|
||||
"version": "v4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/finder.git",
|
||||
"reference": "e45135658bd6c14b61850bf131c4f09a55133f69"
|
||||
"reference": "33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/e45135658bd6c14b61850bf131c4f09a55133f69",
|
||||
"reference": "e45135658bd6c14b61850bf131c4f09a55133f69",
|
||||
"url": "https://api.github.com/repos/symfony/finder/zipball/33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a",
|
||||
"reference": "33c21f7d5d3dc8a140c282854a7e13aeb5d0f91a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2511,7 +2635,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.2-dev"
|
||||
"dev-master": "4.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -2538,7 +2662,7 @@
|
||||
],
|
||||
"description": "Symfony Finder Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-04-06T13:51:08+00:00"
|
||||
"time": "2019-06-13T11:03:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/polyfill-php72",
|
||||
@@ -2597,16 +2721,16 @@
|
||||
},
|
||||
{
|
||||
"name": "symfony/process",
|
||||
"version": "v4.2.7",
|
||||
"version": "v4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/process.git",
|
||||
"reference": "8cf39fb4ccff793340c258ee7760fd40bfe745fe"
|
||||
"reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/process/zipball/8cf39fb4ccff793340c258ee7760fd40bfe745fe",
|
||||
"reference": "8cf39fb4ccff793340c258ee7760fd40bfe745fe",
|
||||
"url": "https://api.github.com/repos/symfony/process/zipball/856d35814cf287480465bb7a6c413bb7f5f5e69c",
|
||||
"reference": "856d35814cf287480465bb7a6c413bb7f5f5e69c",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2615,7 +2739,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.2-dev"
|
||||
"dev-master": "4.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -2642,20 +2766,20 @@
|
||||
],
|
||||
"description": "Symfony Process Component",
|
||||
"homepage": "https://symfony.com",
|
||||
"time": "2019-04-10T16:20:36+00:00"
|
||||
"time": "2019-05-30T16:10:05+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/var-dumper",
|
||||
"version": "v4.2.7",
|
||||
"version": "v4.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/symfony/var-dumper.git",
|
||||
"reference": "e760a38e12b15032325e64be63f7ffc1817af617"
|
||||
"reference": "45d6ef73671995aca565a1aa3d9a432a3ea63f91"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/e760a38e12b15032325e64be63f7ffc1817af617",
|
||||
"reference": "e760a38e12b15032325e64be63f7ffc1817af617",
|
||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/45d6ef73671995aca565a1aa3d9a432a3ea63f91",
|
||||
"reference": "45d6ef73671995aca565a1aa3d9a432a3ea63f91",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2684,7 +2808,7 @@
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "4.2-dev"
|
||||
"dev-master": "4.3-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -2718,20 +2842,20 @@
|
||||
"debug",
|
||||
"dump"
|
||||
],
|
||||
"time": "2019-04-17T14:57:01+00:00"
|
||||
"time": "2019-06-17T17:37:00+00:00"
|
||||
},
|
||||
{
|
||||
"name": "twig/twig",
|
||||
"version": "v1.39.1",
|
||||
"version": "v1.42.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/twigphp/Twig.git",
|
||||
"reference": "23e7b6f0cfa1d7ba3de69f30d8e05cf957412fec"
|
||||
"reference": "21707d6ebd05476854805e4f91b836531941bcd4"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/twigphp/Twig/zipball/23e7b6f0cfa1d7ba3de69f30d8e05cf957412fec",
|
||||
"reference": "23e7b6f0cfa1d7ba3de69f30d8e05cf957412fec",
|
||||
"url": "https://api.github.com/repos/twigphp/Twig/zipball/21707d6ebd05476854805e4f91b836531941bcd4",
|
||||
"reference": "21707d6ebd05476854805e4f91b836531941bcd4",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -2741,12 +2865,12 @@
|
||||
"require-dev": {
|
||||
"psr/container": "^1.0",
|
||||
"symfony/debug": "^2.7",
|
||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8"
|
||||
"symfony/phpunit-bridge": "^3.4.19|^4.1.8|^5.0"
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.39-dev"
|
||||
"dev-master": "1.42-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
@@ -2784,7 +2908,7 @@
|
||||
"keywords": [
|
||||
"templating"
|
||||
],
|
||||
"time": "2019-04-16T17:12:57+00:00"
|
||||
"time": "2019-06-18T15:35:16+00:00"
|
||||
},
|
||||
{
|
||||
"name": "umpirsky/twig-php-function",
|
||||
|
||||
@@ -227,3 +227,6 @@ if (Configure::read('debug')) {
|
||||
|
||||
//Plugin::load('AsdCurl', ['autoload' => true]);
|
||||
Plugin::load('AsdCurl', ['autoload' => true, 'bootstrap' => true, 'routes' => true]);
|
||||
|
||||
Configure::write('Users.config', ['users']);
|
||||
Plugin::load('CakeDC/Users', ['routes' => true, 'bootstrap' => true]);
|
||||
|
||||
121
config/permissions.php
Normal file
121
config/permissions.php
Normal file
@@ -0,0 +1,121 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
|
||||
/*
|
||||
* IMPORTANT:
|
||||
* This is an example configuration file. Copy this file into your config directory and edit to
|
||||
* setup your app permissions.
|
||||
*
|
||||
* This is a quick roles-permissions implementation
|
||||
* Rules are evaluated top-down, first matching rule will apply
|
||||
* Each line define
|
||||
* [
|
||||
* 'role' => 'role' | ['roles'] | '*'
|
||||
* 'prefix' => 'Prefix' | , (default = null)
|
||||
* 'plugin' => 'Plugin' | , (default = null)
|
||||
* 'controller' => 'Controller' | ['Controllers'] | '*',
|
||||
* 'action' => 'action' | ['actions'] | '*',
|
||||
* 'allowed' => true | false | callback (default = true)
|
||||
* ]
|
||||
* You could use '*' to match anything
|
||||
* 'allowed' will be considered true if not defined. It allows a callable to manage complex
|
||||
* permissions, like this
|
||||
* 'allowed' => function (array $user, $role, Request $request) {}
|
||||
*
|
||||
* Example, using allowed callable to define permissions only for the owner of the Posts to edit/delete
|
||||
*
|
||||
* (remember to add the 'uses' at the top of the permissions.php file for Hash, TableRegistry and Request
|
||||
[
|
||||
'role' => ['user'],
|
||||
'controller' => ['Posts'],
|
||||
'action' => ['edit', 'delete'],
|
||||
'allowed' => function(array $user, $role, Request $request) {
|
||||
$postId = Hash::get($request->params, 'pass.0');
|
||||
$post = TableRegistry::getTableLocator()->get('Posts')->get($postId);
|
||||
$userId = Hash::get($user, 'id');
|
||||
if (!empty($post->user_id) && !empty($userId)) {
|
||||
return $post->user_id === $userId;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
],
|
||||
*/
|
||||
|
||||
return [
|
||||
'CakeDC/Auth.permissions' => [
|
||||
//admin role allowed to all the things
|
||||
[
|
||||
'role' => 'admin',
|
||||
'prefix' => '*',
|
||||
'extension' => '*',
|
||||
'plugin' => '*',
|
||||
'controller' => '*',
|
||||
'action' => '*',
|
||||
],
|
||||
//specific actions allowed for the all roles in Users plugin
|
||||
[
|
||||
'role' => '*',
|
||||
'plugin' => 'CakeDC/Users',
|
||||
'controller' => 'Users',
|
||||
'action' => ['profile', 'logout', 'linkSocial', 'callbackLinkSocial'],
|
||||
],
|
||||
[
|
||||
'role' => '*',
|
||||
'plugin' => 'CakeDC/Users',
|
||||
'controller' => 'Users',
|
||||
'action' => 'resetGoogleAuthenticator',
|
||||
'allowed' => function (array $user, $role, \Cake\Http\ServerRequest $request) {
|
||||
$userId = \Cake\Utility\Hash::get($request->getAttribute('params'), 'pass.0');
|
||||
if (!empty($userId) && !empty($user)) {
|
||||
return $userId === $user['id'];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
],
|
||||
//all roles allowed to Pages/display
|
||||
[
|
||||
'role' => ['user'],
|
||||
'controller' => 'Employments',
|
||||
'action' => ['index'],
|
||||
],
|
||||
/* [
|
||||
'role' => '*',
|
||||
'controller' => 'Imports',
|
||||
'action' => ['ftp','ftp_analyse','index','ftpAnalyse'],
|
||||
], */
|
||||
[
|
||||
'role' => '*',
|
||||
'controller' => 'Pages',
|
||||
'action' => 'display',
|
||||
],
|
||||
[
|
||||
'role' => 'asd',
|
||||
'controller' => 'Employments',
|
||||
'action' => 'analyse',
|
||||
],
|
||||
|
||||
/*[
|
||||
'role' => ['user'],
|
||||
'prefix' => 'admin',
|
||||
'controller' => ['Curls'],
|
||||
'action' => ['upStatistik', 'usStatistik'],
|
||||
/*'allowed' => function(array $user, $role, \Cake\Http\ServerRequest $request) {
|
||||
$userId = \Cake\Utility\Hash::get($request->getAttribute('params'), 'pass.0');
|
||||
if (!empty($userId) && !empty($user)) {
|
||||
return $userId === $user['id'];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
], */
|
||||
]
|
||||
];
|
||||
@@ -49,7 +49,8 @@ Router::scope('/', function (RouteBuilder $routes) {
|
||||
* its action called 'display', and we pass a param to select the view file
|
||||
* to use (in this case, src/Template/Pages/home.ctp)...
|
||||
*/
|
||||
$routes->connect('/', ['controller' => 'curls', 'action' => 'usStatistik']);
|
||||
$routes->connect('/', ['controller' => 'Pages', 'action' => 'home']);
|
||||
//$routes->connect('/', ['controller' => 'curls', 'action' => 'usStatistik']);
|
||||
//$routes->connect('/', ['controller' => 'examinations', 'action' => 'index']);
|
||||
|
||||
/**
|
||||
|
||||
226
config/users.php
Normal file
226
config/users.php
Normal file
@@ -0,0 +1,226 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright 2010 - 2017, Cake Development Corporation (https://www.cakedc.com)
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
use Cake\Core\Configure;
|
||||
use Cake\Routing\Router;
|
||||
|
||||
$config = [
|
||||
'Users' => [
|
||||
// Table used to manage users
|
||||
'table' => 'CakeDC/Users.Users',
|
||||
// Controller used to manage users plugin features & actions
|
||||
'controller' => 'CakeDC/Users.Users',
|
||||
// configure Auth component
|
||||
'auth' => true,
|
||||
// Password Hasher
|
||||
'passwordHasher' => '\Cake\Auth\DefaultPasswordHasher',
|
||||
// token expiration, 1 hour
|
||||
'Token' => ['expiration' => 3600],
|
||||
'Email' => [
|
||||
// determines if the user should include email
|
||||
'required' => false,
|
||||
// determines if registration workflow includes email validation
|
||||
'validate' => false,
|
||||
],
|
||||
'Registration' => [
|
||||
// determines if the register is enabled
|
||||
'active' => true,
|
||||
// determines if the reCaptcha is enabled for registration
|
||||
'reCaptcha' => true,
|
||||
// allow a logged in user to access the registration form
|
||||
'allowLoggedIn' => false,
|
||||
//ensure user is active (confirmed email) to reset his password
|
||||
'ensureActive' => false,
|
||||
// default role name used in registration
|
||||
'defaultRole' => 'user',
|
||||
],
|
||||
'reCaptcha' => [
|
||||
// reCaptcha key goes here
|
||||
'key' => null,
|
||||
// reCaptcha secret
|
||||
'secret' => null,
|
||||
// use reCaptcha in registration
|
||||
'registration' => false,
|
||||
// use reCaptcha in login, valid values are false, true
|
||||
'login' => false,
|
||||
],
|
||||
'Tos' => [
|
||||
// determines if the user should include tos accepted
|
||||
'required' => false,
|
||||
],
|
||||
'Social' => [
|
||||
// enable social login
|
||||
'login' => false,
|
||||
// enable social login
|
||||
'authenticator' => 'CakeDC/Users.Social',
|
||||
],
|
||||
'GoogleAuthenticator' => [
|
||||
// enable Google Authenticator
|
||||
'login' => false,
|
||||
'issuer' => null,
|
||||
// The number of digits the resulting codes will be
|
||||
'digits' => 6,
|
||||
// The number of seconds a code will be valid
|
||||
'period' => 30,
|
||||
// The algorithm used
|
||||
'algorithm' => 'sha1',
|
||||
// QR-code provider (more on this later)
|
||||
'qrcodeprovider' => null,
|
||||
// Random Number Generator provider (more on this later)
|
||||
'rngprovider' => null
|
||||
],
|
||||
'Profile' => [
|
||||
// Allow view other users profiles
|
||||
'viewOthers' => true,
|
||||
'route' => ['plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'profile'],
|
||||
],
|
||||
'Key' => [
|
||||
'Session' => [
|
||||
// session key to store the social auth data
|
||||
'social' => 'Users.social',
|
||||
// userId key used in reset password workflow
|
||||
'resetPasswordUserId' => 'Users.resetPasswordUserId',
|
||||
],
|
||||
// form key to store the social auth data
|
||||
'Form' => [
|
||||
'social' => 'social'
|
||||
],
|
||||
'Data' => [
|
||||
// data key to store the users email
|
||||
'email' => 'email',
|
||||
// data key to store email coming from social networks
|
||||
'socialEmail' => 'info.email',
|
||||
// data key to check if the remember me option is enabled
|
||||
'rememberMe' => 'remember_me',
|
||||
],
|
||||
],
|
||||
// Avatar placeholder
|
||||
'Avatar' => ['placeholder' => 'CakeDC/Users.avatar_placeholder.png'],
|
||||
'RememberMe' => [
|
||||
// configure Remember Me component
|
||||
'active' => true,
|
||||
'checked' => true,
|
||||
'Cookie' => [
|
||||
'name' => 'remember_me',
|
||||
'Config' => [
|
||||
'expires' => '1 month',
|
||||
'httpOnly' => true,
|
||||
]
|
||||
]
|
||||
],
|
||||
],
|
||||
'GoogleAuthenticator' => [
|
||||
'checker' => \CakeDC\Users\Auth\DefaultTwoFactorAuthenticationChecker::class,
|
||||
'verifyAction' => [
|
||||
'plugin' => 'CakeDC/Users',
|
||||
'controller' => 'Users',
|
||||
'action' => 'verify',
|
||||
'prefix' => false,
|
||||
],
|
||||
],
|
||||
'U2f' => [
|
||||
'enabled' => false,
|
||||
'checker' => \CakeDC\Users\Auth\DefaultU2fAuthenticationChecker::class,
|
||||
'startAction' => [
|
||||
'plugin' => 'CakeDC/Users',
|
||||
'controller' => 'Users',
|
||||
'action' => 'u2f',
|
||||
'prefix' => false,
|
||||
]
|
||||
],
|
||||
// default configuration used to auto-load the Auth Component, override to change the way Auth works
|
||||
'Auth' => [
|
||||
'loginAction' => [
|
||||
'plugin' => 'CakeDC/Users',
|
||||
'controller' => 'Users',
|
||||
'action' => 'login',
|
||||
'prefix' => false
|
||||
],
|
||||
'authenticate' => [
|
||||
'all' => [
|
||||
'finder' => 'auth',
|
||||
],
|
||||
'CakeDC/Auth.ApiKey',
|
||||
'CakeDC/Auth.RememberMe',
|
||||
'Form',
|
||||
],
|
||||
'authorize' => [
|
||||
'CakeDC/Auth.Superuser',
|
||||
'CakeDC/Auth.SimpleRbac',
|
||||
],
|
||||
],
|
||||
'OAuth' => [
|
||||
'path' => ['plugin' => 'CakeDC/Users', 'controller' => 'Users', 'action' => 'socialLogin', 'prefix' => null],
|
||||
'providers' => [
|
||||
'facebook' => [
|
||||
'className' => 'League\OAuth2\Client\Provider\Facebook',
|
||||
'authParams' => ['scope' => ['public_profile', 'email', 'user_birthday', 'user_gender', 'user_link']],
|
||||
'options' => [
|
||||
'graphApiVersion' => 'v2.8', //bio field was deprecated on >= v2.8
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/facebook',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/facebook',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/facebook',
|
||||
]
|
||||
],
|
||||
'twitter' => [
|
||||
'options' => [
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/twitter',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/twitter',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/twitter',
|
||||
]
|
||||
],
|
||||
'linkedIn' => [
|
||||
'className' => 'League\OAuth2\Client\Provider\LinkedIn',
|
||||
'options' => [
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/linkedIn',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/linkedIn',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/linkedIn',
|
||||
]
|
||||
],
|
||||
'instagram' => [
|
||||
'className' => 'League\OAuth2\Client\Provider\Instagram',
|
||||
'options' => [
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/instagram',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/instagram',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/instagram',
|
||||
]
|
||||
],
|
||||
'google' => [
|
||||
'className' => 'League\OAuth2\Client\Provider\Google',
|
||||
'options' => [
|
||||
'userFields' => ['url', 'aboutMe'],
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/google',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/google',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/google',
|
||||
]
|
||||
],
|
||||
'amazon' => [
|
||||
'className' => 'Luchianenco\OAuth2\Client\Provider\Amazon',
|
||||
'options' => [
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/amazon',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/amazon',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/amazon',
|
||||
]
|
||||
],
|
||||
'cognito' => [
|
||||
'className' => 'CakeDC\OAuth2\Client\Provider\Cognito',
|
||||
'options' => [
|
||||
'redirectUri' => Router::fullBaseUrl() . '/auth/cognito',
|
||||
'linkSocialUri' => Router::fullBaseUrl() . '/link-social/cognito',
|
||||
'callbackLinkSocialUri' => Router::fullBaseUrl() . '/callback-link-social/cognito',
|
||||
'scope' => 'email openid'
|
||||
]
|
||||
],
|
||||
],
|
||||
]
|
||||
];
|
||||
|
||||
return $config;
|
||||
@@ -13,7 +13,8 @@ try {
|
||||
define('SCHULPORTAL_BASE0_URL', "https://portal.schulen.bayern.de");
|
||||
define('SCHULPORTAL_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesig2d1dfad4a11c25e42c462e53b4721e48/uniquesig0');
|
||||
define('SCHULPORTAL_ASD_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesigc3ba1685059aaf325d44099df697a0a635e79a4ec36ec614a98f3bf4b79d7c043ac3880605b7751df91d11233380ad86/uniquesig0/asd');
|
||||
define('PROD_SCHULPORTAL_ASD_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesigc3ba1685059aaf325d44099df697a0a635e79a4ec36ec614a98f3bf4b79d7c043ac3880605b7751df91d11233380ad86/uniquesig0/asd');
|
||||
//define('PROD_SCHULPORTAL_ASD_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesigc3ba1685059aaf325d44099df697a0a635e79a4ec36ec614a98f3bf4b79d7c043ac3880605b7751df91d11233380ad86/uniquesig0/asd');
|
||||
define('PROD_SCHULPORTAL_ASD_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesig632cea04e8c585dd8dd40ffb367af53448ad1113e945323b22126735ae9513abb1f12262cb9414f17e32ca470882289a/uniquesig0/asd');
|
||||
define('PARA_SCHULPORTAL_ASD_BASE_URL', SCHULPORTAL_BASE0_URL . '/uniquesiga877c16a8d4fa0326c4d1f7447020d3867d9b0ca4503652219a0f5b2b569f316747c8c199bc9626ccb01613a0a36a342/uniquesig0/asd');
|
||||
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ class AsdCurl
|
||||
curl_setopt($ch, CURLOPT_COOKIESESSION, true);
|
||||
curl_setopt($ch, CURLOPT_COOKIEJAR, Configure::read('AsdCurl.cookiejar'));
|
||||
curl_setopt($ch, CURLOPT_COOKIEFILE, Configure::read('AsdCurl.cookiefile'));
|
||||
curl_setopt($ch, CURLOPT_COOKIE, Configure::read('AsdCurl.cookie'));
|
||||
//curl_setopt($ch, CURLOPT_COOKIE, Configure::read('AsdCurl.cookie'));
|
||||
curl_setopt($ch, CURLOPT_SSLCERT, Configure::read('AsdCurl.cert'));
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
return ($ch);
|
||||
@@ -179,7 +179,7 @@ class AsdCurl
|
||||
//echo $this->html; die;
|
||||
$login_data = [
|
||||
'portal_username' => 'asd.trinkl',
|
||||
'portal_password' => 'HiegTzs!192',
|
||||
'portal_password' => 'HiegTzs!193',
|
||||
];
|
||||
|
||||
$post = [
|
||||
@@ -199,6 +199,7 @@ class AsdCurl
|
||||
if(!($this->status)) {
|
||||
die($this->error);
|
||||
}
|
||||
$this->exec_curl($ch, $SCHULPORTAL_BASE_URL . '/SecureSchulportalPortalHomePage/',false);
|
||||
//debug($this->html);die;
|
||||
}
|
||||
|
||||
|
||||
@@ -96,6 +96,7 @@ class AsdUs extends AsdCurl
|
||||
$mainform = $matches[0][0];
|
||||
}
|
||||
}
|
||||
$mainform='184';
|
||||
//die;
|
||||
|
||||
/*
|
||||
|
||||
@@ -41,9 +41,9 @@ class AppController extends Controller
|
||||
{
|
||||
parent::initialize();
|
||||
|
||||
$this->loadComponent('RequestHandler');
|
||||
$this->loadComponent('RequestHandler', ['enableBeforeRedirect' => false]);
|
||||
$this->loadComponent('Flash');
|
||||
|
||||
$this->loadComponent('CakeDC/Users.UsersAuth');
|
||||
/*
|
||||
* Enable the following components for recommended CakePHP security settings.
|
||||
* see http://book.cakephp.org/3.0/en/controllers/components/security.html
|
||||
@@ -65,5 +65,12 @@ class AppController extends Controller
|
||||
) {
|
||||
$this->set('_serialize', true);
|
||||
}
|
||||
$session = $this->getRequest()->getSession();
|
||||
$id = $session->read('Auth.User.id');
|
||||
if(isset($id)) {
|
||||
$this->loadModel('Users');
|
||||
$user = $this->Users->get($id);
|
||||
$this->set('LoggedInUser',$user->first_name . ' '. $user->last_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ namespace App\Controller;
|
||||
|
||||
use App\Controller\AppController;
|
||||
use Cake\I18n\Time;
|
||||
use Cake\Event\Event;
|
||||
|
||||
/**
|
||||
* Apresults Controller
|
||||
@@ -11,6 +12,11 @@ use Cake\I18n\Time;
|
||||
*/
|
||||
class ApresultsController extends AppController
|
||||
{
|
||||
public function beforeFilter(Event $event) {
|
||||
$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
//$this->Auth->allow('ftp');
|
||||
}
|
||||
|
||||
function export() {
|
||||
$fields = array('snr','aptype','lieferstatus','erzeugungsdatum','apcount','anzahl');
|
||||
$schools = $this->Apresults->find('all',array('fields' => $fields));
|
||||
|
||||
@@ -7,9 +7,15 @@ use AsdCurl\AsdMstr;
|
||||
use AsdCurl\AsdUs;
|
||||
use Cake\I18n\Time;
|
||||
use Cake\Filesystem\File;
|
||||
use Cake\Event\Event;
|
||||
|
||||
class CurlsController extends AppController
|
||||
{
|
||||
public function beforeFilter(Event $event) {
|
||||
//$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
$this->Auth->allow(['saveus','getjsonus','saveup','getjsonup','usStatistik','upStatistik']);
|
||||
}
|
||||
|
||||
//public $uses = array('Monitoring');
|
||||
|
||||
public function monitmstr()
|
||||
@@ -89,7 +95,7 @@ class CurlsController extends AppController
|
||||
//debug($curl->status);
|
||||
$ch = $curl->init_curl_params();
|
||||
$curl->login_school($ch);
|
||||
|
||||
//echo $curl->html;die;
|
||||
$curl->login_asd($ch,$env);
|
||||
//echo $curl->html;die;
|
||||
$curl->save_us_data($ch,$env);
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Controller;
|
||||
use App\Controller\AppController;
|
||||
use Cake\Mailer\Email;
|
||||
use Cake\I18n\Time;
|
||||
use Cake\Event\Event;
|
||||
|
||||
/**
|
||||
* Emails Controller
|
||||
@@ -12,6 +13,22 @@ use Cake\I18n\Time;
|
||||
*/
|
||||
class EmailsController extends AppController
|
||||
{
|
||||
public function beforeFilter(Event $event) {
|
||||
$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
//$this->Auth->allow('ftp');
|
||||
}
|
||||
|
||||
public function testmail() {
|
||||
$email = new Email();
|
||||
$email
|
||||
->emailFormat('html')
|
||||
->from(['abschlusspruefung@schulen.bayern.de' => 'Abschlusspruefung'])
|
||||
->to('asd.trinkl@schulen.bayern.de')
|
||||
->subject('Teste E-Mail Verbindung')
|
||||
->send('Das ist nur eine Testnachricht.');
|
||||
$this->set('email',$email);
|
||||
}
|
||||
|
||||
public function emailFoerder() {
|
||||
debug($this->request['?']);
|
||||
$filename = $this->request['?']['file'];
|
||||
@@ -163,6 +180,7 @@ class EmailsController extends AppController
|
||||
$email
|
||||
->emailFormat('html')
|
||||
->from(['abschlusspruefung@schulen.bayern.de' => 'Abschlusspruefung'])
|
||||
//->to('asd.trinkl@schulen.bayern.de')
|
||||
->to($mail->snr . '@schulen.bayern.de')
|
||||
->cc('abschlusspruefung@schulen.bayern.de')
|
||||
->template('abschluss')
|
||||
@@ -173,6 +191,7 @@ class EmailsController extends AppController
|
||||
//$line = $this->Apimports->patchEntity($line, (array) $data);
|
||||
$result = $this->Emails->save($mail);
|
||||
}
|
||||
//die;
|
||||
return $this->redirect(['controller' => 'Apresults', 'action' => 'export']);
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,30 @@
|
||||
|
||||
class EmploymentsController extends AppController
|
||||
{
|
||||
public function analyse()
|
||||
{
|
||||
if ($this->request->is('post')) {
|
||||
$data = $this->request->data;
|
||||
//debug($data['Login_Key']);
|
||||
$key = $data['Login_Key'];
|
||||
if($key == 't5BfdBY4Tj4uPBpQ3773mbkmFuhybLsn') {
|
||||
$file_out = '/var/www/html/asd-control/webroot/files/analyse/analyse.txt';
|
||||
$this->set('file_content',file_get_contents($file_out));
|
||||
$this->set('stage',1);
|
||||
}
|
||||
else {
|
||||
$employment = $this->Employments->newEntity();
|
||||
$this->set('employment',$employment);
|
||||
$this->set('stage',0);
|
||||
}
|
||||
}
|
||||
else {
|
||||
$employment = $this->Employments->newEntity();
|
||||
$this->set('employment',$employment);
|
||||
$this->set('stage',0);
|
||||
}
|
||||
}
|
||||
|
||||
public function index()
|
||||
{
|
||||
$employment = $this->Employments->newEntity();
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Controller\AppController;
|
||||
use Cake\Event\Event;
|
||||
|
||||
use ZipArchive;
|
||||
|
||||
/**
|
||||
@@ -12,13 +14,79 @@ use ZipArchive;
|
||||
*/
|
||||
class ImportsController extends AppController {
|
||||
|
||||
public function beforeFilter(Event $event) {
|
||||
//$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
//$this->Auth->allow('ftp','ftpAnalyse','ftp_analyse','index');
|
||||
$this->Auth->allow(['ftp','ftpanalyse']);
|
||||
}
|
||||
|
||||
|
||||
public function ftpFoerder() {
|
||||
$filename = 'foerder.csv';
|
||||
$date = $this->ftp_get('Schulaufsichtliche_Pruefung_Para.zip',$filename,'!US-US-2018!');
|
||||
//debug($date);die;
|
||||
$this->redirect(array('controller' => 'Emails', 'action' => 'EmailFoerder?file='.$filename.'&date='.$date));
|
||||
}
|
||||
public function ftpanalyse() {
|
||||
$ftp_server = "10.190.22.35";
|
||||
$ftp_port = "2587";
|
||||
$ftp_user = "LfStaD-Log";
|
||||
$ftp_pass = "135!Log!086";
|
||||
$local_file = '/test/analyse.zip';
|
||||
$zip_pass = 'N3Y8prW6kR';
|
||||
$local_folder = '/test';
|
||||
|
||||
$conn_id = ftp_connect($ftp_server, $ftp_port) or die("Couldn't connect to $ftp_server");
|
||||
|
||||
if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) {
|
||||
//echo "Angemeldet als $ftp_user@$ftp_server\n";
|
||||
} else {
|
||||
echo "Anmeldung als $ftp_user nicht möglich\n";
|
||||
}
|
||||
|
||||
ftp_chdir($conn_id, 'ap-csv');
|
||||
$contents = ftp_nlist($conn_id, ".");
|
||||
$date_akt = date('Ymd');
|
||||
$filename = 'AB-514_'.$date_akt;
|
||||
//debug($filename);
|
||||
//debug($contents);
|
||||
foreach($contents as $content) {
|
||||
$pos = strpos($content,$filename);
|
||||
//debug($pos);
|
||||
if($pos === 0) {
|
||||
$file_akt = $content;
|
||||
}
|
||||
}
|
||||
//debug($file_akt);
|
||||
//die;
|
||||
ftp_get($conn_id, $local_file, $file_akt, FTP_BINARY);
|
||||
|
||||
$zip = new ZipArchive();
|
||||
$zip_status = $zip->open($local_file);
|
||||
|
||||
if ($zip_status === true) {
|
||||
if ($zip->setPassword($zip_pass)) {
|
||||
if (!$zip->extractTo('/test/results/'))
|
||||
echo "Extraction failed (wrong password?)";
|
||||
}
|
||||
//debug($zip->statIndex(0));
|
||||
$date = date('d.m.Y',$zip->statIndex(0)['mtime']);
|
||||
//debug($date);
|
||||
//die;
|
||||
$file = $zip->statIndex(0)['name'];
|
||||
//debug($file);
|
||||
//debug($file);
|
||||
$zip->close();
|
||||
}
|
||||
else {
|
||||
die("Failed opening archive: " . @$zip->getStatusString() . " (code: " . $zip_status . ")");
|
||||
}
|
||||
$file_out = '/var/www/html/asd-control/webroot/files/analyse/analyse.txt';
|
||||
rename('/test/results/'.$file,$file_out);
|
||||
$this->set('filename',$file_akt);
|
||||
//return $this->redirect(['controller' => 'Imports', 'action' => 'index']);
|
||||
|
||||
}
|
||||
private function ftp_get($file_in,$file_out,$zip_pass) {
|
||||
$ftp_server = "10.190.22.35";
|
||||
$ftp_port = "2587";
|
||||
@@ -75,7 +143,7 @@ class ImportsController extends AppController {
|
||||
$ftp_user = "LfStaD-Log";
|
||||
$ftp_pass = "135!Log!086";
|
||||
$local_file = '/test/test.zip';
|
||||
$zip_pass = '!AP-AS-2018!';
|
||||
$zip_pass = '!US-US-2018!';
|
||||
$local_folder = '/test';
|
||||
|
||||
$conn_id = ftp_connect($ftp_server, $ftp_port) or die("Couldn't connect to $ftp_server");
|
||||
@@ -89,8 +157,8 @@ class ImportsController extends AppController {
|
||||
ftp_chdir($conn_id, 'ap-csv');
|
||||
$contents = ftp_nlist($conn_id, ".");
|
||||
//debug($contents);
|
||||
$abschluss = array_search('Abschlusspruefung_2018.zip',$contents);
|
||||
//debug($abschluss);
|
||||
$abschluss = array_search('AB-341_Abschlusspruefung_2019_PROD.zip',$contents);
|
||||
debug($abschluss);
|
||||
//die;
|
||||
ftp_get($conn_id, $local_file, $contents[$abschluss], FTP_BINARY);
|
||||
|
||||
@@ -112,7 +180,7 @@ class ImportsController extends AppController {
|
||||
die("Failed opening archive: " . @$zip->getStatusString() . " (code: " . $zip_status . ")");
|
||||
}
|
||||
rename('/test/results/'.$file,'/var/www/html/asd-control/webroot/files/ap/results.csv');
|
||||
exec('/usr/bin/smbclient -U \'BAYKM/km-tri-wil%HiegTzs!182\' //KM-Svr-Daten/Projektshare -c \'cd /14_Materialien/Austausch/WiTr/ap; put /var/www/html/asd-control/webroot/files/ap/results.csv results-ap.csv\'');
|
||||
exec('/usr/bin/smbclient -U \'BAYKM/km-tri-wil%HiegTzs!193\' //KM-Svr-Daten/Projektshare -c \'cd /14_Materialien/Austausch/WiTr/ap; put /var/www/html/asd-control/webroot/files/ap/results.csv results-ap.csv\'');
|
||||
//die;
|
||||
//debug($contents);die;
|
||||
|
||||
|
||||
67
src/Controller/JirasController.php
Normal file
67
src/Controller/JirasController.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
namespace App\Controller;
|
||||
|
||||
use App\Controller\AppController;
|
||||
use Cake\Event\Event;
|
||||
use Cake\Http\Client;
|
||||
|
||||
class JirasController extends AppController
|
||||
{
|
||||
public function beforeFilter(Event $event) {
|
||||
//$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
$this->Auth->allow(['index']);
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
$http = new Client();
|
||||
$tickets = ['423','469','533','568','421','424','569','422','586','587','588','589','514','420','590','591'];
|
||||
$tabledata = array();
|
||||
//$j = 0;
|
||||
foreach($tickets as $ticket) {
|
||||
//debug($ticket);
|
||||
|
||||
$response = $http->get('https://kmjira.bayern.de/rest/api/latest/issue/UHD-' . $ticket .'?fields=description', [],
|
||||
[
|
||||
'proxy' => ['proxy' => 'www.proxy.bybn.de:80'],
|
||||
'auth' => ['type' => 'basic', 'username' => 'TrinklW', 'password' => 'HiegTzs!12']
|
||||
]);
|
||||
//debug($response->getStringBody());
|
||||
|
||||
$data = json_decode($response->getStringBody());
|
||||
|
||||
$skuList = explode(PHP_EOL, $data->fields->description);
|
||||
|
||||
$istable = 0;
|
||||
$entries = array();
|
||||
$i=0;
|
||||
foreach($skuList as $line) {
|
||||
if(substr($line,0,1) == '|' and substr($line,1,1) !== '|') {
|
||||
$istable = 1;
|
||||
//debug($i);
|
||||
$entries[$i] = $line;
|
||||
}
|
||||
if($istable == 1 and substr($line,0,1) !== '|') {
|
||||
//debug($i);
|
||||
$entries[$i - 1] .= trim($line);
|
||||
}
|
||||
else if($istable == 1) {
|
||||
$i++;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($entries as $entry) {
|
||||
$entry = trim(preg_replace('/\s+/', ' ', $entry));
|
||||
//debug($entry);
|
||||
//debug(explode('|',$entry));
|
||||
array_push($tabledata,explode('|',$entry));
|
||||
//$tabledate[$j][] = explode('|',$entry);
|
||||
//debug($j);
|
||||
//debug($tabledate[$j]);
|
||||
//debug($tabledata);
|
||||
//$j++;
|
||||
}
|
||||
}
|
||||
//debug($tabledata);
|
||||
$this->set('tabledata',$tabledata);
|
||||
}
|
||||
}
|
||||
@@ -19,7 +19,7 @@ class OfficesController extends AppController
|
||||
//debug($this->request['data']);die;
|
||||
$options = [
|
||||
'length' => 0,
|
||||
'delimiter' => ';',
|
||||
'delimiter' => ',',
|
||||
'enclosure' => '"',
|
||||
'escape' => '\\',
|
||||
'headers' => false,
|
||||
|
||||
@@ -18,6 +18,7 @@ use Cake\Core\Configure;
|
||||
use Cake\Network\Exception\ForbiddenException;
|
||||
use Cake\Network\Exception\NotFoundException;
|
||||
use Cake\View\Exception\MissingTemplateException;
|
||||
use Cake\Event\Event;
|
||||
|
||||
/**
|
||||
* Static content controller
|
||||
@@ -37,6 +38,15 @@ class PagesController extends AppController
|
||||
* @throws \Cake\Network\Exception\NotFoundException When the view file could not
|
||||
* be found or \Cake\View\Exception\MissingTemplateException in debug mode.
|
||||
*/
|
||||
|
||||
public function beforeFilter(Event $event) {
|
||||
//$this->Auth->setConfig('checkAuthIn', 'Controller.initialize');
|
||||
$this->Auth->allow(['home']);
|
||||
}
|
||||
public function home()
|
||||
{
|
||||
|
||||
}
|
||||
public function display()
|
||||
{
|
||||
$path = func_get_args();
|
||||
|
||||
@@ -5,7 +5,13 @@ echo '<h4 style="margin-left: 30px;">UP ' . date("Y") .' - Stand: ' . $time->i18
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
$.getJSON("/asd-control/files/data-up.json?nocache=" + (new Date()).getTime(), function(mps) {
|
||||
if (origin == 'http://km-pc-asd-ap.stmukwk.bayern.de') {
|
||||
jsonurl = '/files/data-up.json?nocache=' + (new Date()).getTime();
|
||||
}
|
||||
else {
|
||||
jsonurl = '/asd-control/files/data-up.json?nocache=' + (new Date()).getTime();
|
||||
}
|
||||
$.getJSON(jsonurl, function(mps) {
|
||||
$("#output").pivotUI(mps, {
|
||||
rows: ["Schulart"],
|
||||
cols: ["Übermittlungsstatus"],
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
echo '<h4 style="margin-left: 30px;">US 2018 (PROD) - Stand: ' . $time->i18nFormat('dd.MM.yyyy HH:mm') . '</h4>';
|
||||
echo '<h4 style="margin-left: 30px;">US 2019 (PROD) - Stand: ' . $time->i18nFormat('dd.MM.yyyy HH:mm') . '</h4>';
|
||||
?>
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
5
src/Template/Emails/testmail.ctp
Normal file
5
src/Template/Emails/testmail.ctp
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
//debug($email);
|
||||
echo '<p>Email has beeen sent!</p>';
|
||||
|
||||
?>
|
||||
31
src/Template/Employments/analyse.ctp
Normal file
31
src/Template/Employments/analyse.ctp
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
//debug($stage);
|
||||
if(!$stage) {
|
||||
echo '<div class="imports form large-9 medium-8 columns content">';
|
||||
echo $this->Form->create($employment);
|
||||
echo '<fieldset>';
|
||||
echo '<legend>' . __('Add Import') .'</legend>';
|
||||
|
||||
echo $this->Form->input('Login Key');
|
||||
|
||||
echo '</fieldset>';
|
||||
echo $this->Form->button(__('Submit'));
|
||||
echo $this->Form->end();
|
||||
}
|
||||
else {
|
||||
$schools = explode('*-------------------*',$file_content);
|
||||
//debug($schools);
|
||||
foreach($schools as $school) {
|
||||
//debug(htmlentities($school));
|
||||
$str = strtok(trim($school), "\n");
|
||||
//debug($str);
|
||||
echo '<h2>' . $str . '</h2>';
|
||||
echo '<code>';
|
||||
echo '<pre>';
|
||||
echo htmlentities($school);
|
||||
//echo $school;
|
||||
echo '</pre>';
|
||||
echo '</code>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
5
src/Template/Imports/ftpanalyse.ctp
Normal file
5
src/Template/Imports/ftpanalyse.ctp
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
echo '<h1>Import successful</h1>';
|
||||
echo '<p>Filename: ' . $filename .'</p>' ;
|
||||
?>
|
||||
|
||||
13
src/Template/Jiras/index.ctp
Normal file
13
src/Template/Jiras/index.ctp
Normal file
@@ -0,0 +1,13 @@
|
||||
<table>
|
||||
<?php
|
||||
//debug($tabledata);
|
||||
foreach($tabledata as $line) {
|
||||
echo '<tr>';
|
||||
foreach($line as $cell) {
|
||||
echo '<td>' . $cell . '</td>';
|
||||
}
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
@@ -20,6 +20,7 @@ $cakeDescription = 'ASD - Control';
|
||||
<head>
|
||||
<?= $this->Html->charset() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>
|
||||
<?= $cakeDescription ?>:
|
||||
<?= $this->fetch('title') ?>
|
||||
|
||||
@@ -20,6 +20,7 @@ $cakeDescription = 'CakePHP: the rapid development php framework';
|
||||
<head>
|
||||
<?= $this->Html->charset() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>
|
||||
<?= $cakeDescription ?>:
|
||||
<?= $this->fetch('title') ?>
|
||||
@@ -28,6 +29,7 @@ $cakeDescription = 'CakePHP: the rapid development php framework';
|
||||
|
||||
<?= $this->Html->css('base.css') ?>
|
||||
<?= $this->Html->css('cake.css') ?>
|
||||
<?= $this->Html->css('default.css') ?>
|
||||
|
||||
<?= $this->fetch('meta') ?>
|
||||
<?= $this->fetch('css') ?>
|
||||
@@ -42,8 +44,25 @@ $cakeDescription = 'CakePHP: the rapid development php framework';
|
||||
</ul>
|
||||
<div class="top-bar-section">
|
||||
<ul class="right">
|
||||
<li><a target="_blank" href="http://book.cakephp.org/3.0/">Documentation</a></li>
|
||||
<li><a target="_blank" href="http://api.cakephp.org/3.0/">API</a></li>
|
||||
<?php
|
||||
//echo '<li>' .$this->Html->link('Login','http://10.1.248.54/asd-control/users/users/login') . '</li>';
|
||||
//echo '<li>' .$this->Html->link('Logout','http://10.1.248.54/asd-control/users/users/logout') . '</li>';
|
||||
//echo '<li>' .$this->User->login() . '</li>';
|
||||
echo '<li>' . $this->Html->link('Startseite',['plugin' => null, 'controller' => 'Pages', 'action' => 'home']) . '</li>';
|
||||
echo '<li>' . $this->User->logout() . '</li>';
|
||||
//echo '<li>' . $this->User->welcome() . '</li>';
|
||||
//echo $this->Auth->user('id');
|
||||
if (isset($LoggedInUser)) {
|
||||
echo '<li>' . $this->Html->link('Angemeldeter Benutzer: ' . $LoggedInUser, 'http://10.1.248.54/asd-control/users/users/profile') . '</li>';
|
||||
}
|
||||
else {
|
||||
echo '<li>' .$this->Html->link('Login','http://10.1.248.54/asd-control/users/users/login') . '</li>';
|
||||
}
|
||||
//$userId = $this->getView()->getRequest()->getSession()->read('Auth.User.id');
|
||||
//echo $userId;
|
||||
//echo '<li>' .$this->Html->link('Login',['plugin' => 'CakeDC/Users','controller' => 'Users', 'action' => 'login']) . '</li>';
|
||||
//echo '<li>' .$this->Html->link('Logout',['plugin' => 'CakeDC/Users','controller' => 'Users', 'action' => 'logout']) . '</li>';
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
@@ -20,6 +20,7 @@ $cakeDescription = 'ASD - Control';
|
||||
<head>
|
||||
<?= $this->Html->charset() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>
|
||||
<?= $cakeDescription ?>:
|
||||
<?= $this->fetch('title') ?>
|
||||
|
||||
@@ -1,275 +1,12 @@
|
||||
|
||||
<div class="container clearfix">
|
||||
<div><p> Bitte wählen Sie eine Aktion </p>
|
||||
<?php
|
||||
/**
|
||||
* 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 0.10.0
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
use Cake\Cache\Cache;
|
||||
use Cake\Core\Configure;
|
||||
use Cake\Core\Plugin;
|
||||
use Cake\Datasource\ConnectionManager;
|
||||
use Cake\Error\Debugger;
|
||||
use Cake\Network\Exception\NotFoundException;
|
||||
echo '<p>' . $this->Html->link('UP Statistik Prod',['controller' => 'Curls', 'action' => 'upStatistik'],['escape' => false]) . '</p>';
|
||||
echo '<p>' . $this->Html->link('US Statistik Prod',['controller' => 'Curls', 'action' => 'usStatistik'],['escape' => false]) . '</p>';
|
||||
echo '<p>' . $this->Html->link('Dienstverhältnis Analyse',['controller' => 'Employments', 'action' => 'index'],['escape' => false]) . '</p>';
|
||||
echo '<p>' . $this->Html->link('Einbuchungsfehler',['controller' => 'Employments', 'action' => 'analyse'],['escape' => false]) . '</p>';
|
||||
|
||||
$this->layout = false;
|
||||
|
||||
if (!Configure::read('debug')):
|
||||
throw new NotFoundException('Please replace src/Template/Pages/home.ctp with your own version.');
|
||||
endif;
|
||||
|
||||
$cakeDescription = 'CakePHP: the rapid development PHP framework';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?= $this->Html->charset() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
<?= $cakeDescription ?>
|
||||
</title>
|
||||
<?= $this->Html->meta('icon') ?>
|
||||
<?= $this->Html->css('base.css') ?>
|
||||
<?= $this->Html->css('cake.css') ?>
|
||||
<?= $this->Html->css('home.css') ?>
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:500i|Roboto:300,400,700|Roboto+Mono" rel="stylesheet">
|
||||
</head>
|
||||
<body class="home">
|
||||
|
||||
<header class="row">
|
||||
<div class="header-image"><?= $this->Html->image('cake.logo.svg') ?></div>
|
||||
<div class="header-title">
|
||||
<h1>Welcome to CakePHP <?= Configure::version() ?> Red Velvet. Build fast. Grow solid.</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<div class="ctp-warning alert text-center">
|
||||
<p>Please be aware that this page will not be shown if you turn off debug mode unless you replace src/Template/Pages/home.ctp with your own version.</p>
|
||||
</div>
|
||||
<div id="url-rewriting-warning" class="alert url-rewriting">
|
||||
<ul>
|
||||
<li class="bullet problem">
|
||||
URL rewriting is not properly configured on your server.<br />
|
||||
1) <a target="_blank" href="http://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help me configure it</a><br />
|
||||
2) <a target="_blank" href="http://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I don't / can't use URL rewriting</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php Debugger::checkSecurityKeys(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h4>Environment</h4>
|
||||
<ul>
|
||||
<?php if (version_compare(PHP_VERSION, '5.5.9', '>=')): ?>
|
||||
<li class="bullet success">Your version of PHP is 5.5.9 or higher (detected <?= PHP_VERSION ?>).</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP is too low. You need PHP 5.5.9 or higher to use CakePHP (detected <?= PHP_VERSION ?>).</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('mbstring')): ?>
|
||||
<li class="bullet success">Your version of PHP has the mbstring extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the mbstring extension loaded.</li>;
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('openssl')): ?>
|
||||
<li class="bullet success">Your version of PHP has the openssl extension loaded.</li>
|
||||
<?php elseif (extension_loaded('mcrypt')): ?>
|
||||
<li class="bullet success">Your version of PHP has the mcrypt extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the openssl or mcrypt extension loaded.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('intl')): ?>
|
||||
<li class="bullet success">Your version of PHP has the intl extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the intl extension loaded.</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h4>Filesystem</h4>
|
||||
<ul>
|
||||
<?php if (is_writable(TMP)): ?>
|
||||
<li class="bullet success">Your tmp directory is writable.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your tmp directory is NOT writable.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_writable(LOGS)): ?>
|
||||
<li class="bullet success">Your logs directory is writable.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your logs directory is NOT writable.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $settings = Cache::config('_cake_core_'); ?>
|
||||
<?php if (!empty($settings)): ?>
|
||||
<li class="bullet success">The <em><?= $settings['className'] ?>Engine</em> is being used for core caching. To change the config edit config/app.php</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your cache is NOT working. Please check the settings in config/app.php</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h4>Database</h4>
|
||||
<?php
|
||||
try {
|
||||
$connection = ConnectionManager::get('default');
|
||||
$connected = $connection->connect();
|
||||
} catch (Exception $connectionError) {
|
||||
$connected = false;
|
||||
$errorMsg = $connectionError->getMessage();
|
||||
if (method_exists($connectionError, 'getAttributes')):
|
||||
$attributes = $connectionError->getAttributes();
|
||||
if (isset($errorMsg['message'])):
|
||||
$errorMsg .= '<br />' . $attributes['message'];
|
||||
endif;
|
||||
endif;
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
<?php if ($connected): ?>
|
||||
<li class="bullet success">CakePHP is able to connect to the database.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">CakePHP is NOT able to connect to the database.<br /><?= $errorMsg ?></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h4>DebugKit</h4>
|
||||
<ul>
|
||||
<?php if (Plugin::loaded('DebugKit')): ?>
|
||||
<li class="bullet success">DebugKit is loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">DebugKit is NOT loaded. You need to either install pdo_sqlite, or define the "debug_kit" connection name.</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h3>Editing this Page</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">To change the content of this page, edit: src/Template/Pages/home.ctp.</li>
|
||||
<li class="bullet cutlery">You can also add some CSS styles for your pages at: webroot/css/.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h3>Getting Started</h3>
|
||||
<ul>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/">CakePHP 3.0 Docs</a></li>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The 15 min Bookmarker Tutorial</a></li>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The 15 min Blog Tutorial</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12 text-center">
|
||||
<h3 class="more">More about Cake</h3>
|
||||
<p>
|
||||
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Front Controller and MVC.<br />
|
||||
Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
|
||||
</p>
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-4">
|
||||
<i class="icon support">P</i>
|
||||
<h3>Help and Bug Reports</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
|
||||
<ul><li>Live chat about CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
|
||||
<ul><li>CakePHP issues and pull requests</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://discourse.cakephp.org/">CakePHP Forum</a>
|
||||
<ul><li>CakePHP official discussion forum</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://groups.google.com/group/cake-php">CakePHP Google Group</a>
|
||||
<ul><li>Community mailing list</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-4">
|
||||
<i class="icon docs">r</i>
|
||||
<h3>Docs and Downloads</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://api.cakephp.org/3.0/">CakePHP API</a>
|
||||
<ul><li>Quick Reference</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://book.cakephp.org/3.0/en/">CakePHP Documentation</a>
|
||||
<ul><li>Your Rapid Development Cookbook</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://bakery.cakephp.org">The Bakery</a>
|
||||
<ul><li>Everything CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://plugins.cakephp.org">CakePHP plugins repo</a>
|
||||
<ul><li>A comprehensive list of all CakePHP plugins created by the community</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/cakephp/">CakePHP Code</a>
|
||||
<ul><li>For the Development of CakePHP Git repository, Downloads</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/FriendsOfCake/awesome-cakephp">CakePHP Awesome List</a>
|
||||
<ul><li>A curated list of amazingly awesome CakePHP plugins, resources and shiny things.</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://www.cakephp.org">CakePHP</a>
|
||||
<ul><li>The Rapid Development Framework</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-4">
|
||||
<i class="icon training">s</i>
|
||||
<h3>Training and Certification</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://cakefoundation.org/">Cake Software Foundation</a>
|
||||
<ul><li>Promoting development related to CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://training.cakephp.org/">CakePHP Training</a>
|
||||
<ul><li>Learn to use the CakePHP framework</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://certification.cakephp.org/">CakePHP Certification</a>
|
||||
<ul><li>Become a certified CakePHP developer</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
275
src/Template/Pages/home_old.ctp
Normal file
275
src/Template/Pages/home_old.ctp
Normal file
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
/**
|
||||
* 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 0.10.0
|
||||
* @license http://www.opensource.org/licenses/mit-license.php MIT License
|
||||
*/
|
||||
use Cake\Cache\Cache;
|
||||
use Cake\Core\Configure;
|
||||
use Cake\Core\Plugin;
|
||||
use Cake\Datasource\ConnectionManager;
|
||||
use Cake\Error\Debugger;
|
||||
use Cake\Network\Exception\NotFoundException;
|
||||
|
||||
$this->layout = false;
|
||||
|
||||
if (!Configure::read('debug')):
|
||||
throw new NotFoundException('Please replace src/Template/Pages/home.ctp with your own version.');
|
||||
endif;
|
||||
|
||||
$cakeDescription = 'CakePHP: the rapid development PHP framework';
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<?= $this->Html->charset() ?>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
<?= $cakeDescription ?>
|
||||
</title>
|
||||
<?= $this->Html->meta('icon') ?>
|
||||
<?= $this->Html->css('base.css') ?>
|
||||
<?= $this->Html->css('cake.css') ?>
|
||||
<?= $this->Html->css('home.css') ?>
|
||||
<link href="https://fonts.googleapis.com/css?family=Raleway:500i|Roboto:300,400,700|Roboto+Mono" rel="stylesheet">
|
||||
</head>
|
||||
<body class="home">
|
||||
|
||||
<header class="row">
|
||||
<div class="header-image"><?= $this->Html->image('cake.logo.svg') ?></div>
|
||||
<div class="header-title">
|
||||
<h1>Welcome to CakePHP <?= Configure::version() ?> Red Velvet. Build fast. Grow solid.</h1>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<div class="ctp-warning alert text-center">
|
||||
<p>Please be aware that this page will not be shown if you turn off debug mode unless you replace src/Template/Pages/home.ctp with your own version.</p>
|
||||
</div>
|
||||
<div id="url-rewriting-warning" class="alert url-rewriting">
|
||||
<ul>
|
||||
<li class="bullet problem">
|
||||
URL rewriting is not properly configured on your server.<br />
|
||||
1) <a target="_blank" href="http://book.cakephp.org/3.0/en/installation.html#url-rewriting">Help me configure it</a><br />
|
||||
2) <a target="_blank" href="http://book.cakephp.org/3.0/en/development/configuration.html#general-configuration">I don't / can't use URL rewriting</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php Debugger::checkSecurityKeys(); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h4>Environment</h4>
|
||||
<ul>
|
||||
<?php if (version_compare(PHP_VERSION, '5.5.9', '>=')): ?>
|
||||
<li class="bullet success">Your version of PHP is 5.5.9 or higher (detected <?= PHP_VERSION ?>).</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP is too low. You need PHP 5.5.9 or higher to use CakePHP (detected <?= PHP_VERSION ?>).</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('mbstring')): ?>
|
||||
<li class="bullet success">Your version of PHP has the mbstring extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the mbstring extension loaded.</li>;
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('openssl')): ?>
|
||||
<li class="bullet success">Your version of PHP has the openssl extension loaded.</li>
|
||||
<?php elseif (extension_loaded('mcrypt')): ?>
|
||||
<li class="bullet success">Your version of PHP has the mcrypt extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the openssl or mcrypt extension loaded.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (extension_loaded('intl')): ?>
|
||||
<li class="bullet success">Your version of PHP has the intl extension loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your version of PHP does NOT have the intl extension loaded.</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h4>Filesystem</h4>
|
||||
<ul>
|
||||
<?php if (is_writable(TMP)): ?>
|
||||
<li class="bullet success">Your tmp directory is writable.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your tmp directory is NOT writable.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_writable(LOGS)): ?>
|
||||
<li class="bullet success">Your logs directory is writable.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your logs directory is NOT writable.</li>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php $settings = Cache::config('_cake_core_'); ?>
|
||||
<?php if (!empty($settings)): ?>
|
||||
<li class="bullet success">The <em><?= $settings['className'] ?>Engine</em> is being used for core caching. To change the config edit config/app.php</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">Your cache is NOT working. Please check the settings in config/app.php</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h4>Database</h4>
|
||||
<?php
|
||||
try {
|
||||
$connection = ConnectionManager::get('default');
|
||||
$connected = $connection->connect();
|
||||
} catch (Exception $connectionError) {
|
||||
$connected = false;
|
||||
$errorMsg = $connectionError->getMessage();
|
||||
if (method_exists($connectionError, 'getAttributes')):
|
||||
$attributes = $connectionError->getAttributes();
|
||||
if (isset($errorMsg['message'])):
|
||||
$errorMsg .= '<br />' . $attributes['message'];
|
||||
endif;
|
||||
endif;
|
||||
}
|
||||
?>
|
||||
<ul>
|
||||
<?php if ($connected): ?>
|
||||
<li class="bullet success">CakePHP is able to connect to the database.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">CakePHP is NOT able to connect to the database.<br /><?= $errorMsg ?></li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h4>DebugKit</h4>
|
||||
<ul>
|
||||
<?php if (Plugin::loaded('DebugKit')): ?>
|
||||
<li class="bullet success">DebugKit is loaded.</li>
|
||||
<?php else: ?>
|
||||
<li class="bullet problem">DebugKit is NOT loaded. You need to either install pdo_sqlite, or define the "debug_kit" connection name.</li>
|
||||
<?php endif; ?>
|
||||
</ul>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-6">
|
||||
<h3>Editing this Page</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">To change the content of this page, edit: src/Template/Pages/home.ctp.</li>
|
||||
<li class="bullet cutlery">You can also add some CSS styles for your pages at: webroot/css/.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-6">
|
||||
<h3>Getting Started</h3>
|
||||
<ul>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/">CakePHP 3.0 Docs</a></li>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/tutorials-and-examples/bookmarks/intro.html">The 15 min Bookmarker Tutorial</a></li>
|
||||
<li class="bullet book"><a target="_blank" href="http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/blog.html">The 15 min Blog Tutorial</a></li>
|
||||
</ul>
|
||||
<p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-12 text-center">
|
||||
<h3 class="more">More about Cake</h3>
|
||||
<p>
|
||||
CakePHP is a rapid development framework for PHP which uses commonly known design patterns like Front Controller and MVC.<br />
|
||||
Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.
|
||||
</p>
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="columns large-4">
|
||||
<i class="icon support">P</i>
|
||||
<h3>Help and Bug Reports</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="irc://irc.freenode.net/cakephp">irc.freenode.net #cakephp</a>
|
||||
<ul><li>Live chat about CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/cakephp/cakephp/issues">CakePHP Issues</a>
|
||||
<ul><li>CakePHP issues and pull requests</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://discourse.cakephp.org/">CakePHP Forum</a>
|
||||
<ul><li>CakePHP official discussion forum</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://groups.google.com/group/cake-php">CakePHP Google Group</a>
|
||||
<ul><li>Community mailing list</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-4">
|
||||
<i class="icon docs">r</i>
|
||||
<h3>Docs and Downloads</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://api.cakephp.org/3.0/">CakePHP API</a>
|
||||
<ul><li>Quick Reference</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://book.cakephp.org/3.0/en/">CakePHP Documentation</a>
|
||||
<ul><li>Your Rapid Development Cookbook</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://bakery.cakephp.org">The Bakery</a>
|
||||
<ul><li>Everything CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://plugins.cakephp.org">CakePHP plugins repo</a>
|
||||
<ul><li>A comprehensive list of all CakePHP plugins created by the community</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/cakephp/">CakePHP Code</a>
|
||||
<ul><li>For the Development of CakePHP Git repository, Downloads</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="https://github.com/FriendsOfCake/awesome-cakephp">CakePHP Awesome List</a>
|
||||
<ul><li>A curated list of amazingly awesome CakePHP plugins, resources and shiny things.</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://www.cakephp.org">CakePHP</a>
|
||||
<ul><li>The Rapid Development Framework</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="columns large-4">
|
||||
<i class="icon training">s</i>
|
||||
<h3>Training and Certification</h3>
|
||||
<ul>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://cakefoundation.org/">Cake Software Foundation</a>
|
||||
<ul><li>Promoting development related to CakePHP</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://training.cakephp.org/">CakePHP Training</a>
|
||||
<ul><li>Learn to use the CakePHP framework</li></ul>
|
||||
</li>
|
||||
<li class="bullet cutlery">
|
||||
<a href="http://certification.cakephp.org/">CakePHP Certification</a>
|
||||
<ul><li>Become a certified CakePHP developer</li></ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -34,7 +34,10 @@ class AppView extends View
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
||||
public function initialize()
|
||||
{
|
||||
parent::initialize();
|
||||
$this->loadHelper('CakeDC/Users.User');
|
||||
}
|
||||
}
|
||||
|
||||
3
webroot/css/default.css
Normal file
3
webroot/css/default.css
Normal file
@@ -0,0 +1,3 @@
|
||||
code, pre {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
0
webroot/files/analyse/analyse.txt
Normal file
0
webroot/files/analyse/analyse.txt
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user