示例#1
0
$c = new manageconfig();
$c->getdata('admin/data/config.inc.php', 'admconfig');
$c->updateconfig('checked_package_updates', int, 0);
$c->savedata();
echo "- Configuration updated.<br />";
// Old files
$filesystem->unlink('templates/lang2js.php');
$filesystem->unlink('classes/feedcreator/mbox.inc.php');
$feeds = file_get_contents('data/feedcreator.inc.php');
$feeds = preg_replace('~[\\r\\n]+MBOX\\|mbox\\.inc\\.php\\|MBox\\|\\d\\|\\d~i', '', $feeds);
$filesystem->file_put_contents('data/feedcreator.inc.php', $feeds);
$dir = dir('language');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
    if (is_dir($path) && is_id($entry)) {
        $filesystem->rmdirr("{$path}/modules/");
    }
}
$filesystem->file_put_contents('data/errlog_php.inc.php', '');
$filesystem->file_put_contents("data/errlog_{$db->system}.inc.php", '');
echo "- Old files deleted.<br />";
// Languages
$ini = array('admin/bbcodes' => array('language_de' => array('admin_bbc_replacement_desc' => 'Dies ist der HTML-Code für die BB-Code-Ersetzung. Stellen Sie sicher, dass sie \'{param}\' (ohne Anführungszeichen) verwenden um den Text, der zwischen dem öffnenden und dem schließenden BB-Code-Tag steht, einzufügen. Wenn Sie dem BB-Code einen Parameter mitgeben (muss vorher aktiviert werden), so fügen Sie auch \'{option}\' (ohne Anführungszeichen) an der gewünschten Stelle ein. Zur Absicherung können Sie den Platzhaltern einen Typ zuweisen. Dafür hängen Sie hinter "param" bzw. "option" ein Doppelpunkt und danach ergänzen Sie den Typ. Folgende Typen sind möglich: hexcolor, int, float, hex, simpletext, url, email, alnum, alpha. Beispiel: {param:hexcolor}'), 'language' => array('admin_bbc_replacement_desc' => 'This is the HTML code for the BB code replacement. Make sure that you include \'{param}\' (without the quotes) to insert the text between the opening and closing BB code tags, and \'{option}\' for the parameter within the BB code tag. You can only use {option} if \'Use Option\' is set to yes. For a better security you can specify a type for each placeholder. To specify the placeholder simply add a colon and the type. The following types can be used: hexcolor, int, float, hex, simpletext, url, email, alnum, alpha. Example: {param:hexcolor}')), 'admin/cms' => array('language_de' => array('admin_cms_nav_package' => 'Paket:', 'admin_wysiwyg_target' => 'Ziel-Fenster:'), 'language' => array('admin_cms_nav_package' => 'Package:', 'admin_wysiwyg_target' => 'Target Window:')), 'admin/frames' => array('language_de' => array('admin_component_manager' => NULL, 'admin_sqlerror_log' => 'Protokoll der Systemfehler'), 'language' => array('admin_component_manager' => NULL, 'admin_sqlerror_log' => 'System Error Log')), 'admin/language' => array('language_de' => array('admin_lang_component' => NULL, 'admin_lang_components' => NULL, 'admin_lang_component_without_langfile' => NULL, 'admin_lang_edit_langfile_package_id' => NULL, 'admin_lang_files' => NULL, 'admin_lang_packages_phrases' => 'Pakete'), 'language' => array('admin_lang_component' => NULL, 'admin_lang_components' => NULL, 'admin_lang_component_without_langfile' => NULL, 'admin_lang_edit_langfile_package_id' => NULL, 'admin_lang_files' => NULL, 'admin_lang_packages_phrases' => 'Packages')), 'admin/misc' => array('language_de' => array('admin_misc_dictionary' => NULL, 'admin_misc_save' => NULL), 'language' => array('admin_misc_dictionary' => NULL, 'admin_misc_save' => NULL)), 'admin/packages' => array('language_de' => array('admin_packages_component_is_active' => NULL, 'admin_packages_component_is_active_but_package_is_not_active' => NULL, 'admin_packages_component_is_not_active' => NULL, 'admin_packages_component_manager' => NULL, 'admin_packages_com_activate' => NULL, 'admin_packages_com_component_is_required' => NULL, 'admin_packages_com_deactivate' => NULL, 'admin_packages_com_delete_do_you_really_want_to_delete_this_component' => NULL, 'admin_packages_com_delete_head_delete_component' => NULL, 'admin_packages_com_th_component' => NULL, 'admin_packages_com_th_package' => NULL, 'admin_packages_err_no_package_with_this_id' => NULL, 'admin_packages_err_section_not_found' => NULL, 'admin_packages_err_specified_component_is_required' => NULL, 'admin_packages_err_specified_component_not_found' => NULL, 'admin_packages_err_this_package_is_required_you_cannot_change_the_status' => NULL, 'admin_packages_info_component' => NULL, 'admin_packages_info_for_this_package_is_no_component_specified' => NULL, 'admin_packages_info_required' => NULL, 'admin_packages_ok_component_successfully_removed' => NULL, 'admin_packages_plugins_add_file_for_code_text' => NULL, 'admin_packages_plugins_delete_head_delete_package' => NULL, 'admin_packages_plugins_edit_add_edit_phrases' => NULL, 'admin_packages_plugins_edit_file_for_code_text' => NULL, 'admin_packages_plugins_template_file_for_code_text' => NULL), 'language' => array('admin_packages_component_is_active' => NULL, 'admin_packages_component_is_active_but_package_is_not_active' => NULL, 'admin_packages_component_is_not_active' => NULL, 'admin_packages_component_manager' => NULL, 'admin_packages_com_activate' => NULL, 'admin_packages_com_component_is_required' => NULL, 'admin_packages_com_deactivate' => NULL, 'admin_packages_com_delete_do_you_really_want_to_delete_this_component' => NULL, 'admin_packages_com_delete_head_delete_component' => NULL, 'admin_packages_com_th_component' => NULL, 'admin_packages_com_th_package' => NULL, 'admin_packages_err_no_package_with_this_id' => NULL, 'admin_packages_err_section_not_found' => NULL, 'admin_packages_err_specified_component_is_required' => NULL, 'admin_packages_err_specified_component_not_found' => NULL, 'admin_packages_err_this_package_is_required_you_cannot_change_the_status' => NULL, 'admin_packages_info_component' => NULL, 'admin_packages_info_for_this_package_is_no_component_specified' => NULL, 'admin_packages_ok_component_successfully_removed' => NULL, 'admin_packages_plugins_add_file_for_code_text' => NULL, 'admin_packages_plugins_delete_head_delete_package' => NULL, 'admin_packages_plugins_edit_add_edit_phrases' => NULL, 'admin_packages_plugins_edit_file_for_code_text' => NULL, 'admin_packages_plugins_template_file_for_code_text' => NULL)), 'admin/settings' => array('language_de' => array('admin_ignor_words_less_chackters' => NULL, 'admin_ignor_words_less_chackters_info' => NULL, 'admin_mode_suggestions' => NULL, 'admin_save_php_errors' => 'Speichere Fehler (PHP und MySQL) in Protokolldatei:', 'admin_select_setting_group' => NULL, 'admin_select_slq_erroe_log' => NULL, 'admin_show_text_captcha' => NULL, 'admin_show_text_captcha_info' => NULL, 'admin_suggestions_fast_mode' => NULL, 'admin_suggestions_normal_mode' => NULL, 'admin_suggestions_slow_mode' => NULL, 'admin_logvisits_count_logging' => 'Nur Anzahl der Besuche protokollieren', 'admin_logvisits_full_logging' => 'Zeit und Anzahl der Besuche protokollieren', 'admin_logvisits_no_logging' => 'Keine Protokollierung', 'admin_select_sys_error_log' => 'Protokoll der Systemfehler'), 'language' => array('admin_ignor_words_less_chackters' => NULL, 'admin_ignor_words_less_chackters_info' => NULL, 'admin_mode_suggestions' => NULL, 'admin_select_setting_group' => NULL, 'admin_select_slq_erroe_log' => NULL, 'admin_show_text_captcha' => NULL, 'admin_show_text_captcha_info' => NULL, 'admin_suggestions_fast_mode' => NULL, 'admin_suggestions_normal_mode' => NULL, 'admin_suggestions_slow_mode' => NULL, 'admin_logvisits_count_logging' => 'Log only number of visits', 'admin_logvisits_full_logging' => 'Log time and number of visits', 'admin_logvisits_no_logging' => 'No logging', 'admin_select_sys_error_log' => 'System Error Log')), 'admin/slog' => array('language_de' => array('admin_slog_sql_error_logfile' => 'Protokoll der Systemfehler', 'admin_slog_backtrace' => 'Laufzeitinformationen', 'admin_slog_error_num' => 'Nr.'), 'language' => array('admin_slog_sql_error_logfile' => 'System Error Logfile', 'admin_slog_backtrace' => 'Runtime information', 'admin_slog_error_num' => 'No.')), 'global' => array('language_de' => array('box_newtopic' => NULL, 'editprofile_signature_longdesc' => NULL, 'editprofile_standard' => NULL, 'forum_options_search_reset' => NULL, 'im_msgtitle' => NULL, 'index_headline' => NULL, 'no_board_given' => NULL, 'pm_index_dir' => NULL, 'post_sent' => NULL, 'print_title_page' => NULL, 'section_closed' => NULL, 'section_not_available' => NULL, 'thumb_error' => 'Konnte Miniaturansicht nicht erstellen', 'x_article' => NULL, 'benchmark_bbc_smileys' => 'BB-Codes + Smileys:', 'benchmark_failed' => 'fehlerhaft', 'benchmark_gzip' => 'GZIP:', 'benchmark_load_time' => 'Generierungszeit:', 'benchmark_queries' => 'DB-Abfragen:', 'benchmark_queries_time' => 'Zeit für DB-Abfragen:', 'benchmark_sec' => 'Sek.', 'benchmark_smileys' => 'Nur Smileys:', 'benchmark_templates' => 'Templates:', 'benchmark_templates_time' => 'Zeit für Templates:', 'img_captcha_session_expired_error' => 'Sitzung beendet<br>Aktualisiere die Seite', 'page_gzip_off' => 'Aus', 'page_gzip_on' => 'An<br />Komprimierungsrate: ', 'post_info_postcount' => 'Beiträge: '), 'language' => array('box_newtopic' => NULL, 'editprofile_signature_longdesc' => NULL, 'editprofile_standard' => NULL, 'forum_options_search_reset' => NULL, 'im_msgtitle' => NULL, 'index_headline' => NULL, 'no_board_given' => NULL, 'pm_index_dir' => NULL, 'post_sent' => NULL, 'print_title_page' => NULL, 'register_veriword' => 'Please enter the chars in the image. This should help to avoid spam.', 'section_closed' => NULL, 'section_not_available' => NULL, 'x_article' => NULL, 'benchmark_bbc_smileys' => 'BB-Codes + Smileys:', 'benchmark_failed' => 'failed', 'benchmark_gzip' => 'GZIP:', 'benchmark_load_time' => 'Load Time:', 'benchmark_queries' => 'Queries:', 'benchmark_queries_time' => 'Time for Queries:', 'benchmark_sec' => 'sec.', 'benchmark_smileys' => 'Only Smileys:', 'benchmark_templates' => 'Templates:', 'benchmark_templates_time' => 'Templates Time:', 'img_captcha_session_expired_error' => 'Session expired<br>Refresh the Page', 'page_gzip_off' => 'Off', 'page_gzip_on' => 'On<br />Compression Rate: ', 'post_info_postcount' => 'Posts: ')), 'settings' => array('language_de' => array('compatible_version' => '0.8 RC7'), 'language' => array('compatible_version' => '0.8 RC7')));
updateLanguageFiles($ini);
echo "- Language files updated.<br />";
// Stylesheets
$dir = dir('designs');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
    if (is_dir($path) && is_id($entry)) {
        $css = file_get_contents("{$path}/standard.css");
示例#2
0
$c->delete('botgfxtest_posts_width');
$c->delete('botgfxtest_posts_height');
$c->savedata();
$c = new manageconfig();
$c->getdata('admin/data/config.inc.php', 'admconfig');
$c->updateconfig('checked_package_updates', int, 0);
$c->savedata();
echo "- Configuration updated.<br />";
// Old files
$filesystem->unlink('templates/lang2js.php');
$filesystem->unlink('classes/feedcreator/mbox.inc.php');
$filesystem->unlink('admin/html/images/captcha.jpg');
$filesystem->unlink('admin/html/images/captcha2.jpg');
$filesystem->unlink("pdf.php");
$filesystem->unlink('templates/editor/wysiwyg-color.js');
$filesystem->rmdirr("classes/fpdf/");
$filesystem->rmdirr("temp/pdfimages");
$filesystem->rmdirr("templates/editor/popups");
$feeds = file_get_contents('data/feedcreator.inc.php');
$feeds = preg_replace('~[\\r\\n]+MBOX\\|mbox\\.inc\\.php\\|MBox\\|\\d\\|\\d~i', '', $feeds);
$filesystem->file_put_contents('data/feedcreator.inc.php', $feeds);
$dir = dir('images');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
    if (is_dir($path) && is_id($entry)) {
        $filesystem->unlink("{$path}/pdf.gif");
    }
}
$dir = dir('language');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
示例#3
0
$filesystem->unlink('templates/editor/insert_char.htm');
$filesystem->unlink('templates/editor/insert_img.htm');
$filesystem->unlink('templates/editor/insert_link.htm');
$filesystem->unlink('templates/editor/insert_table.htm');
$filesystem->unlink('templates/editor/palette.htm');
$filesystem->unlink('templates/editor/paste_text.htm');
$filesystem->unlink('templates/editor/paste_word.htm');
$filesystem->unlink('templates/editor/replace.htm');
$filesystem->unlink('templates/editor/richtext.js');
$filesystem->unlink('templates/editor/rte.css');
$filesystem->unlink('templates/controlWindow.js');
$filesystem->unlink('templates/editor.js');
$filesystem->unlink('templates/menu.js');
$filesystem->unlink('templates/spellChecker.js');
$filesystem->unlink('templates/wordWindow.js');
$filesystem->rmdirr('templates/editor/lang/');
$filesystem->rmdirr('classes/spellchecker/');
$filesystem->rmdirr('docs/');
$dir = dir('images');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
    if (is_dir($path) && is_id($entry)) {
        $filesystem->rmdirr("{$path}/bbcodes/");
        $filesystem->unlink("{$path}/copy.gif");
    }
}
$dir = dir('language');
while (false !== ($entry = $dir->read())) {
    $path = "{$dir->path}/{$entry}";
    if (is_dir($path) && is_id($entry)) {
        $filesystem->unlink("{$path}/texts/notice.php");