Skip to content

Instantly share code, notes, and snippets.

View gabcarvalhogama's full-sized avatar

Gabriel Carvalho Gama gabcarvalhogama

View GitHub Profile
@gabcarvalhogama
gabcarvalhogama / commands.php
Last active July 5, 2024 01:28 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL. - Mautic 3
<?php
if (!isset($_GET['ILoveMauticReallyIDo'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',