Seite 2 von 2

Verfasst: 17.06.2005 19:06
von Nachtfalke-01
Hallo......

Kam erst heute dazu den Mod einzubauen und es funktioniert einwandfrei, vielen Dank "Mehrpack" :grin: :grin:

MfG Nachtfalke

Verfasst: 07.08.2006 11:20
von Patch
jeep hab leider auch das prob....
also wie Mehrpack schon sagt - die 2.12 drauf, dann funzt es

das Re-Update geht folgendermaßen:

Code: Alles auswählen

#
#-----[ OPEN ]------------------------------------------
#
includes/functions_jr_admin.php

#
#-----[ FIND ]------------------------------------------
#
         	$cache_data_file = $phpbb_root_path.'cache/jr_admin.dat';

	if (@is_file($cache_data_file))
	{
		if (date('YzH',time()) - date('YzH',@filemtime($cache_data_file)) >= 1)
		{
			@unlink($cache_data_file);
		}
	}
	
	if (file_exists($phpbb_root_path.'cache/jr_admin.dat'))
	{
		//Read all the modules from cache file
		include($phpbb_root_path.'cache/jr_admin.dat');
	}
	else
	{	
		//Read all the modules from original admin files
		$setmodules = 1;
		$dir = @opendir($phpbb_root_path.JR_ADMIN_DIR);
		$pattern = "/^admin_.+\.$phpEx$/";
		while (($file = @readdir($dir)) !== false)
		{
			if (preg_match($pattern, $file))
			{
				include_once($phpbb_root_path.JR_ADMIN_DIR.$file);
			}
		}
		@closedir($dir);

		@ksort($module);

		unset($setmodules);

		@unlink ($cache_data_file);
		$data = "<?php\n";
		foreach ($module as $cat => $item_array)
		{
			foreach($item_array as $module_name => $filename)
			{
				$data .= '$module[\''.$cat.'\'][\''.$module_name.'\'] = \''.$filename."';\n";
			}
		}
		$data .= "\n?>";
		$data = str_replace('sid='.$userdata['session_id'], '', $data);
		$data = str_replace('&amp', '', $data);
		$fp = fopen( $cache_data_file, "w" );
		fwrite($fp, $data);
		fclose($fp);
	}
#
#-----[ REPLACE WITH ]------------------------------------------
#        
	//Read all the modules
	$setmodules = 1;
	$dir = @opendir($phpbb_root_path.JR_ADMIN_DIR);
	$pattern = "/^admin_.+\.$phpEx$/";
	while (($file = @readdir($dir)) !== false)
	{
		if (preg_match($pattern, $file))
		{
			include_once($phpbb_root_path.JR_ADMIN_DIR.$file);
		}
	}
	@closedir($dir);

	@ksort($module);

	unset($setmodules);
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
und siehe da es geht. ich weiß ja nicht genau was das update auf die 2.2 bringt, aber mit dem junior admin geht es leider nicht....