UploadMod Problem!

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Antworten
Jungerfalke
Mitglied
Beiträge: 17
Registriert: 08.12.2005 20:40

UploadMod Problem!

Beitrag von Jungerfalke »

Hallo,
ich habe ein Problem bei dem Upload MOD.
Ick kann nichts hochladen denn wenn ich die Datei ausgewählt habe und auf Hochladen klicke kommt der Fehler:

Fehler bei der Übertragung ! Ist die Datei zu groß ?

1 Bytes


Ich finde auch in der PhpMyAdmin keinen Eintrag für "Upload", und wenn ich versuche meine Upload Eigenschaften zu speichern macht der des net. Ich habe schon versucht die : upload_mod_db_install.php einfach im Browser zu öffnen, aber dann kommt:

Code: Alles auswählen


Warning: main(./extension.inc): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 4

Warning: main(): Failed opening './extension.inc' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 4

Warning: main(./config.): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 5

Warning: main(): Failed opening './config.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 5

Warning: main(./common.): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 6

Warning: main(): Failed opening './common.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 6

Warning: main(./includes/constants.): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 7

Warning: main(): Failed opening './includes/constants.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 7

Warning: main(./includes/db.): failed to open stream: No such file or directory in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 8

Warning: main(): Failed opening './includes/db.' for inclusion (include_path='.:') in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 8

Fatal error: Call to undefined function: session_pagestart() in /usr/export/www/vhosts/funnetwork/hosting/jungerfalke/admin/mods/Upload_Mod_V200_emc/phpbb2/upload_mod_db_install.php on line 13
Hier noch mein upload_mod_db_install.php Code:

Code: Alles auswählen

<?php
define('IN_PHPBB', 1);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'config.'.$phpEx);
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'includes/constants.'.$phpEx);
include_once($phpbb_root_path . 'includes/db.'.$phpEx);

//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//

//
//
// Restrict to members:
if( !$userdata['session_logged_in'] )
{
header("Location: " . append_sid("login.$phpEx?redirect=upload_mod_db_install.$phpEx", true));
exit;
}
//
//

if ( $userdata['user_level'] == ADMIN )
{
}
else
{
message_die(GENERAL_MESSAGE, $lang['Not_Authorised'], $lang['Not_Authorised']);
exit;
}

echo '<html>
<head>
<title>SQL-DB-Installer - Upload - MOD</title>
</head>
<body>
<h1>SQL-DB-Installer - Upload - MOD</h1>
<hr />';
if (!isset($HTTP_GET_VARS['install'])) {
echo '<a href="?install=1">Please click here | Bitte hier klicken</a>';
}
else {
$queries = array(

"INSERT INTO " . $table_prefix . "config VALUES ('uploadmod_active', '1')",
"INSERT INTO " . $table_prefix . "config VALUES ('uploadmod_dir', 'http://www.domain.de/phpBB2/')",
"INSERT INTO " . $table_prefix . "config VALUES ('uploadmod_uploaddir', 'upload/')",
"INSERT INTO " . $table_prefix . "config VALUES ('uploadmod_size', '512000')",
"INSERT INTO " . $table_prefix . "config VALUES ('uploadmod_pixel', '700')"

);

$success = true;
foreach($queries as $query) {
if (!$db->sql_query($query)) {
echo '<font color="red">An error occurred ! Changes have not been entered successfully !<br /><br />Es Fehler ist aufgetreten ! Änderung nicht erfolgreich eingetragen !</font><br /><br />';
echo mysql_error();
$success = false;
break;
}
}
if ($success) {
echo '<font color="green">DB-Changes have been entered successfully. You should delete this SQL-DB-Installer as soon as possible !<br /><br />DB-Änderung wurde erfolgreich ausgeführt. Du solltest diesen SQL-DB-Installer sobald wie möglich löschen !';
}
}
?>
Mfg
Jungerfalke
Antworten

Zurück zu „phpBB 2.0: Mod Support“