Zum Inhalt springen

t3lib_div::resolveBackPath(PATH_typo3.$GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder']); *argh*

Erstellt am 1. August 2005 · 1 Antwort · letzte Antwort am 2. August 2005

Tags: Frage

Fabian-K ·

Hallo,
aus reiner Langeweile habe ich eben mal meine php-dateien angeschaut und folgendes gefunden:

	function makeLoginBoxImage()	{
		$loginboxImage = '';
		if ($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'])	{		// Look for rotation image folder:
			$absPath = t3lib_div::resolveBackPath(PATH_typo3.$GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder']);

				// Get rotation folder:
			$dir = t3lib_div::getFileAbsFileName($absPath);
			if ($dir && @is_dir($dir))	{

					// Get files for rotation into array:
				$files = t3lib_div::getFilesInDir($dir,'png,jpg,gif');

					// Pick random file:
				srand((float) microtime() * 10000000);
				$randImg = array_rand($files, 1);

					// Get size of random file:
				$imgSize = @getimagesize($dir.$files[$randImg]);

					// Create image tag:
				if (is_array($imgSize))	{
					$loginboxImage = '<img src="'.htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'].$files[$randImg]).'" imgsize3="" id="loginbox-image" alt="" />';
				}
			}
		} else {	// If no rotation folder configured, print default image:
			$loginImage = 'loginimage-3.8.0.jpg';
			$imagecopy = $loginImage=='loginbox_image_dev.png' ? 'You are running the CVS version of TYPO3 '.$GLOBALS['TYPO_VERSION'] : 'Photo: © 2005 Kasper Skårhøj';	// Directly outputted in image attributes...
			$loginboxImage = '<img'.t3lib_iconworks::skinimg($globals['back_path'],'gfx/'.$loginimage,'width="200" height="133" id="loginbox-image" alt="'.$imagecopy.'" title="'.$imagecopy.'" />';
		}

			// Return image tag:
		return $loginboxImage;
	}

(typo3->index.php; Zeilen: 583-615)
Jetz zu meiner frage:
Was hat es mit dem

$GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder']

auf sich? (Zeile 585/586)
Wo kann ich da ein rotationfolder verwenden, bzw. wo finde ich ihn?

Thanks!