diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-02-01 02:46:26 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-02-01 02:46:26 +0000 |
commit | bb181b04cf3e4984cb1dfbe95e5521ad917fab76 (patch) | |
tree | 10199843cd8c12ff06ea1f2e0fb6977d6fa1c46f /include/functions.inc.php | |
parent | ac5fd23412f64b5b8647574a431e3cc13518538e (diff) |
feature 280: Allow visitors/users to choose image ordering inside a category
improvement 82: Viewing pictures from remote galleries does not check anymore
for the high pictures (existence flag added to create_listing_file and db)
correction: link element in picture is in the head instead of body (w3c spec)
correction: in profile.php the current template was not selected by default
git-svn-id: http://piwigo.org/svn/trunk@1020 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/functions.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php index 511da391a..28be6dd2a 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -533,6 +533,15 @@ function get_query_string_diff($rejects = array()) return $query_string; } +function url_is_remote($url) +{ + if (preg_match('/^https?:\/\/[~\/\.\w-]+$/', $url)) + { + return true; + } + return false; +} + /** * returns available templates/themes */ |