8 define(
"TITLE_core_debug_fileloc", _(
"Global Variables"));
18 $this->Name =
"debug-fileloc";
19 $this->Title = TITLE_core_debug_fileloc;
20 $this->MenuList =
"Help::Debug::Global Variables";
22 parent::__construct();
33 if ($this->
State != PLUGIN_STATE_VALID) {
38 $this->
State = PLUGIN_STATE_READY;
40 if ($this->MenuList !==
"")
42 menu_insert(
"Main::" . $this->MenuList,$this->MenuOrder,$this->Name,$this->MenuTarget);
54 global $BINDIR, $LIBDIR, $LIBEXECDIR, $INCLUDEDIR, $LOGDIR,
55 $SYSCONFDIR, $PROJECTSTATEDIR, $PROJECT, $VERSION, $COMMIT_HASH;
56 $varray = array(
"BINDIR",
"LIBDIR",
"LIBEXECDIR",
"INCLUDEDIR",
"LOGDIR",
57 "SYSCONFDIR",
"PROJECTSTATEDIR",
"PROJECT",
"VERSION",
"COMMIT_HASH");
60 $text = _(
" Variable");
61 $var1 = _(
"memory_limit");
62 $val1 = ini_get(
'memory_limit');
63 $var2 = _(
"post_max_size");
64 $val2 = ini_get(
'post_max_size');
65 $var3 = _(
"upload_max_filesize");
66 $val3 = ini_get(
'upload_max_filesize');
68 $V .=
"<table cellpadding=3><tr><th align=left>$text</th><th> ";
69 foreach ($varray as $var)
71 $V .=
"<tr><td>$var</td><td> </td><td>" . $$var .
"</td></tr>";
73 $V .=
"<tr><td> </td><td> </td><td> </td></tr>";
74 $V .=
"<tr><td>$var1</td><td> </td><td>$val1</td></tr>";
75 $V .=
"<tr><td>$var2</td><td> </td><td>$val2</td></tr>";
76 $V .=
"<tr><td>$var3</td><td> </td><td>$val3</td></tr>";
84 $NewPlugin->Initialize();
This is the Plugin class. All plugins should:
Plugin to display global variables.
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
PostInitialize()
This is where we check for changes to the full-debug setting.
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.