diff --git a/installer/installer.php b/installer/installer.php index 7fed25c7..4480e35e 100644 --- a/installer/installer.php +++ b/installer/installer.php @@ -47,6 +47,11 @@ class installer { } static function unpack_var() { + if (!file_exists(VARPATH)) { + mkdir(VARPATH); + chmod(VARPATH, 0777); + } + include(DOCROOT . "installer/init_var.php"); return true; } diff --git a/modules/gallery/controllers/after_install.php b/modules/gallery/controllers/welcome_message.php similarity index 91% rename from modules/gallery/controllers/after_install.php rename to modules/gallery/controllers/welcome_message.php index b640092f..a4b690e3 100644 --- a/modules/gallery/controllers/after_install.php +++ b/modules/gallery/controllers/welcome_message.php @@ -17,13 +17,13 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ -class After_Install_Controller extends Controller { +class Welcome_Message_Controller extends Controller { public function index() { if (!user::active()->admin) { url::redirect(item::root()->url()); } - $v = new View("after_install.html"); + $v = new View("welcome_message.html"); $v->user = user::active(); print $v; } diff --git a/modules/gallery/helpers/gallery_theme.php b/modules/gallery/helpers/gallery_theme.php index 69c5a091..8c97f124 100644 --- a/modules/gallery/helpers/gallery_theme.php +++ b/modules/gallery/helpers/gallery_theme.php @@ -70,9 +70,9 @@ class gallery_theme_Core { return L10n_Client_Controller::l10n_form(); } - if ($session->get("after_install")) { + if (true || $session->get("after_install")) { $session->delete("after_install"); - return new View("after_install_loader.html"); + return new View("welcome_message_loader.html"); } } diff --git a/modules/gallery/views/after_install.html.php b/modules/gallery/views/after_install.html.php deleted file mode 100644 index 897946a2..00000000 --- a/modules/gallery/views/after_install.html.php +++ /dev/null @@ -1,29 +0,0 @@ - -
- = t("Congratulations on choosing Gallery to host your photos. We're confident that you're going to have a great experience.") ?> -
- -- = t("You're logged in to the %user_name account. The very first thing you should do is to change your password to something that you'll remember.", array("user_name" => $user->name)) ?> -
- - - -- = t("Want to learn more? The Gallery website has news and information about the Gallery project and community.", array("url" => "http://gallery.menalto.com")) ?> -
- -
- = t("Having problems? There's lots of information in our documentation site or you can ask for help in the forums!", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?>
-
diff --git a/modules/gallery/views/after_install_loader.html.php b/modules/gallery/views/after_install_loader.html.php
deleted file mode 100644
index c2e3e1d9..00000000
--- a/modules/gallery/views/after_install_loader.html.php
+++ /dev/null
@@ -1,7 +0,0 @@
-
-for_html_attr() ?>"
- href="= url::site("after_install") ?>"/>
-
diff --git a/modules/gallery/views/welcome_message.html.php b/modules/gallery/views/welcome_message.html.php
new file mode 100644
index 00000000..5515c3dc
--- /dev/null
+++ b/modules/gallery/views/welcome_message.html.php
@@ -0,0 +1,36 @@
+
+
+
+ = t("First things first. You're logged in to the %user_name account. You should change your password to something that you'll remember.", array("user_name" => $user->name)) ?>
+
+ = t("Want to learn more? The Gallery website has news and information about the Gallery project and community.", array("url" => "http://gallery.menalto.com")) ?>
+
+ = t("Having problems? There's lots of information in our documentation site or you can ask for help in the forums!", array("codex_url" => "http://codex.gallery2.org/Main_Page", "forum_url" => "http://gallery.menalto.com/forum")) ?>
+
+ = t("Welcome to Gallery 3!") ?>
+
+
+
+ = t("Congratulations on choosing Gallery to host your photos. You're going to have a great experience!") ?>
+
+
+
+