<?php /* * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 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 General * Public License for more details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* * XMLHttpRequest hook */ require_once 'config.php'; if ($_SERVER['REQUEST_METHOD'] !== 'POST') { header('Location: ' . LACE_URL_ABS); exit; } require_once 'common.php'; header('Content-type: text/html; charset=utf-8'); exit('{"response":{' . laceListener() . ',' . userList(true) . '}}');
* You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // Initialize the form's name value to // be overridden during session init. global $name; $name = ''; require_once 'common.php'; if ($name == '') { $name = getName(); } // This is only ever used if XMLHttpRequest is // not accessible (JavaScript disabled, etc.) // Otherwise, Lace just passes through it unaffected. laceListener(false); // Front Controller dirty work $op = postVar('op', false); switch ($op) { case 'log': $id = 'log'; $include = 'log.inc.php'; $title = LACE_SITE_NAME . ' Logs'; break; case 'help': $id = 'help'; $include = 'help.inc.php'; $title = LACE_SITE_NAME . ' Tips'; break; default: if ($_SERVER['REQUEST_URI'] != LACE_URL_REL && $_SERVER['REQUEST_URI'] != LACE_URL_REL . basename(__FILE__)) {