Skip to content

Instantly share code, notes, and snippets.

View morettic2015's full-sized avatar
🏠
https://morettic.com.br

CEO morettic2015

🏠
https://morettic.com.br
View GitHub Profile
@morettic2015
morettic2015 / commands.php
Created June 6, 2017 22:32 — forked from escopecz/commands.php
Script to run Mautic (https://mautic.org) commands from a URL.
<?php
if (!isset($_GET['ILoveMauticReallyIDo'])) {
echo 'The secret phrase is wrong.';
die;
}
$link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$allowedTasks = array(
'cache:clear',