Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: index.php 4057 2008-08-02 03:19:04Z Tikitiki $
| * $Id: index.php 4111 2008-08-13 06:14:12Z Tikitiki $
|
*/
@error_reporting(E_ALL & ~E_NOTICE);
| */
@error_reporting(E_ALL & ~E_NOTICE);
|
Zeile 375 | Zeile 375 |
---|
{ $cachestatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($cachewritable);
|
{ $cachestatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($cachewritable);
|
@my_chmod(MYBB_ROOT.'cache', 0777); @my_chmod(MYBB_ROOT.'cache/test.write', 0777);
| @my_chmod(MYBB_ROOT.'cache', '0777'); @my_chmod(MYBB_ROOT.'cache/test.write', '0777');
|
@unlink(MYBB_ROOT.'cache/test.write'); }
| @unlink(MYBB_ROOT.'cache/test.write'); }
|
Zeile 393 | Zeile 393 |
---|
{ $uploadsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($uploadswritable);
|
{ $uploadsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($uploadswritable);
|
@my_chmod(MYBB_ROOT.'uploads', 0777); @my_chmod(MYBB_ROOT.'uploads/test.write', 0777);
| @my_chmod(MYBB_ROOT.'uploads', '0777'); @my_chmod(MYBB_ROOT.'uploads/test.write', '0777');
|
@unlink(MYBB_ROOT.'uploads/test.write'); }
| @unlink(MYBB_ROOT.'uploads/test.write'); }
|
Zeile 411 | Zeile 411 |
---|
{ $avatarsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($avatarswritable);
|
{ $avatarsstatus = $lang->sprintf($lang->req_step_span_pass, $lang->writable); @fclose($avatarswritable);
|
@my_chmod(MYBB_ROOT.'uploads/avatars', 0777); @my_chmod(MYBB_ROOT.'uploads/avatars/test.write', 0777);
| @my_chmod(MYBB_ROOT.'uploads/avatars', '0777'); @my_chmod(MYBB_ROOT.'uploads/avatars/test.write', '0777');
|
@unlink(MYBB_ROOT.'uploads/avatars/test.write'); }
| @unlink(MYBB_ROOT.'uploads/avatars/test.write'); }
|
Zeile 616 | Zeile 616 |
---|
// Attempt to connect to the db require_once MYBB_ROOT."inc/db_{$mybb->input['dbengine']}.php";
|
// Attempt to connect to the db require_once MYBB_ROOT."inc/db_{$mybb->input['dbengine']}.php";
|
$db = new databaseEngine;
| switch($mybb->input['dbengine']) { case "sqlite3": $db = new DB_SQLite3; break; case "sqlite2": $db = new DB_SQLite2; break; case "pgsql": $db = new DB_PgSQL; break; case "mysqli": $db = new DB_MySQLi; break; default: $db = new DB_MySQL; }
|
$db->error_reporting = 0;
$connect_array = array(
| $db->error_reporting = 0;
$connect_array = array(
|
Zeile 850 | Zeile 866 |
---|
$contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme.xml'); if(file_exists(MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php"))
|
$contents = @file_get_contents(INSTALL_ROOT.'resources/mybb_theme.xml'); if(file_exists(MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php"))
|
{
| {
|
require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php";
|
require_once MYBB_ROOT.$mybb->config['admin_dir']."/inc/functions_themes.php";
|
} else if(file_exists(MYBB_ROOT."admin/inc/functions_themes.php"))
| } elseif(file_exists(MYBB_ROOT."admin/inc/functions_themes.php"))
|
{ require_once MYBB_ROOT."admin/inc/functions_themes.php";
|
{ require_once MYBB_ROOT."admin/inc/functions_themes.php";
|
}
| }
|
else { $output->print_error("Please make sure your admin directory is uploaded correctly."); }
|
else { $output->print_error("Please make sure your admin directory is uploaded correctly."); }
|
$theme_id = import_theme_xml($contents, array("templateset" => -2));
| $theme_id = import_theme_xml($contents, array("templateset" => -2, "version_compat" => 1));
|
$tid = build_new_theme("Default", null, $theme_id); // Update our properties template set to the correct one
| $tid = build_new_theme("Default", null, $theme_id); // Update our properties template set to the correct one
|
Zeile 884 | Zeile 901 |
---|
// If board configuration errors if(is_array($errors))
|
// If board configuration errors if(is_array($errors))
|
{
| {
|
$error_list = error_list($errors); echo $lang->sprintf($lang->config_step_error_config, $error_list);
| $error_list = error_list($errors); echo $lang->sprintf($lang->config_step_error_config, $error_list);
|
Zeile 895 | Zeile 912 |
---|
$cookiedomain = htmlspecialchars($mybb->input['cookiedomain']); $cookiepath = htmlspecialchars($mybb->input['cookiepath']); $contactemail = htmlspecialchars($mybb->input['contactemail']);
|
$cookiedomain = htmlspecialchars($mybb->input['cookiedomain']); $cookiepath = htmlspecialchars($mybb->input['cookiepath']); $contactemail = htmlspecialchars($mybb->input['contactemail']);
|
} else {
| } else {
|
$bbname = 'Forums'; $cookiedomain = ''; $cookiepath = '/';
| $bbname = 'Forums'; $cookiedomain = ''; $cookiepath = '/';
|
Zeile 1362 | Zeile 1379 |
---|
function db_connection($config) { require_once MYBB_ROOT."inc/db_{$config['database']['type']}.php";
|
function db_connection($config) { require_once MYBB_ROOT."inc/db_{$config['database']['type']}.php";
|
$db = new databaseEngine;
| switch($config['database']['type']) { case "sqlite3": $db = new DB_SQLite3; break; case "sqlite2": $db = new DB_SQLite2; break; case "pgsql": $db = new DB_PgSQL; break; case "mysqli": $db = new DB_MySQLi; break; default: $db = new DB_MySQL; }
|
// Connect to Database define('TABLE_PREFIX', $config['database']['table_prefix']);
| // Connect to Database define('TABLE_PREFIX', $config['database']['table_prefix']);
|