Author: gassla
Date: Thu May 31 15:38:18 2007
New Revision: 489
URL: http://svn.gna.org/viewcvs/phplinker?rev=489&view=rev
Log:
typo
Modified:
trunk/www/lib/url.php
Modified: trunk/www/lib/url.php
URL:
http://svn.gna.org/viewcvs/phplinker/trunk/www/lib/url.php?rev=489&r1=488&r2=489&view=diff
==============================================================================
--- trunk/www/lib/url.php (original)
+++ trunk/www/lib/url.php Thu May 31 15:38:18 2007
@@ -126,7 +126,19 @@
return false;
}
-function linker_update_url($id_url){
+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 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