Skip to content

Instantly share code, notes, and snippets.

View sebastian-fahrenkrog's full-sized avatar

Sebastian Fahrenkrog sebastian-fahrenkrog

View GitHub Profile
@sebastian-fahrenkrog
sebastian-fahrenkrog / submit.php
Created January 29, 2022 10:29
Mautic Anti Form Spam
<?php
/*
* @copyright 2014 Mautic Contributors. All rights reserved
* @author Mautic
*
* @link http://mautic.org
*
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
@sebastian-fahrenkrog
sebastian-fahrenkrog / cleanup_mautic.txt
Created February 2, 2021 11:00
Mautic Database Cleanup
# Remove unused ips
php app/console mautic:unusedip:delete -n --limit=99999999999
# Maintenance cleanup
php app/console mautic:maintenance:cleanup --days-old=21 -n
Mysql:
#infos: https://github.com/mautic/mautic/issues/7763
UPDATE email_stats SET tokens = NULL;
@sebastian-fahrenkrog
sebastian-fahrenkrog / Elementor_Moda_Fileupload_Mautic.html
Last active February 2, 2021 10:49
Multi File Upload Mautic form in a elementor modal
<script>
(function (global) {
var formId = 11;
var elementorPopupId = 6513;
var mauticFormBaseUrl = 'mautic.example.de';
function initFileUpload() {
var fileButton = '.mauticform_wrapper button#file_select';
var fileSelector = '.mauticform_wrapper input[type=\'file\']';