frankrieger schrieb:Poste mal bitte deine index.php, weil in der originalen ist eigentlich in der Zeile 16 gar nichts was den fehler verursachen könnte.
Eine Homepage ist nie fertig, man hört nur auf an ihr zu arbeiten - Unbekannter Verfasser
if(file_exists('lock')) { $output->print_error($lang->locked); } else { $output->steps = array( 'intro' => $lang->welcome, 'license' => $lang->license_agreement, 'requirements_check' => $lang->req_check, 'database_info' => $lang->db_config, 'create_tables' => $lang->table_creation, 'populate_tables' => $lang->data_insertion, 'templates' => $lang->theme_install, 'configuration' => $lang->board_config, 'adminuser' => $lang->admin_user, 'final' => $lang->finish_setup, ); if(!isset($mybb->input['action'])) { $mybb->input['action'] = 'intro'; } switch($mybb->input['action']) { case 'license': license_agreement(); break; case 'requirements_check': requirements_check(); break; case 'database_info': database_info(); break; case 'create_tables': create_tables(); break; case 'populate_tables': populate_tables(); break; case 'templates': insert_templates(); break; case 'configuration': configure(); break; case 'adminuser'; create_admin_user(); break; case 'final': install_done(); break; default: intro(); break; } }
function intro() { global $output, $mybb, $lang; $output->print_header($lang->welcome, 'welcome'); echo sprintf($lang->welcome_step, $mybb->version); $output->print_footer('license'); }
function license_agreement() { global $output, $lang; $output->print_header($lang->license_agreement, 'license'); $license = '<h3>Important - Read Carefully</h3> <p>This MyBB End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and the MyBB Group for the MyBB product, which includes computer software and may include associated media, printed materials, and "online" or electronic documentation. By installing, copying, or otherwise using the MyBB product, you agree to be bound by the terms of this EULA. If you do not agree to the terms of this EULA, do not install or use the MyBB product and destroy any copies of the application.</p> <p>The MyBB Group may alter or modify this license agreement without notification and any changes made to the EULA will affect all past and current copies of MyBB</p>
<h4>MyBB is FREE software</h4> <p>MyBB is distributed as "FREE" software granting you the right to download MyBB for FREE and installing a working physical copy at no extra charge.</p> <p>You may charge a fee for the physical act of transferring a copy.</p>
<h4>Reproduction and Distribution</h4> <p>You may produce re-distributable copies of MyBB as long as the following terms are met:</p> <ul> <li>You may not remove, alter or otherwise attempt to hide the MyBB copyright notice in any of the files within the original MyBB package.</li> <li>Any additional files you add must not bare the copyright of the MyBB Group.</li> <li>You agree that no support will be given to those who use the distributed modified copies.</li> <li>The modified and re-distributed copies of MyBB must also be distributed with this exact license and licensed as FREE software. You may not charge for the software or distribution of the software.</li> </ul>
<h4>Separation of Components</h4> <p>The MyBB software is licensed as a single product. Components, parts or any code may not be separated from the original MyBB package for either personal use or inclusion in other applications.</p>
<h4>Termination</h4> <p>Without prejudice to any other rights, the MyBB Group may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the MyBB software and all of its component parts. The MyBB Group also reserve the right to revoke redistribution rights of MyBB from any corporation or entity for any specified reason.</p>
<h4>Copyright</h4> <p>All title and copyrights in and to the MyBB software (including but not limited to any images, text, javascript and code incorporated in to the MyBB software), the accompanying materials and any copies of the MyBB software are owned by the MyBB Group.</p> <p>MyBB is protected by copyright laws and international treaty provisions. Therefore, you must treat MyBB like any other copyrighted material.</p> <p>The MyBB Group has several copyright notices and "powered by" lines embedded within the product. You must not remove, alter or hinder the visibility of any of these statements (including but not limited to the copyright notice at the top of files and the copyright/powered by lines found in publicly visible "templates").</p>
<h4>Product Warranty and Liability for Damages</h4> <p>The MyBB Group expressly disclaims any warranty for MyBB. The MyBB software and any related documentation is provided "as is" without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchant-ability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of MyBB remains with you.</p> <p>In no event shall the MyBB Group be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the MyBB Group has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.</p>'; echo sprintf($lang->license_step, $license); $output->print_footer('requirements_check'); }
function requirements_check() { global $output, $mybb, $dboptions, $lang;
/** * Admin CP directory * For security reasons, it is recommended you * rename your Admin CP directory. You then need * to adjust the value below to point to the * new directory. */
\$config['admin_dir'] = 'admin';
/** * Hide all Admin CP links * If you wish to hide all Admin CP links * on the front end of the board after * renaming your Admin CP directory, set this * to 1. */
\$config['hide_admin_links'] = 0;
/** * Data-cache configuration * The data cache is a temporary cache * of the most commonly accessed data in MyBB. * By default, the database is used to store this data. * * If you wish to use the file system (inc/cache directory) * you can change the value below to 'files' from 'db'. */
\$config['cache_store'] = 'db';
/** * Super Administrators * A comma separated list of user IDs who cannot * be edited, deleted or banned in the Admin CP. * The administrator permissions for these users * cannot be altered either. */
$db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['bbname'])."' WHERE name='bbname'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['bburl'])."' WHERE name='bburl'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['websitename'])."' WHERE name='homename'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['websiteurl'])."' WHERE name='homeurl'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['cookiedomain'])."' WHERE name='cookiedomain'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['cookiepath'])."' WHERE name='cookiepath'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['contactemail'])."' WHERE name='adminemail'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='mailto:".$db->escape_string($mybb->input['contactemail'])."' WHERE name='contactlink'");
$db->query("INSERT INTO ".TABLE_PREFIX."adminoptions VALUES ('{$uid}','','','1','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes')");
function db_connection($config) { require_once MYBB_ROOT."/inc/db_{$config['dbtype']}.php"; $db = new databaseEngine; // Connect to Database define('TABLE_PREFIX', $config['table_prefix']); $db->connect($config['hostname'], $config['username'], $config['password']); $db->select_db($config['database']); return $db; }
function error_list($array) { $string = "<ul>\n"; foreach($array as $error) { $string .= "<li>{$error}</li>\n"; } $string .= "</ul>\n"; return $string; }
function write_settings() { global $db, $cwd; $query = $db->query('SELECT * FROM '.TABLE_PREFIX.'settings ORDER BY title ASC'); 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?>"; $file = fopen(dirname($cwd)."/inc/settings.php", "w"); fwrite($file, $settings); fclose($file); } }
function test_shutdown_function() { global $db; $db->query("UPDATE ".TABLE_PREFIX."settings SET value='yes' WHERE name='useshutdownfunc'"); write_settings(); } ?>
if(file_exists('lock')) { $output->print_error($lang->locked); } else { $output->steps = array( 'intro' => $lang->welcome, 'license' => $lang->license_agreement, 'requirements_check' => $lang->req_check, 'database_info' => $lang->db_config, 'create_tables' => $lang->table_creation, 'populate_tables' => $lang->data_insertion, 'templates' => $lang->theme_install, 'configuration' => $lang->board_config, 'adminuser' => $lang->admin_user, 'final' => $lang->finish_setup, ); if(!isset($mybb->input['action'])) { $mybb->input['action'] = 'intro'; } switch($mybb->input['action']) { case 'license': license_agreement(); break; case 'requirements_check': requirements_check(); break; case 'database_info': database_info(); break; case 'create_tables': create_tables(); break; case 'populate_tables': populate_tables(); break; case 'templates': insert_templates(); break; case 'configuration': configure(); break; case 'adminuser'; create_admin_user(); break; case 'final': install_done(); break; default: intro(); break; } }
function intro() { global $output, $mybb, $lang; $output->print_header($lang->welcome, 'welcome'); echo sprintf($lang->welcome_step, $mybb->version); $output->print_footer('license'); }
function license_agreement() { global $output, $lang; $output->print_header($lang->license_agreement, 'license'); $license = '<h3>Important - Read Carefully</h3> <p>This MyBB End-User License Agreement ("EULA") is a legal agreement between you (either an individual or a single entity) and the MyBB Group for the MyBB product, which includes computer software and may include associated media, printed materials, and "online" or electronic documentation. By installing, copying, or otherwise using the MyBB product, you agree to be bound by the terms of this EULA. If you do not agree to the terms of this EULA, do not install or use the MyBB product and destroy any copies of the application.</p> <p>The MyBB Group may alter or modify this license agreement without notification and any changes made to the EULA will affect all past and current copies of MyBB</p>
<h4>MyBB is FREE software</h4> <p>MyBB is distributed as "FREE" software granting you the right to download MyBB for FREE and installing a working physical copy at no extra charge.</p> <p>You may charge a fee for the physical act of transferring a copy.</p>
<h4>Reproduction and Distribution</h4> <p>You may produce re-distributable copies of MyBB as long as the following terms are met:</p> <ul> <li>You may not remove, alter or otherwise attempt to hide the MyBB copyright notice in any of the files within the original MyBB package.</li> <li>Any additional files you add must not bare the copyright of the MyBB Group.</li> <li>You agree that no support will be given to those who use the distributed modified copies.</li> <li>The modified and re-distributed copies of MyBB must also be distributed with this exact license and licensed as FREE software. You may not charge for the software or distribution of the software.</li> </ul>
<h4>Separation of Components</h4> <p>The MyBB software is licensed as a single product. Components, parts or any code may not be separated from the original MyBB package for either personal use or inclusion in other applications.</p>
<h4>Termination</h4> <p>Without prejudice to any other rights, the MyBB Group may terminate this EULA if you fail to comply with the terms and conditions of this EULA. In such event, you must destroy all copies of the MyBB software and all of its component parts. The MyBB Group also reserve the right to revoke redistribution rights of MyBB from any corporation or entity for any specified reason.</p>
<h4>Copyright</h4> <p>All title and copyrights in and to the MyBB software (including but not limited to any images, text, javascript and code incorporated in to the MyBB software), the accompanying materials and any copies of the MyBB software are owned by the MyBB Group.</p> <p>MyBB is protected by copyright laws and international treaty provisions. Therefore, you must treat MyBB like any other copyrighted material.</p> <p>The MyBB Group has several copyright notices and "powered by" lines embedded within the product. You must not remove, alter or hinder the visibility of any of these statements (including but not limited to the copyright notice at the top of files and the copyright/powered by lines found in publicly visible "templates").</p>
<h4>Product Warranty and Liability for Damages</h4> <p>The MyBB Group expressly disclaims any warranty for MyBB. The MyBB software and any related documentation is provided "as is" without warranty of any kind, either express or implied, including, without limitation, the implied warranties or merchant-ability, fitness for a particular purpose, or non-infringement. The entire risk arising out of use or performance of MyBB remains with you.</p> <p>In no event shall the MyBB Group be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this product, even if the MyBB Group has been advised of the possibility of such damages. Because some states/jurisdictions do not allow the exclusion or limitation of liability for consequential or incidental damages, the above limitation may not apply to you.</p>'; echo sprintf($lang->license_step, $license); $output->print_footer('requirements_check'); }
function requirements_check() { global $output, $mybb, $dboptions, $lang;
// Attempt to connect to the db require_once MYBB_ROOT."/ht11bv2/inc/db_{$mybb->input['dbengine']}.php"; $db = new databaseEngine; $db->error_reporting = 0;
/** * Admin CP directory * For security reasons, it is recommended you * rename your Admin CP directory. You then need * to adjust the value below to point to the * new directory. */
\$config['admin_dir'] = 'admin';
/** * Hide all Admin CP links * If you wish to hide all Admin CP links * on the front end of the board after * renaming your Admin CP directory, set this * to 1. */
\$config['hide_admin_links'] = 0;
/** * Data-cache configuration * The data cache is a temporary cache * of the most commonly accessed data in MyBB. * By default, the database is used to store this data. * * If you wish to use the file system (inc/cache directory) * you can change the value below to 'files' from 'db'. */
\$config['cache_store'] = 'db';
/** * Super Administrators * A comma separated list of user IDs who cannot * be edited, deleted or banned in the Admin CP. * The administrator permissions for these users * cannot be altered either. */
$db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['bbname'])."' WHERE name='bbname'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['bburl'])."' WHERE name='bburl'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['websitename'])."' WHERE name='homename'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['websiteurl'])."' WHERE name='homeurl'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['cookiedomain'])."' WHERE name='cookiedomain'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['cookiepath'])."' WHERE name='cookiepath'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='".$db->escape_string($mybb->input['contactemail'])."' WHERE name='adminemail'"); $db->query("UPDATE ".TABLE_PREFIX."settings SET value='mailto:".$db->escape_string($mybb->input['contactemail'])."' WHERE name='contactlink'");
$db->query("INSERT INTO ".TABLE_PREFIX."adminoptions VALUES ('{$uid}','','','1','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes','yes')");
function db_connection($config) { require_once MYBB_ROOT."/ht11bv2/inc/db_{$config['dbtype']}.php"; $db = new databaseEngine; // Connect to Database define('TABLE_PREFIX', $config['table_prefix']); $db->connect($config['hostname'], $config['username'], $config['password']); $db->select_db($config['database']); return $db; }
function error_list($array) { $string = "<ul>\n"; foreach($array as $error) { $string .= "<li>{$error}</li>\n"; } $string .= "</ul>\n"; return $string; }
function write_settings() { global $db, $cwd; $query = $db->query('SELECT * FROM '.TABLE_PREFIX.'settings ORDER BY title ASC'); 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?>"; $file = fopen(dirname($cwd)."/ht11bv2/inc/settings.php", "w"); fwrite($file, $settings); fclose($file); } }
function test_shutdown_function() { global $db; $db->query("UPDATE ".TABLE_PREFIX."settings SET value='yes' WHERE name='useshutdownfunc'"); write_settings(); } ?>
17.10.2006, 17:59 (Dieser Beitrag wurde zuletzt bearbeitet: 17.10.2006, 21:59 von Michael.)
Stelle sicher, dass sich die Datei inc/class_core.php auf dem Server befindet. Ist das der Fall, ersetze
PHP-Code:
require_once MYBB_ROOT.'/inc/class_core.php';
bitte mal durch
PHP-Code:
require_once 'inc/class_core.php';
Ist das Problem damit gelöst?
Gruß,
Michael Support erfolgt NUR im Forum!
Bitte gelöste Themen als "erledigt" markieren.
Beiträge mit mangelhafter Rechtschreibung/Grammatik werden kommentarlos gelöscht.