Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: pap_application.fonct.php,v 1.2 2005-02-28 11:12:03 jpm Exp $
|
24 |
// CVS : $Id: pap_application.fonct.php,v 1.3 2006-04-28 12:41:49 florian Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Biblibothèque de fonction sur les applications.
|
26 |
* Biblibothèque de fonction sur les applications.
|
27 |
*
|
27 |
*
|
28 |
* Liste des fonctions sur les applications.
|
28 |
* Liste des fonctions sur les applications.
|
29 |
*
|
29 |
*
|
Line 32... |
Line 32... |
32 |
//Auteur original :
|
32 |
//Auteur original :
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
34 |
//Autres auteurs :
|
34 |
//Autres auteurs :
|
35 |
*@author Aucun
|
35 |
*@author Aucun
|
36 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@copyright Tela-Botanica 2000-2004
|
37 |
*@version $Revision: 1.2 $ $Date: 2005-02-28 11:12:03 $
|
37 |
*@version $Revision: 1.3 $ $Date: 2006-04-28 12:41:49 $
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
*/
|
39 |
*/
|
Line 40... |
Line 40... |
40 |
|
40 |
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
Line 120... |
Line 120... |
120 |
$resultat = $db->query($requete);
|
120 |
$resultat = $db->query($requete);
|
121 |
$ligne_appli = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
121 |
$ligne_appli = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
122 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
122 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
Line 123... |
Line 123... |
123 |
|
123 |
|
- |
|
124 |
$chemin_appli = $ligne_appli->gap_chemin;
|
124 |
$chemin_appli = $ligne_appli->gap_chemin;
|
125 |
$morceaux='';
|
125 |
preg_match('/([\w_]+).php$/', $chemin_appli, $morceaux);
|
126 |
preg_match('/([\w_]+).php$/', $chemin_appli, $morceaux);
|
126 |
$nom_interface_admin = ucfirst($morceaux[1]).'_Admin';
|
127 |
$nom_interface_admin = ucfirst($morceaux[1]).'_Admin';
|
127 |
return $nom_interface_admin;
|
128 |
return $nom_interface_admin;
|
Line 143... |
Line 144... |
143 |
$resultat = $db->query($requete);
|
144 |
$resultat = $db->query($requete);
|
144 |
$ligne_appli = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
145 |
$ligne_appli = $resultat->fetchRow(DB_FETCHMODE_OBJECT);
|
145 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
146 |
(DB::isError($resultat)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $resultat->getMessage(), $requete)) : '';
|
Line 146... |
Line 147... |
146 |
|
147 |
|
- |
|
148 |
$chemin_appli = $ligne_appli->gap_chemin;
|
147 |
$chemin_appli = $ligne_appli->gap_chemin;
|
149 |
$morceaux='';
|
148 |
preg_match('/([\w_]+).php$/', $chemin_appli, $morceaux);
|
150 |
preg_match('/([\w_]+).php$/', $chemin_appli, $morceaux);
|
149 |
preg_replace('/_(\w)/', '_'.ucfirst(${1}),$morceaux[1]);
|
151 |
preg_replace('/_(\w)/', '_'.ucfirst(${1}),$morceaux[1]);
|
150 |
$nom_classe_appli = $morceaux[1];
|
152 |
$nom_classe_appli = $morceaux[1];
|
151 |
return $nom_classe_appli;
|
153 |
return $nom_classe_appli;
|
Line 201... |
Line 203... |
201 |
|
203 |
|
202 |
|
204 |
|
203 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
205 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
206 |
*
|
- |
|
207 |
* $Log: not supported by cvs2svn $
|
- |
|
208 |
* Revision 1.2 2005/02/28 11:12:03 jpm
|
204 |
*
|
209 |
* Modification des auteurs.
|
205 |
* $Log: not supported by cvs2svn $
|
210 |
*
|
206 |
* Revision 1.1 2004/11/09 17:54:50 jpm
|
211 |
* Revision 1.1 2004/11/09 17:54:50 jpm
|
207 |
* Ajout de fonction permettant de manipuler les informations liées aux applications.
|
212 |
* Ajout de fonction permettant de manipuler les informations liées aux applications.
|
208 |
*
|
213 |
*
|