Skip to content

Instantly share code, notes, and snippets.

@ChgoChad
ChgoChad / commands.php
Last active Jan 7, 2021 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
View commands.php
<?php
if (!isset($_GET['ILoveMautic'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',