1st commit for syncing own Jlog developments with master
This commit is contained in:
parent
2ae67af572
commit
517c58344d
54 changed files with 1784 additions and 1062 deletions
|
@ -12,18 +12,19 @@
|
|||
$handle = "";
|
||||
$file = "";
|
||||
$plugindirectory = JLOG_BASEPATH.DIRECTORY_SEPARATOR.'plugins'.DIRECTORY_SEPARATOR;
|
||||
$availablePlugins = '';
|
||||
|
||||
if(is_dir($plugindirectory)) {
|
||||
$handle = opendir($plugindirectory);
|
||||
while( false !== ( $file = readdir ($handle) ) ) {
|
||||
if(substr($file, -10) === '.jplug.php') {
|
||||
$pluginName = substr($file, 0, -10);
|
||||
$pluginName = htmlspecialchars(substr($file, 0, -10));
|
||||
$availablePlugins .= " <li><a href='".add_session_id_to_url("?jplug=".$pluginName)."'>".$pluginName."</a></li>\n";
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
if(!empty($availablePlugins)) {
|
||||
if(strlen($availablePlugins) > 0) {
|
||||
$availablePlugins = " <ul>\n".$availablePlugins." </ul>\n";
|
||||
$title = $l['admin']['plugins_headline'];
|
||||
}
|
||||
|
@ -50,4 +51,3 @@
|
|||
|
||||
require(JLOG_BASEPATH.'scripts'.DIRECTORY_SEPARATOR.'do_template.php');
|
||||
echo $body;
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue