Changeset 155
- Timestamp:
- 05/04/06 00:12:40 (3 years ago)
- Files:
-
- trunk/lib/jelix-modules/auth/plugins/auth/auth.plugin.ini.php.dist (modified) (1 diff)
- trunk/lib/jelix/auth/jAuth.class.php (modified) (1 diff)
- trunk/lib/jelix/auth/jAuthUser.class.php (modified) (1 diff)
- trunk/lib/jelix/core/jCoordinator.class.php (modified) (2 diffs)
- trunk/lib/jelix/dao/jDAOGenerator.class.php (modified) (1 diff)
- trunk/Makefile (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix-modules/auth/plugins/auth/auth.plugin.ini.php.dist
r98 r155 51 51 52 52 ; param�es pour le driver db 53 [ db]53 [Db] 54 54 dao = auth~jelixuser 55 55 trunk/lib/jelix/auth/jAuth.class.php
r142 r155 164 164 public static function logout(){ 165 165 jEvent::notify ('AuthLogout', array('login'=>$_SESSION['JELIX_USER']->login)); 166 $_SESSION['JELIX_USER'] = new j User();166 $_SESSION['JELIX_USER'] = new jAuthUser(); 167 167 } 168 168 trunk/lib/jelix/auth/jAuthUser.class.php
r152 r155 6 6 * @author Laurent Jouanneau 7 7 * @contributor Loic Mathaud 8 * @copyright 200 1-2005 CopixTeam, 2005-2006 Laurent Jouanneau8 * @copyright 2006 Laurent Jouanneau 9 9 * @licence http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public Licence, see LICENCE file 10 *11 * Classe orginellement issue d'une branche experimentale du12 * framework Copix 2.3dev. http://www.copix.org (jAuth)13 * Une partie du code est sous Copyright 2001-2005 CopixTeam (licence LGPL)14 * Auteur initial : Laurent Jouanneau15 * Adapt�pour Jelix par Laurent Jouanneau16 10 */ 17 11 18 12 // pas de m�ode pour cet objet, car le user peut ne pas etre 19 // une instance de j User, tout d�nd du driver..13 // une instance de jAuthUser, tout d�nd du driver.. 20 14 class jAuthUser { 21 15 public $login = ''; trunk/lib/jelix/core/jCoordinator.class.php
r152 r155 93 93 $conf=$name.'.plugin.ini.php'; 94 94 if(file_exists(JELIX_APP_CONFIG_PATH.$conf)){ 95 $conf = parse_ini_file(JELIX_APP_CONFIG_PATH.$conf );95 $conf = parse_ini_file(JELIX_APP_CONFIG_PATH.$conf,true); 96 96 }else{ 97 97 $conf = array(); … … 160 160 161 161 $pluginparams = array(); 162 if(isset($ctrl->plugin sParam['*'])){163 $pluginparams = $ctrl->plugin sParam['*'];164 } 165 166 if(isset($ctrl->plugin sParam[$this->action->method])){167 $pluginparams = array_merge($pluginparams, $ctrl->plugin sParam[$this->action->method]);162 if(isset($ctrl->pluginParams['*'])){ 163 $pluginparams = $ctrl->pluginParams['*']; 164 } 165 166 if(isset($ctrl->pluginParams[$this->action->method])){ 167 $pluginparams = array_merge($pluginparams, $ctrl->pluginParams[$this->action->method]); 168 168 } 169 169 trunk/lib/jelix/dao/jDAOGenerator.class.php
r149 r155 319 319 case 'count': 320 320 $src[] = ' $dbw = new jDbWidget ($this->_conn);'; 321 $src[] = ' $res = $dbw->fetchFirst ($query , \''.$this->_compiler->getDAOId().'\');';321 $src[] = ' $res = $dbw->fetchFirst ($query);'; 322 322 $src[] = ' return $res->c;'; 323 323 break; 324 324 case 'selectfirst': 325 325 $src[] = ' $dbw = new jDbWidget ($this->_conn);'; 326 $src[] = ' return $dbw->fetchFirst ($query, \''.$this->_compiler->getDAOId().'\');';326 $src[] = ' return $dbw->fetchFirstInto ($query, \''.$this->_DAORecordClassName.'\');'; 327 327 break; 328 328 case 'select': trunk/Makefile
r146 r155 10 10 endif 11 11 12 ifndef JBT_VERSION 13 JBT_VERSION = $(shell cat build/VERSION) 14 endif 15 16 SVN_REVISION = $(shell svn info | grep -E "Revision|R�sion" -m 1 | cut -d ":" -f 2 | cut -d " " -f 2) 17 12 18 ifeq ($(LIB_VERSION),SVN) 13 SVN_REVISION = $(shell svn info | grep -E "Revision|R�sion" -m 1 | cut -d ":" -f 2 | cut -d " " -f 2)14 19 LIB_VERSION=SVN-$(SVN_REVISION) 15 20 endif 16 21 17 22 ifeq ($(JTPL_VERSION),SVN) 18 SVN_REVISION = $(shell svn info | grep -E "Revision|R�sion" -m 1 | cut -d ":" -f 2 | cut -d " " -f 2)19 23 JTPL_VERSION=SVN-$(SVN_REVISION) 24 endif 25 26 ifeq ($(JBT_VERSION),SVN) 27 JBT_VERSION=SVN-$(SVN_REVISION) 20 28 endif 21 29 … … 30 38 DISTHACKER="$(DEV)" 31 39 DISTJTPL="$(DIST)/jtpl" 40 DEVJTPL="$(DEV)" 41 DISTJBT="$(DIST)/jbuildtools" 32 42 33 43 default: … … 36 46 @echo " dev-all dev-jelix dev-jelix-lib dev-myapp dev-testapp" 37 47 @echo " jtpl jtpl-dist" 48 @echo " jbt-dist" 38 49 @echo "param�es facultatifs (valeurs actuelles) :" 39 50 @echo " DIST : repertoire cible pour les distributions (" $(DIST) ")" … … 46 57 @echo " distribution jtpl : " $(DISTJTPL) 47 58 48 dist-all: dist-jelix dist-testapp dist-myapp jtpl-dist 59 dist-all: dist-jelix dist-testapp dist-myapp jtpl-dist jbt-dist 49 60 50 61 dev-all: dev-jelix dev-myapp dev-testapp jtpl 51 62 52 dist-jelix: common 53 if [ ! -d "$(DISTJELIX)" ] ; then mkdir $(DISTJELIX) ; fi 63 dist-jelix: common-dist 54 64 export LIB_VERSION=$(LIB_VERSION) \ 55 65 && $(PHP) build/mkdist.php build/manifests/jelix-lib.mn . $(DISTJELIX) \ … … 58 68 tar czf $(DIST)/jelix-lib-$(LIB_VERSION).tar.gz -C $(DISTJELIX) lib/ temp/ 59 69 60 dist-testapp: common 61 if [ ! -d "$(DISTJELIX)" ] ; then mkdir $(DISTJELIX) ; fi 70 dist-testapp: common-dist 62 71 $(PHP) build/mkdist.php build/manifests/testapp.mn . $(DISTJELIX) 63 72 tar czf $(DIST)/testapp-$(LIB_VERSION).tar.gz -C $(DISTJELIX) testapp/ temp/testapp/ 64 73 65 dist-myapp: common 66 if [ ! -d "$(DISTJELIX)" ] ; then mkdir $(DISTJELIX) ; fi 74 dist-myapp: common-dist 67 75 $(PHP) build/mkdist.php build/manifests/myapp.mn . $(DISTJELIX) 68 76 tar czf $(DIST)/myapp-$(LIB_VERSION).tar.gz -C $(DISTJELIX) myapp/ temp/myapp/ 69 77 70 dev-jelix: common 78 common-dist: 79 if [ ! -d "$(DIST)" ] ; then mkdir $(DIST) ; fi 80 if [ ! -d "$(DISTJELIX)" ] ; then mkdir $(DISTJELIX) ; fi 81 82 dev-jelix: 71 83 if [ ! -d "$(DISTHACKER)" ] ; then mkdir $(DISTHACKER) ; fi 72 84 export LIB_VERSION=$(LIB_VERSION) \ … … 75 87 && echo "$(LIB_VERSION)" > "$(DISTHACKER)/lib/jelix/VERSION" 76 88 77 dev-jelix-lib: common89 dev-jelix-lib: 78 90 if [ ! -d "$(DISTHACKER)" ] ; then mkdir $(DISTHACKER) ; fi 79 91 export LIB_VERSION=$(LIB_VERSION) \ … … 81 93 && echo "$(LIB_VERSION)" > "$(DISTHACKER)/lib/jelix/VERSION" 82 94 83 dev-testapp: common95 dev-testapp: 84 96 if [ ! -d "$(DISTHACKER)" ] ; then mkdir $(DISTHACKER) ; fi 85 97 $(PHP) build/mkdist.php build/manifests/testapp.mn . $(DISTHACKER) 86 98 87 dev-myapp: common99 dev-myapp: 88 100 if [ ! -d "$(DISTHACKER)" ] ; then mkdir $(DISTHACKER) ; fi 89 101 $(PHP) build/mkdist.php build/manifests/myapp.mn . $(DISTHACKER) 90 102 91 jtpl: common 103 jtpl: 104 if [ ! -d "$(DEVJTPL)" ] ; then mkdir $(DEVJTPL) ; fi 105 export JTPL_STANDALONE=1 \ 106 && $(PHP) build/mkdist.php build/manifests/jtpl-standalone.mn . $(DEVJTPL) \ 107 && echo "$(JTPL_VERSION)" > "$(DEVJTPL)/VERSION" 108 109 jtpl-dist: 92 110 if [ ! -d "$(DISTJTPL)" ] ; then mkdir $(DISTJTPL) ; fi 93 111 export JTPL_STANDALONE=1 \ 94 112 && $(PHP) build/mkdist.php build/manifests/jtpl-standalone.mn . $(DISTJTPL) \ 95 113 && echo "$(JTPL_VERSION)" > "$(DISTJTPL)/VERSION" 96 if [ ! -d "$(DISTJTPL)/temp" ] ; then mkdir $(DISTJTPL)/temp ; fi97 if [ ! -d "$(DISTJTPL)/templates" ] ; then mkdir $(DISTJTPL)/templates ; fi98 99 jtpl-dist: jtpl100 114 tar czf $(DIST)/jtpl-$(JTPL_VERSION).tar.gz -C $(DIST) jtpl/ 101 115 116 jbt-dist: 117 if [ ! -d "$(DISTJBT)" ] ; then mkdir $(DISTJBT) ; fi 118 $(PHP) build/mkdist.php build/manifests/jbuildtools.mn build/ $(DISTJBT) \ 119 && echo "$(JBT_VERSION)" > "$(DISTJBT)/VERSION" 120 tar czf $(DIST)/jbuildtools-$(JBT_VERSION).tar.gz -C $(DIST) jbuildtools/ 102 121 103 common:104 if [ ! -d "$(DIST)" ] ; then mkdir $(DIST) ; fi105 122
