Author: rhari
Date: Thu May 31 15:01:33 2007
New Revision: 488

URL: http://svn.gna.org/viewcvs/phplinker?rev=488&view=rev
Log:
#223
Prise en compte de login et email dans url.php et fetch_url_info.php

Modified:
    trunk/www/admin/api/fetch_url_info.php
    trunk/www/lib/url.php

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=488&r1=487&r2=488&view=diff
==============================================================================
--- trunk/www/admin/api/fetch_url_info.php (original)
+++ trunk/www/admin/api/fetch_url_info.php Thu May 31 15:01:33 2007
@@ -35,7 +35,7 @@
 if(isset($_GET['url']) && !empty($_GET['url'])){
   $Url=linker_get_url_info($_GET['url']);
   if($Url != false){
-    
printf("id\t%d\ndescription\t%s\n",$Url->id,utf8_decode($Url->description));
+    
printf("id\t%d\ndescription\t%s\nemail\t%s\nlogin\t%s\n",$Url->id,utf8_decode($Url->description),utf8_decode($Url->email),utf8_decode($Url->login));
     $categs=$Url->categories;
     foreach($categs as $id_categ)
       echo("category\t$id_categ\n");

Modified: trunk/www/lib/url.php
URL: 
http://svn.gna.org/viewcvs/phplinker/trunk/www/lib/url.php?rev=488&r1=487&r2=488&view=diff
==============================================================================
--- trunk/www/lib/url.php (original)
+++ trunk/www/lib/url.php Thu May 31 15:01:33 2007
@@ -112,7 +112,7 @@
   $url=strtolower(urldecode($url));
   $url=preg_replace('/^http:\/\//','',$url);
   $url=preg_replace('/\/$/','',$url);
-  $res = sql_query('die', __FILE__, __LINE__, __FUNCTION__,"SELECT id, url, 
description FROM url WHERE url RLIKE '$url' ORDER BY last_update DESC LIMIT 1 
");
+  $res = sql_query('die', __FILE__, __LINE__, __FUNCTION__,"SELECT url.id, 
url.url, url.description, url.id_webmaster, webmaster.login, webmaster.email 
FROM url,webmaster WHERE url RLIKE '$url' AND url.id_webmaster = webmaster.id 
ORDER BY last_update DESC LIMIT 1 ");
 
   if(mysql_num_rows($res)==1){
     $Url=mysql_fetch_object($res);
@@ -126,19 +126,7 @@
     return false;
 }
 
-function linker_update_url_stats($url,$hit,$date_update){
-  $url=strtolower(urldecode($url));
-  $url=preg_replace('/^http:\/\//','',$url);
-  $url=preg_replace('/\/$/','',$url);
-  return sql_query('die', __FILE__, __LINE__, __FUNCTION__,"UPDATE url SET 
hit=$hit, last_update='$date_update' WHERE url RLIKE '$url' ");
+function linker_update_url($id_url){
+
 }
-
-function check_url_date_update($date_update){
-  $date=split("-",$date_update);
-  if(count($date)==3){
-    return checkdate($date[1],$date[2],$date[0]);
-  }
-  return false;
-}
-
-?>
+?>


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

Reply via email to