projects
/
infodrom.org
/
www.zeitungsliste.de
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3f3d46
)
Implement url check via AJAX
author
Joey Schulze
<joey@infodrom.org>
Fri, 27 Jun 2008 13:34:06 +0000
(13:34 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Fri, 27 Jun 2008 13:34:06 +0000
(13:34 +0000)
lib/functions.inc
patch
|
blob
|
history
diff --git
a/lib/functions.inc
b/lib/functions.inc
index
01c3a5f
..
c007edf
100644
(file)
--- a/
lib/functions.inc
+++ b/
lib/functions.inc
@@
-429,6
+429,16
@@
function is_valid_url($url) {
return true;
}
+function ajax_check_url()
+{
+ global $POST;
+
+ if (!empty($_POST['url']) && is_valid_url($_POST['url']))
+ return true;
+
+ return false;
+}
+
function sendmail($to, $name, $subject, $body, $header=array())
{
global $cfg;
@@
-495,4
+505,4
@@
function hits_inc($zeitung)
db_query($query);
}
-?>
\ No newline at end of file
+?>