Просмотр файла foot.php
<div class="foot"><div class="copy">© 2010 <? include "data/config.txt"; $copy_v = explode("|","$copy"); echo $copy_v[0]; ?> </div> </div> </body> </html> <? $ref = $_SERVER['HTTP_REFERER']; if(isset($ref)) { $fpfoot = fopen("data/ref.txt","a"); fputs($fpfoot, "$ref<BR>"); fclose($fpfoot); } //--------- $ipadr = $_SERVER['REMOTE_ADDR']; if(isset($ipadr)) { $fpip = fopen("data/ip.txt","a"); fputs($fpip,"$ipadr<BR>"); fclose($fpip); } ?>