refs #5: updated Composer packages and added build script and Source Guardian error handling
This commit is contained in:
parent
3cb9c98035
commit
e2935ea5b0
@ -3,7 +3,7 @@
|
|||||||
<component name="WebServers">
|
<component name="WebServers">
|
||||||
<option name="servers">
|
<option name="servers">
|
||||||
<webServer id="b14a34b0-0127-4886-964a-7be75a2281ac" name="Development" url="http://blue-twilight-dev.andys.eu">
|
<webServer id="b14a34b0-0127-4886-964a-7be75a2281ac" name="Development" url="http://blue-twilight-dev.andys.eu">
|
||||||
<fileTransfer host="mickey.prod.pandy06269.uk0.bigv.io" port="22" rootFolder="/srv/www/blue-twilight-test" accessType="SFTP">
|
<fileTransfer host="mickey.prod.pandy06269.uk0.bigv.io" port="22" rootFolder="/srv/www/blue-twilight-dev" accessType="SFTP">
|
||||||
<advancedOptions>
|
<advancedOptions>
|
||||||
<advancedOptions dataProtectionLevel="Private" />
|
<advancedOptions dataProtectionLevel="Private" />
|
||||||
</advancedOptions>
|
</advancedOptions>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "laravel/laravel",
|
"name": "pandy06269/blue-twilight",
|
||||||
"description": "The Laravel Framework.",
|
"description": "Blue Twilight - self-hosted photo gallery software.",
|
||||||
"keywords": ["framework", "laravel"],
|
"keywords": ["blue", "twilight", "photo", "photograph", "portfolio", "gallery", "self-hosted"],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"type": "project",
|
"type": "project",
|
||||||
"require": {
|
"require": {
|
||||||
@ -26,7 +26,6 @@
|
|||||||
},
|
},
|
||||||
"autoload-dev": {
|
"autoload-dev": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"tests/TestCase.php"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
232
composer.lock
generated
232
composer.lock
generated
@ -4,8 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "1238e3ff7339dd85c8beb7d7f05fbe3c",
|
"hash": "c3e85190a6742649a1f169529151e61a",
|
||||||
"content-hash": "dc30a27b7aa7694dab419a23d3564dd2",
|
"content-hash": "d5b24ed9a8a6b89d2dd2f6f3b8049a0e",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "classpreloader/classpreloader",
|
"name": "classpreloader/classpreloader",
|
||||||
@ -308,16 +308,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel/framework",
|
"name": "laravel/framework",
|
||||||
"version": "v5.3.6",
|
"version": "v5.3.16",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/laravel/framework.git",
|
"url": "https://github.com/laravel/framework.git",
|
||||||
"reference": "c63a7fb7066fea2bce91ace5c830c01d503abe6c"
|
"reference": "9932861dee0fef30138f9839102fb00ddd6ddce1"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/laravel/framework/zipball/c63a7fb7066fea2bce91ace5c830c01d503abe6c",
|
"url": "https://api.github.com/repos/laravel/framework/zipball/9932861dee0fef30138f9839102fb00ddd6ddce1",
|
||||||
"reference": "c63a7fb7066fea2bce91ace5c830c01d503abe6c",
|
"reference": "9932861dee0fef30138f9839102fb00ddd6ddce1",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -365,6 +365,7 @@
|
|||||||
"illuminate/http": "self.version",
|
"illuminate/http": "self.version",
|
||||||
"illuminate/log": "self.version",
|
"illuminate/log": "self.version",
|
||||||
"illuminate/mail": "self.version",
|
"illuminate/mail": "self.version",
|
||||||
|
"illuminate/notifications": "self.version",
|
||||||
"illuminate/pagination": "self.version",
|
"illuminate/pagination": "self.version",
|
||||||
"illuminate/pipeline": "self.version",
|
"illuminate/pipeline": "self.version",
|
||||||
"illuminate/queue": "self.version",
|
"illuminate/queue": "self.version",
|
||||||
@ -431,7 +432,7 @@
|
|||||||
"framework",
|
"framework",
|
||||||
"laravel"
|
"laravel"
|
||||||
],
|
],
|
||||||
"time": "2016-09-01 14:06:47"
|
"time": "2016-10-04 16:05:47"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravelcollective/html",
|
"name": "laravelcollective/html",
|
||||||
@ -741,16 +742,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "nikic/php-parser",
|
"name": "nikic/php-parser",
|
||||||
"version": "v2.1.0",
|
"version": "v2.1.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/nikic/PHP-Parser.git",
|
"url": "https://github.com/nikic/PHP-Parser.git",
|
||||||
"reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3"
|
"reference": "4dd659edadffdc2143e4753df655d866dbfeedf0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
|
"url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4dd659edadffdc2143e4753df655d866dbfeedf0",
|
||||||
"reference": "47b254ea51f1d6d5dc04b9b299e88346bf2369e3",
|
"reference": "4dd659edadffdc2143e4753df655d866dbfeedf0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -788,7 +789,7 @@
|
|||||||
"parser",
|
"parser",
|
||||||
"php"
|
"php"
|
||||||
],
|
],
|
||||||
"time": "2016-04-19 13:41:41"
|
"time": "2016-09-16 12:04:44"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "paragonie/random_compat",
|
"name": "paragonie/random_compat",
|
||||||
@ -840,22 +841,30 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psr/log",
|
"name": "psr/log",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/php-fig/log.git",
|
"url": "https://github.com/php-fig/log.git",
|
||||||
"reference": "fe0936ee26643249e916849d48e3a51d5f5e278b"
|
"reference": "5277094ed527a1c4477177d102fe4c53551953e0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/php-fig/log/zipball/fe0936ee26643249e916849d48e3a51d5f5e278b",
|
"url": "https://api.github.com/repos/php-fig/log/zipball/5277094ed527a1c4477177d102fe4c53551953e0",
|
||||||
"reference": "fe0936ee26643249e916849d48e3a51d5f5e278b",
|
"reference": "5277094ed527a1c4477177d102fe4c53551953e0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
|
"require": {
|
||||||
|
"php": ">=5.3.0"
|
||||||
|
},
|
||||||
"type": "library",
|
"type": "library",
|
||||||
|
"extra": {
|
||||||
|
"branch-alias": {
|
||||||
|
"dev-master": "1.0.x-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-0": {
|
"psr-4": {
|
||||||
"Psr\\Log\\": ""
|
"Psr\\Log\\": "Psr/Log/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
@ -869,12 +878,13 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Common interface for logging libraries",
|
"description": "Common interface for logging libraries",
|
||||||
|
"homepage": "https://github.com/php-fig/log",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"log",
|
"log",
|
||||||
"psr",
|
"psr",
|
||||||
"psr-3"
|
"psr-3"
|
||||||
],
|
],
|
||||||
"time": "2012-12-21 11:40:51"
|
"time": "2016-09-19 16:02:08"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "psy/psysh",
|
"name": "psy/psysh",
|
||||||
@ -950,16 +960,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "ramsey/uuid",
|
"name": "ramsey/uuid",
|
||||||
"version": "3.5.0",
|
"version": "3.5.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/ramsey/uuid.git",
|
"url": "https://github.com/ramsey/uuid.git",
|
||||||
"reference": "a6d15c8618ea3951fd54d34e326b68d3d0bc0786"
|
"reference": "a07797b986671b0dc823885a81d5e3516b931599"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/ramsey/uuid/zipball/a6d15c8618ea3951fd54d34e326b68d3d0bc0786",
|
"url": "https://api.github.com/repos/ramsey/uuid/zipball/a07797b986671b0dc823885a81d5e3516b931599",
|
||||||
"reference": "a6d15c8618ea3951fd54d34e326b68d3d0bc0786",
|
"reference": "a07797b986671b0dc823885a81d5e3516b931599",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1026,7 +1036,7 @@
|
|||||||
"identifier",
|
"identifier",
|
||||||
"uuid"
|
"uuid"
|
||||||
],
|
],
|
||||||
"time": "2016-08-02 18:39:32"
|
"time": "2016-10-02 15:51:17"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "swiftmailer/swiftmailer",
|
"name": "swiftmailer/swiftmailer",
|
||||||
@ -1083,20 +1093,21 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/console",
|
"name": "symfony/console",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/console.git",
|
"url": "https://github.com/symfony/console.git",
|
||||||
"reference": "f9e638e8149e9e41b570ff092f8007c477ef0ce5"
|
"reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/console/zipball/f9e638e8149e9e41b570ff092f8007c477ef0ce5",
|
"url": "https://api.github.com/repos/symfony/console/zipball/6cb0872fb57b38b3b09ff213c21ed693956b9eb0",
|
||||||
"reference": "f9e638e8149e9e41b570ff092f8007c477ef0ce5",
|
"reference": "6cb0872fb57b38b3b09ff213c21ed693956b9eb0",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"php": ">=5.5.9",
|
"php": ">=5.5.9",
|
||||||
|
"symfony/debug": "~2.8|~3.0",
|
||||||
"symfony/polyfill-mbstring": "~1.0"
|
"symfony/polyfill-mbstring": "~1.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
@ -1139,20 +1150,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Console Component",
|
"description": "Symfony Console Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-26 08:04:17"
|
"time": "2016-09-28 00:11:12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/debug",
|
"name": "symfony/debug",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/debug.git",
|
"url": "https://github.com/symfony/debug.git",
|
||||||
"reference": "4c1b48c6a433e194a42ce3d064cd43ceb7c3682f"
|
"reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/debug/zipball/4c1b48c6a433e194a42ce3d064cd43ceb7c3682f",
|
"url": "https://api.github.com/repos/symfony/debug/zipball/e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
|
||||||
"reference": "4c1b48c6a433e194a42ce3d064cd43ceb7c3682f",
|
"reference": "e2b3f74a67fc928adc3c1b9027f73e1bc01190a8",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1196,11 +1207,11 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Debug Component",
|
"description": "Symfony Debug Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-26 08:04:17"
|
"time": "2016-09-06 11:02:40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/event-dispatcher",
|
"name": "symfony/event-dispatcher",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/event-dispatcher.git",
|
"url": "https://github.com/symfony/event-dispatcher.git",
|
||||||
@ -1260,16 +1271,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/finder",
|
"name": "symfony/finder",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/finder.git",
|
"url": "https://github.com/symfony/finder.git",
|
||||||
"reference": "8201978de88a9fa0923e18601bb17f1df9c721e7"
|
"reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/finder/zipball/8201978de88a9fa0923e18601bb17f1df9c721e7",
|
"url": "https://api.github.com/repos/symfony/finder/zipball/205b5ffbb518a98ba2ae60a52656c4a31ab00c6f",
|
||||||
"reference": "8201978de88a9fa0923e18601bb17f1df9c721e7",
|
"reference": "205b5ffbb518a98ba2ae60a52656c4a31ab00c6f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1305,20 +1316,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Finder Component",
|
"description": "Symfony Finder Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-06-29 05:41:56"
|
"time": "2016-09-28 00:11:12"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-foundation",
|
"name": "symfony/http-foundation",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/http-foundation.git",
|
"url": "https://github.com/symfony/http-foundation.git",
|
||||||
"reference": "399a44b73f6c176de40fb063dcdaa578bcfb94d6"
|
"reference": "5114f1becca9f29e3af94374f1689c83c1aa3d97"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/399a44b73f6c176de40fb063dcdaa578bcfb94d6",
|
"url": "https://api.github.com/repos/symfony/http-foundation/zipball/5114f1becca9f29e3af94374f1689c83c1aa3d97",
|
||||||
"reference": "399a44b73f6c176de40fb063dcdaa578bcfb94d6",
|
"reference": "5114f1becca9f29e3af94374f1689c83c1aa3d97",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1358,20 +1369,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony HttpFoundation Component",
|
"description": "Symfony HttpFoundation Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-17 14:02:08"
|
"time": "2016-09-21 20:55:10"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/http-kernel",
|
"name": "symfony/http-kernel",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/http-kernel.git",
|
"url": "https://github.com/symfony/http-kernel.git",
|
||||||
"reference": "a8df564d323df5a3fec73085c30211a3ee448fb0"
|
"reference": "dc339d6eebadfa6e39c52868b4d4a715eff13c69"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/a8df564d323df5a3fec73085c30211a3ee448fb0",
|
"url": "https://api.github.com/repos/symfony/http-kernel/zipball/dc339d6eebadfa6e39c52868b4d4a715eff13c69",
|
||||||
"reference": "a8df564d323df5a3fec73085c30211a3ee448fb0",
|
"reference": "dc339d6eebadfa6e39c52868b4d4a715eff13c69",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1440,7 +1451,7 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony HttpKernel Component",
|
"description": "Symfony HttpKernel Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-30 09:30:46"
|
"time": "2016-10-03 19:01:06"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/polyfill-mbstring",
|
"name": "symfony/polyfill-mbstring",
|
||||||
@ -1611,16 +1622,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/process",
|
"name": "symfony/process",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/process.git",
|
"url": "https://github.com/symfony/process.git",
|
||||||
"reference": "04c2dfaae4ec56a5c677b0c69fac34637d815758"
|
"reference": "66de154ae86b1a07001da9fbffd620206e4faf94"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/process/zipball/04c2dfaae4ec56a5c677b0c69fac34637d815758",
|
"url": "https://api.github.com/repos/symfony/process/zipball/66de154ae86b1a07001da9fbffd620206e4faf94",
|
||||||
"reference": "04c2dfaae4ec56a5c677b0c69fac34637d815758",
|
"reference": "66de154ae86b1a07001da9fbffd620206e4faf94",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1656,20 +1667,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Process Component",
|
"description": "Symfony Process Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-28 11:13:48"
|
"time": "2016-09-29 14:13:09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/routing",
|
"name": "symfony/routing",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/routing.git",
|
"url": "https://github.com/symfony/routing.git",
|
||||||
"reference": "22c7adc204057a0ff0b12eea2889782a5deb70a3"
|
"reference": "8edf62498a1a4c57ba317664a4b698339c10cdf6"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/routing/zipball/22c7adc204057a0ff0b12eea2889782a5deb70a3",
|
"url": "https://api.github.com/repos/symfony/routing/zipball/8edf62498a1a4c57ba317664a4b698339c10cdf6",
|
||||||
"reference": "22c7adc204057a0ff0b12eea2889782a5deb70a3",
|
"reference": "8edf62498a1a4c57ba317664a4b698339c10cdf6",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1731,20 +1742,20 @@
|
|||||||
"uri",
|
"uri",
|
||||||
"url"
|
"url"
|
||||||
],
|
],
|
||||||
"time": "2016-06-29 05:41:56"
|
"time": "2016-08-16 14:58:24"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/translation",
|
"name": "symfony/translation",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/translation.git",
|
"url": "https://github.com/symfony/translation.git",
|
||||||
"reference": "7713ddf81518d0823b027fe74ec390b80f6b6536"
|
"reference": "93013a18d272e59dab8e67f583155b78c68947eb"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/translation/zipball/7713ddf81518d0823b027fe74ec390b80f6b6536",
|
"url": "https://api.github.com/repos/symfony/translation/zipball/93013a18d272e59dab8e67f583155b78c68947eb",
|
||||||
"reference": "7713ddf81518d0823b027fe74ec390b80f6b6536",
|
"reference": "93013a18d272e59dab8e67f583155b78c68947eb",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1795,20 +1806,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Translation Component",
|
"description": "Symfony Translation Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-26 08:04:17"
|
"time": "2016-09-06 11:02:40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/var-dumper",
|
"name": "symfony/var-dumper",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/var-dumper.git",
|
"url": "https://github.com/symfony/var-dumper.git",
|
||||||
"reference": "076235b750137518408f1bc17a8e69b43211836a"
|
"reference": "70bfe927b86ba9999aeebd829715b0bb2cd39a10"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/076235b750137518408f1bc17a8e69b43211836a",
|
"url": "https://api.github.com/repos/symfony/var-dumper/zipball/70bfe927b86ba9999aeebd829715b0bb2cd39a10",
|
||||||
"reference": "076235b750137518408f1bc17a8e69b43211836a",
|
"reference": "70bfe927b86ba9999aeebd829715b0bb2cd39a10",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -1858,7 +1869,7 @@
|
|||||||
"debug",
|
"debug",
|
||||||
"dump"
|
"dump"
|
||||||
],
|
],
|
||||||
"time": "2016-07-26 08:04:17"
|
"time": "2016-09-29 14:13:09"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "vlucas/phpdotenv",
|
"name": "vlucas/phpdotenv",
|
||||||
@ -2126,16 +2137,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
"version": "1.5.1",
|
"version": "1.5.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/myclabs/DeepCopy.git",
|
"url": "https://github.com/myclabs/DeepCopy.git",
|
||||||
"reference": "a8773992b362b58498eed24bf85005f363c34771"
|
"reference": "ea74994a3dc7f8d2f65a06009348f2d63c81e61f"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/a8773992b362b58498eed24bf85005f363c34771",
|
"url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/ea74994a3dc7f8d2f65a06009348f2d63c81e61f",
|
||||||
"reference": "a8773992b362b58498eed24bf85005f363c34771",
|
"reference": "ea74994a3dc7f8d2f65a06009348f2d63c81e61f",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -2164,7 +2175,7 @@
|
|||||||
"object",
|
"object",
|
||||||
"object graph"
|
"object graph"
|
||||||
],
|
],
|
||||||
"time": "2015-11-20 12:04:31"
|
"time": "2016-09-16 13:37:59"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-common",
|
"name": "phpdocumentor/reflection-common",
|
||||||
@ -2222,16 +2233,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/reflection-docblock",
|
"name": "phpdocumentor/reflection-docblock",
|
||||||
"version": "3.1.0",
|
"version": "3.1.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
"url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
|
||||||
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd"
|
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/9270140b940ff02e58ec577c237274e92cd40cdd",
|
"url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8331b5efe816ae05461b7ca1e721c01b46bafb3e",
|
||||||
"reference": "9270140b940ff02e58ec577c237274e92cd40cdd",
|
"reference": "8331b5efe816ae05461b7ca1e721c01b46bafb3e",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -2263,7 +2274,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
|
||||||
"time": "2016-06-10 09:48:41"
|
"time": "2016-09-30 07:12:33"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpdocumentor/type-resolver",
|
"name": "phpdocumentor/type-resolver",
|
||||||
@ -2620,24 +2631,24 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit",
|
"name": "phpunit/phpunit",
|
||||||
"version": "5.5.4",
|
"version": "5.5.7",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
"url": "https://github.com/sebastianbergmann/phpunit.git",
|
||||||
"reference": "3e6e88e56c912133de6e99b87728cca7ed70c5f5"
|
"reference": "3f67cee782c9abfaee5e32fd2f57cdd54bc257ba"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3e6e88e56c912133de6e99b87728cca7ed70c5f5",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3f67cee782c9abfaee5e32fd2f57cdd54bc257ba",
|
||||||
"reference": "3e6e88e56c912133de6e99b87728cca7ed70c5f5",
|
"reference": "3f67cee782c9abfaee5e32fd2f57cdd54bc257ba",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
"ext-dom": "*",
|
"ext-dom": "*",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-pcre": "*",
|
"ext-libxml": "*",
|
||||||
"ext-reflection": "*",
|
"ext-mbstring": "*",
|
||||||
"ext-spl": "*",
|
"ext-xml": "*",
|
||||||
"myclabs/deep-copy": "~1.3",
|
"myclabs/deep-copy": "~1.3",
|
||||||
"php": "^5.6 || ^7.0",
|
"php": "^5.6 || ^7.0",
|
||||||
"phpspec/prophecy": "^1.3.1",
|
"phpspec/prophecy": "^1.3.1",
|
||||||
@ -2659,7 +2670,12 @@
|
|||||||
"conflict": {
|
"conflict": {
|
||||||
"phpdocumentor/reflection-docblock": "3.0.2"
|
"phpdocumentor/reflection-docblock": "3.0.2"
|
||||||
},
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"ext-pdo": "*"
|
||||||
|
},
|
||||||
"suggest": {
|
"suggest": {
|
||||||
|
"ext-tidy": "*",
|
||||||
|
"ext-xdebug": "*",
|
||||||
"phpunit/php-invoker": "~1.1"
|
"phpunit/php-invoker": "~1.1"
|
||||||
},
|
},
|
||||||
"bin": [
|
"bin": [
|
||||||
@ -2694,20 +2710,20 @@
|
|||||||
"testing",
|
"testing",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2016-08-26 07:11:44"
|
"time": "2016-10-03 13:04:15"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "phpunit/phpunit-mock-objects",
|
"name": "phpunit/phpunit-mock-objects",
|
||||||
"version": "3.2.6",
|
"version": "3.3.1",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
"url": "https://github.com/sebastianbergmann/phpunit-mock-objects.git",
|
||||||
"reference": "46b249b43fd2ed8e127aa0fdb3cbcf56e9bc0e49"
|
"reference": "03500345483e1e17b52e2e4d34a89c9408ab2902"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/46b249b43fd2ed8e127aa0fdb3cbcf56e9bc0e49",
|
"url": "https://api.github.com/repos/sebastianbergmann/phpunit-mock-objects/zipball/03500345483e1e17b52e2e4d34a89c9408ab2902",
|
||||||
"reference": "46b249b43fd2ed8e127aa0fdb3cbcf56e9bc0e49",
|
"reference": "03500345483e1e17b52e2e4d34a89c9408ab2902",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -2753,7 +2769,7 @@
|
|||||||
"mock",
|
"mock",
|
||||||
"xunit"
|
"xunit"
|
||||||
],
|
],
|
||||||
"time": "2016-08-26 05:51:59"
|
"time": "2016-10-04 11:03:26"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "sebastian/code-unit-reverse-lookup",
|
"name": "sebastian/code-unit-reverse-lookup",
|
||||||
@ -3270,16 +3286,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/css-selector",
|
"name": "symfony/css-selector",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/css-selector.git",
|
"url": "https://github.com/symfony/css-selector.git",
|
||||||
"reference": "2851e1932d77ce727776154d659b232d061e816a"
|
"reference": "ca809c64072e0fe61c1c7fb3c76cdc32265042ac"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/css-selector/zipball/2851e1932d77ce727776154d659b232d061e816a",
|
"url": "https://api.github.com/repos/symfony/css-selector/zipball/ca809c64072e0fe61c1c7fb3c76cdc32265042ac",
|
||||||
"reference": "2851e1932d77ce727776154d659b232d061e816a",
|
"reference": "ca809c64072e0fe61c1c7fb3c76cdc32265042ac",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -3319,20 +3335,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony CssSelector Component",
|
"description": "Symfony CssSelector Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-06-29 05:41:56"
|
"time": "2016-09-06 11:02:40"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/dom-crawler",
|
"name": "symfony/dom-crawler",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/dom-crawler.git",
|
"url": "https://github.com/symfony/dom-crawler.git",
|
||||||
"reference": "c7b9b8db3a6f2bac76dcd9a9db5446f2591897f9"
|
"reference": "bb7395e8b1db3654de82b9f35d019958276de4d7"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/c7b9b8db3a6f2bac76dcd9a9db5446f2591897f9",
|
"url": "https://api.github.com/repos/symfony/dom-crawler/zipball/bb7395e8b1db3654de82b9f35d019958276de4d7",
|
||||||
"reference": "c7b9b8db3a6f2bac76dcd9a9db5446f2591897f9",
|
"reference": "bb7395e8b1db3654de82b9f35d019958276de4d7",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -3375,20 +3391,20 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony DomCrawler Component",
|
"description": "Symfony DomCrawler Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-26 08:04:17"
|
"time": "2016-08-05 08:37:39"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "symfony/yaml",
|
"name": "symfony/yaml",
|
||||||
"version": "v3.1.3",
|
"version": "v3.1.5",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/symfony/yaml.git",
|
"url": "https://github.com/symfony/yaml.git",
|
||||||
"reference": "1819adf2066880c7967df7180f4f662b6f0567ac"
|
"reference": "368b9738d4033c8b93454cb0dbd45d305135a6d3"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/symfony/yaml/zipball/1819adf2066880c7967df7180f4f662b6f0567ac",
|
"url": "https://api.github.com/repos/symfony/yaml/zipball/368b9738d4033c8b93454cb0dbd45d305135a6d3",
|
||||||
"reference": "1819adf2066880c7967df7180f4f662b6f0567ac",
|
"reference": "368b9738d4033c8b93454cb0dbd45d305135a6d3",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@ -3424,7 +3440,7 @@
|
|||||||
],
|
],
|
||||||
"description": "Symfony Yaml Component",
|
"description": "Symfony Yaml Component",
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"time": "2016-07-17 14:02:08"
|
"time": "2016-09-25 08:27:07"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "webmozart/assert",
|
"name": "webmozart/assert",
|
||||||
|
@ -6,11 +6,6 @@
|
|||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteBase /
|
RewriteBase /
|
||||||
|
|
||||||
# If not installed, redirect to install route
|
|
||||||
RewriteCond %{DOCUMENT_ROOT}/../blue-twilight.lic !-f
|
|
||||||
RewriteCond %{REQUEST_URI} !upload-license.php$
|
|
||||||
RewriteRule .* upload-license.php [L,R=302]
|
|
||||||
|
|
||||||
# Redirect Trailing Slashes If Not A Folder...
|
# Redirect Trailing Slashes If Not A Folder...
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
RewriteRule ^(.*)/$ /$1 [L,R=301]
|
||||||
|
@ -8,6 +8,7 @@ if (file_exists($licenseFile))
|
|||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
/* END EXISTING LICENSE CHECK */
|
||||||
|
|
||||||
/* START LANGUAGE */
|
/* START LANGUAGE */
|
||||||
$lang = 'en';
|
$lang = 'en';
|
||||||
|
47
public/loader-required.php
Normal file
47
public/loader-required.php
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/* START LOADER CHECK */
|
||||||
|
/* For security reasons, don't allow use of this page if a loader is already installed */
|
||||||
|
if (function_exists('sg_get_const'))
|
||||||
|
{
|
||||||
|
header('Location: index.php');
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
/* END LOADER CHECK */
|
||||||
|
|
||||||
|
/* START PHPINFO REQUEST */
|
||||||
|
if (isset($_GET['phpinfo']))
|
||||||
|
{
|
||||||
|
phpinfo();
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
/* END PHPINFO REQUEST */
|
||||||
|
|
||||||
|
/* START LANGUAGE */
|
||||||
|
$lang = 'en';
|
||||||
|
if (isset($_GET['lang']))
|
||||||
|
{
|
||||||
|
$lang = trim(strtolower(stripslashes($_GET['lang'])));
|
||||||
|
}
|
||||||
|
|
||||||
|
$langFile = sprintf('%s/raw/lang.%s.php', __DIR__, $lang);
|
||||||
|
if (!file_exists($langFile))
|
||||||
|
{
|
||||||
|
$langFile = sprintf('%s/raw/lang.en.php', __DIR__);
|
||||||
|
}
|
||||||
|
|
||||||
|
$lang = include $langFile;
|
||||||
|
/* END LANGUAGE */
|
||||||
|
|
||||||
|
ob_start();
|
||||||
|
?>
|
||||||
|
|
||||||
|
<h1><?php echo $lang['loader_required_title']; ?></h1>
|
||||||
|
<p><?php echo $lang['loader_required_p1']; ?></p>
|
||||||
|
<p><?php echo $lang['loader_required_p2']; ?></p>
|
||||||
|
<?php $url = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]?phpinfo=1"; ?>
|
||||||
|
<p><b><a href="<?php echo $url; ?>" target="_blank"><?php echo $url ?></a></b></p>
|
||||||
|
<?php
|
||||||
|
$content = ob_get_clean();
|
||||||
|
require sprintf('%s/raw/layout.php', __DIR__);
|
||||||
|
?>
|
@ -5,6 +5,9 @@ return [
|
|||||||
'license_required_p1' => 'Blue Twilight requires a license to run correctly. You can generate and download a license file from the <a href="http://shop.andyheathershaw.uk/user/orders" target="_blank">My Orders</a> page.',
|
'license_required_p1' => 'Blue Twilight requires a license to run correctly. You can generate and download a license file from the <a href="http://shop.andyheathershaw.uk/user/orders" target="_blank">My Orders</a> page.',
|
||||||
'license_required_p2' => 'Your license file must match the hostname: :host_name.',
|
'license_required_p2' => 'Your license file must match the hostname: :host_name.',
|
||||||
'license_required_title' => 'License Required',
|
'license_required_title' => 'License Required',
|
||||||
|
'loader_required_p1' => 'Blue Twilight uses the Source Guardian source code protection system which requires a small "loader" to be installed on your system.',
|
||||||
|
'loader_required_p2' => 'Please see <a href="https://www.sourceguardian.com/loaders.html" target="_blank">this web page</a> to download the loader for your system. You can use the "loader assistant" and provide the following URL for the PHP information:',
|
||||||
|
'loader_required_title' => 'Source Guardian Loader Required',
|
||||||
'powered_by' => 'Powered by <a href="http://www.andyheathershaw.uk/blue-twilight" target="_blank">Blue Twilight</a> - the self-hosted photo gallery software.',
|
'powered_by' => 'Powered by <a href="http://www.andyheathershaw.uk/blue-twilight" target="_blank">Blue Twilight</a> - the self-hosted photo gallery software.',
|
||||||
'upload_action' => 'Upload',
|
'upload_action' => 'Upload',
|
||||||
'upload_errors' => [
|
'upload_errors' => [
|
||||||
|
72
resources/build/build.php
Normal file
72
resources/build/build.php
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
define('PROJECT_ID', 'blue-twilight');
|
||||||
|
define('PROJECT_KEY', 's7Ebes37ChACHeC8A8AzAXUswestuZ8v');
|
||||||
|
define('LICENSE_FILE', 'blue-twilight.lic');
|
||||||
|
|
||||||
|
echo 'Blue Twilight Packaging Script' . PHP_EOL;
|
||||||
|
echo '(c) Andy Heathershaw 2016' . PHP_EOL;
|
||||||
|
echo '------------------------------' . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
|
echo 'Checking current folder...' . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
|
$appRoot = dirname(dirname(__DIR__));
|
||||||
|
if (getcwd() != $appRoot)
|
||||||
|
{
|
||||||
|
echo sprintf('The build script must be run in the application root - %s', $appRoot) . PHP_EOL;
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
echo 'Downloading Composer...' . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
|
copy('https://getcomposer.org/installer', 'composer-setup.php');
|
||||||
|
if (hash_file('SHA384', 'composer-setup.php') === 'e115a8dc7871f15d853148a7fbac7da27d6c0030b848d9b3dc09e2a0388afed865e6a3d6b3c0fad45c48e2b5fc1196ae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); exit; } echo PHP_EOL;
|
||||||
|
system('php composer-setup.php');
|
||||||
|
unlink('composer-setup.php');
|
||||||
|
|
||||||
|
echo 'Installing dependencies using Composer...' . PHP_EOL . PHP_EOL;
|
||||||
|
system('./composer.phar install');
|
||||||
|
echo PHP_EOL;
|
||||||
|
|
||||||
|
echo 'Removing environment-related files...' . PHP_EOL . PHP_EOL;
|
||||||
|
@unlink(sprintf('%s/.env', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/storage/app/*', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/storage/framework/cache/*.log', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/storage/framework/sessions/*.log', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/storage/framework/views/*.log', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/storage/logs/*.log', $appRoot));
|
||||||
|
|
||||||
|
echo 'Removing build files...' . PHP_EOL . PHP_EOL;
|
||||||
|
|
||||||
|
// Remove development-related files
|
||||||
|
system(sprintf('rm -rf %s/resources/build', $appRoot));
|
||||||
|
system(sprintf('rm -rf %s/tests', $appRoot));
|
||||||
|
@unlink(sprintf('%s/server.php', $appRoot));
|
||||||
|
|
||||||
|
// Can't use Artisan once encoded
|
||||||
|
@unlink(sprintf('%s/artisan', $appRoot));
|
||||||
|
|
||||||
|
// We don't use Gulp or PHPUnit (yet, maybe one day!)
|
||||||
|
@unlink(sprintf('%s/gulpfile.js', $appRoot));
|
||||||
|
@unlink(sprintf('%s/package.json', $appRoot));
|
||||||
|
@unlink(sprintf('%s/phpunit.xml', $appRoot));
|
||||||
|
|
||||||
|
// The Readme.md is currently Laravel's, not our own, so get rid
|
||||||
|
@unlink(sprintf('%s/readme.md', $appRoot));
|
||||||
|
|
||||||
|
echo 'Licensing and encoding the application using Source Guardian...' . PHP_EOL . PHP_EOL;
|
||||||
|
$sgCommand = sprintf(
|
||||||
|
'/usr/local/sourceguardian/bin/sourceguardian --phpversion "5.6" --external "%s" --projid "%s" --projkey "%s" ' .
|
||||||
|
'--stop-on-error --strict-errors --deprec-errors -x "*.blade.php" -x "vendor/*.php" -x "public/raw/*.php" ' .
|
||||||
|
'-x public/license-required.php -x public/loader-required.php -x "storage/*" -r -b- ' .
|
||||||
|
'-p @./public/raw/sg-license-error.php -j "<?php btw_loader_error(); ?>" --catch ERR_ALL="btw_license_error" "*.php"',
|
||||||
|
LICENSE_FILE,
|
||||||
|
PROJECT_ID,
|
||||||
|
PROJECT_KEY
|
||||||
|
);
|
||||||
|
system($sgCommand);
|
||||||
|
echo PHP_EOL . PHP_EOL;
|
||||||
|
echo 'All done!';
|
||||||
|
exit();
|
||||||
|
|
||||||
|
?>
|
Loading…
Reference in New Issue
Block a user