Skip to content

Instantly share code, notes, and snippets.

View ChgoChad's full-sized avatar

Chad C ChgoChad

  • Chicago
  • 08:09 (UTC -05:00)
View GitHub Profile
@ChgoChad
ChgoChad / commands.php
Last active January 5, 2024 22:18 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
<?php
if (!isset($_GET['ILoveMautic'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',