Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: index.php 5591 2011-09-14 08:05:39Z Tomm $
| * $Id: index.php 5816 2012-04-23 15:42:18Z Tomm $
|
*/
if(function_exists("unicode_decode"))
| */
if(function_exists("unicode_decode"))
|
Zeile 1725 | Zeile 1725 |
---|
$contactemail = '';
$protocol = "http://";
|
$contactemail = '';
$protocol = "http://";
|
if(!empty($_SERVER['HTTPS']) || substr($bburl, 0, 5) == "https")
| if((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != "off") || substr($bburl, 0, 5) == "https")
|
{ $protocol = "https://"; }
| { $protocol = "https://"; }
|
Zeile 2159 | Zeile 2159 |
---|
{ $db->create_fulltext_index('posts', 'message'); }
|
{ $db->create_fulltext_index('posts', 'message'); }
|
// Register a shutdown function which actually tests if this functionality is working add_shutdown('test_shutdown_function');
| |
echo $lang->done_step_cachebuilding; require_once MYBB_ROOT.'inc/class_datacache.php';
| echo $lang->done_step_cachebuilding; require_once MYBB_ROOT.'inc/class_datacache.php';
|
Zeile 2207 | Zeile 2204 |
---|
echo $lang->done . '</p>';
echo $lang->done_step_success;
|
echo $lang->done . '</p>';
echo $lang->done_step_success;
|
|
|
$written = 0; if(is_writable('./'))
|
$written = 0; if(is_writable('./'))
|
{
| {
|
$lock = @fopen('./lock', 'w'); $written = @fwrite($lock, '1'); @fclose($lock);
| $lock = @fopen('./lock', 'w'); $written = @fwrite($lock, '1'); @fclose($lock);
|
Zeile 2218 | Zeile 2215 |
---|
{ echo $lang->done_step_locked; }
|
{ echo $lang->done_step_locked; }
|
}
| }
|
if(!$written) { echo $lang->done_step_dirdelete;
|
if(!$written) { echo $lang->done_step_dirdelete;
|
}
| }
|
echo $lang->done_subscribe_mailing; $output->print_footer(''); }
| echo $lang->done_subscribe_mailing; $output->print_footer(''); }
|
Zeile 2237 | Zeile 2234 |
---|
break; case "pgsql": $db = new DB_PgSQL;
|
break; case "pgsql": $db = new DB_PgSQL;
|
break;
| break;
|
case "mysqli": $db = new DB_MySQLi; break;
| case "mysqli": $db = new DB_MySQLi; break;
|
Zeile 2267 | Zeile 2264 |
---|
}
function write_settings()
|
}
function write_settings()
|
{ global $db;
| { global $db;
|
$query = $db->simple_select('settings', '*', '', array('order_by' => 'title')); while($setting = $db->fetch_array($query)) { $setting['value'] = str_replace("\"", "\\\"", $setting['value']); $settings .= "\$settings['{$setting['name']}'] = \"{$setting['value']}\";\n";
|
$query = $db->simple_select('settings', '*', '', array('order_by' => 'title')); while($setting = $db->fetch_array($query)) { $setting['value'] = str_replace("\"", "\\\"", $setting['value']); $settings .= "\$settings['{$setting['name']}'] = \"{$setting['value']}\";\n";
|
}
| }
|
if(!empty($settings)) { $settings = "<?php\n/*********************************\ \n DO NOT EDIT THIS FILE, PLEASE USE\n THE SETTINGS EDITOR\n\*********************************/\n\n{$settings}\n?>";
| if(!empty($settings)) { $settings = "<?php\n/*********************************\ \n DO NOT EDIT THIS FILE, PLEASE USE\n THE SETTINGS EDITOR\n\*********************************/\n\n{$settings}\n?>";
|
Zeile 2283 | Zeile 2280 |
---|
fwrite($file, $settings); fclose($file); }
|
fwrite($file, $settings); fclose($file); }
|
}
function test_shutdown_function() { global $db; $db->update_query("settings", array('value' => 1), "name='useshutdownfunc'"); write_settings();
| |
} ?>
| } ?>
|