}
/**
- * GetInstallDir() - get installation dir for the plugin.
+ * getInstallDir() - get installation dir for the plugin.
*
* @return string the directory where the plugin should be linked.
*/
- function GetInstallDir() {
+ function getInstallDir() {
if (isset($this->installdir) && $this->installdir)
return $this->installdir;
else
require_once($filename);
$p_class = $p_name.'Plugin';
register_plugin (new $p_class);
- } else { //if we didn't found it in common/ it may be an old plugin that has it's files in include/
+ } else { //if we didn't find it in common/ it may be an old plugin that has its files in include/
$filename = $include_path . '/' . $p_name . "/include/".$p_name."-init.php" ;
if (file_exists ($filename)) {
require_once ($filename);
break ;
}
} elseif ($hookname == "role_has_permission") {
+ $value = $params['value'];
switch ($params['section']) {
case 'plugin_mediawiki_read':
switch ($params['action']) {
</tr>';
}
-echo $HTML->boxBottom();
+echo $GLOBALS['HTML']->listTableBottom();
site_project_footer(array());
require_once $gfcommon.'include/pre.php';
require_once $gfcommon.'include/User.class.php';
-$expl_pathinfo = explode('/', getStringFromServer('REQUEST_URI'));
+$normalized_urlprefix = normalized_urlprefix();
+$pathinfo = substr_replace(getStringFromServer('REQUEST_URI'), '', 0, strlen($normalized_urlprefix)-1);
+$expl_pathinfo = explode('/', $pathinfo);
if (!$expl_pathinfo[2]) {
exit_error(_('No User Name Provided'));