コード例 #1
0
ファイル: tools.ctrl.php プロジェクト: Ariflaw/b2evolution
 switch ($action) {
     case 'del_itemprecache':
         // Clear pre-rendered item cache (DB)
         dbm_delete_itemprecache();
         break;
     case 'del_commentprecache':
         // Clear pre-rendered comment cache (DB)
         dbm_delete_commentprecache();
         break;
     case 'del_messageprecache':
         // Clear pre-rendered message cache (DB)
         dbm_delete_messageprecache();
         break;
     case 'del_pagecache':
         // Delete the page cache /blogs/cache
         dbm_delete_pagecache();
         break;
     case 'del_filecache':
         // delete the thumbnail cahces .evocache
         dbm_delete_filecache();
         break;
     case 'repair_cache':
         // Repair cache
         dbm_repair_cache();
         break;
     case 'optimize_tables':
         // Optimize MyISAM & InnoDB tables
     // Optimize MyISAM & InnoDB tables
     case 'check_tables':
         // Check ALL database tables
     // Check ALL database tables
コード例 #2
0
 param('notification_logo', 'string', '');
 param_check_url('notification_logo', 'http-https');
 $Settings->set('notification_logo', get_param('notification_logo'));
 // Large site logo url
 param('notification_logo_large', 'string', '');
 param_check_url('notification_logo_large', 'http-https');
 $Settings->set('notification_logo_large', get_param('notification_logo_large'));
 // Site footer text
 $Settings->set('site_footer_text', param('site_footer_text', 'string', ''));
 // Enable site skins
 $old_site_skins_enabled = $Settings->get('site_skins_enabled');
 $Settings->set('site_skins_enabled', param('site_skins_enabled', 'integer', 0));
 if ($old_site_skins_enabled != $Settings->get('site_skins_enabled')) {
     // If this setting has been changed we should clear all page caches:
     load_funcs('tools/model/_dbmaintenance.funcs.php');
     dbm_delete_pagecache(false);
 }
 // Terms & Conditions:
 $Settings->set('site_terms', param('site_terms', 'integer', ''));
 // Default blog
 $Settings->set('default_blog_ID', param('default_blog_ID', 'integer', 0));
 // Blog for info pages
 $Settings->set('info_blog_ID', param('info_blog_ID', 'integer', 0));
 // Blog for login|registration
 $Settings->set('login_blog_ID', param('login_blog_ID', 'integer', 0));
 // Blog for messaging
 $Settings->set('msg_blog_ID', param('msg_blog_ID', 'integer', 0));
 // Reload page timeout
 $reloadpage_timeout = param_duration('reloadpage_timeout');
 if ($reloadpage_timeout > 99999) {
     param_error('reloadpage_timeout', sprintf(T_('Reload-page timeout must be between %d and %d seconds.'), 0, 99999));