Attachment Mod Version 2.3.9 komplette Dateigrösse auf index
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.
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.
- Leuchte
- Ehemaliges Teammitglied
- Beiträge: 9179
- Registriert: 26.05.2003 14:57
- Wohnort: Duisburg
- Kontaktdaten:
functions.phpErsetzen mit
Code: Alles auswählen
$count_files[file] = 0;
Code: Alles auswählen
$count_files[file] = -1;

noch ein kleines Problem, wenn ich jetzt unter
noch
einfüge, dann kommt:
angepasst ist auch:
functions.php
und index.php:
Code: Alles auswählen
$uploadsize = get_dir_size_upload("./files/");
$avatarsize = get_dir_size_avatar("./images/avatars/gallery/");
$count_files_upload = count_files_upload("./files/");
Code: Alles auswählen
$count_files_avatar = count_files_avatar("./images/avatars/gallery/");
Code: Alles auswählen
Warning: main(./includes/page_header.php): failed to open stream: No such file or directory in /home/ftp00072xvl/http/phpBB/index.php on line 265
Warning: main(): Failed opening './includes/page_header.php' for inclusion (include_path='.:/usr/local/lib/php:/usr/share/php') in /home/ftp00072xvl/http/phpBB/index.php on line 265
Template->make_filename(): Error - file ./templates/subSilver/index_body.tpl does not exist
functions.php
Code: Alles auswählen
function count_files_upload($dir)
{
if(is_dir($dir))
{
$count_files_upload[file] = -1;
chdir($dir);
$handle = opendir(".");
while($file = readdir($handle))
{
if(is_dir($file) && $file != "." && $file != "..")
{
$count_files_upload[file] += $y[file];
}
if(is_file($file))
{
$count_files_upload[file]++;
}
}
if(stristr($dir,"../")) chdir($_SERVER["DOCUMENT_ROOT"].substr($_SERVER["PATH_INFO"],0,strrpos($_SERVER["PATH_INFO"],"/")));
elseif($dir != ".") chdir("../");
closedir($handle);
}
return $count_files_upload;
}
function count_files_avatar($dir)
{
if(is_dir($dir))
{
$count_files_avatar[file] = -1;
chdir($dir);
$handle = opendir(".");
while($file = readdir($handle))
{
if(is_dir($file) && $file != "." && $file != "..")
{
$count_files_avatar[file] += $y[file];
}
if(is_file($file))
{
$count_files_avatar[file]++;
}
}
if(stristr($dir,"../")) chdir($_SERVER["DOCUMENT_ROOT"].substr($_SERVER["PATH_INFO"],0,strrpos($_SERVER["PATH_INFO"],"/")));
elseif($dir != ".") chdir("../");
closedir($handle);
}
return $count_files_avatar;
}
Code: Alles auswählen
$uploadsize = get_dir_size_upload("./files/");
$avatarsize = get_dir_size_avatar("./images/avatars/gallery/");
$count_files_upload = count_files_upload("./files/");
$count_files_avatar = count_files_avatar("./images/avatars/gallery/");
nochmal was probiert:
also mit /home/ftp00072xvl/http/phpBB/ ... aber funktioniert immer noch nicht!
Kann sich bitte nochmal einer dessen annehmen?
Code: Alles auswählen
$count_files_upload = count_files_upload("/home/ftp00072xvl/http/phpBB/files/");
$count_files_avatar = count_files_avatar("/home/ftp00072xvl/http/phpBB/images/avatars/gallery/");
Kann sich bitte nochmal einer dessen annehmen?