diff --git a/Makefile b/Makefile index b6853e235..d1ef3e064 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,17 @@ -# Makefile for copying files downloaded using composer into the proper location -# for use with WebCalendar. +# Makefile for copying files downloaded using composer +# into the proper location for use with WebCalendar. # We only copy the min number of files required from the vendor directory. # Also, compute the SHA hash to use with the integrity tag. -# We don't want WebCalendar releases to bundle every single file in the vendor directory. +# We don't want WebCalendar releases to bundle +# every single file in the vendor directory. +# # Also, composer dependency management sucks at asset management. # -# NOTE: This Makefile does not work on macos, just linux. This is because there is -# no sha384sum command on macos. If you're on a Mac, you can use docker to setup -# a linux container where (after installing xdd), you can run make to generate the -# sha files. +# NOTE: This Makefile does not work on macos, just linux. +# This is because there is no sha384sum command on macos. +# If you're on a Mac, you can use docker to setup +# a linux container where (after installing xdd), +# you can run make to generate the sha files. PHPMAILER_DIR = includes/classes/phpmailer PHPMAILER_VENDOR_DIR = vendor/phpmailer/phpmailer/src @@ -130,7 +133,7 @@ includes/load_assets.php: \ pub/jquery.min.js \ pub/jquery.min.js.sha echo ' $@ - echo '// Auto-generated by make. Do not hand-edit.' >> $@ + echo '// Auto-generated by make. Do not hand-edit.' >> $@ echo '// See Makefile in source for details..' >> $@ echo '// Last updated: ' | tr -d '\012' >> $@ date >> $@ @@ -169,20 +172,24 @@ pub/jquery.min.js.sha: pub/jquery.min.js $(SHA384SUM) # To get the list of files we need for the "basic" install of ckeditor, # I downloaded the "basic package" from the website: # https://ckeditor.com/ckeditor-4/download -# Then I looked at what was included to make the list of files we need -# to copy over from the vendor/ckeditor directory (which includes -# enough for the "full package" of 72 plugins and adds about 15Mb instead -# of the 2Mb for basic. -# To create this list from the unzipped ckeditor download, cd into the unzipped -# 'ckeditor' dir and use this command: +# Then I looked at what was included to make the list of files +# we need to copy over from the 'vendor/ckeditor' directory +# (which includes enough for the "full package" of 72 plugins +# and adds about 15Mb instead of the 2Mb for basic). +# To create this list from the unzipped ckeditor download, +# cd into the unzipped 'ckeditor' dir and use this command: +# # find * -type f | grep -v samples | grep -v config.js | grep -v 'adapters/' | sed 's/^/\t/' | sed 's/$/ \\/' | sed 's/promise.js ./promise.js/' -# NOTE: We do not include the config.js provides by composer because it defaults to -# the full ckeditor distribution with all plugins (15+ Mb). Instead, I've downloaed -# the config.js from the 4.18 basic build and copied it manually into pub/ckeditor. -# It's possible we may need to update the pub/ckeditor/config.js file manually if -# a new 4.X release requires updates to this file. -# NOTE #2: This Makefile is assuming that the README.md file gets updated with -# each CKEditor update (seems like a safe assumption.) +# +# NOTE: We do not include the 'config.js' provided by composer +# because it defaults to the full ckeditor distribution +# with all plugins (15+ Mb). +# Instead, I've downloaded the 'config.js' from the 4.18 basic build +# and copied it manually into pub/ckeditor. +# It's possible we may need to update the 'pub/ckeditor/config.js' file +# manually if a new 4.X release requires updates to this file. +# NOTE #2: This Makefile is assuming that the 'README.md' file gets +# updated with each CKEditor update (seems like a safe assumption) CKEDITOR_FILES = \ pub/ckeditor/CHANGES.md \ pub/ckeditor/LICENSE.md \ @@ -305,4 +312,3 @@ pub/ckeditor/CHANGES.md: $(CKEDITOR_VENDOR_DIR)/ckeditor/CHANGES.md echo "Copying file: $${f}"; \ cp $${a} $${f}; \ done - diff --git a/about.php b/about.php index 5ef0be1fd..3dd83eeaa 100644 --- a/about.php +++ b/about.php @@ -27,9 +27,9 @@ $replacements[] = ''; $data = preg_replace ( $patterns, $replacements, $data ); } -print_header ( [], '', - '', true, false, true ); -echo '