Author: gassla
Date: Wed May 30 15:31:12 2007
New Revision: 469

URL: http://svn.gna.org/viewcvs/phplinker?rev=469&view=rev
Log:
typo

Modified:
    trunk/www/admin/api/fetch_categories.php
    trunk/www/admin/api/fetch_url_info.php

Modified: trunk/www/admin/api/fetch_categories.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/api/fetch_categories.php?rev=469&r1=468&r2=469&view=diff
==============================================================================
--- trunk/www/admin/api/fetch_categories.php (original)
+++ trunk/www/admin/api/fetch_categories.php Wed May 30 15:31:12 2007
@@ -25,8 +25,10 @@
 <?php
 require($_SERVER['DOCUMENT_ROOT']."/includes/start.php");
 
-if (!is_allowed_ip($_SERVER['REMOTE_ADDR']))
-  die (_("You're not allowed to access this script!"));
+if ( !is_allowed_ip($_SERVER['REMOTE_ADDR']) ){
+  echo("error\t"._("You're not allowed to access this script!"));
+  exit;
+ }
 
 $root=0;
 $all_categs = linker_get_categories_tree_array();

Modified: trunk/www/admin/api/fetch_url_info.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/admin/api/fetch_url_info.php?rev=469&r1=468&r2=469&view=diff
==============================================================================
--- trunk/www/admin/api/fetch_url_info.php (original)
+++ trunk/www/admin/api/fetch_url_info.php Wed May 30 15:31:12 2007
@@ -26,8 +26,10 @@
 require($_SERVER['DOCUMENT_ROOT']."/includes/start.php");
 require_once($_SERVER['DOCUMENT_ROOT']."/lib/url.php");
 
-if (!is_allowed_ip($_SERVER['REMOTE_ADDR']))
-  die (_("You're not allowed to access this script!"));
+if (!is_allowed_ip($_SERVER['REMOTE_ADDR'])){
+  echo("error\t"._("You're not allowed to access this script!"));
+  exit;
+ }
 
 header("Content-type: text/plain");
 if(isset($_GET['url']) && !empty($_GET['url'])){
@@ -39,7 +41,7 @@
       echo("category\t$id_categ\n");
   }
  }else{
-  echo "provide an argument like fecth_url_info?url=www.example.com";
+  echo "error\tprovide an argument like fecth_url_info?url=www.example.com";
  }
 
 


_______________________________________________
PHPLinker-commits mailing list
[email protected]
https://mail.gna.org/listinfo/phplinker-commits

Reply via email to