************************************************************************ * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see * . * ************************************************************************ * * This file receives the requests, sanitises them, forwards the input * to update.sh and prints the results. It is also responsible for * debug logs. * ***********************************************************************/ ?> $output"; } // DEBUGGING if($debug === true) { $date = date("Y-m-d H:i:s"); $browser = $_SERVER['HTTP_USER_AGENT']; $postdata = print_r($_POST, TRUE); $getdata = print_r($_GET, TRUE); $debug = // basic info '$date: ' . $date . '
' . '$browser: ' . $browser . '
' . '$debug: ' . $debug . '
' . '$method: ' . $method . '
' . // Specific set variables '$domain: ' . $domain . '
' . '$ip: ' . $ip . '
' . '$user: ' . $user . '
' . '$pass: ' . $pass . '
' . // all POST and GET '$postdata: ' . $postdata . '
' . '$getdata: ' . $getdata . '
' ; echo "

Debug information:

"; print_r($debug); // Show debug in browser $debug_log = str_replace('
', "\r\n", $debug); // file_put_contents('debug.log', $debug_log, FILE_APPEND | LOCK_EX); } ?>