define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '3.2.1744' );
define ( 'DFRN_PROTOCOL_VERSION', '2.23' );
-define ( 'DB_UPDATE_VERSION', 1163 );
+define ( 'DB_UPDATE_VERSION', 1165 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
if ($cachetime == 0)
$cachetime = 86400;
+ if (is_writable($path)){
if ($dh = opendir($path)) {
while (($file = readdir($dh)) !== false) {
$fullpath = $path."/".$file;
}
closedir($dh);
}
+ }
}
function set_template_engine(&$a, $engine = 'internal') {
}
if(!function_exists('exif_imagetype')) {
- function exif_imagetype($file) {
- $size = getimagesize($file);
-
- switch ($size["mime"]) {
- case "image/jpeg":
- $imagetype = IMAGETYPE_JPEG;
- break;
- case "image/gif":
- $imagetype = IMAGETYPE_GIF;
- break;
- case "image/png":
- $imagetype = IMAGETYPE_PNG;
- break;
- case "":
- $imagetype = "";
- break;
- default:
- $imagetype = 99;
- }
-
- return($imagetype);
- }
+ function exif_imagetype($file) {
+ $size = getimagesize($file);
+ return($size[2]);
+ }
}