Zeile 1138 | Zeile 1138 |
---|
else { $configstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
else { $configstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
| @fclose($configwritable);
|
}
|
}
|
@fclose($configwritable);
| |
// Check settings file is writable $settingswritable = @fopen(MYBB_ROOT.'inc/settings.php', 'w');
| // Check settings file is writable $settingswritable = @fopen(MYBB_ROOT.'inc/settings.php', 'w');
|
Zeile 1152 | Zeile 1152 |
---|
else { $settingsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
else { $settingsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable);
|
| @fclose($settingswritable);
|
}
|
}
|
@fclose($settingswritable);
| |
// Check cache directory is writable $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w');
| // Check cache directory is writable $cachewritable = @fopen(MYBB_ROOT.'cache/test.write', 'w');
|
Zeile 1162 | Zeile 1162 |
---|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_cachedir); $cachestatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_cachedir); $cachestatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
@fclose($cachewritable);
| |
} else
|
} else
|
{
| {
|
$cachestatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($cachewritable); @my_chmod(MYBB_ROOT.'cache', '0777');
| $cachestatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($cachewritable); @my_chmod(MYBB_ROOT.'cache', '0777');
|
Zeile 1180 | Zeile 1179 |
---|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_uploaddir); $uploadsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_uploaddir); $uploadsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
@fclose($uploadswritable);
| |
} else {
| } else {
|
Zeile 1198 | Zeile 1196 |
---|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_avatardir); $avatarsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
$errors[] = $lang->sprintf($lang->req_step_error_box, $lang->req_step_error_avatardir); $avatarsstatus = $lang->sprintf($lang->req_step_span_fail, $lang->not_writable); $showerror = 1;
|
@fclose($avatarswritable);
| |
} else {
| } else {
|
Zeile 1266 | Zeile 1263 |
---|
{ $error_list = error_list($errors); echo $lang->sprintf($lang->db_step_error_config, $error_list);
|
{ $error_list = error_list($errors); echo $lang->sprintf($lang->db_step_error_config, $error_list);
|
}
| }
|
else
|
else
|
{
| {
|
echo $lang->db_step_config_db;
|
echo $lang->db_step_config_db;
|
}
| }
|
$dbengines = '';
| $dbengines = '';
|
Zeile 1278 | Zeile 1275 |
---|
foreach($dboptions as $dbfile => $dbtype) { if($mybb->get_input('dbengine') == $dbfile)
|
foreach($dboptions as $dbfile => $dbtype) { if($mybb->get_input('dbengine') == $dbfile)
|
{
| {
|
$dbengines .= "<option value=\"{$dbfile}\" selected=\"selected\">{$dbtype['title']}</option>";
|
$dbengines .= "<option value=\"{$dbfile}\" selected=\"selected\">{$dbtype['title']}</option>";
|
}
| }
|
else { $dbengines .= "<option value=\"{$dbfile}\">{$dbtype['title']}</option>"; } }
|
else { $dbengines .= "<option value=\"{$dbfile}\">{$dbtype['title']}</option>"; } }
|
|
|
$db_info = array(); foreach($dboptions as $dbfile => $dbtype) {
| $db_info = array(); foreach($dboptions as $dbfile => $dbtype) {
|
Zeile 1298 | Zeile 1295 |
---|
if(empty($mybb->input['config'][$dbfile]['dbhost'])) { $mybb->input['config'][$dbfile]['dbhost'] = "localhost";
|
if(empty($mybb->input['config'][$dbfile]['dbhost'])) { $mybb->input['config'][$dbfile]['dbhost'] = "localhost";
|
}
| }
|
if(empty($mybb->input['config'][$dbfile]['tableprefix']))
|
if(empty($mybb->input['config'][$dbfile]['tableprefix']))
|
{
| {
|
$mybb->input['config'][$dbfile]['tableprefix'] = "mybb_"; } if(empty($mybb->input['config'][$dbfile]['dbname'])) { $mybb->input['config'][$dbfile]['dbname'] = '';
|
$mybb->input['config'][$dbfile]['tableprefix'] = "mybb_"; } if(empty($mybb->input['config'][$dbfile]['dbname'])) { $mybb->input['config'][$dbfile]['dbname'] = '';
|
}
| }
|
if(empty($mybb->input['config'][$dbfile]['dbuser'])) { $mybb->input['config'][$dbfile]['dbuser'] = '';
| if(empty($mybb->input['config'][$dbfile]['dbuser'])) { $mybb->input['config'][$dbfile]['dbuser'] = '';
|
Zeile 1314 | Zeile 1311 |
---|
if(empty($mybb->input['config'][$dbfile]['dbpass'])) { $mybb->input['config'][$dbfile]['dbpass'] = '';
|
if(empty($mybb->input['config'][$dbfile]['dbpass'])) { $mybb->input['config'][$dbfile]['dbpass'] = '';
|
}
| }
|
if(empty($mybb->input['config'][$dbfile]['encoding']))
|
if(empty($mybb->input['config'][$dbfile]['encoding']))
|
{
| {
|
$mybb->input['config'][$dbfile]['encoding'] = "utf8"; }
| $mybb->input['config'][$dbfile]['encoding'] = "utf8"; }
|
Zeile 1327 | Zeile 1324 |
---|
$first = true; } if($dbfile == $mybb->input['dbengine'])
|
$first = true; } if($dbfile == $mybb->input['dbengine'])
|
{
| {
|
$class = "_selected"; }
| $class = "_selected"; }
|
Zeile 1691 | Zeile 1688 |
---|
$val = preg_replace('#mybb_(\S+?)([\s\.,\(]|$)#', $config['tableprefix'].'\\1\\2', $val); $val = preg_replace('#;$#', $db->build_create_table_collation().";", $val); preg_match('#CREATE TABLE (\S+)(\s?|\(?)\(#i', $val, $match);
|
$val = preg_replace('#mybb_(\S+?)([\s\.,\(]|$)#', $config['tableprefix'].'\\1\\2', $val); $val = preg_replace('#;$#', $db->build_create_table_collation().";", $val); preg_match('#CREATE TABLE (\S+)(\s?|\(?)\(#i', $val, $match);
|
if($match[1])
| if(!empty($match[1]))
|
{ $db->drop_table($match[1], false, false); echo $lang->sprintf($lang->tablecreate_step_created, $match[1]); } $db->query($val);
|
{ $db->drop_table($match[1], false, false); echo $lang->sprintf($lang->tablecreate_step_created, $match[1]); } $db->query($val);
|
if($match[1])
| if(!empty($match[1]))
|
{ echo $lang->done . "<br />\n"; }
| { echo $lang->done . "<br />\n"; }
|
Zeile 1823 | Zeile 1820 |
---|
$exp = explode("=", $value['value']);
$properties['colors'][$exp[0]] = $exp[1];
|
$exp = explode("=", $value['value']);
$properties['colors'][$exp[0]] = $exp[1];
|
} }
| } }
|
if(is_array($tree['colors']['stylesheets'])) {
| if(is_array($tree['colors']['stylesheets'])) {
|
Zeile 2151 | Zeile 2148 |
---|
'month' => $db->escape_string($task['month'][0]['value']), 'enabled' => $db->escape_string($task['enabled'][0]['value']), 'logging' => $db->escape_string($task['logging'][0]['value'])
|
'month' => $db->escape_string($task['month'][0]['value']), 'enabled' => $db->escape_string($task['enabled'][0]['value']), 'logging' => $db->escape_string($task['logging'][0]['value'])
|
);
$new_task['nextrun'] = fetch_next_run($new_task);
| );
$new_task['nextrun'] = fetch_next_run($new_task);
|
$db->insert_query("tasks", $new_task); $taskcount++; }
| $db->insert_query("tasks", $new_task); $taskcount++; }
|
Zeile 2453 | Zeile 2450 |
---|
$cache->update_threadprefixes(); $cache->update_forumsdisplay(); $cache->update("plugins", array());
|
$cache->update_threadprefixes(); $cache->update_forumsdisplay(); $cache->update("plugins", array());
|
| $cache->update("mostonline", array( 'numusers' => 0, 'time' => 0, ));
|
$cache->update("internal_settings", array('encryption_key' => random_str(32))); $cache->update_default_theme(); $cache->update_reportreasons(true);
| $cache->update("internal_settings", array('encryption_key' => random_str(32))); $cache->update_default_theme(); $cache->update_reportreasons(true);
|
Zeile 2484 | Zeile 2485 |
---|
if(is_writable('./')) { $lock = @fopen('./lock', 'w');
|
if(is_writable('./')) { $lock = @fopen('./lock', 'w');
|
$written = @fwrite($lock, '1'); @fclose($lock); if($written)
| if($lock !== false)
|
{
|
{
|
echo $lang->done_step_locked;
| $written = @fwrite($lock, '1'); @fclose($lock);
if($written) { echo $lang->done_step_locked; }
|
} } if(!$written)
| } } if(!$written)
|