19 define(
"TITLE_core_debug_fileloc", _(
"Global Variables"));
27 function __construct()
29 $this->Name =
"debug-fileloc";
30 $this->Title = TITLE_core_debug_fileloc;
31 $this->MenuList =
"Help::Debug::Global Variables";
33 parent::__construct();
44 if ($this->
State != PLUGIN_STATE_VALID) {
49 $this->
State = PLUGIN_STATE_READY;
51 if ($this->MenuList !==
"")
53 menu_insert(
"Main::" . $this->MenuList,$this->MenuOrder,$this->Name,$this->MenuTarget);
65 global $BINDIR, $LIBDIR, $LIBEXECDIR, $INCLUDEDIR, $LOGDIR,
66 $SYSCONFDIR, $PROJECTSTATEDIR, $PROJECT, $VERSION, $COMMIT_HASH;
67 $varray = array(
"BINDIR",
"LIBDIR",
"LIBEXECDIR",
"INCLUDEDIR",
"LOGDIR",
68 "SYSCONFDIR",
"PROJECTSTATEDIR",
"PROJECT",
"VERSION",
"COMMIT_HASH");
71 $text = _(
" Variable");
72 $var1 = _(
"memory_limit");
73 $val1 = ini_get(
'memory_limit');
74 $var2 = _(
"post_max_size");
75 $val2 = ini_get(
'post_max_size');
76 $var3 = _(
"upload_max_filesize");
77 $val3 = ini_get(
'upload_max_filesize');
79 $V .=
"<table cellpadding=3><tr><th align=left>$text</th><th> ";
80 foreach ($varray as $var)
82 $V .=
"<tr><td>$var</td><td> </td><td>" . $$var .
"</td></tr>";
84 $V .=
"<tr><td> </td><td> </td><td> </td></tr>";
85 $V .=
"<tr><td>$var1</td><td> </td><td>$val1</td></tr>";
86 $V .=
"<tr><td>$var2</td><td> </td><td>$val2</td></tr>";
87 $V .=
"<tr><td>$var3</td><td> </td><td>$val3</td></tr>";
95 $NewPlugin->Initialize();
#define PLUGIN_DB_ADMIN
Plugin requires admin level permission on DB.
PostInitialize()
This is where we check for changes to the full-debug setting.
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...