modification du module phplist
TODO: créé les pages de blog (sommaire,news) permettant d'afficher les fichiers md
This commit is contained in:
parent
25c69bdf30
commit
a2287a8610
|
@ -40,12 +40,12 @@ class module
|
|||
}
|
||||
break;
|
||||
case 4:
|
||||
print "Quel est la version de PhpList à ajouter (default : release-3.5.2) ? ";
|
||||
print "Quel est la version de PhpList à ajouter (default : 3.5.2) ? ";
|
||||
$version = trim(fgets(STDIN));
|
||||
if($version !== '' && preg_match('#(.)\.(.)\.(.)#',$version)){
|
||||
module::addPhplist($version);
|
||||
}else{
|
||||
module::addPhplist('release-3.5.2');
|
||||
module::addPhplist('3.5.2');
|
||||
}
|
||||
break;
|
||||
case 5:
|
||||
|
@ -259,19 +259,20 @@ class module
|
|||
print $git_view_retval;
|
||||
}
|
||||
|
||||
static public function addPhplist($version = 'release-3.5.2'){
|
||||
static public function addPhplist($version = '3.5.2'){
|
||||
|
||||
$git_clone = shell_exec('cd '.MODULES_PATH.' && git clone https://github.com/phpList/phplist3.git phplist');
|
||||
/*$git_clone = shell_exec('cd '.MODULES_PATH.' && git clone https://github.com/phpList/phplist3.git phplist');
|
||||
print $git_clone;
|
||||
$git_fetch = shell_exec('cd '.MODULES_PATH.'/phplist && git fetch --all --tags');
|
||||
print $git_fetch;
|
||||
$git_checkout = shell_exec('cd '.MODULES_PATH.'/phplist && git checkout '.$version);
|
||||
print $git_checkout;
|
||||
$composer_update = shell_exec('cd '.MODULES_PATH.'/phplist && composer update');
|
||||
print $composer_update;
|
||||
print $composer_update;*/
|
||||
$wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && wget -O phplist-'.$version.'.tar.gz https://sourceforge.net/projects/phplist/files/phplist/'.$version.'/phplist-'.$version.'.zip/download');
|
||||
//$wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && wget -O phplist-'.$version.'.tar.gz https://sourceforge.net/projects/phplist/files/phplist-development/'.$version.'/phplist-'.$version.'.tgz/download');
|
||||
//$wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && tar -xvf phplist-'.$version.'.tar.gz');
|
||||
//$wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && mv phplist-'.$version.' phplist');
|
||||
$wget_sourceforge = shell_exec('cd '.MODULES_PATH.' && tar -xvf phplist-'.$version.'.tar.gz');
|
||||
$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;
|
||||
$git_chmod = shell_exec('sudo chmod 775 '.MODULES_PATH.'/phplist -R');
|
||||
|
|
Loading…
Reference in a new issue