diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 18:25:08 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-05-26 18:25:08 +0000 |
commit | b027f962af16d074398d1351a90d863aaf5469f3 (patch) | |
tree | cb547da86008491ce9a25cafae56800fd4944229 /mod/sitepages/actions/addfrontsimple.php | |
parent | fd878435ffeb7478aa745f76dfcea608301a04ba (diff) | |
download | elgg-b027f962af16d074398d1351a90d863aaf5469f3.tar.gz elgg-b027f962af16d074398d1351a90d863aaf5469f3.tar.bz2 |
Updating Sitepages plugin settings for new administration layout.
git-svn-id: http://code.elgg.org/elgg/trunk@6242 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/sitepages/actions/addfrontsimple.php')
-rw-r--r-- | mod/sitepages/actions/addfrontsimple.php | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/mod/sitepages/actions/addfrontsimple.php b/mod/sitepages/actions/addfrontsimple.php deleted file mode 100644 index ee26723e8..000000000 --- a/mod/sitepages/actions/addfrontsimple.php +++ /dev/null @@ -1,45 +0,0 @@ -<?php
-/**
- * Site pages front page save/edit
- *
- * @package SitePages
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd <info@elgg.com>
- * @copyright Curverider Ltd 2008-2010
- * @link http://elgg.com/
- *
- */
-
-admin_gatekeeper();
-
-$logged_in_content = get_input('logged_in_content', '', FALSE);
-$logged_out_content = get_input('logged_out_content', '', FALSE);
-
-$welcometitle = get_input('welcometitle', '', FALSE);
-$welcomemessage = get_input('welcomemessage', '', FALSE);
-$sidebartitle = get_input('sidebartitle', '', FALSE);
-$sidebarmessage = get_input('sidebarmessage', '', FALSE);
-
-$loggedin_user_guid = get_loggedin_userid();
-
-// Cache to the session for sticky forms
-// @todo does nothing yet.
-$_SESSION['sitepages:content'] = $content;
-$_SESSION['sitepages:css'] = $css;
-
-if (!$sitepagesimple = sitepages_get_sitepage_object('frontsimple')) {
- $sitepagesimple = sitepages_create_sitepage_object('frontsimple');
-}
-
-$sitepagesimple->welcometitle = $welcometitle;
-$sitepagesimple->welcomemessage = $welcomemessage;
-$sitepagesimple->sidebartitle = $sidebartitle;
-$sitepagesimple->sidebarmessage = $sidebarmessage;
-
-if ($sitepagesimple->save()) {
- system_message(elgg_echo("sitepagessimple:posted"));
-} else {
- register_error(elgg_echo("sitepages:error"));
-}
-
-forward($_SERVER['HTTP_REFERER']);
|