[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpcompta-dev] r5330 - phpcompta/tags/rel660/include
From: |
phpcompta-dev |
Subject: |
[Phpcompta-dev] r5330 - phpcompta/tags/rel660/include |
Date: |
Wed, 3 Jul 2013 22:08:42 +0200 (CEST) |
Author: danydb
Date: 2013-07-03 22:08:41 +0200 (Wed, 03 Jul 2013)
New Revision: 5330
Modified:
phpcompta/tags/rel660/include/constant.php
phpcompta/tags/rel660/include/user_detail.inc.php
Log:
Bug #0000860: creation de comptes utilisateurs sur serveur mutualis?\195?\169
(mono dossier)
Modified: phpcompta/tags/rel660/include/constant.php
===================================================================
--- phpcompta/tags/rel660/include/constant.php 2013-06-28 22:56:50 UTC (rev
5329)
+++ phpcompta/tags/rel660/include/constant.php 2013-07-03 20:08:41 UTC (rev
5330)
@@ -78,7 +78,7 @@
define ("DBVERSION",107);
-
+define ("MONO_DATABASE",25);
define ("DBVERSIONREPO",14);
define ('NOTFOUND','--not found--');
Modified: phpcompta/tags/rel660/include/user_detail.inc.php
===================================================================
--- phpcompta/tags/rel660/include/user_detail.inc.php 2013-06-28 22:56:50 UTC
(rev 5329)
+++ phpcompta/tags/rel660/include/user_detail.inc.php 2013-07-03 20:08:41 UTC
(rev 5330)
@@ -73,15 +73,24 @@
{
if (substr_count($name, 'PRIV') != 0)
{
- $db_id = mb_substr($name, 4);
$cn = new Database();
- $name=$cn->format_name($db_id, "dos");
- if ( $cn->exist_database($name) == 1 )
+ if ( defined ('MULTI')&& MULTI==0)
{
+ $name=dbname;
+ $db_id=MONO_DATABASE;
$UserChange->set_folder_access($db_id,
$elem);
- Dossier::synchro_admin($db_id);
}
- }
+ else
+ {
+ $db_id = mb_substr($name, 4);
+ $name=$cn->format_name($db_id, "dos");
+ if ( $cn->exist_database($name) == 1 )
+ {
+
$UserChange->set_folder_access($db_id, $elem);
+ Dossier::synchro_admin($db_id);
+ }
+ }
+ }
}
}
}
@@ -206,8 +215,13 @@
$mod_user = new User(new Database(), $uid);
foreach ($Dossier as $rDossier)
{
-
- $priv = $mod_user->get_folder_access($rDossier['dos_id']);
+ if (defined ("MULTI") && MULTI==0)
+ {
+ $priv = $mod_user->get_folder_access(MONO_DATABASE);
+ $priv=($priv=='L')?'R':$priv;
+ }
+ else
+ $priv =
$mod_user->get_folder_access($rDossier['dos_id']);
printf("<TR><TD> Dossier : %s </TD>", h($rDossier['dos_name']));
$select = new ISelect();
---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpcompta-dev] r5330 - phpcompta/tags/rel660/include,
phpcompta-dev <=