download configuration.php
Language: PHP
License: GPL
Copyright: (C) 2003 Loc Dayot - Mairie de Pierrefitte (93)
LOC: 472
Project Info
epnadmin
Server: Savannah NonGNU
Type: cvs
...epnadmin\epnadmin\epnadmin\
   6cartes.inc.php
   add_message.sh
   add_message_file.sh
   animateur.php
   ...eurs-disponibilites.php
   animateurs-horaires.php
   animateurs.inc.php
   autoeval.js
   barcode.inc.php
   basdepage.inc.php
   camembert.inc.php
   cartes.inc.php
   common.initial.sql
   config.php
   configuration.php
   constantes.inc.php
   courriel.php
   dateheure.inc.php
   debug.inc.php
   domaines.php
   en.lang.inc.php
   entete.inc.php
   epnadmin.css
   epnadminv.css
   exemple.sql
   fonctions.inc.php
   footer.inc.php
   fr.initial.sql
   fr.lang.inc.php
   header.inc.php
   horaires.php
   i25object.inc.php
   image.inc.php
   index.php
   initial.sql
   initiations.inc.php
   initiations.php
   inscription_session.php
   localisations.php
   logiciels.php
   materiels.php
   menu2.js
   mysql.inc.php
   parcours.inc.php
   parcours.php
   positionnement.php
   prets.php
   print.php
   questions.php
   remove_message.sh
   reservations.inc.php
   reservations.php
   session.php
   sessions.inc.php
   siteweb.inc.php
   siteweb.php
   stats.php
   structure.sql
   structures.inc.php
   structures.php
   table_horaire.php
   table_horaire_session.php
   tableaux.inc.php
   tarifs.php
   themes.php
   usagers.inc.php
   usagers.php
   usages.php

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
<?
/*
    Copyright (C) 2003 Loc Dayot - Mairie de Pierrefitte (93)
        Vincent Vairelles - Mairie de Dijon (21)

    EPNadmin - Version 0.7

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA

    http://www.nongnu.org/epnadmin/ ou http://epnadmin.pierrefitte93.fr
*/
require_once("header.inc.php"); // C'est dans header.inc.php que sont retrouv les droits issus de la table droits
require_once("constantes.inc.php");             // dfinition des constantes
//require_once("fonctions.inc.php");            // concernant des fonctions transversales inclassables
require_once("mysql.inc.php");                  // concernant mysql
//require_once("animateurs.inc.php");           // concernant les animateurs
//require_once("sessions.inc.php");             // concernant les sessions et initiations
//require_once("usagers.inc.php");              // concernant la gestion des usagers
//require_once("reservations.inc.php");         // concernant les rservations des postes en accs individuel par des usagers
//require_once("tableaux.inc.php");             // Concernant l'affichage transpos d'un tableau
//require_once("siteweb.inc.php");              // concernant les pages perso des usagers et les sites web des structures
//require_once("dateheure.inc.php");            // concernant la manipulation des heures et des dates, formulaire, conversion...
require_once("structures.inc.php");             // concernant les structures
//require_once("initiations.inc.php");          // concernant les initiations et les thmes
//require_once("parcours.inc.php");             // concernant les parcours des usagers et leur positionnement

// Pour les explications, voir les commentaires dans header.inc.php //

$ptitr=$sconfiguration;
$titr = $titreconfiguration;
$datemaj="11 juin 2003";
define("COULEUR", COULEUR_DROITS);
require("entete.inc.php");

// Remarque : mme si la fonctionnalit droits (FCT_DROITS) n'est pas dfinie, on accde quand mme  cette page.

if (FCT_DROITS!="y" && DROITS<"~")
{
  echo $pasledroit;
  include("basdepage.inc.php");
  echo "</body></html>\n";
  require("footer.inc.php");
  exit;
}

function affiche_autorisations($id)
{
global $autorvisiteur,$autordefstructure,$autoranim,$autorusagers,$fonctionnalitesdeappli,
	$sFonctionnalite,$smesinformations,$scellesdesautres,$sActif,
	$sCommentaire,$sdependde,$sactive,$sinactive,$sindefinie,
	$saucun,$svoir,$smodifier,$sindefini, $sfct;
  if ($id>0) // Il s'agit d'une structure
  {
    // On regarde s'il y a une configuration pour cette structure
    $req0="SELECT * FROM droits WHERE id_structure=$id";
    $res0=executeRequete($req0);
    if (! fetch_object($res0))
      $id=-3; // On reprend la configuration par d�aut.
  }
  switch ($id)
  {
  case -4 : $t=$autorvisiteur; break;
  case -3 : $t=$autordefstructure; break;
  case -2 : $t=$autoranim; break;
  case -1 : $t=$autorusagers; break;
  case 0  : $t=$fonctionnalitesdeappli; break;
  default : $t=structure($id); break;
  } // switch
	echo cadre_debut($t);
  echo "<table align=center border=1>";
  echo "<tr><th>$sFonctionnalite</th>";
  if ($id!=0)
    echo "<th>$smesinformations</th><th>$scellesdesautres</th>";
  else
    echo "<th>$sActif ?</th>";
  echo "<th>$sCommentaire</th>";
  if ($id==0)
    echo "<th>$sdependde</th>";
  echo "</tr>\n";

  $req1="SELECT * FROM fonctions ORDER BY ordre";
  $res1=executeRequete($req1);
  while ($fonction=fetch_object($res1))
  {
    // Retrouver les droits
    $req2="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=$id";
    $res2=executeRequete($req2);
    if (!$droit=fetch_object($res2))
    { //N'existe pas
      if ($id>0)
      {
        // Si c'est une structure, on prend la valeur par d�aut.
        $req2="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=-3";
        $res2=executeRequete($req2);
      }
      if (!$droit=fetch_object($res2))
      { // Si on n'a toujours rien, on prend les fonctionnalit�
        $req2="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=0";
        $res2=executeRequete($req2);
      }
    }
    if ($droit->id_fonction)
    {
      // Retrouver si la fonctionnalit�est active
      $req11="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=0";
      $res12=executeRequete($req11);
      $fct=fetch_object($res12);
      if ($fct->actif!="y")
      {
        echo "<tr bgcolor=\"#ADADAD\"><th>$fonction->fonction";
        if ($id!=0)
          echo " ($sINACTIVE)";
        echo "</th>";
      }
      else
        echo "<tr bgcolor=\"$fonction->couleur\"><th>$fonction->fonction</th>";

      echo "<td>";
      if ($id==0)
      {   // fonctionnalit�
        switch ($droit->actif)
        {
        case 'y' : echo "$sactive"; break;
        case 'n' : echo "$sinactive"; break;
        default :  echo "<i>$sindefinie</i>"; break;
        }
      }
      else
      { // autorisations
        switch ($droit->moi)
        {
        case ' ' : echo "$saucun"; break;
        case 'r' : echo "$svoir"; break;
        case 'w' : echo "$smodifier"; break;
        default : echo "<i>$sindefini</i>"; break;
        }
        echo "</td><td>";
        switch ($droit->autres)
        {
        case ' ' : echo "$saucun"; break;
        case 'r' : echo "$svoir"; break;
        case 'w' : echo "$smodifier"; break;
        default : echo "<i>$sindefini</i>"; break;
        }
      }
      echo "</td><td>".nl2br($sfct[$fonction->id])."</td>";

      if ($id==0 && $fonction->depend>"")
      { // On configure les fonctionnalit�, on affiche alors les d�endances.
        echo "<td>";
        $reqd="SELECT * FROM fonctions WHERE id IN ($fonction->depend) ORDER BY ordre";
        $resd=executeRequete($reqd);
        while ($fctd=fetch_object($resd))
          echo $fctd->fonction."<br>";
        echo "</td>";
      }

      echo "</tr>\n";
    }
  }
  echo "</table>\n";
	echo cadre_fin();
} // fonction affiche_autorisations

function saisie_autorisations($id_stru)
{
global $autorvisiteur,$autordefstructure,$autoranim,$autorusagers,$fonctionnalitesdeappli,
	$sFonctionnalite,$smesinformations,$scellesdesautres,$sActif,
	$sCommentaire,$sdependde,$sactive,$sinactive,$sindefinie,
	$saucun,$svoir,$smodifier,$sindefini,$sconfirmer, $sfct;
  if (($id=$id_stru) > 0) // Il s'agit d'une structure
  {
    // On regarde s'il y a une configuration pour cette structure
    $req0="SELECT * FROM droits WHERE id_structure=$id";
    $res0=executeRequete($req0);
    if (! fetch_object($res0))
      $id=-3; // On reprend la configuration par d�aut.
  }
  switch ($id)
  {
  case -4 : $t=$autorvisiteur; break;
  case -3 : $t=$autordefstructure; break;
  case -2 : $t=$autoranim; break;
  case -1 : $t=$autorusagers; break;
  case 0  : $t=$fonctionnalitesdeappli; break;
  default : $t=structure($id); break;
  } // switch

	echo cadre_debut($t);
	echo "<form action=\"$PHP_SELF\" method=\"POST\" enctype=\"multipart/form-data\">
        <input type=\"hidden\" name=\"id_stru\" value=\"$id_stru\">
        <input type=\"hidden\" name=\"operation\" value=\"1\">
        <table align=center border=1>";
  echo "<tr><th>$sFonctionnalite</th>";
  if ($id!=0)
    echo "<th>$smesinformations</th><th>$scellesdesautres</td>";
  else
    echo "<th>$sActif ?</th>";
  echo "<th>$sCommentaire</th>";
  if ($id==0)
    echo "<th>$sdependde</th>";
  echo "</tr>\n";

  $req1="SELECT * FROM fonctions ORDER BY ordre";
  $res1=executeRequete($req1);
  while ($fonction=fetch_object($res1))
  {
    // Retrouver si la fonctionnalit�est active
    $req11="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=0";
    $res12=executeRequete($req11);
    $fct=fetch_object($res12);
    if ($fct->actif!="y")
    {
      echo "<tr bgcolor=\"#ADADAD\"><th>$fonction->fonction";
      if ($id!=0)
        echo " ($sINACTIVE)";
      echo "</th>";
    }
    else
      echo "<tr bgcolor=\"$fonction->couleur\"><th>$fonction->fonction</th>";

    // Retrouver le droit pour cette fonctionnalit
    $req2="SELECT * FROM droits WHERE id_fonction=$fonction->id AND id_structure=$id";
    $res2=executeRequete($req2);
    $droit=fetch_object($res2);

    if ($id==0)
    {    // Des fonctionalits de l'application
      echo "<td nowrap>";
      echo "<input type=\"radio\" name=\"fonction_$fonction->id\" value=\"\"";
      if (! $droit->actif)
        echo " checked";
      echo "><i>$sindefinie</i>
        <input type=\"radio\" name=\"fonction_$fonction->id\" value=\"y\"";
      if ($droit->actif=="y")
        echo " checked";
      echo "><b>$sactive</b>
        <input type=\"radio\" name=\"fonction_$fonction->id\" value=\"n\"";
      if ($droit->actif=="n")
        echo " checked";
      echo ">$sinactive\n";
    }
    else // Des autorisations
    {    // de structure, animateurs ou usagers
      echo "<td nowrap>";
      echo "<input type=\"radio\" name=\"fonction_moi_$fonction->id\" value=\"n\"";
      if ($droit->moi=="n")
        echo " checked";
      echo ">$saucun<br /> <input type=\"radio\" name=\"fonction_moi_$fonction->id\" value=\"r\"";
      if ($droit->moi=="r")
        echo " checked";
      echo ">$svoir<br /> <input type=\"radio\" name=\"fonction_moi_$fonction->id\" value=\"w\"";
      if ($droit->moi=="w")
        echo " checked";
      echo ">$smodifier";

      echo "</td>
            <td><input type=\"radio\" name=\"fonction_autre_$fonction->id\" value=\"n\"";
      if ($droit->autres=="n")
        echo " checked";
      echo ">$saucun<br /> <input type=\"radio\" name=\"fonction_autre_$fonction->id\" value=\"r\"";
      if ($droit->autres=="r")
        echo " checked";
      echo ">$svoir<br /> <input type=\"radio\" name=\"fonction_autre_$fonction->id\" value=\"w\"";
      if ($droit->autres=="w")
        echo " checked";
      echo ">$smodifier";
    }
    echo "</td>\n";

    echo "<td>".nl2br($sfct[$fonction->id])."</td>";
    
    if ($id==0 && $fonction->depend>"")
    { // On configure les fonctionnalit�, on affiche alors les d�endances.
      echo "<td>";
      $reqd="SELECT * FROM fonctions WHERE id IN ($fonction->depend) ORDER BY ordre";
      $resd=executeRequete($reqd);
      while ($fctd=fetch_object($resd))
        echo $fctd->fonction."<br>";
      echo "</td>";
    }

    echo "</tr>\n";
  }
  echo "<tr><td colspan=\"4\" align=center><input type=\"submit\"
          name=\"Confirmer\" value=\"$sconfirmer\"></td></tr>\n";
  echo "</table>\n
        </form>";
	echo cadre_fin();
} // fonction affiche_autorisations

function verifie_dependances_fonctionnalites()
{ // On doit regarder s'il y a des d�endances
  $req1="SELECT * FROM droits WHERE id_structure='0'"; // On prend toutes les fonctionnalit�
  $res1=executeRequete($req1);
  while ($fonction1=fetch_object($res1)) //->fetchrow(DB_FETCHMODE_OBJECT))
    if ($fonction1->actif=="y")
      verifie_une_fonctionnalite($fonction1->id_fonction);
  free_result($res1);
}

function verifie_une_fonctionnalite($id)
{
global $avisfctrenduactive;
  $req1="SELECT * FROM fonctions WHERE id='$id'"; // On prend toutes les fonctionnalit�
  $res1=executeRequete($req1);
  $fonction1=fetch_object($res1); //->fetchrow(DB_FETCHMODE_OBJECT);
  $dependance=$fonction1->depend;
  while ($dependance>"")
  {
    $suivante=""; $carsuivant=""; // On retrouve le num�o de la fonctionnalit�indispensable
    while ($dependance>"" && ($carsuivant=$dependance[0])!=",")
    {
      $suivante.=$carsuivant;
      $dependance=substr($dependance,1);
    }
    // On l'a trouv
    //debug($suivante);
    $rendreactif=FALSE;
    // On regarde si la fonctionnalit�existe.
    $req2="SELECT * FROM droits WHERE id_structure='0' AND id_fonction='$suivante'";
    $res2=executeRequete($req2);
    if ($droit2=fetch_object($res2)) //->fetchrow(DB_FETCHMODE_OBJECT))
    { // Oui, alors est-elle active ?
      if ($droit2->actif!="y")
      { // Non, alors on la rend active
        $req3="UPDATE droits SET actif='y' WHERE id_fonction='$suivante'
                                                 AND id_structure='0'";
	      if ($res3=executeRequete($req3))
          $rendreactif=TRUE;
      }
    } // $droit2
    else
    { // Non, elle n'existe pas, alors on la cre
      $req3="INSERT INTO droits (id_structure, id_fonction, actif)
                           VALUES ('0', '$suivante', 'y')";
//	    echo $req3;
//	die("    STOP");
      if ($res3=executeRequete($req3))
        $rendreactif=TRUE;
    }

    if ($rendreactif)
    {
      // Retrouver la fonctionnalit�rendue active
      $req4="SELECT * FROM fonctions WHERE id='$suivante'";
      //debug($req4);
      $res4=executeRequete($req4);
      $fctajoutee=fetch_object($res4); //->fetchrow(DB_FETCHMODE_OBJECT);
      printf($avisfctrenduactive, $fctajoutee->fonction, $fonction1->fonction);
      verifie_une_fonctionnalite($suivante);
    }

    $dependance=substr($dependance,1);
  }
  // Ouf, on a �uis�la liste des d�endances
  free_result($res1);
}

// Dbut de la page

switch ($operation)
{
case 1 : // Enregistrement apr� une saisie (retour du formulaire)
  // Quelques v�ifications
	echo cadre_debut($smaj);
  $mes="";
  // A-t-on le droit de modifier quelquechose ?
  if ((DROITS_MES<"w" || $id_stru!=$id_structure)
      && DROITS_AUTRES<"w")
    $mes.=$pasledroit;
  // A-t-on bien le num�o de la structure �qui changer les droits ?
  if (! isset($id_stru))
    $mes.=$smanqueinformationentite;
  if ($mes!="")
  {
    echo "<p>$mes</p>\n";
		echo cadre_fin();
    break;
  }
  // Ok, alors on fait !

  // On dtruit toutes les autorisations de l'entit (Est-ce bien ce qu'il faut faire ???)
  $req0="DELETE FROM droits WHERE id_structure=$id_stru";
  $res0=executeRequete($req0);

  //On prend chaque fonctionalit
  $req1="SELECT * FROM fonctions";
  $res1=executeRequete($req1);
  while ($fonction1=fetch_object($res1)) //->fetchrow(DB_FETCHMODE_OBJECT))
  {
    // et on regarde s'il y a une affectation
    $champ0="fonction_".$fonction1->id;
    $champ1="fonction_moi_".$fonction1->id;
    $champ2="fonction_autre_".$fonction1->id;
    if ($$champ0 || $$champ1 || $$champ2)
    { // Oui, un champ a ��rempli
      //debug($$champ);
      $req2="INSERT INTO droits (id_structure, id_fonction, actif, moi, autres)
            VALUES (\"$id_stru\", \"$fonction1->id\", \"${$champ0}\", \"${$champ1}\", \"${$champ2}\")";
      $res2=executeRequete($req2);
    }
  }
  free_result($res1);

  if ($id==0) // Il s'agit des fonctionnalit�
    verifie_dependances_fonctionnalites(); // comme son nom l'indique

  echo $savertissementmodifdroits;
  // Et c'est fini !
	echo cadre_fin();
  break;

case 11 : // Voir les droits des usagers
  affiche_autorisations(-1);
  break;

case 12 : // Modifier les droits des usagers
  saisie_autorisations(-1);
  break;

case 21 : // Voir les fonctionnalits de l'application
  affiche_autorisations(-2);
  break;

case 22 : // Modifier les fonctionnalits de l'application
  saisie_autorisations(-2);
  break;

case 311 :
	if ($id)
		affiche_autorisations($id);

case 321 : // Saisie des droits d'une structure
	if ($operation==321 && $id)
	  saisie_autorisations($id);

case 31 : // Voir les droits des structures
case 32 : // Modifier les droits des structures
	echo cadre_debut($sautorstructure);
	$pasbeau=FALSE;
	if ($operation==32 || $operation==321)
	{
	  if (DROITS_AUTRES<"w") $pasbeau=TRUE;
	}
	else
		if (DROITS_AUTRES<"r") $pasbeau=TRUE;
	if ($pasbeau)
	{
		echo $pasledroit;
		echo cadre_fin();
		break;
	}
	echo "<form action=\"$PHP_SELF\" method=\"POST\" enctype=\"multipart/form-data\">
				    <input type=\"hidden\" name=\"operation\" value=";
	if ($operation==31 || $operation==311)
		echo "311";
	else
		echo "321";
	echo "><p align=center>";
	choix_structure($id, "id", "");
	echo "</p>
				<p align=center><input type=\"submit\" value=\"";  //"
	if ($operation==31 || $operation==311)
		echo $svoir;
	else
		echo $smodifierlesdroits;
	echo "\"></p>
        </form>"; //"
	echo cadre_fin();
  break;

case 41 : // Voir les fonctionnalits de l'application
  affiche_autorisations(0);
  break;

case 42 : // Modifier les fonctionnalits de l'application
  saisie_autorisations(0);
  break;

case 51 : // Voir les fonctionnalits de l'application
  affiche_autorisations(-4);
  break;

case 52 : // Modifier les fonctionnalits de l'application
  saisie_autorisations(-4);
  break;
} // switch

echo cadre_debut($titreconfiguration);
echo "<table border='1'>\n";

if ((DROITS>="~") && DROITS_AUTRES>="r")
{
  echo "<tr bgcolor=\"".COULEUR_DROITS."\"><th>$fonctionnalitesdeappli</th>";
  echo "<td><a href='$PHP_SELF?operation=41' title='$svoir'>$info</a></td>";
  if (DROITS_AUTRES>="w")
    echo "<td><a href='$PHP_SELF?operation=42' title='$smodifier'>$modifier</a></td>";
  echo "</tr>\n";
}

if (FCT_STRUCTURES=="y")
{
  if (DROITS_AUTRES>="w")
  {
    echo "<tr bgcolor=\"".COULEUR_STRUCTURES."\"><th>$autordefstructure</th>";
    echo "<td><a href='$PHP_SELF?operation=311&id=-3' title='$svoir'>$info</a></td>";
    echo "<td><a href='$PHP_SELF?operation=321&id=-3' title='$smodifier'>$modifier</a></td>";
    echo "</tr>\n";
  }

  if ($is_ident=="structure" && DROITS_MOI>="r")
  {
    echo "<tr bgcolor=\"".COULEUR_STRUCTURES."\"><th>$smesdroits</th>";
    echo "<td><a href='$PHP_SELF?operation=311&id=$id_structure' title='$svoir'>$info</a></td>";
    if (DROITS_MOI>="w")
      echo "<td><a href='$PHP_SELF?operation=321&id=$id_structure' title='$smodifier'>$modifier</a></td>";
    echo "</tr>\n";
  }

  if (DROITS_AUTRES>="r")
  {
    echo "<tr bgcolor=\"".COULEUR_STRUCTURES."\"><th>$sautorstructure</th>";
    echo "<td><a href='$PHP_SELF?operation=31' title='$svoir'>$info</a></td>";
    if (DROITS_AUTRES>="w")
      echo "<td><a href='$PHP_SELF?operation=32' title='$smodifier'>$modifier</a></td>";
    echo "</tr>\n";
  }
}

if (FCT_USAGERS=="y")
{
  echo "<tr bgcolor=\"".COULEUR_USAGERS."\"><th>$autorusagers</th>";
  if (DROITS_AUTRES>="r" || ($is_ident=="usager" && DROITS_MOI>="r"))
  echo "<td><a href='$PHP_SELF?operation=11' title='$svoir'>$info</a></td>";
  if (DROITS_AUTRES=="w" || ($is_ident=="usager" && DROITS_MOI>="r"))
    echo "<td><a href='$PHP_SELF?operation=12' title='$smodifier'>$modifier</a></td>";
  echo "</tr>\n";
}

if (ANIMATEURS>="~")
{
  echo "<tr bgcolor=\"".COULEUR_ANIMATEURS."\"><th>$autordefanimateur</th>";
  if (DROITS_AUTRES>="r" || ($is_ident=="animateur" && DROITS_MOI>="r"))
    echo "<td><a href='$PHP_SELF?operation=21&id=-2' title='$svoir'>$info</a></td>";
  if (DROITS_AUTRES>="w" || ($is_ident=="animateur" && DROITS_MOI>="w"))
    echo "<td><a href='$PHP_SELF?operation=22&id=-2' title='$smodifier'>$modifier</a></td>";
  echo "</tr>\n";
}

if ((DROITS>="~") && DROITS_AUTRES>="r")
{
  echo "<tr><th>$autorvisiteur</th>";
  echo "<td><a href='$PHP_SELF?operation=51' title='$svoir'>$info</a></td>";
  if (DROITS_AUTRES>="w")
    echo "<td><a href='$PHP_SELF?operation=52' title='$smodifier'>$modifier</a></td>";
  echo "</tr>\n";
}

if (! $verrou_config)
  echo "<tr><td colspan=3 align=center><a href=\"config.php\">$titreconfig</a></td></tr>\n";

echo "</table>\n";
echo cadre_fin();

// Fin de la page
include("basdepage.inc.php");
echo "</body></html>\n";
require("footer.inc.php");
?>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us