X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fusers_db.inc;h=767dad30339d1363a6d1b2e1d3797683b457c036;hb=81dd5f392e49a94960c250053e375ed135ac9bad;hp=267029c96f2c2bd685fbbd60f6b5bd5d316c82de;hpb=f9f2b12c58b2eccdb515ef5a96688df8085858a0;p=fa-stable.git diff --git a/admin/db/users_db.inc b/admin/db/users_db.inc index 267029c9..767dad30 100644 --- a/admin/db/users_db.inc +++ b/admin/db/users_db.inc @@ -197,7 +197,7 @@ function show_users_online() } // Add user to database - db_query("INSERT INTO ".TB_PREF."useronline (timestamp, ip, file) VALUES ('". $timestamp ."','". $ip ."','". $_SERVER['PHP_SELF'] ."')"); + db_query("INSERT INTO ".TB_PREF."useronline (timestamp, ip, file) VALUES ('". $timestamp ."',". db_escape($ip) .",". db_escape($_SERVER['PHP_SELF']) .")"); //Remove users that were not online within $timeoutseconds. db_query("DELETE FROM ".TB_PREF."useronline WHERE timestamp<". $timeout); @@ -210,4 +210,4 @@ function show_users_online() return "$users ".($users == 1 ? _("user online") : _("users online")); } -?> \ No newline at end of file +?>