Copyright in modulebuilder

This commit is contained in:
Laurent Destailleur 2017-06-27 20:14:48 +02:00
parent 7e6e0ee3a4
commit 22fabe5a3a
15 changed files with 53 additions and 63 deletions

View File

@ -51,6 +51,7 @@ $dirins = $tmp[0];
$FILEFLAG='modulebuilder.txt'; $FILEFLAG='modulebuilder.txt';
$now=dol_now();
/* /*
* Actions * Actions
@ -106,7 +107,7 @@ if ($dirins && $action == 'initmodule' && $modulename)
// Edit PHP files // Edit PHP files
if (! $error) if (! $error)
{ {
$listofphpfilestoedit = dol_dir_list($destdir, 'files', 1, '\.(php|MD|js)$', '', 'fullname', SORT_ASC, 0, 1); $listofphpfilestoedit = dol_dir_list($destdir, 'files', 1, '\.(php|MD|js|sql|txt|xml|lang)$', '', 'fullname', SORT_ASC, 0, 1);
foreach($listofphpfilestoedit as $phpfileval) foreach($listofphpfilestoedit as $phpfileval)
{ {
//var_dump($phpfileval['fullname']); //var_dump($phpfileval['fullname']);
@ -116,7 +117,8 @@ if ($dirins && $action == 'initmodule' && $modulename)
'MYMODULE'=>strtoupper($modulename), 'MYMODULE'=>strtoupper($modulename),
'My module'=>$modulename, 'My module'=>$modulename,
'htdocs/modulebuilder/template/'=>'', 'htdocs/modulebuilder/template/'=>'',
); '---Put here your own copyright and developer email---'=>dol_print_date($now,'%Y').' '.$user->getFullName($langs).($user->email?' <'.$user->email.'>':'')
);
$result=dolReplaceInFile($phpfileval['fullname'], $arrayreplacement); $result=dolReplaceInFile($phpfileval['fullname'], $arrayreplacement);

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,6 @@
<?php <?php
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr> /* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
* Copyright (C) ---Put here your own copyright and developer email---
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,7 +1,6 @@
<?php <?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> /* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) 2005-2016 Regis Houssin <regis.houssin@capnetworks.com>
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,4 @@
# <one line to give the program's name and a brief idea of what it does.> # Copyright (C) ---Put here your own copyright and developer email---
# Copyright (C) <year> <name of author>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,4 @@
# <one line to give the program's name and a brief idea of what it does.> # Copyright (C) ---Put here your own copyright and developer email---
# Copyright (C) <year> <name of author>
# #
# This program is free software: you can redistribute it and/or modify # This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by # it under the terms of the GNU General Public License as published by

View File

@ -1,6 +1,5 @@
<?php <?php
/* <one line to give the program's name and a brief idea of what it does.> /* Copyright (C) ---Put here your own copyright and developer email---
* Copyright (C) <year> <name of author>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,4 @@
-- <one line to give the program's name and a brief idea of what it does.> -- Copyright (C) ---Put here your own copyright and developer email---
-- Copyright (C) <year> <name of author>
-- --
-- This program is free software: you can redistribute it and/or modify -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by -- it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,4 @@
-- <one line to give the program's name and a brief idea of what it does.> -- Copyright (C) ---Put here your own copyright and developer email---
-- Copyright (C) <year> <name of author>
-- --
-- This program is free software: you can redistribute it and/or modify -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by -- it under the terms of the GNU General Public License as published by

View File

@ -1,5 +1,4 @@
-- <one line to give the program's name and a brief idea of what it does.> -- Copyright (C) ---Put here your own copyright and developer email---
-- Copyright (C) <year> <name of author>
-- --
-- This program is free software: you can redistribute it and/or modify -- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by -- it under the terms of the GNU General Public License as published by