当前位置: 首页>>代码示例>>PHP>>正文


PHP IPSSetUp::getSavedDataAsArray方法代码示例

本文整理汇总了PHP中IPSSetUp::getSavedDataAsArray方法的典型用法代码示例。如果您正苦于以下问题:PHP IPSSetUp::getSavedDataAsArray方法的具体用法?PHP IPSSetUp::getSavedDataAsArray怎么用?PHP IPSSetUp::getSavedDataAsArray使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在IPSSetUp的用法示例。


在下文中一共展示了IPSSetUp::getSavedDataAsArray方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: writeConfiguration

 /**
  * Writes out conf_global
  *
  * @access	public
  * @return	bool	File written successfully
  */
 public static function writeConfiguration()
 {
     //-----------------------------------------
     // Safe mode?
     //-----------------------------------------
     $safe_mode = 0;
     if (@get_cfg_var('safe_mode')) {
         $safe_mode = @get_cfg_var('safe_mode');
     }
     //-----------------------------------------
     // Set info array
     //-----------------------------------------
     $INFO = array('sql_driver' => IPSSetUp::getSavedData('sql_driver'), 'sql_host' => IPSSetUp::getSavedData('db_host'), 'sql_database' => IPSSetUp::getSavedData('db_name'), 'sql_user' => IPSSetUp::getSavedData('db_user'), 'sql_pass' => str_replace('\'', '\\\'', IPSSetUp::getSavedData('db_pass')), 'sql_tbl_prefix' => IPSSetUp::getSavedData('db_pre'), 'sql_debug' => 0, 'sql_charset' => '', 'board_start' => time(), 'installed' => 1, 'php_ext' => 'php', 'safe_mode' => $safe_mode, 'board_url' => IPSSetUp::getSavedData('install_url'), 'banned_group' => '5', 'admin_group' => '4', 'guest_group' => '2', 'member_group' => '3', 'auth_group' => '1', 'use_friendly_urls' => 1, '_jsDebug' => 0);
     //---------------------------------------------
     // Any "extra" configs required for this driver?
     //---------------------------------------------
     foreach (IPSSetUp::getSavedDataAsArray() as $k => $v) {
         if (preg_match("#^__sql__#", $k)) {
             $k = str_replace("__sql__", "", $k);
             $INFO[$k] = $v;
         }
     }
     //---------------------------------------------
     // Write to disk
     //---------------------------------------------
     $core_conf = "<" . "?php\n";
     foreach ($INFO as $k => $v) {
         $core_conf .= '$INFO[' . "'" . $k . "'" . ']' . "\t\t\t=\t'" . $v . "';\n";
     }
     $core_conf .= "\ndefine('IN_DEV', 0);";
     /* Remote archive stuff */
     $core_conf .= "\n/* Remote archive DB - complete these details if you\\'re using a remote DB for the post archive.\n   If content has already been archived in the local DB, this will need transferring and will not be done automatically. */\n";
     foreach (array('archive_remote_sql_host', 'archive_remote_sql_database', 'archive_remote_sql_user', 'archive_remote_sql_pass', 'archive_remote_sql_charset') as $k) {
         $core_conf .= '$INFO[' . "'" . $k . "'" . ']' . "\t\t\t=\t'';\n";
     }
     $core_conf .= "\n" . '?' . '>';
     /* Write Configuration Files */
     $output[] = 'Writing configuration files...<br />';
     $ret = IPSSetUp::writeFile(IPSSetUp::getSavedData('install_dir') . '/conf_global.php', $core_conf);
     /* Now freeze data */
     IPSSetUp::freezeSavedData();
     return $ret;
 }
开发者ID:mover5,项目名称:imobackup,代码行数:49,代码来源:install.php

示例2: writeConfiguration

 /**
  * Writes out conf_global
  *
  * @access	public
  * @return	bool	File written successfully
  */
 public static function writeConfiguration()
 {
     //-----------------------------------------
     // Safe mode?
     //-----------------------------------------
     $safe_mode = 0;
     if (@get_cfg_var('safe_mode')) {
         $safe_mode = @get_cfg_var('safe_mode');
     }
     //-----------------------------------------
     // Set info array
     //-----------------------------------------
     $INFO = array('sql_driver' => IPSSetUp::getSavedData('sql_driver'), 'sql_host' => IPSSetUp::getSavedData('db_host'), 'sql_database' => IPSSetUp::getSavedData('db_name'), 'sql_user' => IPSSetUp::getSavedData('db_user'), 'sql_pass' => IPSSetUp::getSavedData('db_pass'), 'sql_tbl_prefix' => IPSSetUp::getSavedData('db_pre'), 'sql_debug' => 1, 'sql_charset' => '', 'board_start' => time(), 'installed' => 1, 'php_ext' => 'php', 'safe_mode' => $safe_mode, 'board_url' => IPSSetUp::getSavedData('install_url'), 'banned_group' => '5', 'admin_group' => '4', 'guest_group' => '2', 'member_group' => '3', 'auth_group' => '1', 'use_friendly_urls' => 1, '_jsDebug' => 0);
     //---------------------------------------------
     // Any "extra" configs required for this driver?
     //---------------------------------------------
     foreach (IPSSetUp::getSavedDataAsArray() as $k => $v) {
         if (preg_match("#^__sql__#", $k)) {
             $k = str_replace("__sql__", "", $k);
             $INFO[$k] = $v;
         }
     }
     //---------------------------------------------
     // Write to disk
     //---------------------------------------------
     $core_conf = "<" . "?php\n";
     foreach ($INFO as $k => $v) {
         $core_conf .= '$INFO[' . "'" . $k . "'" . ']' . "\t\t\t=\t'" . $v . "';\n";
     }
     $core_conf .= "\ndefine('IN_DEV', 0);";
     $core_conf .= "\n" . '?' . '>';
     /* Write Configuration Files */
     $output[] = 'Writing configuration files...<br />';
     $ret = IPSSetUp::writeFile(IPSSetUp::getSavedData('install_dir') . '/conf_global.php', $core_conf);
     /* Now freeze data */
     IPSSetUp::freezeSavedData();
     return $ret;
 }
开发者ID:dalandis,项目名称:Visualization-of-Cell-Phone-Locations,代码行数:44,代码来源:install.php

示例3: doExecute

 /**
  * Execute selected method
  * SQL > APPLICATIONS -> MODULES -> SETTINGS  > TEMPLATES > TASKS > LANGUAGES > PUBLIC LANGUAGES > BBCODE > ACP HELP OTHER [ Email Templates ] > Build Caches
  *
  * @access	public
  * @param	object		Registry object
  * @return	@e void
  */
 public function doExecute(ipsRegistry $registry)
 {
     //-----------------------------------------
     // Any "extra" configs required for this driver?
     //-----------------------------------------
     foreach (IPSSetUp::getSavedDataAsArray() as $k => $v) {
         if (preg_match("#^__sql__#", $k)) {
             $k = str_replace("__sql__", "", $k);
             IPSSetUp::setSavedData($k, $v);
         }
     }
     /* Switch */
     switch ($this->request['do']) {
         case 'sql':
             $this->_stepCount = 1;
             $this->install_sql();
             break;
         case 'sql_steps':
             $this->_stepCount = 2;
             $this->install_sql_steps();
             break;
         case 'applications':
             $this->_stepCount = 3;
             $this->install_applications();
             break;
         case 'modules':
             $this->_stepCount = 4;
             $this->install_modules();
             break;
         case 'settings':
             $this->_stepCount = 5;
             $this->install_settings();
             break;
         case 'templates':
             $this->_stepCount = 6;
             $this->install_templates();
             break;
         case 'tasks':
             $this->_stepCount = 7;
             $this->install_tasks();
             break;
         case 'languages':
             $this->_stepCount = 8;
             $this->install_languages();
             break;
         case 'clientlanguages':
             $this->_stepCount = 9;
             $this->install_client_languages();
             break;
         case 'bbcode':
             $this->_stepCount = 10;
             $this->install_bbcode();
             break;
         case 'acphelp':
             $this->_stepCount = 11;
             $this->install_acphelp();
             break;
         case 'other':
             $this->_stepCount = 12;
             $this->install_other();
             break;
         case 'caches':
             $this->_stepCount = 13;
             $this->install_caches();
             break;
         default:
             /* Output */
             $this->registry->output->setTitle("Установка");
             $this->registry->output->setNextAction('install&do=sql');
             $this->registry->output->setHideButton(TRUE);
             $this->registry->output->addContent($this->registry->output->template()->page_install());
             $this->registry->output->sendOutput();
             break;
     }
 }
开发者ID:Advanture,项目名称:Online-RolePlay,代码行数:83,代码来源:install.php


注:本文中的IPSSetUp::getSavedDataAsArray方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。