Re: [Care2002-developers] Access Areas

2010-06-21 Thread Gjergj Sheldija
hi Frank,

what version of c2x are you using ?

gj.

On 18/06/2010 11:11, frank msuya wrote:

 Hi  care2x developers

 I'm having a problem, i need your help.

 I have created a new menu called Social welfare.When i create a user with 
 social welfare access
 permissions, its ok can only access this area. The problem arise when i 
 create another user with other
 access permissions like Radiology or Laboratory can access Social welfare as 
 well. I have gone through the 
 following areas:
   

  (1) Global_config--areas.php and areas_allow.php

  (2) language/en-lang_en_access.php

 When you click the menu Social welfare it open the file 
 socialwelfare_tz_pass.php with the following codes


 ?php

 require('./roots.php');
 require($root_path.'include/inc_environment_global.php');
 define('LANG_FILE','stdpass.php');
 define('NO_2LEVEL_CHK',1);

 require_once($root_path.'include/inc_front_chain_lang.php');
 $breakfile=$root_path.'main/startframe.php'.URL_APPEND;
 // reset all 2nd level lock cookies
 require($root_path.'include/inc_2level_reset.php');

 require_once($root_path.'global_conf/areas_allow.php');

 $allowedarea=$allow_area['social_welfare'];
 $append=URL_REDIRECT_APPEND;
 $lognow='Social Welfare login ok';

   
 ?

 Tell me where i'm wrong, i'm still stranger in care2x, i'm trying to catchup 
 slowly



 
 _
 Hotmail: Powerful Free email with security by Microsoft.
 https://signup.live.com/signup.aspx?id=60969
   


 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate 
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
 lucky parental unit.  See the prize list and enter to win: 
 http://p.sf.net/sfu/thinkgeek-promo


 ___
 Care2002-developers mailing list
 Care2002-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/care2002-developers
   

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers


Re: [Care2002-developers] Access Areas

2010-06-21 Thread Robert Meggle
Frank, could it be that it is an quite old independent and not longer
supported branch what you're using?
In the main trunk as well as the east african branch the module
add-thing should work. 

Robert

Am Montag, den 21.06.2010, 10:57 +0200 schrieb Gjergj Sheldija:
 hi Frank,
 
 what version of c2x are you using ?
 
 gj.
 
 On 18/06/2010 11:11, frank msuya wrote:
 
  Hi  care2x developers
 
  I'm having a problem, i need your help.
 
  I have created a new menu called Social welfare.When i create a user with 
  social welfare access
  permissions, its ok can only access this area. The problem arise when i 
  create another user with other
  access permissions like Radiology or Laboratory can access Social welfare 
  as well. I have gone through the 
  following areas:

 
   (1) Global_config--areas.php and areas_allow.php
 
   (2) language/en-lang_en_access.php
 
  When you click the menu Social welfare it open the file 
  socialwelfare_tz_pass.php with the following codes
 
 
  ?php
 
  require('./roots.php');
  require($root_path.'include/inc_environment_global.php');
  define('LANG_FILE','stdpass.php');
  define('NO_2LEVEL_CHK',1);
 
  require_once($root_path.'include/inc_front_chain_lang.php');
  $breakfile=$root_path.'main/startframe.php'.URL_APPEND;
  // reset all 2nd level lock cookies
  require($root_path.'include/inc_2level_reset.php');
 
  require_once($root_path.'global_conf/areas_allow.php');
 
  $allowedarea=$allow_area['social_welfare'];
  $append=URL_REDIRECT_APPEND;
  $lognow='Social Welfare login ok';
 

  ?
 
  Tell me where i'm wrong, i'm still stranger in care2x, i'm trying to 
  catchup slowly
 
 
 

  _
  Hotmail: Powerful Free email with security by Microsoft.
  https://signup.live.com/signup.aspx?id=60969

 
 
  --
  ThinkGeek and WIRED's GeekDad team up for the Ultimate 
  GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
  lucky parental unit.  See the prize list and enter to win: 
  http://p.sf.net/sfu/thinkgeek-promo
 
 
  ___
  Care2002-developers mailing list
  Care2002-developers@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/care2002-developers

 
 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate 
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
 lucky parental unit.  See the prize list and enter to win: 
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Care2002-developers mailing list
 Care2002-developers@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/care2002-developers


-- 

MEROTECH IT Engineering

Robert Meggle
St.-Mang-Str. 8
87616 Marktoberdorf

Germany

Tel: +49(0)8342 - 8956729
Fax: +49(0)8342 - 8956730
mailto:meg...@merotech.de 



--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers


Re: [Care2002-developers] Access Areas

2010-06-18 Thread frank msuya


Hi  care2x developers

I'm having a problem, i need your help.

I have created a new menu called Social welfare.When i create a user with 
social welfare access
permissions, its ok can only access this area. The problem arise when i create 
another user with other
access permissions like Radiology or Laboratory can access Social welfare as 
well. I have gone through the 
following areas:
  

 (1) Global_config--areas.php and areas_allow.php

 (2) language/en-lang_en_access.php

When you click the menu Social welfare it open the file 
socialwelfare_tz_pass.php with the following codes


?php

require('./roots.php');
require($root_path.'include/inc_environment_global.php');
define('LANG_FILE','stdpass.php');
define('NO_2LEVEL_CHK',1);

require_once($root_path.'include/inc_front_chain_lang.php');
$breakfile=$root_path.'main/startframe.php'.URL_APPEND;
// reset all 2nd level lock cookies
require($root_path.'include/inc_2level_reset.php');

require_once($root_path.'global_conf/areas_allow.php');

$allowedarea=$allow_area['social_welfare'];
$append=URL_REDIRECT_APPEND;
$lognow='Social Welfare login ok';

  
?

Tell me where i'm wrong, i'm still stranger in care2x, i'm trying to catchup 
slowly



  
_
Hotmail: Powerful Free email with security by Microsoft.
https://signup.live.com/signup.aspx?id=60969--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo___
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers


Re: [Care2002-developers] Access Areas

2010-06-18 Thread frank msuya

Hi Robert

Thanks for your quick response.

in areas_allow.php we have:

?php
//error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR),

### The following arrays are the role levels each containing an access point 
or groups of access points

$all='_a_0_all';
$sysadmin='System_Admin';

$allow_area=array(

'admit'=array('_a_1_admissionwrite','_a_1_medocswrite'),

'report' =array('_a_1_reportingread'),

'bill'=array('_a_1_billallwrite', 
'_a_2_billallread','_a_2_billpharmawrite','_a_3_billpharmaread','_a_2_billserviceswrite','_a_3_billservicesread','_a_2_billlabwrite','_a_3_billlabread'),

'cafe'=array('_a_1_newsallwrite', '_a_1_newscafewrite'),

'medocs'=array('_a_1_medocswrite'),

'phonedir'=array('$all, $sysadmin'),

'doctors'=array('_a_1_opdoctorallwrite', '_a_1_doctorsdutyplanwrite'),

'wards'=array('_a_1_doctorsdutyplanwrite', '_a_1_opdoctorallwrite', 
'_a_1_nursingstationallwrite',  $all, $sysadmin),

'op_room'=array('_a_1_opdoctorallwrite', '_a_1_opnursedutyplanwrite', 
'_a_2_opnurseallwrite'),

'tech'=array('_a_1_techreception'),

'lab_r'=array('_a_1_labresultswrite', '_a_2_labresultsread'),

'lab_w'=array('_a_1_labresultswrite'),

'radio'=array('_a_1_radiowrite', '_a_1_opdoctorallwrite', 
'_a_2_opnurseallwrite'),

'pharma_db'=array('_a_1_pharmadbadmin'),

'pharma_receive'=array('_a_1_pharmadbadmin', '_a_2_pharmareception'),

'pharma'=array('_a_1_pharmadbadmin', '_a_2_pharmareception',  
'_a_3_pharmaorder'),

'depot_db'=array('_a_1_meddepotdbadmin'),

'depot_receive'=array('_a_1_meddepotdbadmin', '_a_2_meddepotreception'),

'depot'=array('_a_1_meddepotdbadmin', '_a_2_meddepotreception', 
'_a_3_meddepotorder'),

'edp'=array('no_allow_type_all',),

'news'=array('_a_1_newsallwrite'),

'cafenews'=array('_a_1_newsallwrite', '_a_2_newscafewrite'),

'op_docs'=array('_a_1_opdoctorallwrite'),

'duty_op'=array('_a_1_opnursedutyplanwrite'),

'fotolab'=array('_a_1_photowrite'),

'test_diagnose'=array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite'),

'test_receive'=array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite', 
'_a_2_diagnosticsreceptionwrite'),
'social_welfare'=array('_a_1_socialallwrite', '_a_2_socialallread'),
'test_order'=array('_a_1_diagnosticsresultwrite', '_a_1_labresultswrite', 
'_a_2_diagnosticsreceptionwrite', '_a_3_diagnosticsrequest')
)

?

in areas.php we have:

?php

$area_opt=array(
/* Group start*/
   'title1' = $title1,
   '_a_0_all' =  $_a_0_all,

/* Group start*/
   'title_adm' = $title_adm,
   '_a_1_admissionwrite' =  $_a_1_admissionwrite,
   '_a_2_admissionread' =  $_a_2_admissionread,

/* Group start*/
   'title2' = $title2,
   '_a_1_nursingstationallwrite' =  
$_a_1_nursingstationallwrite,
   '_a_2_nursingstationallread' =  
$_a_2_nursingstationallread,
   '_a_1_nursingdutyplanwrite' =  
$_a_1_nursingdutyplanwrite,
   '_a_2_nursingdutyplanread' =  
$_a_2_nursingdutyplanread,

/* Group start*/
   'title3' = $title3,
   '_a_1_diagnosticsresultwrite' =  
$_a_1_diagnosticsresultwrite,
   '_a_3_diagnosticsresultread' =  
$_a_3_diagnosticsresultread,
   '_a_2_diagnosticsreceptionwrite'=  
$_a_2_diagnosticsreceptionwrite,
   '_a_3_diagnosticsrequest' =  
$_a_3_diagnosticsrequest,

/* Group start*/
   'title4' = $title4,
   '_a_1_labresultswrite' =  $_a_1_labresultswrite,
   '_a_2_labresultsread' =  $_a_2_labresultsread,

/* Group start*/
   'title5' = $title5,
   '_a_1_opdoctorallwrite' =  $_a_1_opdoctorallwrite,
   '_a_2_opnurseallwrite' =  $_a_2_opnurseallwrite,
   '_a_3_opnurseallread' =  $_a_3_opnurseallread,
   '_a_1_opnursedutyplanwrite' =  
$_a_1_opnursedutyplanwrite,
   '_a_2_opnursedutyplanread' =  
$_a_2_opnursedutyplanread,

/* Group start*/
   'title6' = $title6,
   '_a_1_radiowrite' =  $_a_1_radiowrite,
   '_a_2_radioread' =  $_a_2_radioread,

/* Group start*/
   'title7' = $title7,
   '_a_1_medocswrite' =  $_a_1_medocswrite,
   '_a_2_medocsread' =  $_a_2_medocsread,

/* Group start*/
   'title8' = $title8,
  '_a_1_pharmadbadmin' =  $_a_1_pharmadbadmin,

Re: [Care2002-developers] Access Areas

2010-06-18 Thread Robert Meggle
Well, that sounds good what I see here. Please let me a bit time to test
out what the reason of that issue is.

Thanks
 Robert

Am Freitag, den 18.06.2010, 09:56 + schrieb frank msuya:
 Hi Robert
 
 Thanks for your quick response.
 
 in areas_allow.php we have:
 
 ?php
 //error_reporting(E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR),
 
 ### The following arrays are the role levels each containing an
 access point or groups of access points
 
 $all='_a_0_all';
 $sysadmin='System_Admin';
 
 $allow_area=array(
 
 'admit'=array('_a_1_admissionwrite','_a_1_medocswrite'),
 
 'report' =array('_a_1_reportingread'),
 
 'bill'=array('_a_1_billallwrite',
 '_a_2_billallread','_a_2_billpharmawrite','_a_3_billpharmaread','_a_2_billserviceswrite','_a_3_billservicesread','_a_2_billlabwrite','_a_3_billlabread'),
 
 'cafe'=array('_a_1_newsallwrite', '_a_1_newscafewrite'),
 
 'medocs'=array('_a_1_medocswrite'),
 
 'phonedir'=array('$all, $sysadmin'),
 
 'doctors'=array('_a_1_opdoctorallwrite',
 '_a_1_doctorsdutyplanwrite'),
 
 'wards'=array('_a_1_doctorsdutyplanwrite', '_a_1_opdoctorallwrite',
 '_a_1_nursingstationallwrite',  $all, $sysadmin),
 
 'op_room'=array('_a_1_opdoctorallwrite', '_a_1_opnursedutyplanwrite',
 '_a_2_opnurseallwrite'),
 
 'tech'=array('_a_1_techreception'),
 
 'lab_r'=array('_a_1_labresultswrite', '_a_2_labresultsread'),
 
 'lab_w'=array('_a_1_labresultswrite'),
 
 'radio'=array('_a_1_radiowrite', '_a_1_opdoctorallwrite',
 '_a_2_opnurseallwrite'),
 
 'pharma_db'=array('_a_1_pharmadbadmin'),
 
 'pharma_receive'=array('_a_1_pharmadbadmin', '_a_2_pharmareception'),
 
 'pharma'=array('_a_1_pharmadbadmin', '_a_2_pharmareception',
 '_a_3_pharmaorder'),
 
 'depot_db'=array('_a_1_meddepotdbadmin'),
 
 'depot_receive'=array('_a_1_meddepotdbadmin',
 '_a_2_meddepotreception'),
 
 'depot'=array('_a_1_meddepotdbadmin', '_a_2_meddepotreception',
 '_a_3_meddepotorder'),
 
 'edp'=array('no_allow_type_all',),
 
 'news'=array('_a_1_newsallwrite'),
 
 'cafenews'=array('_a_1_newsallwrite', '_a_2_newscafewrite'),
 
 'op_docs'=array('_a_1_opdoctorallwrite'),
 
 'duty_op'=array('_a_1_opnursedutyplanwrite'),
 
 'fotolab'=array('_a_1_photowrite'),
 
 'test_diagnose'=array('_a_1_diagnosticsresultwrite',
 '_a_1_labresultswrite'),
 
 'test_receive'=array('_a_1_diagnosticsresultwrite',
 '_a_1_labresultswrite', '_a_2_diagnosticsreceptionwrite'),
 'social_welfare'=array('_a_1_socialallwrite', '_a_2_socialallread'),
 'test_order'=array('_a_1_diagnosticsresultwrite',
 '_a_1_labresultswrite', '_a_2_diagnosticsreceptionwrite',
 '_a_3_diagnosticsrequest')
 )
 
 ?
 
 in areas.php we have:
 
 ?php
 
 $area_opt=array(
 /* Group start*/
'title1' = $title1,
'_a_0_all' =  $_a_0_all,
 
 /* Group start*/
'title_adm' = $title_adm,
'_a_1_admissionwrite' =
 $_a_1_admissionwrite,
'_a_2_admissionread' =
 $_a_2_admissionread,
 
 /* Group start*/
'title2' = $title2,
'_a_1_nursingstationallwrite' =
 $_a_1_nursingstationallwrite,
'_a_2_nursingstationallread' =
 $_a_2_nursingstationallread,
'_a_1_nursingdutyplanwrite' =
 $_a_1_nursingdutyplanwrite,
'_a_2_nursingdutyplanread' =
 $_a_2_nursingdutyplanread,
 
 /* Group start*/
'title3' = $title3,
'_a_1_diagnosticsresultwrite' =
 $_a_1_diagnosticsresultwrite,
'_a_3_diagnosticsresultread' =
 $_a_3_diagnosticsresultread,
'_a_2_diagnosticsreceptionwrite'=
 $_a_2_diagnosticsreceptionwrite,
'_a_3_diagnosticsrequest' =
 $_a_3_diagnosticsrequest,
 
 /* Group start*/
'title4' = $title4,
'_a_1_labresultswrite' =
 $_a_1_labresultswrite,
'_a_2_labresultsread' =
 $_a_2_labresultsread,
 
 /* Group start*/
'title5' = $title5,
'_a_1_opdoctorallwrite' =
 $_a_1_opdoctorallwrite,
'_a_2_opnurseallwrite' =
 $_a_2_opnurseallwrite,
'_a_3_opnurseallread' =
 $_a_3_opnurseallread,
'_a_1_opnursedutyplanwrite' =
 $_a_1_opnursedutyplanwrite,
'_a_2_opnursedutyplanread' =
 $_a_2_opnursedutyplanread,
 
 /* Group start*/
'title6' = $title6,
'_a_1_radiowrite' =  $_a_1_radiowrite,
'_a_2_radioread' =  $_a_2_radioread,
 
 /* Group start*/
'title7' = $title7,