[Wikis-SVN] SF.net SVN: wikis:[301] tshome/php/trunk
Brought to you by:
hydria
|
From: <hy...@us...> - 2011-06-04 09:50:06
|
Revision: 301
http://wikis.svn.sourceforge.net/wikis/?rev=301&view=rev
Author: hydria
Date: 2011-06-04 09:50:00 +0000 (Sat, 04 Jun 2011)
Log Message:
-----------
Fixes
Modified Paths:
--------------
tshome/php/trunk/LocalSettings.php
tshome/php/trunk/includes/DefaultSettings.php
tshome/php/trunk/includes/loader.php
tshome/php/trunk/index.php
Modified: tshome/php/trunk/LocalSettings.php
===================================================================
--- tshome/php/trunk/LocalSettings.php 2011-06-04 09:45:22 UTC (rev 300)
+++ tshome/php/trunk/LocalSettings.php 2011-06-04 09:50:00 UTC (rev 301)
@@ -8,8 +8,5 @@
*/
-// Initialise installation directory
-$IP = dirname( __FILE__ );
-
// Define what message to appear when the site is accessed
$hyMessage = "Hello world!";
Modified: tshome/php/trunk/includes/DefaultSettings.php
===================================================================
--- tshome/php/trunk/includes/DefaultSettings.php 2011-06-04 09:45:22 UTC (rev 300)
+++ tshome/php/trunk/includes/DefaultSettings.php 2011-06-04 09:50:00 UTC (rev 301)
@@ -10,7 +10,7 @@
*/
// Hytools version number
-$hyVersion = "1.2";
+$hyVersion = "1.1";
// Message to appear when visiting the site
$hyMessage = "Hello world!";
Modified: tshome/php/trunk/includes/loader.php
===================================================================
--- tshome/php/trunk/includes/loader.php 2011-06-04 09:45:22 UTC (rev 300)
+++ tshome/php/trunk/includes/loader.php 2011-06-04 09:50:00 UTC (rev 301)
@@ -6,7 +6,7 @@
*/
// Load DefaultSettings.php first to get necessary config
-require_once("./DefaultSettings.php");
+require_once("$IP/includes/DefaultSettings.php");
// Load LocalSettings.php to get overwritten config
-require_once("../LocalSettings.php");
+require_once("$IP/LocalSettings.php");
Modified: tshome/php/trunk/index.php
===================================================================
--- tshome/php/trunk/index.php 2011-06-04 09:45:22 UTC (rev 300)
+++ tshome/php/trunk/index.php 2011-06-04 09:50:00 UTC (rev 301)
@@ -10,9 +10,14 @@
*/
+// Initialise installation directory
+$IP = dirname( __FILE__ );
+
// Initialise the loader file
-require_once("./includes/loader.php");
+require_once("$IP/includes/loader.php");
echo $hyMessage;
+echo "This site is powered by Hytools version " . $hyVersion;
+
?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|