Source for file api.php
Documentation is available at api.php
* GloryLands, a Web-Based, Massive Multiplayer Online RPG/Strategy Game
* Copyright (C) 2008-09 John Haralampidis <jïhnys2[at]gmail.cïm>
* 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 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 General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* For any help/suggestions or troubleshooting you can see the
* project community website at <http://www.glorylands.gr>
* @license GNU/GPLv3 GNU General Public License version 3
* @author John Haralampidis <jïhnys2[at]gmail.cïm>
* @copyright Copyright (C) 2007-2009, John Haralampidis
* Check if this stream is valid for handling this action
if (isset ($this->headers['X-GLOO-API'])) return true;
if ($this->variables['m'] == 'api') return true;
GL::$stream = new GLDataset();
// Initialize stream variables
GL::$stream->headers = array(
GL::$stream->inline = array(
GL::$stream->title = 'GLOO Test';
$panel2->text = '<b>Request:</b> '. ($_SESSION['req']++ );
$panel2->moveto($panel1->left+ 200, $panel1->top+ 20);
'left' => $panel1->left+ 500,
'top' => $panel1->top+ 20,
'width' => 250+ sin($_SESSION['req'] * pi() / 18)* 100,
'height' => 200+ sin($_SESSION['req'] * pi() / 18)* 100
// Create the GLOOLink message data
// Unescape special strings
//$buffer = preg_replace('/[\'"]#(.+?)#[\'"]/', '\\1', $buffer);
|