function _skinr_is_local_file in Skinr 7.2
Helper function to determine whether or not a given file is local or not.
1 call to _skinr_is_local_file()
File
- ./
skinr.module, line 1343 - Handles core Skinr functionality.
Code
function _skinr_is_local_file($file) {
if (strpos($file, 'http://') === 0 || strpos($file, 'https://') === 0 || strpos($file, '/') === 0) {
return FALSE;
}
if (!file_exists($file)) {
return FALSE;
}
return TRUE;
}