aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-14 16:41:20 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-02-14 16:41:20 +0000
commit68d22133882d5af341ce756b5cb6cebd156084bd (patch)
tree8fc6ffad122adc750a8ec7f18b6f97d8c0d28266
parent269c58d56242a9c4bf4cac067efdbc6774424a32 (diff)
downloadelgg-68d22133882d5af341ce756b5cb6cebd156084bd.tar.gz
elgg-68d22133882d5af341ce756b5cb6cebd156084bd.tar.bz2
Changes to site structure
git-svn-id: https://code.elgg.org/elgg/trunk@32 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--action.php21
-rw-r--r--htaccess_dist11
-rw-r--r--index.php24
-rw-r--r--views/default/pageshell.php12
4 files changed, 66 insertions, 2 deletions
diff --git a/action.php b/action.php
new file mode 100644
index 000000000..9c8710137
--- /dev/null
+++ b/action.php
@@ -0,0 +1,21 @@
+<?php
+
+ /**
+ * Elgg action handler
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ // Load searunner framework
+ require_once(dirname(__FILE__) . "/engine/start.php");
+
+ // Get actions
+ $action = get_input("action");
+ action($action);
+
+?> \ No newline at end of file
diff --git a/htaccess_dist b/htaccess_dist
new file mode 100644
index 000000000..5eb6555bd
--- /dev/null
+++ b/htaccess_dist
@@ -0,0 +1,11 @@
+# Elgg htaccess directives
+# Copyright Curverider Ltd 2008
+# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+# Link http://elgg.org/
+
+php_flag magic_quotes_gpc off
+
+RewriteEngine on
+
+RewriteRule ^action\/([A-Za-z\_\-\/]+)$ action.php?action=$1
+RewriteRule ^css\/css\.css$ css/css.php \ No newline at end of file
diff --git a/index.php b/index.php
new file mode 100644
index 000000000..2260b1e95
--- /dev/null
+++ b/index.php
@@ -0,0 +1,24 @@
+<?php
+
+ /**
+ * Elgg index page for web-based applications
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
+ * @author Curverider Ltd
+ * @copyright Curverider Ltd 2008
+ * @link http://elgg.org/
+ */
+
+ /**
+ * Start the Elgg engine
+ */
+ require_once(dirname(__FILE__) . "/engine/start.php");
+
+ /**
+ * Load the front page
+ */
+ echo page_draw(null, elgg_view("homepage"));
+
+?> \ No newline at end of file
diff --git a/views/default/pageshell.php b/views/default/pageshell.php
index e8631d83d..648fa1ff6 100644
--- a/views/default/pageshell.php
+++ b/views/default/pageshell.php
@@ -11,19 +11,27 @@
* @copyright Curverider Ltd 2008
* @link http://elgg.org/
*
+ * @uses $vars['config'] The site configuration settings, imported
* @uses $vars['title'] The page title
* @uses $vars['body'] The main content of the page
* @uses $vars['messages'] A 2d array of various message registers, passed from system_messages()
*/
+ // Set title
+ if (empty($vars['title'])) {
+ $title = $vars['config']->sitename;
+ } else {
+ $title = $vars['config']->sitename . ": " . $vars['title'];
+ }
+
?>
<html>
<head>
- <title><?php echo $vars['title']; ?></title>
+ <title><?php echo $title; ?></title>
</head>
<body>
- <h1><?php echo $vars['title']; ?></h1>
+ <h1><?php echo $title; ?></h1>
<?php
echo elgg_view('messages/list', array('object' => $vars['messages']));