195dffc20
1 2 3 4 5 6 7 8
#include <time.h> void log_visit(char *query, char *ip) { time_t timer; timer=time(NULL); printf("%s - \"%s\" - %s", ip, query, asctime(localtime(&timer))); }