Changeset 864
- Timestamp:
- 04/06/08 20:35:35 (8 months ago)
- Files:
-
- trunk/build/manifests/jelix-dev.mn (modified) (1 diff)
- trunk/build/manifests/jelix-dev.mn (modified) (1 diff)
- trunk/build/manifests/jelix-dev.mn (modified) (1 diff)
- trunk/build/manifests/jelix-lib.mn (modified) (7 diffs)
- trunk/build/manifests/jelix-lib.mn (modified) (7 diffs)
- trunk/build/manifests/jelix-lib.mn (modified) (7 diffs)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/build/manifests/testapp.mn (modified) (1 diff)
- trunk/lib/jelix-modules/jacl2db (added)
- trunk/lib/jelix-modules/jacl2db (added)
- trunk/lib/jelix-modules/jacl2db (added)
- trunk/lib/jelix-modules/jacl2db/classes (added)
- trunk/lib/jelix-modules/jacl2db/classes (added)
- trunk/lib/jelix-modules/jacl2db/classes (added)
- trunk/lib/jelix-modules/jacl2db/classes/jacl2db.listener.php (added)
- trunk/lib/jelix-modules/jacl2db/classes/jacl2db.listener.php (added)
- trunk/lib/jelix-modules/jacl2db/classes/jacl2db.listener.php (added)
- trunk/lib/jelix-modules/jacl2db/events.xml (added)
- trunk/lib/jelix-modules/jacl2db/events.xml (added)
- trunk/lib/jelix-modules/jacl2db/events.xml (added)
- trunk/lib/jelix-modules/jacl2db/module.xml (added)
- trunk/lib/jelix-modules/jacl2db/module.xml (added)
- trunk/lib/jelix-modules/jacl2db/module.xml (added)
- trunk/lib/jelix-scripts/commands/acl2group.cmd.php (added)
- trunk/lib/jelix-scripts/commands/acl2group.cmd.php (added)
- trunk/lib/jelix-scripts/commands/acl2group.cmd.php (added)
- trunk/lib/jelix-scripts/commands/acl2right.cmd.php (added)
- trunk/lib/jelix-scripts/commands/acl2right.cmd.php (added)
- trunk/lib/jelix-scripts/commands/acl2right.cmd.php (added)
- trunk/lib/jelix/acl/jAcl2.class.php (added)
- trunk/lib/jelix/acl/jAcl2.class.php (added)
- trunk/lib/jelix/acl/jAcl2.class.php (added)
- trunk/lib/jelix/acl/jAcl2Db.class.php (added)
- trunk/lib/jelix/acl/jAcl2Db.class.php (added)
- trunk/lib/jelix/acl/jAcl2Db.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbManager.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbManager.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbManager.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbUserGroup.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbUserGroup.class.php (added)
- trunk/lib/jelix/acl/jAcl2DbUserGroup.class.php (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2group.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2group.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2group.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2groupsofuser.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2groupsofuser.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2groupsofuser.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2rights.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2rights.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2rights.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2subject.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2subject.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2subject.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2usergroup.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2usergroup.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/daos/jacl2usergroup.dao.xml (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.pgsql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.pgsql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.data.pgsql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.mysql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.pgsql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.pgsql.sql (added)
- trunk/lib/jelix/core-modules/jelix/install/sql/install_jacl2.schema.pgsql.sql (added)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (1 diff)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (1 diff)
- trunk/lib/jelix/core/defaultconfig.ini.php (modified) (1 diff)
- trunk/lib/jelix/plugins/acl2 (added)
- trunk/lib/jelix/plugins/acl2 (added)
- trunk/lib/jelix/plugins/acl2 (added)
- trunk/lib/jelix/plugins/acl2/db (added)
- trunk/lib/jelix/plugins/acl2/db (added)
- trunk/lib/jelix/plugins/acl2/db (added)
- trunk/lib/jelix/plugins/acl2/db/db.acl2.php (added)
- trunk/lib/jelix/plugins/acl2/db/db.acl2.php (added)
- trunk/lib/jelix/plugins/acl2/db/db.acl2.php (added)
- trunk/lib/jelix/plugins/coord/jacl2 (added)
- trunk/lib/jelix/plugins/coord/jacl2 (added)
- trunk/lib/jelix/plugins/coord/jacl2 (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.ini.php.dist (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.ini.php.dist (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.ini.php.dist (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.php (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.php (added)
- trunk/lib/jelix/plugins/coord/jacl2/jacl2.coord.php (added)
- trunk/lib/jelix/plugins/coord/jacl2/plugin.xml (added)
- trunk/lib/jelix/plugins/coord/jacl2/plugin.xml (added)
- trunk/lib/jelix/plugins/coord/jacl2/plugin.xml (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl2.php (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl2.php (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifacl2.php (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl2.php (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl2.php (added)
- trunk/lib/jelix/plugins/tpl/common/block.ifnotacl2.php (added)
- trunk/testapp/install/install.mysql.sql (modified) (1 diff)
- trunk/testapp/install/install.mysql.sql (modified) (1 diff)
- trunk/testapp/install/install.mysql.sql (modified) (1 diff)
- trunk/testapp/install/install.pgsql.sql (modified) (1 diff)
- trunk/testapp/install/install.pgsql.sql (modified) (1 diff)
- trunk/testapp/install/install.pgsql.sql (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/jacl.main_api.html_cli.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/jacl.main_api.html_cli.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/jacl.main_api.html_cli.php (modified) (1 diff)
- trunk/testapp/modules/jelix_tests/tests/jacl2.main_api.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.main_api.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.main_api.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.manager.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.manager.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.manager.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.users_and_groups.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.users_and_groups.html_cli.php (added)
- trunk/testapp/modules/jelix_tests/tests/jacl2.users_and_groups.html_cli.php (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/build/manifests/jelix-dev.mn
r833 r864 100 100 CREDITS 101 101 cd lib/jelix-scripts/commands 102 acl2group.cmd.php 103 acl2right.cmd.php 102 104 aclgroup.cmd.php 103 105 aclright.cmd.php trunk/build/manifests/jelix-dev.mn
r833 r864 100 100 CREDITS 101 101 cd lib/jelix-scripts/commands 102 acl2group.cmd.php 103 acl2right.cmd.php 102 104 aclgroup.cmd.php 103 105 aclright.cmd.php trunk/build/manifests/jelix-dev.mn
r833 r864 100 100 CREDITS 101 101 cd lib/jelix-scripts/commands 102 acl2group.cmd.php 103 acl2right.cmd.php 102 104 aclgroup.cmd.php 103 105 aclright.cmd.php trunk/build/manifests/jelix-lib.mn
r862 r864 24 24 jAclDbManager.class.php 25 25 jAclDb.class.php 26 jAcl2.class.php 27 jAcl2DbUserGroup.class.php 28 jAcl2DbManager.class.php 29 jAcl2Db.class.php 26 30 27 31 cd lib/jelix/controllers … … 85 89 jaclgroupsofuser.dao.xml 86 90 jsession.dao.xml 91 jacl2group.dao.xml 92 jacl2rights.dao.xml 93 jacl2subject.dao.xml 94 jacl2usergroup.dao.xml 95 jacl2groupsofuser.dao.xml 87 96 cd lib/jelix/core-modules/jelix/install/sql 88 97 delete.mysql.sql 89 98 install_jacl.schema.mysql.sql 90 99 install_jacl.data.mysql.sql 100 install_jacl2.schema.mysql.sql 101 install_jacl2.data.mysql.sql 91 102 install_jsession.schema.mysql.sql 92 103 delete.pgsql.sql 93 104 install_jacl.schema.pgsql.sql 94 105 install_jacl.data.pgsql.sql 106 install_jacl2.schema.pgsql.sql 107 install_jacl2.data.pgsql.sql 95 108 install_jsession.schema.pgsql.sql 96 109 … … 305 318 cd lib/jelix-modules/jacldb/classes 306 319 ! jacldb.listener.php 320 cd lib/jelix-modules/jacl2db 321 module.xml 322 events.xml 323 cd lib/jelix-modules/jacl2db/classes 324 ! jacl2db.listener.php 307 325 cd lib/jelix-modules/jauth 308 326 module.xml … … 352 370 cd lib/jelix-plugins/auth/ 353 371 cd lib/jelix-plugins/acl/ 372 cd lib/jelix-plugins/acl2/ 354 373 cd lib/jelix-plugins/coord/ 355 374 cd lib/jelix-plugins/db/ … … 360 379 cd lib/jelix/plugins/acl/db 361 380 db.acl.php 381 cd lib/jelix/plugins/acl2/db 382 db.acl2.php 362 383 cd lib/jelix/plugins/auth/db 363 384 db.auth.php … … 386 407 jacl.coord.ini.php.dist 387 408 409 cd lib/jelix/plugins/coord/jacl2 410 ! jacl2.coord.php 411 plugin.xml 412 jacl2.coord.ini.php.dist 413 388 414 cd lib/jelix/plugins/jforms/html 389 415 html.jformscompiler.php … … 421 447 block.ifacl.php 422 448 block.ifnotacl.php 449 block.ifacl2.php 450 block.ifnotacl2.php 423 451 block.ifuserconnected.php 424 452 block.ifusernotconnected.php trunk/build/manifests/jelix-lib.mn
r862 r864 24 24 jAclDbManager.class.php 25 25 jAclDb.class.php 26 jAcl2.class.php 27 jAcl2DbUserGroup.class.php 28 jAcl2DbManager.class.php 29 jAcl2Db.class.php 26 30 27 31 cd lib/jelix/controllers … … 85 89 jaclgroupsofuser.dao.xml 86 90 jsession.dao.xml 91 jacl2group.dao.xml 92 jacl2rights.dao.xml 93 jacl2subject.dao.xml 94 jacl2usergroup.dao.xml 95 jacl2groupsofuser.dao.xml 87 96 cd lib/jelix/core-modules/jelix/install/sql 88 97 delete.mysql.sql 89 98 install_jacl.schema.mysql.sql 90 99 install_jacl.data.mysql.sql 100 install_jacl2.schema.mysql.sql 101 install_jacl2.data.mysql.sql 91 102 install_jsession.schema.mysql.sql 92 103 delete.pgsql.sql 93 104 install_jacl.schema.pgsql.sql 94 105 install_jacl.data.pgsql.sql 106 install_jacl2.schema.pgsql.sql 107 install_jacl2.data.pgsql.sql 95 108 install_jsession.schema.pgsql.sql 96 109 … … 305 318 cd lib/jelix-modules/jacldb/classes 306 319 ! jacldb.listener.php 320 cd lib/jelix-modules/jacl2db 321 module.xml 322 events.xml 323 cd lib/jelix-modules/jacl2db/classes 324 ! jacl2db.listener.php 307 325 cd lib/jelix-modules/jauth 308 326 module.xml … … 352 370 cd lib/jelix-plugins/auth/ 353 371 cd lib/jelix-plugins/acl/ 372 cd lib/jelix-plugins/acl2/ 354 373 cd lib/jelix-plugins/coord/ 355 374 cd lib/jelix-plugins/db/ … … 360 379 cd lib/jelix/plugins/acl/db 361 380 db.acl.php 381 cd lib/jelix/plugins/acl2/db 382 db.acl2.php 362 383 cd lib/jelix/plugins/auth/db 363 384 db.auth.php … … 386 407 jacl.coord.ini.php.dist 387 408 409 cd lib/jelix/plugins/coord/jacl2 410 ! jacl2.coord.php 411 plugin.xml 412 jacl2.coord.ini.php.dist 413 388 414 cd lib/jelix/plugins/jforms/html 389 415 html.jformscompiler.php … … 421 447 block.ifacl.php 422 448 block.ifnotacl.php 449 block.ifacl2.php 450 block.ifnotacl2.php 423 451 block.ifuserconnected.php 424 452 block.ifusernotconnected.php trunk/build/manifests/jelix-lib.mn
r862 r864 24 24 jAclDbManager.class.php 25 25 jAclDb.class.php 26 jAcl2.class.php 27 jAcl2DbUserGroup.class.php 28 jAcl2DbManager.class.php 29 jAcl2Db.class.php 26 30 27 31 cd lib/jelix/controllers … … 85 89 jaclgroupsofuser.dao.xml 86 90 jsession.dao.xml 91 jacl2group.dao.xml 92 jacl2rights.dao.xml 93 jacl2subject.dao.xml 94 jacl2usergroup.dao.xml 95 jacl2groupsofuser.dao.xml 87 96 cd lib/jelix/core-modules/jelix/install/sql 88 97 delete.mysql.sql 89 98 install_jacl.schema.mysql.sql 90 99 install_jacl.data.mysql.sql 100 install_jacl2.schema.mysql.sql 101 install_jacl2.data.mysql.sql 91 102 install_jsession.schema.mysql.sql 92 103 delete.pgsql.sql 93 104 install_jacl.schema.pgsql.sql 94 105 install_jacl.data.pgsql.sql 106 install_jacl2.schema.pgsql.sql 107 install_jacl2.data.pgsql.sql 95 108 install_jsession.schema.pgsql.sql 96 109 … … 305 318 cd lib/jelix-modules/jacldb/classes 306 319 ! jacldb.listener.php 320 cd lib/jelix-modules/jacl2db 321 module.xml 322 events.xml 323 cd lib/jelix-modules/jacl2db/classes 324 ! jacl2db.listener.php 307 325 cd lib/jelix-modules/jauth 308 326 module.xml … … 352 370 cd lib/jelix-plugins/auth/ 353 371 cd lib/jelix-plugins/acl/ 372 cd lib/jelix-plugins/acl2/ 354 373 cd lib/jelix-plugins/coord/ 355 374 cd lib/jelix-plugins/db/ … … 360 379 cd lib/jelix/plugins/acl/db 361 380 db.acl.php 381 cd lib/jelix/plugins/acl2/db 382 db.acl2.php 362 383 cd lib/jelix/plugins/auth/db 363 384 db.auth.php … … 386 407 jacl.coord.ini.php.dist 387 408 409 cd lib/jelix/plugins/coord/jacl2 410 ! jacl2.coord.php 411 plugin.xml 412 jacl2.coord.ini.php.dist 413 388 414 cd lib/jelix/plugins/jforms/html 389 415 html.jformscompiler.php … … 421 447 block.ifacl.php 422 448 block.ifnotacl.php 449 block.ifacl2.php 450 block.ifnotacl2.php 423 451 block.ifuserconnected.php 424 452 block.ifusernotconnected.php trunk/build/manifests/testapp.mn
r824 r864 138 138 jacl.manager.html_cli.php 139 139 jacl.users_and_groups.html_cli.php 140 jacl2.main_api.html_cli.php 141 jacl2.manager.html_cli.php 142 jacl2.users_and_groups.html_cli.php 140 143 jdao.conditions.html_cli.php 141 144 jdao.main_api.html_cli.php trunk/build/manifests/testapp.mn
r824 r864 138 138 jacl.manager.html_cli.php 139 139 jacl.users_and_groups.html_cli.php 140 jacl2.main_api.html_cli.php 141 jacl2.manager.html_cli.php 142 jacl2.users_and_groups.html_cli.php 140 143 jdao.conditions.html_cli.php 141 144 jdao.main_api.html_cli.php trunk/build/manifests/testapp.mn
r824 r864 138 138 jacl.manager.html_cli.php 139 139 jacl.users_and_groups.html_cli.php 140 jacl2.main_api.html_cli.php 141 jacl2.manager.html_cli.php 142 jacl2.users_and_groups.html_cli.php 140 143 jdao.conditions.html_cli.php 141 144 jdao.main_api.html_cli.php trunk/lib/jelix/core/defaultconfig.ini.php
r862 r864 201 201 enableAclDbEventListener = off 202 202 203 [acl2] 204 driver = db 205 enableAclDbEventListener = off 206 207 203 208 [sessions] 204 209 shared_session = off trunk/lib/jelix/core/defaultconfig.ini.php
r862 r864 201 201 enableAclDbEventListener = off 202 202 203 [acl2] 204 driver = db 205 enableAclDbEventListener = off 206 207 203 208 [sessions] 204 209 shared_session = off trunk/lib/jelix/core/defaultconfig.ini.php
r862 r864 201 201 enableAclDbEventListener = off 202 202 203 [acl2] 204 driver = db 205 enableAclDbEventListener = off 206 207 203 208 [sessions] 204 209 shared_session = off trunk/lib/jelix/plugins/tpl/common/block.ifacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifacl 'subject', 54} ..here generated content if the user has the right {/ifacl}</pre>16 * <pre>{ifacl 'subject','value', 54} ..here generated content if the user has the right {/ifacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/lib/jelix/plugins/tpl/common/block.ifacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifacl 'subject', 54} ..here generated content if the user has the right {/ifacl}</pre>16 * <pre>{ifacl 'subject','value', 54} ..here generated content if the user has the right {/ifacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/lib/jelix/plugins/tpl/common/block.ifacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifacl 'subject', 54} ..here generated content if the user has the right {/ifacl}</pre>16 * <pre>{ifacl 'subject','value', 54} ..here generated content if the user has the right {/ifacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifnotacl 'subject', 54} ..here generated content if the user has NOT the right {/ifnotacl}</pre>16 * <pre>{ifnotacl 'subject','value',54} ..here generated content if the user has NOT the right {/ifnotacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifnotacl 'subject', 54} ..here generated content if the user has NOT the right {/ifnotacl}</pre>16 * <pre>{ifnotacl 'subject','value',54} ..here generated content if the user has NOT the right {/ifnotacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/lib/jelix/plugins/tpl/common/block.ifnotacl.php
r662 r864 14 14 * a special if block to test easily a right value 15 15 * 16 * <pre>{ifnotacl 'subject', 54} ..here generated content if the user has NOT the right {/ifnotacl}</pre>16 * <pre>{ifnotacl 'subject','value',54} ..here generated content if the user has NOT the right {/ifnotacl}</pre> 17 17 * @param jTplCompiler $compiler the template compiler 18 18 * @param boolean true if it is the begin of block, else false trunk/testapp/install/install.mysql.sql
r661 r864 83 83 84 84 85 -- Liste des groupes 86 DROP TABLE IF EXISTS `jacl2_group`; 87 CREATE TABLE `jacl2_group` ( 88 `id_aclgrp` int(11) NOT NULL auto_increment, 89 `name` varchar(150) NOT NULL default '', 90 `grouptype` tinyint(4) NOT NULL default '0', 91 `ownerlogin` varchar(50) default NULL, 92 PRIMARY KEY (`id_aclgrp`) 93 ) TYPE=MyISAM AUTO_INCREMENT=1 ; 94 95 -- liste des groupes associés à chaque utilisateur 96 DROP TABLE IF EXISTS `jacl2_user_group`; 97 CREATE TABLE `jacl2_user_group` ( 98 `login` varchar(50) NOT NULL default '', 99 `id_aclgrp` int(11) NOT NULL default '0', 100 KEY `login` (`login`,`id_aclgrp`) 101 ) TYPE=MyISAM; 102 103 104 -- liste des sujets, avec leur appartenance à un groupe de valeurs de droits 105 DROP TABLE IF EXISTS `jacl2_subject`; 106 CREATE TABLE `jacl2_subject` ( 107 `id_aclsbj` varchar(100) NOT NULL default '', 108 `label_key` varchar(100) default NULL, 109 PRIMARY KEY (`id_aclsbj`) 110 ) TYPE=MyISAM; 111 112 -- table centrale 113 -- valeurs du droit pour chaque couple sujet/groupe ou triplet sujet/groupe/ressource 114 DROP TABLE IF EXISTS `jacl2_rights`; 115 CREATE TABLE `jacl2_rights` ( 116 `id_aclsbj` varchar(100) NOT NULL default '', 117 `id_aclgrp` int(11) NOT NULL default '0', 118 `id_aclres` varchar(100) NOT NULL default '', 119 PRIMARY KEY (`id_aclsbj`,`id_aclgrp`,`id_aclres`) 120 ) TYPE=MyISAM; 121 122 85 123 -- -------------------------------------------------------- 86 124 trunk/testapp/install/install.mysql.sql
r661 r864 83 83 84 84 85 -- Liste des groupes 86 DROP TABLE IF EXISTS `jacl2_group`; 87 CREATE TABLE `jacl2_group` ( 88 `id_aclgrp` int(11) NOT NULL auto_increment, 89 `name` varchar(150) NOT NULL default '', 90 `grouptype` tinyint(4) NOT NULL default '0', 91 `ownerlogin` varchar(50) default NULL, 92 PRIMARY KEY (`id_aclgrp`) 93 ) TYPE=MyISAM AUTO_INCREMENT=1 ; 94 95 -- liste des groupes associés à chaque utilisateur 96 DROP TABLE IF EXISTS `jacl2_user_group`; 97 CREATE TABLE `jacl2_user_group` ( 98 `login` varchar(50) NOT NULL default '', 99 `id_aclgrp` int(11) NOT NULL default '0', 100 KEY `login` (`login`,`id_aclgrp`) 101 ) TYPE=MyISAM; 102 103 104 -- liste des sujets, avec leur appartenance à un groupe de valeurs de droits 105 DROP TABLE IF EXISTS `jacl2_subject`; 106 CREATE TABLE `jacl2_subject` ( 107 `id_aclsbj` varchar(100) NOT NULL default '', 108 `label_key` varchar(100) default NULL, 109 PRIMARY KEY (`id_aclsbj`) 110 ) TYPE=MyISAM; 111 112 -- table centrale 113 -- valeurs du droit pour chaque couple sujet/groupe ou triplet sujet/groupe/ressource 114 DROP TABLE IF EXISTS `jacl2_rights`; 115 CREATE TABLE `jacl2_rights` ( 116 `id_aclsbj` varchar(100) NOT NULL default '', 117 `id_aclgrp` int(11) NOT NULL default '0', 118 `id_aclres` varchar(100) NOT NULL default '', 119 PRIMARY KEY (`id_aclsbj`,`id_aclgrp`,`id_aclres`) 120 ) TYPE=MyISAM; 121 122 85 123 -- -------------------------------------------------------- 86 124 trunk/testapp/install/install.mysql.sql
r661 r864 83 83 84 84 85 -- Liste des groupes 86 DROP TABLE IF EXISTS `jacl2_group`; 87 CREATE TABLE `jacl2_group` ( 88 `id_aclgrp` int(11) NOT NULL auto_increment, 89 `name` varchar(150) NOT NULL default '', 90 `grouptype` tinyint(4) NOT NULL default '0', 91 `ownerlogin` varchar(50) default NULL, 92 PRIMARY KEY (`id_aclgrp`) 93 ) TYPE=MyISAM AUTO_INCREMENT=1 ; 94 95 -- liste des groupes associés à chaque utilisateur 96 DROP TABLE IF EXISTS `jacl2_user_group`; 97 CREATE TABLE `jacl2_user_group` ( 98 `login` varchar(50) NOT NULL default '', 99 `id_aclgrp` int(11) NOT NULL default '0', 100 KEY `login` (`login`,`id_aclgrp`) 101 ) TYPE=MyISAM; 102 103 104 -- liste des sujets, avec leur appartenance à un groupe de valeurs de droits 105 DROP TABLE IF EXISTS `jacl2_subject`; 106 CREATE TABLE `jacl2_subject` ( 107 `id_aclsbj` varchar(100) NOT NULL default '', 108 `label_key` varchar(100) default NULL, 109 PRIMARY KEY (`id_aclsbj`) 110 ) TYPE=MyISAM; 111 112 -- table centrale 113 -- valeurs du droit pour chaque couple sujet/groupe ou triplet sujet/groupe/ressource 114 DROP TABLE IF EXISTS `jacl2_rights`; 115 CREATE TABLE `jacl2_rights` ( 116 `id_aclsbj` varchar(100) NOT NULL default '', 117 `id_aclgrp` int(11) NOT NULL default '0', 118 `id_aclres` varchar(100) NOT NULL default '', 119 PRIMARY KEY (`id_aclsbj`,`id_aclgrp`,`id_aclres`) 120 ) TYPE=MyISAM; 121 122 85 123 -- -------------------------------------------------------- 86 124 trunk/testapp/install/install.pgsql.sql
r795 r864 157 157 158 158 159 160 161 162 163 164 165 159 CREATE TABLE jacl2_group ( 160 id_aclgrp serial NOT NULL, 161 name character varying(150) NOT NULL, 162 grouptype smallint NOT NULL, 163 ownerlogin character varying(50) 164 ); 165 166 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('jacl2_group', 'id_aclgrp'), 1, false); 167 168 CREATE TABLE jacl2_rights ( 169 id_aclsbj character varying(255) NOT NULL, 170 id_aclgrp integer NOT NULL, 171 id_aclres character varying(100) NOT NULL 172 ); 173 174 CREATE TABLE jacl2_subject ( 175 id_aclsbj character varying(100) NOT NULL, 176 label_key character varying(100) 177 ); 178 179 CREATE TABLE jacl2_user_group ( 180 "login" character varying(50) NOT NULL, 181 id_aclgrp integer NOT NULL 182 ); 183 184 185 ALTER TABLE ONLY jacl2_group 186 ADD CONSTRAINT jacl2_group_pkey PRIMARY KEY (id_aclgrp); 187 188 ALTER TABLE ONLY jacl2_rights 189 ADD CONSTRAINT jacl2_rights_pkey PRIMARY KEY (id_aclsbj, id_aclgrp, id_aclres); 190 191 ALTER TABLE ONLY jacl2_subject 192 ADD CONSTRAINT jacl2_subject_pkey PRIMARY KEY (id_aclsbj); 193 194 ALTER TABLE ONLY jacl2_user_group 195 ADD CONSTRAINT jacl2_user_group_pkey PRIMARY KEY ("login", id_aclgrp); 196 197 ALTER TABLE ONLY jacl2_rights 198 ADD CONSTRAINT jacl2_rights_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 199 200 ALTER TABLE ONLY jacl2_rights 201 ADD CONSTRAINT jacl2_rights_id_aclsbj_fkey FOREIGN KEY (id_aclsbj) REFERENCES jacl2_subject(id_aclsbj); 202 203 ALTER TABLE ONLY jacl2_user_group 204 ADD CONSTRAINT jacl2_user_group_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 205 206 207 208 209 210 211 trunk/testapp/install/install.pgsql.sql
r795 r864 157 157 158 158 159 160 161 162 163 164 165 159 CREATE TABLE jacl2_group ( 160 id_aclgrp serial NOT NULL, 161 name character varying(150) NOT NULL, 162 grouptype smallint NOT NULL, 163 ownerlogin character varying(50) 164 ); 165 166 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('jacl2_group', 'id_aclgrp'), 1, false); 167 168 CREATE TABLE jacl2_rights ( 169 id_aclsbj character varying(255) NOT NULL, 170 id_aclgrp integer NOT NULL, 171 id_aclres character varying(100) NOT NULL 172 ); 173 174 CREATE TABLE jacl2_subject ( 175 id_aclsbj character varying(100) NOT NULL, 176 label_key character varying(100) 177 ); 178 179 CREATE TABLE jacl2_user_group ( 180 "login" character varying(50) NOT NULL, 181 id_aclgrp integer NOT NULL 182 ); 183 184 185 ALTER TABLE ONLY jacl2_group 186 ADD CONSTRAINT jacl2_group_pkey PRIMARY KEY (id_aclgrp); 187 188 ALTER TABLE ONLY jacl2_rights 189 ADD CONSTRAINT jacl2_rights_pkey PRIMARY KEY (id_aclsbj, id_aclgrp, id_aclres); 190 191 ALTER TABLE ONLY jacl2_subject 192 ADD CONSTRAINT jacl2_subject_pkey PRIMARY KEY (id_aclsbj); 193 194 ALTER TABLE ONLY jacl2_user_group 195 ADD CONSTRAINT jacl2_user_group_pkey PRIMARY KEY ("login", id_aclgrp); 196 197 ALTER TABLE ONLY jacl2_rights 198 ADD CONSTRAINT jacl2_rights_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 199 200 ALTER TABLE ONLY jacl2_rights 201 ADD CONSTRAINT jacl2_rights_id_aclsbj_fkey FOREIGN KEY (id_aclsbj) REFERENCES jacl2_subject(id_aclsbj); 202 203 ALTER TABLE ONLY jacl2_user_group 204 ADD CONSTRAINT jacl2_user_group_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 205 206 207 208 209 210 211 trunk/testapp/install/install.pgsql.sql
r795 r864 157 157 158 158 159 160 161 162 163 164 165 159 CREATE TABLE jacl2_group ( 160 id_aclgrp serial NOT NULL, 161 name character varying(150) NOT NULL, 162 grouptype smallint NOT NULL, 163 ownerlogin character varying(50) 164 ); 165 166 SELECT pg_catalog.setval(pg_catalog.pg_get_serial_sequence('jacl2_group', 'id_aclgrp'), 1, false); 167 168 CREATE TABLE jacl2_rights ( 169 id_aclsbj character varying(255) NOT NULL, 170 id_aclgrp integer NOT NULL, 171 id_aclres character varying(100) NOT NULL 172 ); 173 174 CREATE TABLE jacl2_subject ( 175 id_aclsbj character varying(100) NOT NULL, 176 label_key character varying(100) 177 ); 178 179 CREATE TABLE jacl2_user_group ( 180 "login" character varying(50) NOT NULL, 181 id_aclgrp integer NOT NULL 182 ); 183 184 185 ALTER TABLE ONLY jacl2_group 186 ADD CONSTRAINT jacl2_group_pkey PRIMARY KEY (id_aclgrp); 187 188 ALTER TABLE ONLY jacl2_rights 189 ADD CONSTRAINT jacl2_rights_pkey PRIMARY KEY (id_aclsbj, id_aclgrp, id_aclres); 190 191 ALTER TABLE ONLY jacl2_subject 192 ADD CONSTRAINT jacl2_subject_pkey PRIMARY KEY (id_aclsbj); 193 194 ALTER TABLE ONLY jacl2_user_group 195 ADD CONSTRAINT jacl2_user_group_pkey PRIMARY KEY ("login", id_aclgrp); 196 197 ALTER TABLE ONLY jacl2_rights 198 ADD CONSTRAINT jacl2_rights_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 199 200 ALTER TABLE ONLY jacl2_rights 201 ADD CONSTRAINT jacl2_rights_id_aclsbj_fkey FOREIGN KEY (id_aclsbj) REFERENCES jacl2_subject(id_aclsbj); 202 203 ALTER TABLE ONLY jacl2_user_group 204 ADD CONSTRAINT jacl2_user_group_id_aclgrp_fkey FOREIGN KEY (id_aclgrp) REFERENCES jacl2_group(id_aclgrp); 205 206 207 208 209 210 211 trunk/testapp/modules/jelix_tests/tests/jacl.main_api.html_cli.php
r781 r864 10 10 */ 11 11 12 if(!class_exists('jAuth',false)) { 13 class jAuth { 12 14 13 class jAuth { 15 static public $connect = true; 14 16 15 static public $connect = true; 17 static function isConnected() { 18 return self::$connect; 19 } 16 20 17 static function isConnected() { 18 return self::$connect; 19 } 20 21 static function getUserSession() { 22 return $_SESSION['JELIX_USER']; 21 static function getUserSession() { 22 return $_SESSION['JELIX_USER']; 23 } 23 24 } 24 25 } 26 25 27 26 28 class userTest { trunk/testapp/modules/jelix_tests/tests/jacl.main_api.html_cli.php
r781 r864 10 10 */ 11 11 12 if(!class_exists('jAuth',false)) { 13 class jAuth { 12 14 13 class jAuth { 15 static public $connect = true; 14 16 15 static public $connect = true; 17 static function isConnected() { 18 &n
