- Added securimage via composer

- Added securimage in application/views/templates/FHC-Header.php
This commit is contained in:
Paolo
2019-11-18 15:04:52 +01:00
parent a093d470e4
commit 6bf7d46ace
3 changed files with 137 additions and 69 deletions
+31 -20
View File
@@ -18,6 +18,7 @@
$addons = isset($addons) ? $addons : false;
$ajaxlib = isset($ajaxlib) ? $ajaxlib : false;
$bootstrap = isset($bootstrap) ? $bootstrap : false;
$captcha = isset($captcha) ? $captcha : false;
$dialoglib = isset($dialoglib) ? $dialoglib : false;
$filterwidget = isset($filterwidget) ? $filterwidget : false;
$fontawesome = isset($fontawesome) ? $fontawesome : false;
@@ -62,12 +63,6 @@
// Font Awesome CSS
if ($fontawesome === true) generateCSSsInclude('vendor/components/font-awesome/css/font-awesome.min.css');
// PivotUI CSS
if ($pivotui === true)
{
generateCSSsInclude('vendor/nicolaskruchten/pivottable/dist/pivot.min.css');
}
// SB Admin 2 template CSS
if ($sbadmintemplate === true)
{
@@ -75,6 +70,15 @@
generateCSSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/css/sb-admin-2.min.css');
}
// Securimage CSS
if ($captcha === true) generateCSSsInclude('vendor/dapphp/securimage/securimage.css');
// PivotUI CSS
if ($pivotui === true)
{
generateCSSsInclude('vendor/nicolaskruchten/pivottable/dist/pivot.min.css');
}
// Table sorter CSS
if ($tablesorter === true)
{
@@ -107,6 +111,9 @@
// Eventually required CSS
generateCSSsInclude($customCSSs); // Eventually required CSS
// CSS End
// --------------------------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------------------------
// Javascripts
@@ -132,19 +139,32 @@
}
// jQuery checkboxes
// NOTE: keep it after jQuery includes
if ($jquerycheckboxes === true)
{
generateJSsInclude('vendor/rmariuzzo/jquery-checkboxes/dist/jquery.checkboxes-1.0.7.min.js');
}
// Bootstrap JS
if ($bootstrap === true) generateJSsInclude('vendor/twbs/bootstrap/dist/js/bootstrap.min.js');
// jQuery treetable
// NOTE: keep it after jQuery includes
if ($jquerytreetable === true) generateJSsInclude('vendor/ludo/jquery-treetable/jquery.treetable.js');
// MomentJS
// Bootstrap JS
if ($bootstrap === true) generateJSsInclude('vendor/twbs/bootstrap/dist/js/bootstrap.min.js');
// SB Admin 2 template JS
if ($sbadmintemplate === true)
{
generateJSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/vendor/metisMenu/metisMenu.min.js');
generateJSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/js/sb-admin-2.min.js');
generateBackwardCompatibleJSMsIe('vendor/afarkas/html5shiv/dist/html5shiv.min.js');
generateBackwardCompatibleJSMsIe('vendor/scottjehl/Respond/dest/respond.min.js');
}
// Securimage JS
if ($captcha === true) generateJSsInclude('vendor/dapphp/securimage/securimage.js');
// Moment JS
if ($momentjs === true)
{
generateJSsInclude('vendor/moment/momentjs/min/moment.min.js');
@@ -152,7 +172,7 @@
generateJSsInclude('vendor/moment/momentjs/locale/en-ie.js');
}
// PivotUI CSS
// PivotUI JS
if ($pivotui === true)
{
generateJSsInclude('vendor/nicolaskruchten/pivottable/dist/pivot.min.js');
@@ -176,15 +196,6 @@
// Tinymce JS
if ($tinymce === true) generateJSsInclude('vendor/tinymce/tinymce/tinymce.min.js');
// SB Admin 2 template JS
if ($sbadmintemplate === true)
{
generateJSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/vendor/metisMenu/metisMenu.min.js');
generateJSsInclude('vendor/BlackrockDigital/startbootstrap-sb-admin-2/dist/js/sb-admin-2.min.js');
generateBackwardCompatibleJSMsIe('vendor/afarkas/html5shiv/dist/html5shiv.min.js');
generateBackwardCompatibleJSMsIe('vendor/scottjehl/Respond/dest/respond.min.js');
}
// --------------------------------------------------------------------------------------------------------
// From public folder
+2
View File
@@ -258,6 +258,8 @@
"components/font-awesome": "^4.7",
"components/angular.js": "1.3.16",
"dapphp/securimage": "3.6.7",
"easyrdf/easyrdf": "0.9.*",
"fgelinas/timepicker": "^0.3.3",
Generated
+104 -49
View File
@@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "44a02c1e72626f05e682de2030c8adad",
"content-hash": "e0898c2ba3d18593851989029e54bedb",
"hash": "75b3277334ef6564aee20c9d2983d35d",
"content-hash": "68bb70c839d177e462a61df013b980c2",
"packages": [
{
"name": "BlackrockDigital/startbootstrap-sb-admin-2",
@@ -47,7 +47,7 @@
],
"description": "Defacto way to enable use of HTML5 sectioning elements in legacy Internet Explorer.",
"homepage": "http://paulirish.com/2011/the-history-of-the-html5-shiv/",
"time": "2015-07-20T20:04:00+00:00"
"time": "2015-07-20 20:04:00"
},
{
"name": "alvaro-prieto/colResizable",
@@ -126,7 +126,7 @@
},
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"time": "2016-09-02T11:31:54+00:00"
"time": "2016-09-02 11:31:54"
},
{
"name": "codeigniter/framework",
@@ -159,7 +159,7 @@
],
"description": "The CodeIgniter framework",
"homepage": "https://codeigniter.com",
"time": "2019-01-16T15:49:35+00:00"
"time": "2019-01-16 15:49:35"
},
{
"name": "components/angular.js",
@@ -463,7 +463,7 @@
],
"description": "Shim repository for Angular.js",
"homepage": "http://angularjs.org",
"time": "2015-06-07T20:10:38+00:00"
"time": "2015-06-07 20:10:38"
},
{
"name": "components/font-awesome",
@@ -498,7 +498,7 @@
"OFL-1.1"
],
"description": "The iconic font designed for use with Twitter Bootstrap.",
"time": "2016-10-25T10:56:23+00:00"
"time": "2016-10-25 10:56:23"
},
{
"name": "components/jquery",
@@ -540,7 +540,7 @@
],
"description": "jQuery JavaScript Library",
"homepage": "http://jquery.com",
"time": "2018-03-04T13:23:48+00:00"
"time": "2018-03-04 13:23:48"
},
{
"name": "components/jqueryui",
@@ -625,7 +625,56 @@
}
],
"description": "jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library. Whether you're building highly interactive web applications or you just need to add a date picker to a form control, jQuery UI is the perfect choice.",
"time": "2016-09-16T05:47:55+00:00"
"time": "2016-09-16 05:47:55"
},
{
"name": "dapphp/securimage",
"version": "3.6.7",
"source": {
"type": "git",
"url": "https://github.com/dapphp/securimage.git",
"reference": "1ecb884797c66e01a875c058def46c85aecea45b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/dapphp/securimage/zipball/1ecb884797c66e01a875c058def46c85aecea45b",
"reference": "1ecb884797c66e01a875c058def46c85aecea45b",
"shasum": ""
},
"require": {
"ext-gd": "*",
"php": ">=5.4"
},
"suggest": {
"ext-pdo": "For database storage support",
"ext-pdo_mysql": "For MySQL database support",
"ext-pdo_sqlite": "For SQLite3 database support"
},
"type": "library",
"autoload": {
"classmap": [
"securimage.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Drew Phillips",
"email": "drew@drew-phillips.com"
}
],
"description": "PHP CAPTCHA Library",
"homepage": "https://www.phpcaptcha.org",
"keywords": [
"Forms",
"anti-spam",
"captcha",
"security"
],
"time": "2018-03-09 06:07:41"
},
{
"name": "easyrdf/easyrdf",
@@ -687,7 +736,7 @@
"rdfa",
"sparql"
],
"time": "2015-02-27T09:45:49+00:00"
"time": "2015-02-27 09:45:49"
},
{
"name": "fgelinas/timepicker",
@@ -697,12 +746,6 @@
"url": "https://github.com/fgelinas/timepicker",
"reference": "9aebe413b784696639220bc36b7c1e8a30fda129"
},
"dist": {
"type": "zip",
"url": "https://fgelinas.com/code/timepicker/releases/jquery-ui-timepicker-0.3.3.zip",
"reference": null,
"shasum": null
},
"type": "library"
},
{
@@ -753,7 +796,7 @@
"faker",
"fixtures"
],
"time": "2018-07-12T10:23:15+00:00"
"time": "2018-07-12 10:23:15"
},
{
"name": "joeldbirch/superfish",
@@ -895,7 +938,7 @@
"json",
"schema"
],
"time": "2014-08-25T02:48:14+00:00"
"time": "2014-08-25 02:48:14"
},
{
"name": "kevinlebrun/colors.php",
@@ -946,7 +989,7 @@
"console",
"shell"
],
"time": "2018-05-30T08:34:23+00:00"
"time": "2018-05-30 08:34:23"
},
{
"name": "kingsquare/json-schema-form",
@@ -980,11 +1023,17 @@
}
],
"description": "A framework-agnostic PHP Implementation for generating simple forms based on json-schema",
"time": "2014-07-10T12:27:19+00:00"
"time": "2014-07-10 12:27:19"
},
{
"name": "ludo/jquery-treetable",
"version": "3.2.0",
"dist": {
"type": "zip",
"url": "https://github.com/ludo/jquery-treetable/archive/3.2.0.zip",
"reference": null,
"shasum": null
},
"type": "library"
},
{
@@ -1036,7 +1085,7 @@
"keywords": [
"markdown"
],
"time": "2015-03-01T12:03:08+00:00"
"time": "2015-03-01 12:03:08"
},
{
"name": "ml/iri",
@@ -1083,7 +1132,7 @@
"uri",
"url"
],
"time": "2014-01-21T13:43:39+00:00"
"time": "2014-01-21 13:43:39"
},
{
"name": "ml/json-ld",
@@ -1132,7 +1181,7 @@
"JSON-LD",
"jsonld"
],
"time": "2018-11-18T20:26:18+00:00"
"time": "2018-11-18 20:26:18"
},
{
"name": "moment/momentjs",
@@ -1194,7 +1243,7 @@
"sorting",
"table"
],
"time": "2018-11-20T21:54:28+00:00"
"time": "2018-11-20 21:54:28"
},
{
"name": "nategood/httpful",
@@ -1244,7 +1293,7 @@
"rest",
"restful"
],
"time": "2015-10-26T16:11:30+00:00"
"time": "2015-10-26 16:11:30"
},
{
"name": "netcarver/textile",
@@ -1297,7 +1346,7 @@
"plaintext",
"textile"
],
"time": "2019-01-26T17:03:58+00:00"
"time": "2019-01-26 17:03:58"
},
{
"name": "nicolaskruchten/pivottable",
@@ -1340,7 +1389,7 @@
"pivottable",
"table"
],
"time": "2018-11-04T18:21:09+00:00"
"time": "2018-11-04 18:21:09"
},
{
"name": "olifolkerd/tabulator",
@@ -1443,7 +1492,7 @@
"x.509",
"x509"
],
"time": "2019-03-10T16:53:45+00:00"
"time": "2019-03-10 16:53:45"
},
{
"name": "psr/log",
@@ -1490,7 +1539,7 @@
"psr",
"psr-3"
],
"time": "2018-11-20T15:27:04+00:00"
"time": "2018-11-20 15:27:04"
},
{
"name": "rdlowrey/auryn",
@@ -1551,11 +1600,17 @@
"dic",
"ioc"
],
"time": "2017-05-15T06:26:46+00:00"
"time": "2017-05-15 06:26:46"
},
{
"name": "rmariuzzo/jquery-checkboxes",
"version": "1.0.7",
"dist": {
"type": "zip",
"url": "https://github.com/rmariuzzo/checkboxes.js/archive/v1.0.7.zip",
"reference": null,
"shasum": null
},
"type": "library"
},
{
@@ -1607,7 +1662,7 @@
"php",
"template"
],
"time": "2016-02-01T16:31:13+00:00"
"time": "2016-02-01 16:31:13"
},
{
"name": "rougin/combustor",
@@ -1672,7 +1727,7 @@
"generator",
"php"
],
"time": "2016-02-14T10:36:58+00:00"
"time": "2016-02-14 10:36:58"
},
{
"name": "rougin/describe",
@@ -1725,7 +1780,7 @@
"describe",
"php"
],
"time": "2016-03-24T18:17:47+00:00"
"time": "2016-03-24 18:17:47"
},
{
"name": "rougin/refinery",
@@ -1790,7 +1845,7 @@
"php",
"refinery"
],
"time": "2016-03-04T16:55:32+00:00"
"time": "2016-03-04 16:55:32"
},
{
"name": "rougin/spark-plug",
@@ -1849,7 +1904,7 @@
"php",
"spark-plug"
],
"time": "2015-10-23T08:27:10+00:00"
"time": "2015-10-23 08:27:10"
},
{
"name": "scottjehl/Respond",
@@ -1921,7 +1976,7 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"time": "2018-11-20T15:55:20+00:00"
"time": "2018-11-20 15:55:20"
},
{
"name": "symfony/debug",
@@ -1978,7 +2033,7 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"time": "2016-07-30T07:22:48+00:00"
"time": "2016-07-30 07:22:48"
},
{
"name": "symfony/polyfill-ctype",
@@ -2036,7 +2091,7 @@
"polyfill",
"portable"
],
"time": "2019-02-06T07:57:58+00:00"
"time": "2019-02-06 07:57:58"
},
{
"name": "symfony/polyfill-mbstring",
@@ -2095,7 +2150,7 @@
"portable",
"shim"
],
"time": "2019-02-06T07:57:58+00:00"
"time": "2019-02-06 07:57:58"
},
{
"name": "symfony/yaml",
@@ -2145,7 +2200,7 @@
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"time": "2018-11-11T11:18:13+00:00"
"time": "2018-11-11 11:18:13"
},
{
"name": "tapmodo/Jcrop",
@@ -2202,7 +2257,7 @@
"tinymce",
"wysiwyg"
],
"time": "2019-03-20T13:56:58+00:00"
"time": "2019-03-20 13:56:58"
},
{
"name": "tomazdragar/SimpleCropper",
@@ -2263,7 +2318,7 @@
"responsive",
"web"
],
"time": "2019-02-13T15:55:38+00:00"
"time": "2019-02-13 15:55:38"
},
{
"name": "twig/twig",
@@ -2329,7 +2384,7 @@
"keywords": [
"templating"
],
"time": "2019-05-14T11:59:08+00:00"
"time": "2019-05-14 11:59:08"
},
{
"name": "zetacomponents/base",
@@ -2393,7 +2448,7 @@
],
"description": "The Base package provides the basic infrastructure that all packages rely on. Therefore every component relies on this package.",
"homepage": "https://github.com/zetacomponents",
"time": "2017-11-28T11:30:00+00:00"
"time": "2017-11-28 11:30:00"
},
{
"name": "zetacomponents/database",
@@ -2470,7 +2525,7 @@
],
"description": "A lightweight database layer on top of PHP's PDO that allows you to utilize a database without having to take care of differences in SQL dialects.",
"homepage": "https://github.com/zetacomponents",
"time": "2017-11-28T10:55:26+00:00"
"time": "2017-11-28 10:55:26"
},
{
"name": "zetacomponents/document",
@@ -2521,7 +2576,7 @@
],
"description": "The Document components provides a general conversion framework for different semantic document markup languages like XHTML, Docbook, RST and similar.",
"homepage": "https://github.com/zetacomponents",
"time": "2013-12-19T11:40:00+00:00"
"time": "2013-12-19 11:40:00"
},
{
"name": "zetacomponents/workflow",
@@ -2587,7 +2642,7 @@
],
"description": "The purpose of the Workflow component is to provide the core functionality of an activity-based workflow system including the definition and execution of workflow specifications.",
"homepage": "https://github.com/zetacomponents",
"time": "2014-09-27T19:26:10+00:00"
"time": "2014-09-27 19:26:10"
},
{
"name": "zetacomponents/workflow-database-tiein",
@@ -2654,7 +2709,7 @@
],
"description": "Contains the database backend for the Workflow component.",
"homepage": "https://github.com/zetacomponents",
"time": "2014-09-27T19:26:10+00:00"
"time": "2014-09-27 19:26:10"
},
{
"name": "zetacomponents/workflow-event-log-tiein",
@@ -2714,7 +2769,7 @@
],
"description": "Contains the EventLog listener for the Workflow component.",
"homepage": "https://github.com/zetacomponents",
"time": "2007-12-17T09:04:44+00:00"
"time": "2007-12-17 09:04:44"
}
],
"packages-dev": [],