Source for file view.php
Documentation is available at view.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
GL::$stream = new GLTemplate(GLConfig::$resources->file('engine/page.php'));
// Initialize stream variables
GL::$stream->headers = array(
GLConfig::$resources->url('runtime/mootools-1.2.2-core-yc.js'),
GLConfig::$resources->url('runtime/mootools-1.2.2.2-more.js'),
GLConfig::$resources->url('runtime/trace.js'),
'content' => 'text/html; charset=utf-8'
GL::$stream->inline = array(
GL::$stream->title = 'GLOO Test';
// Append the GLAPI javascript
$glapi = include(GLConfig::$resources->file('engine/glapi/get.php'));
GL::$stream->headers['js'][] = $r;
//******** REMOVE THEESE:
$panel->title = 'Welcome to GloryLands Object Oriented API';
$panel->text = 'The GLOO is a set of functions that allow real-time PHP and Javascript interaction, letting you concern ornly about the PHP-side of the script. The javascript DOM will automatically follow the PHP object hierectary and every PHP object can directly communicate with the Javascript itnerface.';
$panel->title = 'Another panel';
//$panel->text = '<a href="javascript:var v=new GLUIPanel({\'text\': \'This is a test\', \'title\':\'Static testing\'});">Click me!</a>';
$panel->text = '<b>Request:</b> 0';
// Render the PHP-JS linking script into an in-line javscript
GL::$stream->inline['js'][] = GLOOLink::compile_js();
// Render the final output
return GL::$stream->fetch();
|