pwg_session_gc(); break; case 'feeds': $query = ' DELETE FROM ' . USER_FEED_TABLE . ' WHERE last_check IS NULL ;'; pwg_query($query); break; case 'database': do_maintenance_all_tables(); break; case 'c13y': include_once PHPWG_ROOT_PATH . 'admin/include/check_integrity.class.php'; $c13y = new check_integrity(); $c13y->maintenance(); break; case 'search': $query = ' DELETE FROM ' . SEARCH_TABLE . ' ;'; pwg_query($query); break; case 'compiled-templates': $template->delete_compiled_templates(); FileCombiner::clear_combined_files(); $persistent_cache->purge(true); break; case 'derivatives':
$img = new Imagick(); $version = $img->getVersion(); if (preg_match('/ImageMagick \\d+\\.\\d+\\.\\d+-?\\d*/', $version['versionString'], $match)) { $library = $match[0]; } $template->assign('GRAPHICS_LIBRARY', $library); break; case 'ext_imagick': $library = 'External ImageMagick'; exec($conf['ext_imagick_dir'] . 'convert -version', $returnarray); if (preg_match('/Version: ImageMagick (\\d+\\.\\d+\\.\\d+-?\\d*)/', $returnarray[0], $match)) { $library .= ' ' . $match[1]; } $template->assign('GRAPHICS_LIBRARY', $library); break; case 'gd': $gd_info = gd_info(); $template->assign('GRAPHICS_LIBRARY', 'GD ' . @$gd_info['GD Version']); break; } // +-----------------------------------------------------------------------+ // | sending html code | // +-----------------------------------------------------------------------+ $template->assign_var_from_handle('ADMIN_CONTENT', 'intro'); // Check integrity $c13y = new check_integrity(); // add internal checks new c13y_internal(); // check and display $c13y->check(); $c13y->display();