From da7d08ea3d14003c09d00676ae483f1d3b680b17 Mon Sep 17 00:00:00 2001 From: Emmanuel ROY Date: Tue, 14 Apr 2020 03:52:09 +0200 Subject: [PATCH] modification du module phplist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md --- console/command/module.class.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/console/command/module.class.php b/console/command/module.class.php index af233d5..375f945 100644 --- a/console/command/module.class.php +++ b/console/command/module.class.php @@ -277,9 +277,12 @@ class module $wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && mv phplist-'.$version.' phplist'); $git_ln_1 = shell_exec('cd '.PUBLIC_PATH.' && ln -s ../application/modules/phplist/public_html/lists phplist'); print $git_ln_1; + $upload_images = shell_exec('cd '.PUBLIC_PATH.' && mkdir uploadimages'); + print $upload_images; $git_chmod = shell_exec('sudo chmod 775 '.MODULES_PATH.'/phplist -R'); - print $git_chmod; + $git_chmod = shell_exec('sudo chmod 775 '.PUBLIC_PATH.'/uploadimages'); $git_chown = shell_exec('sudo chown acksop:www-data '.MODULES_PATH.'/phplist -R'); + $git_chown = shell_exec('sudo chown acksop:www-data '.PUBLIC_PATH.'/uploadimages'); print $git_chown; $git_controlleur = shell_exec('cp '.CONSOLE_PATH.'/skel/module.php '.CONTROLLERS_PATH.'/phplist.php'); $controlleur = file_get_contents(CONTROLLERS_PATH.'/phplist.php'); @@ -346,6 +349,8 @@ class module print $git_clone_retval; $git_ln_1 = system('rm -Rf '.PUBLIC_PATH.'/phplist', $git_ln_1_retval); print $git_ln_1_retval; + $git_ln_1 = system('rm -Rf '.PUBLIC_PATH.'/uploadimages', $git_ln_1_retval); + print $git_ln_1_retval; $git_controlleur = system('rm -f '.CONTROLLERS_PATH.'/phplist.php', $git_controlleur_retval); print $git_controlleur_retval; $git_modele = system('rm -f '.MODELS_PATH.'/phplist.model', $git_modele_retval);