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


PHP filesystem::rmdirr方法代码示例

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


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

示例1: manageconfig

$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");
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:5.php

示例2: manageconfig

$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}";
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:5.php

示例3: dir

$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");
开发者ID:BackupTheBerlios,项目名称:viscacha-svn,代码行数:31,代码来源:5.php


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