Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F11708818
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
4 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/apps/helloworld/HelloWorldApplication.php b/apps/helloworld/HelloWorldApplication.php
index c143e68..37cfe77 100644
--- a/apps/helloworld/HelloWorldApplication.php
+++ b/apps/helloworld/HelloWorldApplication.php
@@ -1,47 +1,47 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Hello World application class
*
* @package ObsidianWorkspaces
* @subpackage HelloWorld
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
/**
* Hello World application class
*
* This class provides a sample of how an application is structured.
*/
class HelloWorldApplication extends Application {
/**
* @var string the application name
*/
public static $name = "HelloWorld";
/**
* Handles controller request
*/
public function handleRequest () {
//Reference to URL fragments and Smarty engine
$url = $this->context->url;
$smarty = $this->context->templateEngine;
//Serves header
$smarty->assign('PAGE_TITLE', $title);
HeaderController::Run($this->context);
//Output Hello world
echo "<p>Hello world!</p>"; //TODO: call an hello world view
- //Servers footer
+ //Serves footer
FooterController::Run($this->context);
}
}
diff --git a/apps/mediawikimirror/MediaWikiMirrorApplication.php b/apps/mediawikimirror/MediaWikiMirrorApplication.php
index b0d39fa..200b58d 100644
--- a/apps/mediawikimirror/MediaWikiMirrorApplication.php
+++ b/apps/mediawikimirror/MediaWikiMirrorApplication.php
@@ -1,68 +1,68 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* MediaWiki mirror application class
*
* @package ObsidianWorkspaces
* @subpackage MediaWikiMirror
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*/
/**
* MediaWiki mirror application class
*/
class MediaWikiMirrorApplication extends Application {
/**
* Gets rendered version URL
*
* @return string the URL
*/
public function getRenderUrl () {
return
$this->context->configuration->url[0] .
$this->context->configuration->url[1] .
"/index.php?action=render&title=". $this->context->configuration->page;
}
public function fix_links ($content) {
$fullUrl = $this->context->configuration->url[0] . $this->context->configuration->url[1];
$content = str_replace('<a href="' . $this->context->configuration->url[1], '<a href="' . $fullUrl, $content);
$content = str_replace(' src="' . $this->context->configuration->url[1], ' src="' . $fullUrl, $content);
return $content;
}
/**
* Handles controller request
*/
public function handleRequest () {
$smarty = $this->context->templateEngine;
//Serves header
$smarty->assign('PAGE_TITLE', $title);
HeaderController::Run($this->context);
//Output Hello world
$url = $this->getRenderUrl();
echo "
<style>
.mw-editsection {
display: block;
float: right;
font-size: 12pt;
}
</style>";
$content = file_get_contents($url);
$content = $this->fix_links($content);
echo $content;
- //Servers footer
+ //Serves footer
FooterController::Run($this->context);
}
}
diff --git a/controllers/void.php b/controllers/void.php
index becebdb..9dc0668 100755
--- a/controllers/void.php
+++ b/controllers/void.php
@@ -1,30 +1,30 @@
<?php
/**
* _, __, _, _ __, _ _, _, _
* / \ |_) (_ | | \ | /_\ |\ |
* \ / |_) , ) | |_/ | | | | \|
* ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
*
* Controller when no content has to be served
*
* @package ObsidianWorkspaces
* @subpackage Controllers
* @author Sébastien Santoro aka Dereckson <dereckson@espace-win.org>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @filesource
*
*/
//
// HTML output
//
//Serves header
$smarty->assign('PAGE_TITLE', $title);
HeaderController::run($context);
//Doesn't serve any content;
-//Servers footer
+//Serves footer
FooterController::run($context);
\ No newline at end of file
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Mon, Sep 15, 07:23 (1 d, 13 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2983858
Default Alt Text
(4 KB)
Attached To
Mode
rOBSIDIAN Obsidian Workspaces
Attached
Detach File
Event Timeline
Log In to Comment