本文整理汇总了PHP中filesystem::unlink方法的典型用法代码示例。如果您正苦于以下问题:PHP filesystem::unlink方法的具体用法?PHP filesystem::unlink怎么用?PHP filesystem::unlink使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类filesystem
的用法示例。
在下文中一共展示了filesystem::unlink方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: file
$file = '../admin/data/hooks.txt';
$edit = file_get_contents($file);
$edit = preg_replace("~(-editprofile_abos_end[\r\n]+)~i", "\\1-editprofile_pic3_start\r\n-editprofile_pic3_end\r\n", $edit);
$edit = preg_replace("~(-misc_rules_end[\r\n]+)~i", "\\1-misc_board_rules_start\r\n-misc_board_rules_prepared\r\n-misc_board_rules_end\r\n", $edit);
$filesystem->chmod($file, 0666);
$filesystem->file_put_contents($file, $edit);
$file = '../admin/data/lang_email.php';
$edit = file($file);
$edit = array_map("trim", $edit);
$edit[] = "new_topic\tNotification about new topics for the board team";
$edit[] = "new_reply\tNotification about new replies for the board team";
$filesystem->chmod($file, 0666);
$filesystem->file_put_contents($file, implode("\n", $edit));
// classes
if (file_exists('../classes/function.cache.php')) {
$filesystem->unlink('../classes/function.cache.php');
}
// data
$c = new manageconfig();
$c->getdata('../data/config.inc.php');
$c->updateconfig('version', str, VISCACHA_VERSION);
$ft = array('avfiletypes', 'tpcfiletypes');
foreach ($ft as $type) {
$data = explode('|', $config[$type]);
$data2 = array();
foreach ($data as $d) {
if (substr($d, 0, 1) == '.') {
$d = substr($d, 1);
}
$data2[] = $d;
}
示例2: manageconfig
$c->updateconfig('version', str, VISCACHA_VERSION);
$c->delete('asia');
$c->savedata();
$c = new manageconfig();
$c->getdata('../admin/data/config.inc.php', 'admconfig');
$c->updateconfig('default_language', int, 0);
$c->updateconfig('checked_package_updates', int, 0);
$c->savedata();
$hooks = file_get_contents('../admin/data/hooks.txt');
if (strpos($hooks, "-update") === false) {
$hooks = str_replace("-uninstall", "-uninstall\r\n-update_init\r\n-update_finish", $hooks);
$filesystem->file_put_contents('../admin/data/hooks.txt', $hooks);
}
echo "- Configuration and Hooks updated.<br />";
// Old files
$filesystem->unlink('../classes/class.imageconverter.php');
echo "- Old files deleted.<br />";
// Stylesheets
$dir = dir('../designs/');
while (false !== ($entry = $dir->read())) {
$path = $dir->path . DIRECTORY_SEPARATOR . $entry . DIRECTORY_SEPARATOR;
if (is_dir($path) && is_numeric($entry) && $entry > 0) {
if (file_exists($path . 'standard.css')) {
$file = file_get_contents($path . 'standard.css');
$file .= "\r\n.tooltip {\r\n\tleft: -1000px;\r\n\ttop: -1000px;\r\n\tvisibility: hidden;\r\n\tposition: absolute;\r\n\tmax-width: 300px;\r\n\tmax-height: 300px;\r\n\toverflow: auto;\r\n\tborder: 1px solid #336699;\r\n\tbackground-color: #ffffff;\r\n\tfont-size: 8pt;\r\n}\r\n";
$file .= "\r\n.tooltip_header {\r\n\tdisplay: block;\r\n\tbackground-color: #E1E8EF;\r\n\tcolor: #24486C;\r\n\tpadding: 3px;\r\n\tborder-bottom: 1px solid #839FBC;\r\n}\r\n";
$file .= "\r\n.tooltip_body {\r\n\tpadding: 3px;\r\n}\r\n";
$filesystem->file_put_contents($path . 'standard.css', $file);
}
if ($path . 'ie.css') {
$file = file_get_contents($path . 'ie.css');
示例3: account
<div class="bfoot">Your account (<em><?php
echo $_REQUEST['name'];
?>
</em>) has been created!</div>
<?php
}
}
}
}
// Cache löschen
$cachedir = 'cache/';
if ($dh = @opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (strpos($file, '.inc.php') !== false) {
$fileTrim = str_replace('.inc.php', '', $file);
$filesystem->unlink($cachedir . $file);
}
}
closedir($dh);
}
if (count($error) == 0) {
$lf = './locked.txt';
$filesystem->file_put_contents($lf, '');
?>
<div class="bbody">
<p>The installation is completed. You can access the Admin Control Panel with your username and password.
Please go through the settings and change everything to fit your needs.
After doing this, you can switch your board "online". By default it is switched "offline".
If you have problems, visit <a href="http://docs.viscacha.org" target="_blank">Viscacha.org</a>.</p>
<p class="hl_false">
For your server security please completely remove the installation directory (<code><?php
示例4: file
$c->getdata('../data/config.inc.php');
$c->updateconfig('version', str, VISCACHA_VERSION);
$c->updateconfig('disableregistration', int, 0);
$c->updateconfig('hidedesign', int, 0);
$c->updateconfig('hidelanguage', int, 0);
$c->updateconfig('mlist_fields', str, 'fullname,pm,regdate,hp,icq,yahoo,aol,msn,jabber,skype');
$c->updateconfig('mlist_filtergroups', int, 0);
$c->updateconfig('mlist_showinactive', int, 0);
$c->updateconfig('register_notification', str, '');
$c->updateconfig('updatepostcounter', int, 1);
$c->savedata();
$d = file('../data/cron/crontab.inc.php');
$d = array_map('trim', $d);
$d[] = '0 */6 * * * recountpostcounts.php #Recount User Post Counter';
$filesystem->file_put_contents('../data/cron/crontab.inc.php', implode("\n", $d));
$filesystem->unlink('../images/1/bbcodes/wiki.gif');
$db->query("ALTER TABLE `{$db->pre}forums` ADD `count_posts` enum('0','1') NOT NULL default '1' AFTER `last_topic`", __LINE__, __FILE__);
$db->query("ALTER TABLE `{$db->pre}user` ADD `posts` mediumint(7) unsigned NOT NULL default '0' AFTER `regdate`", __LINE__, __FILE__);
// Update Postcounts
$result = $db->query("SELECT COUNT(*) AS new, u.posts, u.id FROM {$db->pre}replies AS r LEFT JOIN {$db->pre}user AS u ON u.id = r.name WHERE r.guest = '0' GROUP BY u.id", __LINE__, __FILE__);
$i = 0;
while ($row = $db->fetch_assoc($result)) {
if ($row['new'] != $row['posts']) {
$i++;
$db->query("UPDATE {$db->pre}user SET posts = '{$row['new']}' WHERE id = '{$row['id']}'", __LINE__, __FILE__);
}
}
// Refresh Cache
$dirs = array('../cache/', '../cache/modules/');
foreach ($dirs as $dir) {
if ($dh = @opendir($dir)) {
示例5: htmlentities
$css = null;
}
}
if (empty($css)) {
echo "<br />!!! <strong>Warning:</strong> Updating {$path} failed. Plase add the following CSS code to your main css file in designs/{$entry}:<br /><code>";
echo htmlentities($newCss);
echo "</code><br /><br />";
}
}
}
echo "- Stylesheets updated.<br />";
// Set incompatible packages inactive
setPackagesInactive();
echo "- Incompatible Packages set as 'inactive'.<br />";
// Refresh Cache
$dirs = array('cache/', 'cache/modules/');
foreach ($dirs as $dir) {
if ($dh = @opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if (strpos($file, '.php') !== false) {
$filesystem->unlink($dir . $file);
}
}
closedir($dh);
}
}
echo "- Cache cleared.<br />";
echo "<br /><strong>Finished Update!</strong>";
?>
</div>
<div class="bfoot center"><input type="submit" value="Continue" /></div>
示例6: manageconfig
$c->updateconfig('multiple_instant_notifications', int, 0);
$c->delete('always_send_js');
$c->delete('pdfcompress');
$c->delete('pdfdownload');
$c->delete('allow_http_auth');
$c->delete('botgfxtest_text_verification');
$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)) {
示例7: ENUM
$c->updateconfig('searchzahl', int, 10);
$c->updateconfig('smileypath', str, 'images/smileys');
$c->updateconfig('smileyurl', str, 'images/smileys');
$c->updateconfig('spider_logvisits', int, 1);
$c->updateconfig('spider_pendinglist', int, 0);
$c->updateconfig(array('module_1', 'relatednum'), int, 5);
$c->updateconfig(array('module_3', 'items'), int, 5);
$c->updateconfig(array('module_3', 'teaserlength'), int, 300);
$c->updateconfig(array('module_4', 'title'), str, 'Ticker');
$c->updateconfig(array('module_4', 'feed'), int, 1);
$c->updateconfig(array('module_7', 'text'), str, 'Willkommen in Ihrer <a href="http://www.viscacha.org" target="_blank">Viscacha</a>-Installation!');
$c->updateconfig(array('module_7', 'title'), str, 'Wichtige Nachricht!');
$c->updateconfig(array('module_9', 'topicnum'), int, 10);
$c->updateconfig(array('module_10', 'repliesnum'), int, 5);
$c->savedata();
$filesystem->unlink('../admin/form.php');
$filesystem->unlink('../templates/newsfeed.js');
rmdirr('../classes/magpie_rss/extlib/');
$filesystem->mkdir('../cache/modules/', 0777);
$filesystem->file_put_contents('../data/errlog_php.inc.php', '');
$db->query("ALTER TABLE `{$db->pre}abos` CHANGE `type` `type` ENUM( '', 'd', 'w', 'f' ) NOT NULL", __LINE__, __FILE__, false);
$result = $db->query("SELECT mid, tid FROM {$db->pre}fav", __LINE__, __FILE__, false);
while ($row = $db->fetch_assoc($result)) {
$db->query("INSERT INTO `{$db->pre}abos` (`mid`, `tid`, `type`) VALUES ('{$row['mid']}', '{$row['tid']}', 'f')", __LINE__, __FILE__, false);
}
$db->query("DROP TABLE `{$db->pre}fav`", __LINE__, __FILE__, false);
$db->query("ALTER TABLE `{$db->pre}bbcode` CHANGE `type` `type` ENUM('censor','word','replace') NOT NULL DEFAULT 'word'", __LINE__, __FILE__, false);
$db->query("ALTER TABLE `{$db->pre}bbcode` RENAME `{$db->pre}textparser`", __LINE__, __FILE__, false);
$db->query("DROP TABLE `{$db->pre}bbcode`", __LINE__, __FILE__, false);
$db->query("ALTER TABLE `{$db->pre}cat` ADD `forumzahl` tinyint(3) unsigned NOT NULL default '0' AFTER `optvalue`", __LINE__, __FILE__, false);
$db->query("ALTER TABLE `{$db->pre}cat` ADD `topiczahl` tinyint(3) unsigned NOT NULL default '0' AFTER `forumzahl`", __LINE__, __FILE__, false);
示例8: implode
$filesystem->file_put_contents('admin/data/hooks.txt', implode("\r\n", $hooks));
echo "- Hooks updated.<br />";
// Config
$c = new manageconfig();
$c->getdata('data/config.inc.php');
$c->updateconfig('version', str, VISCACHA_VERSION);
$c->updateconfig('spider_logvisits', int, 2);
$c->delete('always_send_js');
$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');
$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
示例9: trim
$content = $db->escape_string($content);
$doc['title'] = $db->escape_string($doc['title']);
$doc['author'] = $db->escape_string($doc['author']);
$db->query("\n\t\tINSERT INTO `v_documents_content` ( `did` , `lid` , `title` , `content` , `active` )\n\t\tVALUES (\n\t\t'{$doc['id']}', '{$config['langdir']}', '{$doc['title']}', '{$content}', '{$doc['active']}'\n\t\t)\n\t");
}
echo "- Database tables updated and documents converted.<br />";
// Update crontab file
$cron = file_get_contents('data/cron/crontab.inc.php');
if (strpos($cron, 'exportBoardStats.php') === false) {
$cron = trim($cron);
$cron .= "\r\n0\t5\t*\t*\t*\texportBoardStats.php\t#Daily: Export forum statistics to an ini-file (optional)";
$filesystem->file_put_contents('data/cron/crontab.inc.php', $cron);
echo "- Crontab updated.<br />";
}
// Old files
$filesystem->unlink('admin/html/menu.js');
$filesystem->unlink('admin/html/editor.js');
$filesystem->unlink('classes/function.jabber.php');
$filesystem->unlink('classes/class.vCard.inc.php');
$filesystem->unlink('classes/class.jabber.php');
$filesystem->unlink('classes/geshi/asp.php');
$filesystem->unlink('classes/geshi/c.php');
$filesystem->unlink('classes/geshi/dos.php');
$filesystem->unlink('classes/geshi/eiffel.php');
$filesystem->unlink('classes/geshi/fortran.php');
$filesystem->unlink('classes/geshi/oobas.php');
$filesystem->unlink('classes/geshi/pascal.php');
$filesystem->unlink('classes/geshi/qbasic.php');
$filesystem->unlink('classes/geshi/rails.php');
$filesystem->unlink('classes/geshi/reg.php');
$filesystem->unlink('classes/geshi/visualfoxpro.php');
示例10: manageconfig
$c->updateconfig(array('viscacha_addreply_last_replies', 'repliesnum'), int, 5);
$c->updateconfig(array('viscacha_news_boxes', 'cutat'), str, 'teaser');
$c->updateconfig(array('viscacha_news_boxes', 'items'), int, 5);
$c->updateconfig(array('viscacha_news_boxes', 'teaserlength'), int, 300);
$c->updateconfig(array('viscacha_recent_topics', 'topicnum'), int, 10);
$c->updateconfig(array('viscacha_related_topics', 'hide_empty'), int, 1);
$c->updateconfig(array('viscacha_related_topics', 'relatednum'), int, 5);
$c->savedata();
$c = new manageconfig();
$c->getdata('../admin/data/config.inc.php', 'admconfig');
$c->updateconfig('nav_positions', str, 'left=Left Navigation' . "\r\n" . 'bottom=Bottom Navigation');
$c->updateconfig('package_server', str, 'http://files.viscacha.org/');
$c->savedata();
echo "- Configuration updated.<br />";
// Old files
$filesystem->unlink('../admin/data/lang_email.php');
$filesystem->unlink('../admin/lib/language.inc.php');
$filesystem->unlink('../spellcheck.php');
$filesystem->unlink('../team.php');
$filesystem->unlink('../data/banned.php');
$filesystem->unlink('../classes/graphic/text2image.php');
$filesystem->unlink('../images/1/word.gif');
$filesystem->unlink('../classes/graphic/text2image.php');
echo "- Old files deleted.<br />";
// MySQL
$file = 'package/' . $package . '/db/db_changes.sql';
$sql = implode('', file($file));
$sql = str_replace('{:=DBPREFIX=:}', $db->pre, $sql);
$db->multi_query($sql);
echo "- Database tables updated.<br />";
$ini = array('custom' => array('language' => array('navigation' => 'Main Menu', 'n_forum' => 'Forums', 'n_portal' => 'Portal'), 'language_de' => array('navigation' => 'Hauptmenü', 'n_forum' => 'Forum', 'n_portal' => 'Portal')), 'modules' => array('language' => array('mymenu_newpm_1' => null, 'mymenu_newpm_2' => null, 'birthdaybox_module' => null, 'wwo_nav_detail' => 'Members: {@wwo->r}<br />Guests: {@wwo->g}<br />Spiders: {@wwo->b}', 'mymenu_newpm' => 'You have <strong>{%my->pms}</strong> new PM(s)!', 'last_private_message' => 'Last private message'), 'language_de' => array('mymenu_newpm_1' => null, 'mymenu_newpm_2' => null, 'birthdaybox_module' => null, 'wwo_nav_detail' => 'Mitglieder: {@wwo->r}<br />Gäste: {@wwo->g}<br />Suchmaschinen: {@wwo->b}', 'mymenu_newpm' => 'Sie haben <strong>{%my->pms}</strong> neue PN!', 'last_private_message' => 'Letzte private Nachricht')), 'settings' => array('language' => array('compatible_version' => VISCACHA_VERSION), 'language_de' => array('compatible_version' => VISCACHA_VERSION)), 'wwo' => array('language' => array('wwo_misc_report_post' => 'is reporting a post to the administration', 'wwo_team' => 'is viewing the <a href="members.php?action=team">team overview</a>'), 'language_de' => array('wwo_misc_report_post' => 'melden einen Beitrag', 'wwo_team' => 'Betrachtet die <a href="members.php?action=team">Teamübersicht</a>')), 'global' => array('language' => array('bbcodes_align' => null, 'bbcodes_align_center' => null, 'bbcodes_align_desc' => null, 'bbcodes_align_justify' => null, 'bbcodes_align_left' => null, 'bbcodes_align_right' => null, 'bbcodes_align_title' => null, 'bbcodes_bold' => null, 'bbcodes_bold_desc' => null, 'bbcodes_code' => null, 'bbcodes_code_desc' => null, 'bbcodes_color' => null, 'bbcodes_color_desc' => null, 'bbcodes_color_title' => null, 'bbcodes_edit' => null, 'bbcodes_edit_desc' => null, 'bbcodes_email' => null, 'bbcodes_email_desc' => null, 'bbcodes_example_text' => null, 'bbcodes_example_text2' => null, 'bbcodes_expand' => null, 'bbcodes_header' => null, 'bbcodes_header_desc' => null, 'bbcodes_header_h1' => null, 'bbcodes_header_h2' => null, 'bbcodes_header_h3' => null, 'bbcodes_header_title' => null, 'bbcodes_help' => null, 'bbcodes_help_example' => null, 'bbcodes_help_output' => null, 'bbcodes_help_syntax' => null, 'bbcodes_hide' => null, 'bbcodes_hide_desc' => null, 'bbcodes_hr' => null, 'bbcodes_hr_desc' => null, 'bbcodes_img' => null, 'bbcodes_img_desc' => null, 'bbcodes_italic' => null, 'bbcodes_italic_desc' => null, 'bbcodes_list' => null, 'bbcodes_list_desc' => null, 'bbcodes_list_ol' => null, 'bbcodes_note' => null, 'bbcodes_note_desc' => null, 'bbcodes_note_prompt1' => null, 'bbcodes_note_prompt2' => null, 'bbcodes_option' => null, 'bbcodes_ot' => null, 'bbcodes_ot_desc' => null, 'bbcodes_param' => null, 'bbcodes_quote' => null, 'bbcodes_quote_desc' => null, 'bbcodes_reader' => null, 'bbcodes_reader_desc' => null, 'bbcodes_size' => null, 'bbcodes_size_desc' => null, 'bbcodes_size_extended' => null, 'bbcodes_size_large' => null, 'bbcodes_size_small' => null, 'bbcodes_size_title' => null, 'bbcodes_sub' => null, 'bbcodes_sub_desc' => null, 'bbcodes_sup' => null, 'bbcodes_sup_desc' => null, 'bbcodes_table' => null, 'bbcodes_table_desc' => null, 'bbcodes_tt' => null, 'bbcodes_tt_desc' => null, 'bbcodes_underline' => null, 'bbcodes_underline_desc' => null, 'bbcodes_url' => null, 'bbcodes_url_desc' => null, 'bbcodes_url_prompt1' => null, 'bbcodes_url_promtp2' => null, 'bbcode_help_overview' => null, 'bbcode_help_smileys' => null, 'bbcode_help_smileys_desc' => null, 'bbhelp_title' => null, 'timezone_0' => null, 'timezone_n1' => null, 'timezone_n2' => null, 'timezone_n3' => null, 'timezone_n4' => null, 'timezone_n5' => null, 'timezone_n6' => null, 'timezone_n7' => null, 'timezone_n8' => null, 'timezone_n9' => null, 'timezone_n10' => null, 'timezone_n11' => null, 'timezone_n12' => null, 'timezone_n35' => null, 'timezone_p1' => null, 'timezone_p2' => null, 'timezone_p3' => null, 'timezone_p4' => null, 'timezone_p5' => null, 'timezone_p6' => null, 'timezone_p7' => null, 'timezone_p8' => null, 'timezone_p9' => null, 'timezone_p10' => null, 'timezone_p11' => null, 'timezone_p12' => null, 'timezone_p35' => null, 'timezone_p45' => null, 'timezone_p55' => null, 'timezone_p65' => null, 'timezone_p95' => null, 'timezone_p575' => null, 'showtopic_options_word' => null, 'banned_head' => 'Access denied: You are banned!', 'banned_left_never' => 'Never', 'banned_no_reason' => 'No reason specified.', 'bot_banned' => 'User-Agent or IP-Address is equal to one that is used by spam bots or e-mail collectors.', 'error_no_forums_found' => 'There are currently no forums to show. Please visit the <a href="admin.php">Admin Control Panel</a> to create forums.', 'post_report' => 'Report', 'post_reported' => 'Reported Post', 'report_message' => 'Message:', 'report_message_desc' => 'Note: You should only report a post if there is a violation of our guidelines.', 'report_post' => 'Report Post', 'report_post_locked' => 'This post has been reported already and will be checked as soon as possible.', 'report_post_success' => 'Thanks for your message. The moderators and administrators have been informed and we will check the post as soon as possible.', 'spellcheck_disabled' => 'Spellcheck is disabled.', 'banned_reason' => 'You have been banned for the following reason:', 'banned_until' => 'Date the ban will be lifted: ', 'admin_report' => 'Reported Post', 'admin_report_not_found' => 'This post has been checked and has been set as done.', 'admin_report_reset' => 'Set as done:', 'admin_report_reset_success' => 'The reporst has been set as done.', 'board_rules' => 'Forum Guidelines', 'no_board_rules_specified' => 'No forum guidelines specified.', 'why_register_desc' => 'In order to login you must be registered. Registering takes only a few seconds but gives you increased access. The board administrator may also grant additional permissions to registered users. Before you login please ensure you are familiar with our terms of use and related policies. Please ensure you heed the forum guidelines as you use the forum.', 'you_had_to_accept_agb' => 'You have to accept the forum guidelines!'), 'language_de' => array('bbcodes_align' => null, 'bbcodes_align_center' => null, 'bbcodes_align_desc' => null, 'bbcodes_align_justify' => null, 'bbcodes_align_left' => null, 'bbcodes_align_right' => null, 'bbcodes_align_title' => null, 'bbcodes_bold' => null, 'bbcodes_bold_desc' => null, 'bbcodes_code' => null, 'bbcodes_code_desc' => null, 'bbcodes_color' => null, 'bbcodes_color_desc' => null, 'bbcodes_color_title' => null, 'bbcodes_edit' => null, 'bbcodes_edit_desc' => null, 'bbcodes_email' => null, 'bbcodes_email_desc' => null, 'bbcodes_example_text' => null, 'bbcodes_example_text2' => null, 'bbcodes_expand' => null, 'bbcodes_header' => null, 'bbcodes_header_desc' => null, 'bbcodes_header_h1' => null, 'bbcodes_header_h2' => null, 'bbcodes_header_h3' => null, 'bbcodes_header_title' => null, 'bbcodes_help' => null, 'bbcodes_help_example' => null, 'bbcodes_help_output' => null, 'bbcodes_help_syntax' => null, 'bbcodes_hide' => null, 'bbcodes_hide_desc' => null, 'bbcodes_hr' => null, 'bbcodes_hr_desc' => null, 'bbcodes_img' => null, 'bbcodes_img_desc' => null, 'bbcodes_italic' => null, 'bbcodes_italic_desc' => null, 'bbcodes_list' => null, 'bbcodes_list_desc' => null, 'bbcodes_list_ol' => null, 'bbcodes_note' => null, 'bbcodes_note_desc' => null, 'bbcodes_note_prompt1' => null, 'bbcodes_note_prompt2' => null, 'bbcodes_option' => null, 'bbcodes_ot' => null, 'bbcodes_ot_desc' => null, 'bbcodes_param' => null, 'bbcodes_quote' => null, 'bbcodes_quote_desc' => null, 'bbcodes_reader' => null, 'bbcodes_reader_desc' => null, 'bbcodes_size' => null, 'bbcodes_size_desc' => null, 'bbcodes_size_extended' => null, 'bbcodes_size_large' => null, 'bbcodes_size_small' => null, 'bbcodes_size_title' => null, 'bbcodes_sub' => null, 'bbcodes_sub_desc' => null, 'bbcodes_sup' => null, 'bbcodes_sup_desc' => null, 'bbcodes_table' => null, 'bbcodes_table_desc' => null, 'bbcodes_tt' => null, 'bbcodes_tt_desc' => null, 'bbcodes_underline' => null, 'bbcodes_underline_desc' => null, 'bbcodes_url' => null, 'bbcodes_url_desc' => null, 'bbcodes_url_prompt1' => null, 'bbcodes_url_promtp2' => null, 'bbcode_help_overview' => null, 'bbcode_help_smileys' => null, 'bbcode_help_smileys_desc' => null, 'bbhelp_title' => null, 'timezone_0' => null, 'timezone_n1' => null, 'timezone_n2' => null, 'timezone_n3' => null, 'timezone_n4' => null, 'timezone_n5' => null, 'timezone_n6' => null, 'timezone_n7' => null, 'timezone_n8' => null, 'timezone_n9' => null, 'timezone_n10' => null, 'timezone_n11' => null, 'timezone_n12' => null, 'timezone_n35' => null, 'timezone_p1' => null, 'timezone_p2' => null, 'timezone_p3' => null, 'timezone_p4' => null, 'timezone_p5' => null, 'timezone_p6' => null, 'timezone_p7' => null, 'timezone_p8' => null, 'timezone_p9' => null, 'timezone_p10' => null, 'timezone_p11' => null, 'timezone_p12' => null, 'timezone_p35' => null, 'timezone_p45' => null, 'timezone_p55' => null, 'timezone_p65' => null, 'timezone_p95' => null, 'timezone_p575' => null, 'showtopic_options_word' => null, 'banned_head' => 'Zugriff verweigert: Sie wurden gesperrt!', 'banned_left_never' => 'Niemals', 'banned_no_reason' => 'Keine Begründung angegeben.', 'bot_banned' => 'User-Agent oder IP-Adresse entspricht einem bekannten Spam-Bot oder E-Mail-Sammler.', 'error_no_forums_found' => 'Es wurde keine anzuzeigenden Foren gefunden. Sie können in der <a href="admin.php">Administration</a> neue Foren erstellen.', 'post_report' => 'Melden', 'post_reported' => 'Gemeldeter Beitrag', 'report_message' => 'Nachricht:', 'report_message_desc' => 'Hinweis: Ein Beitrag sollte nur dann gemeldet werden, wenn ein Verstoß gegen unsere Regeln vorliegt.', 'report_post' => 'Beitrag melden', 'report_post_locked' => 'Dieser Beitrag wurde bereits gemeldet und wird bald geprüft.', 'report_post_success' => 'Danke für Ihre Nachricht. Die Moderatoren und Administratoren wurden verständigt und es wird sich in Kürze jemand darum kümmern.', 'spellcheck_disabled' => 'Rechtschreibprüfung wurde deaktiviert.', 'banned_reason' => 'Sie wurden aus folgendem Grund gesperrt:', 'banned_until' => 'Ende der Sperre: ', 'admin_report' => 'Gemeldeter Beitrag', 'admin_report_not_found' => 'Dieser Beitrag wurde bereits überprüft und als erledigt markiert.', 'admin_report_reset' => 'Als erledigt markieren:', 'admin_report_reset_success' => 'Die Meldung wurde als erledigt markiert.')));
示例11: varchar
$db->query("ALTER TABLE `{$db->pre}settings_groups` CHANGE `name` `name` varchar(120) NOT NULL default ''", __LINE__, __FILE__);
$db->query("ALTER TABLE `{$db->pre}user` CHANGE `timezone` `timezone` varchar(5) default NULL default ''", __LINE__, __FILE__);
echo "- Database tables updated (MySQL 5 compatibility).<br />";
// templates
$dir = "../templates/";
$tplids = array();
$d = dir($dir);
while (false !== ($entry = $d->read())) {
if (is_dir($dir . $entry) && preg_match('/^\\d{1,}$/', $entry) && $entry != '.' && $entry != '..') {
$tplids[] = $entry;
}
}
$d->close();
foreach ($tplids as $id) {
$tpldir = $dir . $id;
$filesystem->unlink($tpldir . '/register.html');
$filesystem->chmod($tpldir . '/header.html', 0666);
$header = file_get_contents($tpldir . '/header.html');
$header = str_replace("<!--[if IE]>", "<!--[if lt IE 7]>", $header);
$filesystem->file_put_contents($tpldir . '/header.html', $header);
}
echo "- Templates updated.<br />";
// language files
$ini = array('custom' => array('language' => array('credits' => 'Credits', 'imprint' => 'Imprint'), 'language_de' => array('credits' => 'Credits', 'imprint' => 'Impressum')), 'global' => array('language' => array('ats_choose' => 'No Status / Standard', 'ats_choose_desc' => 'This forum allows you to mark topics as good or bad. You should consider the following when rating threads:<br /> <em>Good:</em>Threads rated "good" will be given priority by the system. Threads should be rated as good if they successfully resolve problems that are frequently encountered on the board. Any content that you feel is beneficial should be marked "good"<br /> <em>Bad:</em>These topics will be given less priority by the system and can be automatically ignored by board members. Threads that are off topic, sensless or otherwise useless should get this mark.<br /> <em>article:</em>Threads that are marked as "article" will be listed in the article overview and can be easily access this way.<br /> <em>News:</em> News Threads are posted to the internal news system and will be offered to the readers via the board itself and alternativly on other websites via rss-feed.', 'ats_choose_standard_a' => ' (Standard: Article)', 'ats_choose_standard_n' => ' (Standard: News)', 'bbcodes_tt' => 'Typewriter text', 'log_wrong_data' => 'You entered invalid login data or your account has not yet been activated.<br />Did you <a href="log.php?action=pwremind">forget your password</a>? If you have not received a validation e-mail click <a href="register.php?action=resend">here</a>.', 'post_quote_direct' => 'Quote post directly', 'post_quote_multi' => 'Save post for quoting (Multiquote)', 'register_resend_desc' => 'Please enter your registered member name below to search for any pending validation requests. If any are found, the email will be resent to the email address you registered with.', 'register_resend_no_user' => 'Sorry, but not member with this name or a pending registration was found. Maybe the administrator has to activate your account.', 'register_resend_success' => 'An e-mail, required for account activation, has been sent to you again.', 'register_resend_title' => 'Resend validation email', 'textarea_check_length' => 'Check length', 'textarea_decrease_size' => 'Decrease Size', 'textarea_increase_size' => 'Increase Size', 'th_status' => 'Status'), 'language_de' => array('ats_choose' => 'Kein Status / Standard', 'ats_choose_desc' => 'In dieser Forensoftware ist es möglich Themen als Gut, Schlecht, Artikel oder Nachricht zu markieren. Das bedeuten die einzelnen Typen:<br /> <em>Gut:</em> Themen können als "Gut" markiert werden. Sie werden dann als solche markiert und bevorzugt. Man sollte Themen als Gut markieren wenn Sie häufig nachgefragt werden und in diesem Thema die Lösung zu diesem Problem steht. Weiterhin sollten gute Diskussionen als solche markiert werden.<br /> <em>Schlecht:</em> Das Gegenteil zu "Gut". Themen werden nicht bevorzugt und können von den Mitgliedern automatisch ausgeblendet werden. Themen die zu sehr vom Thema abschweifen oder nicht wirklich Sinn haben, sollten mit diesem Status belegt werden.<br /> <em>Artikel:</em> Themen die als Artikel bezeichnet werden, werde in der Artikelübersicht gelistet und können so komfortabel duchgesehen werden.<br /> <em>Nachricht:</em> Mit "Nachricht" markierte Themen werden in einem eigenen Newssystem zum durchlesen angeboten und können auf der eigenen Homepage eingebunden werden.', 'ats_choose_standard_a' => ' (Standard: Artikel)', 'ats_choose_standard_n' => ' (Standard: News)', 'bbcodes_tt' => 'Schreibmaschinenschrift', 'log_wrong_data' => 'Sie haben falsche Benutzerdaten angegeben oder Sie sind noch nicht freigeschaltet.<br />Benutzen Sie die <a href="log.php?action=pwremind">Passwort vergessen</a>-Funktion wenn Sie Ihr Passwort nicht mehr wissen. Falls Sie keine Freischalt-E-Mail bekommen haben, klicken Sie <a href="register.php?action=resend">hier</a>.', 'post_quote_direct' => 'Beitrag direkt zitieren', 'post_quote_multi' => 'Beitrag zum Zitieren merken (Multiquote)', 'register_resend_desc' => 'Solltest Du Dich bereits registriert - aber den Bestätigungslink der Registrierungs-E-Mail noch nicht angeklickt haben, konnte Deine Registrierung nicht vollständig abgeschlossen werden. Du hast hier die Möglichkeit, Dir diese E-Mail erneut zuschicken zu lassen, ohne den Registrierungsvorgang wiederholen zu müssen. Dazu trägst Du lediglich den bereits von Dir beantragten Benutzernamen ein - und die E-Mail wird Dir erneut an Deine bereits bei der Registrierung angegebene E-Mail-Adresse übersandt.', 'register_resend_no_user' => 'Es wurde leider kein Benutzer mit diesem Namen oder einer benötigten Freischaltung gefunden. Eventuell muss der Administrator Sie noch freischalten.', 'register_resend_success' => 'Die Aktivierungs-E-Mail wurde Ihnen erneut zugeschickt.', 'register_resend_title' => 'Registrierungs-E-Mail erneut verschicken', 'textarea_check_length' => 'Überprüfe Textlänge', 'textarea_decrease_size' => 'Verkleinern', 'textarea_increase_size' => 'Vergrößern', 'th_status' => 'Status')), 'javascript' => array('language' => array('js_quote_multi' => 'Save post for quoting (Multiquote)', 'js_quote_multi_2' => 'Removed saved post (Multiquote)', 'js_ta_left' => ' characters left.', 'js_ta_max' => 'The maximum allowed length is: ', 'js_ta_too_much' => ' characters too much.', 'js_ta_used' => 'You have '), 'language_de' => array('js_quote_multi' => 'Beitrag zum Zitieren merken (Multiquote)', 'js_quote_multi_2' => 'Gemerktes Zitat entfernen (Multiquote)', 'js_ta_left' => ' Zeichen übrig.', 'js_ta_max' => 'Die maximal erlaubte Länge ist: ', 'js_ta_too_much' => ' Zeichen zu viel benutzt.', 'js_ta_used' => 'Sie haben ')), 'wwo' => array('language' => array('wwo_log_logout' => 'is logging out'), 'language_de' => array('wwo_log_logout' => 'Meldet sich ab')));
$c = new manageconfig();
$codes = array();
$keys = array('language', 'language_de');
foreach ($keys as $entry) {
if (preg_match('~language_(\\w{2})_?(\\w{0,2})~i', $entry, $code)) {
if (!isset($codes[$code[1]])) {
$codes[$code[1]] = array();