Размер файла: 888B
<?php
/*-----------------------------------------------------------------------------------------
mcGalleryPRO
All code is © 2003 Marc Cagninacci.
No files may be redistributed in whole or significant part.
----------------- mcgalleryPRO IS NOT FREE SOFTWARE -------------------
You should have receive a file called license.txt in this package
--------------------------------------------------------------------------------------------*/
$array = array();
$dir = dir('./smilies');
while($strFile = $dir->read())
{
if (is_file('./smilies/'.$strFile) && 'Thumbs.db' != $strFile)
{
$array[] = $strFile;
}
}
$dir->close();
$file = current($array);
while ($file)
{
$code = '['.substr($file, 0, -4).']';
$smilies[$code] = '<img src="smilies/'.$file.'" alt="'.$code.'" border="0">';
$file = next($array);
}
$images = array_flip($smilies);
?>