Page MenuHomeCode

explore.php
No OneTemporary

explore.php

<?php
/*
* Zed
* (c) 2010, Dereckson, some rights reserved
* Released under BSD license
*
* Explore current location
*
* This is a redirect controller to call the relevant controller,
* according to the location.
*
*/
//
// Determines the kind of content user wants to explore
//
$explore_controller = '';
if (file_exists(STORIES_DIR . '/' . $CurrentPerso->location_global . '.xml')) {
$explore_controller = 'story';
}
//
// No relevant controller found
//
if ($explore_controller == '') {
message_die(GENERAL_ERROR, "<p>Congratulations! You've just found a shiny new place.</p><p>You've so the opportunity to define what this place should be, writing a story, preparing a puzzle or some images.</p><p>If you're interested, contact Dereckson.</p>", "Exploration error");
}
//
// Calls relevant controller
//
include($explore_controller . '.php');
?>

File Metadata

Mime Type
text/x-php
Expires
Thu, May 15, 11:49 (3 d, 12 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
22731
Default Alt Text
explore.php (915 B)

Event Timeline