modification du module phplist

TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
This commit is contained in:
Emmanuel ROY 2020-04-14 02:46:31 +02:00
commit 25c69bdf30
4 changed files with 261 additions and 35 deletions

View file

@ -64,6 +64,21 @@ class Modular{
$this->subapp_dir = DIRECTORY_SEPARATOR . 'public_html' . DIRECTORY_SEPARATOR . 'lists';
}
break;
case "wanewsletter":
$this->subfile = "install.php";
if(isset($options[0])) {
switch ($options[0]) {
case 'admin':
$this->subapp_dir = DIRECTORY_SEPARATOR . $options[0] ;
$this->subfile = "index.php";
break;
default:
$this->subapp_dir = DIRECTORY_SEPARATOR . $options[0] ;
}
}
break;
case "phpmynewsletter":
break;
}
}
@ -85,6 +100,12 @@ class Modular{
case "phplist":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . "index.php";
break;
case "wanewsletter":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
break;
case "phpmynewsletter":
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
break;
}
}
}