19 define(
"TITLE_debug_user", _(
"Debug User"));
27 function __construct()
29 $this->Name =
"debug_user";
30 $this->Title = TITLE_debug_user;
31 $this->MenuList =
"Help::Debug::Debug User";
33 parent::__construct();
44 $sql =
"SELECT * FROM users WHERE user_pk = '" . @$_SESSION[
'UserId'] .
"';";
45 $result = pg_query($PG_CONN, $sql);
47 $R = pg_fetch_assoc($result);
48 pg_free_result($result);
49 $text = _(
"User Information");
50 $V .=
"<H2>$text</H2>\n";
51 $V .=
"<table border=1>\n";
54 $V .=
"<tr><th>$text</th><th>$text1</th></tr>\n";
55 foreach($R as $Key => $Val)
60 $V .=
"<tr><td>" . htmlentities($Key) .
"</td><td>" . htmlentities($Val) .
"</td></tr>\n";
68 $NewPlugin->Initialize();
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
Plugin to print debug information about current user.
Output()
This function is called when user output is requested. This function is responsible for content...
This is the Plugin class. All plugins should:
foreach($Options as $Option=> $OptVal) if(0==$reference_flag &&0==$nomos_flag) $PG_CONN
DBCheckResult($result, $sql, $filenm, $lineno)
Check the postgres result for unexpected errors. If found, treat them as fatal.