All pastes #518520 Raw Edit

asdasd

public php v1 · immutable
#518520 ·published 2007-05-29 10:30 UTC
rendered paste body
<?php/*||||||||||||||||||||VERSION 1.0||||||||||||||||||||INSTALLFirst of all you need to create the file,in this case logg.db-logg and chmod the file.Then use inclide('logger.php on your index.php file');Settings1=on 0=off*/$loggip=1;$loggurl=1;$loggdate=1;$loggalt=0;//you can also use ip here$servername="www.game-studio.net";//if you want to logg something else just enabled loggalt 1 and set what you want to logg$alt="ID: ".$_SESSION['id'];//here you can set to txt or whatevery you want =)$type="db-log";$file="logg.".$type;//////////////////////connecting to file ()$file = fopen($file, "a+");////////////////////($loggip == 1) ? $ip=$_SERVER['REMOTE_ADDR'] : $ip="Ip Not logged";($loggurl == 1) ? $url=$servername."/?".$_SERVER['QUERY_STRING'] : $url="Url Not logged";($loggdate == 1) ? $time=date("g:i:s A") : $time="Time Not logged";($loggalt == 1) ? $altlogg=$alt : $altlogg="No alt logged";///////////////////////this is logg line$loggline=$time." :: ".$ip." :: ".$url." :: ".$altlogg."\n";///////////////////////insert loggfwrite($file, $loggline);//done////////////////////?>