Verfasst: 06.10.2004 12:28
Existiert das Feld "enable_confirm" in der config-Tabelle (mit phpmyadmin nachschauen)?
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$sql = "SELECT *
FROM ". CONFIG_TABLE ."
WHERE config_name = 'enable_confirm'";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
if ( $row['config_name'] != 'enable_confirm' )
{
message_die(GENERAL_MESSAGE, 'Existiert nicht');
}
else
{
$message = 'Existiert und hat den Wert '. $row['config_value'];
message_die(GENERAL_MESSAGE, $message);
}
?>
Code: Alles auswählen
INSERT INTO phpbb_config (config_name, config_value) VALUES ('enable_confirm', 1)