Location: PHPKode > projects > Kwalbum > kwalbum/include/funcCheckVersion.php
<?php
/**
 * @package kwalbum
 * @todo check online for newer version and create message if found
 */
define('KWALBUM_VERSION', '2.2');
function CheckVersion()
{
	$sfpage = file_get_contents('https://sourceforge.net/projects/kwalbum/');
	if (false === $sfpage)
		return;
	$sfpage = substr($sfpage, strpos($sfpage, 'Kwalbum - '));
	$sfpage = substr($sfpage, 10, strpos($sfpage, '<'));
	if ($sfpage != KWALBUM_VERSION)
		return 'New version is available for download!';
	return;
}
Return current item: Kwalbum