From 198297e0d465de8d479db93cf17d08b5b5e1016e Mon Sep 17 00:00:00 2001
From: Bharat Mediratta
Date: Mon, 9 Mar 2009 00:03:04 +0000
Subject: Instead of putting after_install in the url, put it in the session.
This helps us to make sure that we only see the welcome message once.
---
installer/installer.php | 1 +
installer/views/success.html.php | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
(limited to 'installer')
diff --git a/installer/installer.php b/installer/installer.php
index ff727340..2a8b6219 100644
--- a/installer/installer.php
+++ b/installer/installer.php
@@ -106,6 +106,7 @@ class installer {
$data = "session_id|s:32:\"$session_id\"";
$data .= ";user_agent|s:{$user_agent_len}:\"$user_agent\"";
$data .= ";user|i:2";
+ $data .= ";after_install|i:1";
$data .= ";last_activity|i:$now";
$data = base64_encode($data);
$sql = "INSERT INTO {sessions} VALUES('$session_id', $now, '$data')";
diff --git a/installer/views/success.html.php b/installer/views/success.html.php
index d7dbc4d1..4bca2fb1 100644
--- a/installer/views/success.html.php
+++ b/installer/views/success.html.php
@@ -19,5 +19,5 @@
-
+
--
cgit v1.2.3