From 15b91c7e661d928d8b125ec9cfbda1702319c8b4 Mon Sep 17 00:00:00 2001 From: mensonge Date: Tue, 25 Nov 2008 15:57:29 +0000 Subject: Major refactoring: transform user into object, define parameters used into each file, ... git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@173 b3834d28-1941-0410-a4f8-b48e95affb8f --- ajaxGetTitle.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ajaxGetTitle.php') diff --git a/ajaxGetTitle.php b/ajaxGetTitle.php index d440802..2bec47c 100644 --- a/ajaxGetTitle.php +++ b/ajaxGetTitle.php @@ -25,6 +25,9 @@ header("Cache-Control: no-cache, must-revalidate"); require_once('header.inc.php'); +/* Managing all possible inputs */ +isset($_GET['url']) ? define('GET_URL', $_GET['url']): define('GET_URL', ''); + function getTitle($url) { $fd = @fopen($url, 'r'); if ($fd) { @@ -65,6 +68,6 @@ echo ''; getTitle - + -- cgit v1.2.3-54-g00ecf