Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.8] No Permission Log
#21
(2021-03-03, 12:13 PM)Erikbe Wrote: hello,

I saw on github issues here https://github.com/dragonexpert/nopermission/issues/3 "prune the log" do you mean something like this ?

Yes I plan on something like that.  Might also have an option to prune by IP if a particular IP has a lot of entries.
Reply
#22
Hello,

When a logged in user triggers a "no permission" error this logs displays "guest#8" where 8 is the uid hmmmm that is a beauty error

if($logitem['uid'] == 0)
		{
			$logitem['username'] = "Guest";
			$table->construct_cell(htmlspecialchars_uni($logitem['username']),array("class" => "align_center"));
		}
		else if($logitem['uid'] > 0)
		{
			$info = get_user($logitem['uid']);
			$logitem['username'] = $info['username'];
			$table->construct_cell("<a target='_blank' href=\"{$mybb->settings['bburl']}/member.php?action=profile&uid={$logitem['uid']}\">{$logitem['username']}</a>", array("class" => "align_center", "width" => '60'));
		}
now the actual username will appaer .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)