var $isAdmin = false;
var $isMobile = false;
- var $set_settings = array();
+ var $site_configs = array();
var $components = array(
'AuthPlus',
$this->set('admin', $this->isAdmin);
// サイト設定
- $this->set_settings = CorePlus::set_db_settings();
- $this->set('site_configs', $this->set_settings);
+ $this->site_configs = CorePlus::set_db_settings();
+ $this->set('site_configs', $this->site_configs);
if ($this->AuthPlus) {
// ACL関連
function check_character_picture_max($character_pictures_num)
{
- if (!$max_num = intval($this->set_settings['Character.maxPictures']['value'])) {
+ if (!$max_num = intval($this->site_configs['Character.maxPictures']['value'])) {
return true;
}
}
if (empty($this->data)) {
- $site_config = $this->set_settings;
+ $site_config = $this->site_configs;
foreach($site_config as $k => $v) {
$site_config[$k] = $this->_restore_html_site_config($v);
}
function index() {
// SingleSystem
- if ($this->set_settings['Site.singleSystem']['value']) {
+ if ($this->site_configs['Site.singleSystem']['value']) {
$this->Session->setFlash(__('Invalid URL.', true));
$this->redirect(array('controller'=>'users', 'action'=>'index'));
}
function admin_delete($id = null) {
// SingleSystem
- if ($this->set_settings['Site.singleSystem']['value']) {
+ if ($this->site_configs['Site.singleSystem']['value']) {
$this->Session->setFlash(__('Invalid URL.', true));
$this->redirect(array('controller'=>'site_configs', 'action'=>'admin_edit'));
}
function add() {
// 新規登録停止
- if (!$this->set_settings['Site.newUserRegist']['value']) {
+ if (!$this->site_configs['Site.newUserRegist']['value']) {
$this->Session->setFlash(__('NO AVAILABLE NOW.', true));
$this->redirect(array('action'=>'index'));
}