Bored? Looking to kill some time? Want to chat with other SMF users? Join us in IRC chat or Discord
Started by tareko, September 21, 2021, 12:46:31 PM
if (isset($_GET['sa']['admin'])bla bla my action
if (isset($_GET['action']) && $_GET['action'] == 'admin')
Quote from: Kindred on September 21, 2021, 01:40:39 PMOh, well, that's easy.Add a write to the log at the start of the admin template -- probably about where the menu is called.you don't even need any conditionals, since the admin menu will only be loaded if the user has already passed all the security checks.or, are you trying to log even failed attempts?(you are aware that failed attempts to get into the admin are logged in the error log, right?)
Quote from: Arantor on September 21, 2021, 02:09:11 PMMenu is called at the start of every call to action=admin, and more often if you have one of those mods that drags the admin menu to every page.Better question, what are you hoping to achieve? If you have people trying to get in, this is logged; if you have admins you don't trust, they shouldn't be admins in the first place.
Quote from: Arantor on September 25, 2021, 11:40:18 AMWhy? What do you possibly think you will get from this? I suspect you think you're going to get a list of names, that you're probably going to ban, and if you don't get a list of names you're going to accuse any log of being wrong, because you're looking for a scapegoat for something.