Ignore:
Timestamp:
03/08/2006 10:51:16 PM (6 years ago)
Author:
Winner
Message:

Add: Services support.
Bug fix: Extra field displaying error on registration page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/globals/functions.php

    r145 r151  
    365365        } 
    366366} 
     367 
     368function 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 
    367379?> 
Note: See TracChangeset for help on using the changeset viewer.