Benutzt von euch jemand Album Photo Upload Directory HACK V.1.0.0???
Benutze ganz neu das 1.53a Portal mit phpbb 2.0.21!
Jetzt habe ich alles soweit installiert!
Hab ihr das DB-Update durchgeführt?! habe die Datei:
Code:
Code: Alles auswählen
mod_photo_album_upload_directory_update.phpFolgende Fehlermeldung erscheint:
Code: Alles auswählen
phpBB : Critical Error
Could not connect to the databaseHier der Inhalt der update.php datei!
Code: Alles auswählen
@set_time_limit(3600); // <grin>
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path.'extension.inc');
include($phpbb_root_path.'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path.'includes/db.'.$phpEx);
?>
<DOCTYPE>
<html>
<head>
<meta>
<meta>
<style>
<font>
</style>
</head>
<body>
<table>
<tr>
<td><table>
<tr>
<td><span>Updating Mod Photo Album Upload Directory Addon<BR>for<BR>phpBB2 v2.04 and Photo Album v.2.0.43</span></td>
</tr>
</table></td>
</tr>
</table>
<br>
<php>sql_query($sql) )
{
die('<b>ERROR:</b> Could not find the existed version of Photo Album here');
}
$row = $db->sql_fetchrow($result);
$current_album_version = $row['config_value'];
$sql = array();
$post_update_note = '';
switch ($current_album_version)
{
case '.0.43':
$sql[] = "INSERT INTO ". $table_prefix ."album_config
VALUES ('thumbnail_ext', '_mini')";
break; // We MUST break here before the default case
default:
// it seems the current version is newer
die('<b>ERROR:</b> Your current version is not specified or OLDER. So you cannot apply this hack !');
}
flush();
$n = 0;
$errored = FALSE;
while ($sql[$n])
{
echo 'Running :: ' . $sql[$n] . ' -> ';
flush();
if( !$result = $db->sql_query($sql[$n]) )
{
$errored = TRUE;
$error_msg = $db->sql_error();
echo '<b>FAILED</b>: ' . $error_msg['message'] . "<br><br>\n";
}
else
{
echo "<b><span>COMPLETED</span></b><br><br>\n\n";
}
$n++;
}
if ( $errored )
{
$message .= '<br>Some queries failed. Please contact me at <a>http://forum.racinescoreennes.org</a> we may solve your problems...';
}
else
{
$message .= '<br>Mod Photo Album Upload Directory Tables updated successfully.';
}
echo $post_update_note;
echo "\n<br>\n<b>UPGRADE COMPLETED!</b><br>\n";
echo $message . '<br>';
echo "<br><b>NOW DELETE THIS FILE</b><br>\n";
echo "</body>";
echo "</html>";
?>Gruß
arni22