Compare commits

..

43 commits

Author SHA1 Message Date
arjan
609cc7cc7e wat kleine verbeteringen 2026-04-21 17:52:40 +02:00
arjan
62d0419a76 Kleine wijzigingen, Docker best practises 2026-04-21 11:50:19 +02:00
4a094ecf2a added newsletter 2026-04-21 11:25:55 +02:00
Joeri de Bruin
757f3ecc91 entrypoint script now upgrades 2026-02-25 18:22:25 +01:00
Joeri de Bruin
9c0c8d31fe entrypoint script now upgrades 2026-02-25 18:22:11 +01:00
Joeri de Bruin
91fc734891 added upgrade scripts for 7.10.33 including upgrade to mysql 8.x 2026-02-25 17:28:31 +01:00
Joeri de Bruin
c46e5a52c6 add log files for starting docker-compose 2026-02-25 13:02:28 +01:00
Joeri de Bruin
f08de7cc23 add log files for starting docker-compose 2026-02-25 12:58:12 +01:00
Joeri de Bruin
4b6dfc7d65 add log files for starting docker-compose 2026-02-25 12:58:03 +01:00
e5d34b75b9 added custom module newsletter 2026-02-24 08:14:00 +01:00
0b4161145d added README.mf 2026-02-09 08:42:26 +01:00
fd501d25ef Merge branch 'master' into Upgrade-to-modern-Perl
Make WebGUI 7.10 master again as we do not want to go to 8
2026-02-06 13:55:31 +01:00
7d0238c1ff Update to current Perl 2026-02-06 13:40:47 +01:00
colin
56e30ccaa7 Document change 2019-03-14 14:45:04 -07:00
Colin Kuskie
9754a55485 Fix munged URLs in redirects for assets with isSecure set. 2019-03-14 14:38:44 -07:00
Colin Kuskie
4c573e96c2 Ready for 7.10.32 design cycle 2018-03-15 23:44:20 +00:00
Colin Kuskie
2697b6511a Preparing for 7.10.31 release, again 2018-03-15 22:08:53 +00:00
root
e98e91864a Fix create and previousVersion SQL versions 2018-03-15 18:04:07 +00:00
Colin Kuskie
f6126cd97b Preparing for 7.10.31 development 2018-03-15 16:41:32 +00:00
Colin Kuskie
16e09f20ec Preparing for 7.10.30 release 2018-03-15 04:24:17 +00:00
colin
1ac444b84b Migrate to reCAPTCHA v2 2018-02-27 15:28:35 -08:00
colin
7adee00e9b Allow WebGUI::Cache and all consumers to fetch SSL URLs, but not verify the certificates. 2017-07-19 20:06:46 -07:00
colin
2a139743de fixed: Warnings about API changes in POE::Component::IKC::ClientLite 2017-05-09 13:37:55 -07:00
colin
e096010e8a Force tasks for a project to be ordered by when they were created instead of randomly. 2016-05-02 10:48:08 -07:00
colin
b9d4dadd85 Preparing for WebGUI 7.10.30 release 2016-01-06 00:59:37 +00:00
colin
586e7f90a4 Fix number of skipped tests 2016-01-06 00:47:24 +00:00
colin
dc47a3ef7d Clone the tinyMCE config to prevent referenced data from changing during init. Fixes #12461 2015-12-08 10:39:38 -08:00
colin
5b83fa16a8 Document the bugfix 2015-09-01 09:18:27 -07:00
Colin Kuskie
8483223276 Asset Report NULL operators do not accept values. 2015-09-01 09:10:38 -07:00
Ernesto Hernández-Novich
6ccfb044bd =item cannot be immediately followed by a number
Since Perl 5.20 a POD =item cannot start with single
number, as is the case in syncToCdn POD explanation of
return codes. Using pod2* reports syntax errors like

line 228: Expected text after =item, not a number

Wrapped the numbers with POD's zero-effect markup Z<>
to fix the issue.
2015-07-04 11:34:33 -04:30
Colin Kuskie
965196f49a Push out head tags for the custom color selector. 2015-03-10 14:05:18 -07:00
Colin Kuskie
0dd15949c3 Also provide the correct mime type to speed up the parsing. 2015-02-18 13:43:40 -05:00
Colin Kuskie
0169bd5bf5 Do not generate the Not Found page if JS or CSS was requested. Cut #1 2015-02-11 17:18:10 -08:00
Colin Kuskie
1f735660e1 Fix typo in the account module skeleton 2014-11-19 09:41:11 -08:00
Colin Kuskie
e7eea52b2d Ready for 7.10.30 development 2014-11-17 23:15:19 -05:00
Colin Kuskie
798dd1fc44 Preparing for 7.10.29 release 2014-11-17 21:02:28 -05:00
Colin Kuskie
9e966d7f9e Fix style declaration in minicart template for validation. Fixed #12456 2014-11-10 18:58:58 -05:00
Colin Kuskie
720284f947 Update USPS International driver to V2 API and fix insurance. 2014-11-10 14:48:02 -05:00
Colin Kuskie
386e718c8a Update USPS ShipDriver to V4. Fixes bug #12455 2014-10-29 18:53:47 -04:00
Colin Kuskie
9b219abec7 Fix bug #12454, loss of from field data when emailing groups 2014-10-16 16:33:09 -04:00
Colin Kuskie
ed28bd4013 Always return a good status from a Workflow Activity 2014-06-26 20:36:59 -07:00
Colin Kuskie
46c88de2c8 WRE dependencies are tracked in the WRE itself, not in WebGUI.
This reverts commit a1c7db7388.
2013-03-21 16:14:37 -07:00
Colin Kuskie
c806f99b7b Ready for 7.10.29 development. 2013-03-20 21:38:23 -07:00
10 changed files with 754 additions and 1106 deletions

15
.dockerignore Normal file
View file

@ -0,0 +1,15 @@
# https://medium.com/@bounouh.fedi/mastering-the-dockerignore-file-boosting-docker-build-efficiency-398719f4a0e1
# Ignore version control (directories), not needed in container
.git
.git/
.gitignore
# If we're cacheing cpan modules, so they are not downloaded every time
# ignore these caches in the container
.cpanrc
cpan-cache/
# Ignore Docker-related files
Dockerfile*
.dockerignore

View file

@ -1,14 +1,14 @@
FROM debian:latest
FROM debian:trixie
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt -y install perl cpanminus libaspell-dev make libdbd-mysql-perl libdigest-perl-md5-perl libxml-simple-perl \
libmodule-install-perl gcc libperl-dev default-libmysqlclient-dev libpng-dev build-essential libgd-dev mariadb-client imagemagick \
libpng-dev libjpeg-dev libtiff-dev libapache2-mod-perl2 libapache2-mod-perl2-dev libapache2-request-perl libimage-magick-perl vim \
apache2 apache2-utils
apache2 apache2-utils mailutils
RUN cpanm --notest --force \
RUN cpanm --notest --no-cache --force \
Algorithm::Permute \
App::Cmd \
Archive::Any \
@ -79,6 +79,7 @@ RUN cpanm --notest --force \
List::MoreUtils \
Locales \
Log::Log4perl \
Mail::DeliveryStatus::BounceParser \
MIME::Tools \
Module::Find \
Monkey::Patch \
@ -140,6 +141,9 @@ RUN cpanm --notest --force \
common::sense \
namespace::autoclean
RUN apt -y remove libjson-xs-perl
RUN apt-get clean
RUN rm -rf /var/lib/apt/lists/*
#RUN cpanm --notest --force \
# DBD::mysql@4.051

View file

@ -13,10 +13,13 @@ services:
volumes:
- ./share/create.sql:/docker-entrypoint-initdb.d/1.sql
ports:
- 3306
- 3306:3306
webgui:
image: webgui
image: webgui:latest
build:
context: ..
dockerfile: Dockerfile
container_name: webgui
depends_on:
- db
@ -38,4 +41,4 @@ services:
#- "443:443"
# TODO: serve staatic files directly from nginx
#- ./www:/var/www/html:ro

View file

@ -29,8 +29,16 @@ for configfile in `perl -Ilib sbin/wgd for-each`;do
## perl -Ilib sbin/wgd db --config-file=www.example.com --webgui-root=/data/WebGUI
#install newsletter module
perl -I /data/WebGUI/lib -I /data/WebGUI/custom/webgui_newsletter/lib /data/WebGUI/custom/webgui_newsletter/sbin/install_icons.pl --customRoot=/data/WebGUI/custom
cd /data/WebGUI/lib
perl -I /data/WebGUI/lib -I /data/WebGUI/custom/webgui_newsletter/lib /data/WebGUI/custom/webgui_newsletter/sbin/install_newsletter.pl --configFile=www.example.com.conf
fi
done
perl -I/data/WebGUI/lib sbin/spectre.pl --daemon

View file

@ -1,6 +1,6 @@
<VirtualHost 0.0.0.0:80>
ServerName www.example.com
ServerAlias webgui localhost example.com unitedknowledge.vps2.unitedknowledge.net www.unitedknowledge.eu unitedknowledge.eu www.united-knowledge.eu united-knowledge.eu www.unitedknowledge.net unitedknowledge.net
ServerName localhost
ServerAlias webgui www.example.com example.com unitedknowledge.vps2.unitedknowledge.net www.unitedknowledge.eu unitedknowledge.eu www.united-knowledge.eu united-knowledge.eu www.unitedknowledge.net unitedknowledge.net
DocumentRoot /data/WebGUI/www
SetEnvIf SSLPROXY "1" \
SSLPROXY

View file

@ -4,7 +4,7 @@
# system is capable of. To unleash the full power read the config file manual
# http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/Config.html
log4perl.logger = ERROR, mainlog
log4perl.logger = WARN, mainlog
log4perl.appender.mainlog = Log::Log4perl::Appender::File
log4perl.appender.mainlog.filename = /var/log/webgui.log
log4perl.appender.mainlog.layout = PatternLayout

File diff suppressed because it is too large Load diff

View file

@ -155,6 +155,7 @@ sub loadSiteData {
}
else {
my $siteData = {};
print "Reading site configs. $url responded with: " . $response->content . "\n";
eval { $siteData = JSON::decode_json($response->content); };
if ($@) {
$self->error("Couldn't fetch Spectre configuration data for $key : $@");

View file

@ -19,7 +19,7 @@ use WebGUI::Asset;
use WebGUI::Form;
use WebGUI::Utility;
use WebGUI::International;
use JSON;
use JSON -convert_blessed_universally;
our @ISA = qw(WebGUI::Asset);
@ -664,9 +664,10 @@ EOHTML1
if ( $ask ) {
$config->{mode} = "none";
}
$self->session->log->debug("config: $config->{mode} ");
$out .= $self->getLoadPlugins;
$out .= "\ttinyMCE.init(" . JSON->new->pretty->encode( $config ) . " );\n";
$out .= "\ttinyMCE.init(" . JSON->new->allow_blessed->pretty->encode( $config ) . " );\n";
$out .= "</script>";
}

View file

@ -233,7 +233,7 @@ sub crud_createTable {
my $tableName = $class->crud_getTableName($session);
$class->crud_dropTable($session);
$db->write('create table '.$dbh->quote_identifier($tableName).' (
'.$dbh->quote_identifier($class->crud_getTableKey($session)).' CHAR(22) binary not null primary key,
'.$dbh->quote_identifier($class->crud_getTableKey($session)).' CHAR(22) binary not null default "" primary key,
sequenceNumber int not null default 1,
dateCreated datetime,
lastUpdated datetime
@ -468,7 +468,7 @@ sub crud_updateTable {
my $notNullClause = ($isKey || $defaultValue ne "") ? "not null" : "";
my $defaultClause = '';
if ($fieldType !~ /(?:text|blob)$/i) {
$defaultClause = "default ".$dbh->quote($defaultValue) if ($defaultValue ne "");
$defaultClause = "default ".$dbh->quote($defaultValue);
}
if (exists $tableFields{$property}) {
my $changed = 0;