From 68d22133882d5af341ce756b5cb6cebd156084bd Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 14 Feb 2008 16:41:20 +0000 Subject: Changes to site structure git-svn-id: https://code.elgg.org/elgg/trunk@32 36083f99-b078-4883-b0ff-0f9b5a30f544 --- action.php | 21 +++++++++++++++++++++ htaccess_dist | 11 +++++++++++ index.php | 24 ++++++++++++++++++++++++ views/default/pageshell.php | 12 ++++++++++-- 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 action.php create mode 100644 htaccess_dist create mode 100644 index.php diff --git a/action.php b/action.php new file mode 100644 index 000000000..9c8710137 --- /dev/null +++ b/action.php @@ -0,0 +1,21 @@ + \ 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 @@ + \ 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']; + } + ?> - <?php echo $vars['title']; ?> + <?php echo $title; ?> -

+

$vars['messages'])); -- cgit v1.2.3