8 define(
"TITLE_debug_user", _(
"Debug User"));
18 $this->Name =
"debug_user";
19 $this->Title = TITLE_debug_user;
20 $this->MenuList =
"Help::Debug::Debug User";
22 parent::__construct();
33 $sql =
"SELECT * FROM users WHERE user_pk = '" . @$_SESSION[
'UserId'] .
"';";
36 $R = pg_fetch_assoc($result);
37 pg_free_result($result);
38 $text = _(
"User Information");
39 $V .=
"<H2>$text</H2>\n";
40 $V .=
"<table border=1>\n";
43 $V .=
"<tr><th>$text</th><th>$text1</th></tr>\n";
44 foreach($R as $Key => $Val)
49 $V .=
"<tr><td>" . htmlentities($Key) .
"</td><td>" . htmlentities($Val) .
"</td></tr>\n";
57 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Plugin to print debug information about current user.
Output()
This function is called when user output is requested. This function is responsible for content....
__construct()
base constructor. Most plugins will just use this
DBCheckResult($result, $sql, $filenm, $lineno)
Check the postgres result for unexpected errors. If found, treat them as fatal.
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN