+2007-02-28 Ingmar Schlecht <ingmar@typo3.org>
+
+ * New login image for t3skin by Ture Andersen
+
2007-02-27 Oliver Hader <oh@inpublica.de>
* Fixed bug: #5052: Form action URL is not htmlspecialchared (patch by Michael Stucki)
// Get size of random file:
$imgSize = @getimagesize($dir.$files[$randImg]);
+ $imgAuthor = is_array($GLOBALS['TBE_STYLES']['loginBoxImage_author'])&&$GLOBALS['TBE_STYLES']['loginBoxImage_author'][$files[$randImg]] ? htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_author'][$files[$randImg]]) : '';
+
// Create image tag:
if (is_array($imgSize)) {
- $loginboxImage = '<img src="'.htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'].$files[$randImg]).'" '.$imgSize[3].' id="loginbox-image" alt="" />';
+ $loginboxImage = '<img src="'.htmlspecialchars($GLOBALS['TBE_STYLES']['loginBoxImage_rotationFolder'].$files[$randImg]).'" '.$imgSize[3].' id="loginbox-image" alt="'.$imgAuthor.'" title="'.$imgAuthor.'" />';
}
}
} else { // If no rotation folder configured, print default image:
// Setting login box image rotation folder:
$TBE_STYLES['loginBoxImage_rotationFolder'] = $temp_eP.'images/login/';
+ $TBE_STYLES['loginBoxImage_author']['loginimage_4_1.jpg'] = 'Photo by Ture Andersen (www.tureandersen.dk)';
#$TBE_STYLES['loginBoxImage_rotationFolder'] = '';
// Setting up stylesheets (See template() constructor!)