From: Pablo R. R. <pr...@cl...> - 2001-01-13 01:25:39
|
Someone told me that having the full URL in the RecentChanges is a thing he wouldn't like. He is very concerned in security and preferred not to have his own IP published every time. What can be done: Store as you do now the IP in the database don't change this But only show the first IP in the list like is done in: http://fox.wikis.com/wc.dll?Wiki~RecentChanges i.e: 192.168.77.245 -> 192.168.77.xxx That's easy to do, but I ask your oppinion. Can this be good? I checked the latest CVS and this can be done in savepage.php, I have done some more changes there for seeing the time of add/change lines 53-59 // add the updated page's name to the array if($isnewpage) { $newpage[$k++] = "* [$pagename] (new) ..... $remoteuser\r"; } else { $diffurl = "phpwiki:?diff=" . rawurlencode($pagename); $newpage[$k++] = "* [$pagename] ([diff|$diffurl]) ..... $remoteuser\r"; } changed to: $showtime = strftime("%r",$now); $remoteusercut = preg_replace("/(\d+)\.(\d+)\.(\d+)\.(\d+)/","\\1.\\2.\\3.xxx",$remoteuser); if($isnewpage) { $newpage[$k++] = "* [$pagename] ('''new''') ..... ($remoteusercut) ..... $showtime\r"; } else { $diffurl = "phpwiki:?diff=" . rawurlencode($pagename); $newpage[$k++] = "* [$pagename] ([diff|$diffurl]) ..... ($remoteusercut) ..... $showtime\r"; } and in pageinfo.php lines 49-50: } elseif (($key == 'lastmodified') || ($key == 'created')) changed to: } elseif ($key == 'author') $val = preg_replace("/(\d+)\.(\d+)\.(\d+)\.(\d+)/","\\1.\\2.\\3.xxx",$val); elseif (($key == 'lastmodified') || ($key == 'created')) Pablo Roca (pr...@cl...) La Coruna - Espana myPHPortal Team http://sourceforge.net/projects/myphportal |