Changeset 151 for trunk/globals/functions.php
- Timestamp:
- 03/08/2006 10:51:16 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/globals/functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals/functions.php
r145 r151 365 365 } 366 366 } 367 368 function url_fix ($url, $default_prefix="http://") { 369 // Windows shares (samba) check 370 if (substr(stripslashes($url), 0, 2) == '\\\\') { 371 return 'file://'.str_replace('\\', '/', substr(stripslashes($url), 2)); 372 } 373 // Insert default prefix 374 if (strpos($url, '://') === FALSE) { 375 return $default_prefix.$url; 376 } 377 } 378 367 379 ?>
Note: See TracChangeset
for help on using the changeset viewer.
