Vergleich captcha.php - 1.6.8 - 1.6.15

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: captcha.php 5560 2011-08-28 21:53:04Z PirataNervo $

 * $Id$

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 48Zeile 48
{
// Get a list of the files in the 'catpcha_fonts' directory
$ttfdir = @opendir(MYBB_ROOT."inc/captcha_fonts");

{
// Get a list of the files in the 'catpcha_fonts' directory
$ttfdir = @opendir(MYBB_ROOT."inc/captcha_fonts");

	if($ttfdir)

	if($ttfdir !== false)

	{

	{

		while($file = readdir($ttfdir))

		while(($file = readdir($ttfdir)) !== false)

		{
// If this file is a ttf file, add it to the list
if(is_file(MYBB_ROOT."inc/captcha_fonts/".$file) && get_extension($file) == "ttf")

		{
// If this file is a ttf file, add it to the list
if(is_file(MYBB_ROOT."inc/captcha_fonts/".$file) && get_extension($file) == "ttf")

Zeile 58Zeile 58
				$ttf_fonts[] = MYBB_ROOT."inc/captcha_fonts/".$file;
}
}

				$ttf_fonts[] = MYBB_ROOT."inc/captcha_fonts/".$file;
}
}

 
		closedir($ttfdir);

	}
}


	}
}