Vergleich install/resources/upgrade35.php - 1.8.25 - 1.8.29

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 164Zeile 164
	echo "<p>Adding index files to attachment directories...</p>";
flush();


	echo "<p>Adding index files to attachment directories...</p>";
flush();


	$dir = @opendir('../'.$mybb->settings['uploadspath']);


	$uploadspath_abs = mk_path_abs($mybb->settings['uploadspath']);
$dir = @opendir($uploadspath_abs);

	if($dir)
{
while(($file = @readdir($dir)) !== false)
{

	if($dir)
{
while(($file = @readdir($dir)) !== false)
{

			$filename = "../{$mybb->settings['uploadspath']}/{$file}";

			$filename = "{$uploadspath_abs}/{$file}";

			$indexfile = "{$filename}/index.html";

if(preg_match('#^[0-9]{6}$#', $file) && @is_dir($filename) && @is_writable($filename) && !file_exists($indexfile))

			$indexfile = "{$filename}/index.html";

if(preg_match('#^[0-9]{6}$#', $file) && @is_dir($filename) && @is_writable($filename) && !file_exists($indexfile))