From f9639a64ac1f23e8a49cbce438e8eeae6b5ccb65 Mon Sep 17 00:00:00 2001 From: Cake Date: Thu, 16 Dec 2010 16:16:34 +0900 Subject: [PATCH] =?utf8?q?Guest=E3=83=A2=E3=83=BC=E3=83=89=E3=81=A7?= =?utf8?q?=E3=82=A2=E3=82=AF=E3=82=BB=E3=82=B9=E3=81=A7=E3=81=8D=E3=81=AA?= =?utf8?q?=E3=81=84=E5=A0=B4=E5=90=88=E3=81=AE=E5=87=A6=E7=90=86=E3=83=95?= =?utf8?q?=E3=83=AD=E3=83=BC=E3=82=92=E7=99=BB=E9=8C=B2=E7=94=BB=E9=9D=A2?= =?utf8?q?=E9=81=B7=E7=A7=BB=E3=81=AB=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- app/controllers/app_controller.php | 10 ++++++++-- app/locale/jpn/LC_MESSAGES/default.po | 3 +++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/controllers/app_controller.php b/app/controllers/app_controller.php index e5d6b42..09ef0a0 100644 --- a/app/controllers/app_controller.php +++ b/app/controllers/app_controller.php @@ -362,8 +362,14 @@ class AppController extends Controller { if (Configure::read('Mode.Demo')) { if ($_SESSION['Auth']['User']['username'] == 'guest') { - $this->Session->setFlash(__('Unavailable Now.', true)); - $this->redirect(array('action'=>'index')); + $this->Session->setFlash(__('Unavailable for GUEST.', true)); + + if ($this->site_configs['User.newUserRegist']['value']) { + $this->redirect(array('controller' => 'users', 'action'=>'add')); + // 新規登録停止の場合 + } else { + $this->redirect(array('action'=>'index')); + } } } } diff --git a/app/locale/jpn/LC_MESSAGES/default.po b/app/locale/jpn/LC_MESSAGES/default.po index 6e9f1d3..d990da0 100644 --- a/app/locale/jpn/LC_MESSAGES/default.po +++ b/app/locale/jpn/LC_MESSAGES/default.po @@ -240,6 +240,9 @@ msgstr "キャラクターを削除しました。" msgid "Unavailable Now." msgstr "現在使用できません。" +msgid "Unavailable for GUEST." +msgstr "ゲストアカウントでは使用できません。" + #: /controllers/groups_controller.php:21;41 msgid "Invalid Group." msgstr "不正なデータです。" -- 2.11.0