@@ 525-535 (lines=11) @@ | ||
522 | $xml .= " <permissions>\n"; |
|
523 | ||
524 | // Add XML code for template "author" permissions. |
|
525 | if ($template['author_perm'] != 0) |
|
526 | { |
|
527 | $xml .= " <author>\n"; |
|
528 | ||
529 | foreach ($permissions as $flag => $permit) |
|
530 | { |
|
531 | $xml .= (($template['author_perm'] & $flag) == 0 ? NULL : " <permit>{$permit}</permit>\n"); |
|
532 | } |
|
533 | ||
534 | $xml .= " </author>\n"; |
|
535 | } |
|
536 | ||
537 | // Add XML code for template "responsible" permissions. |
|
538 | if ($template['responsible_perm'] != 0) |
|
@@ 538-548 (lines=11) @@ | ||
535 | } |
|
536 | ||
537 | // Add XML code for template "responsible" permissions. |
|
538 | if ($template['responsible_perm'] != 0) |
|
539 | { |
|
540 | $xml .= " <responsible>\n"; |
|
541 | ||
542 | foreach ($permissions as $flag => $permit) |
|
543 | { |
|
544 | $xml .= (($template['responsible_perm'] & $flag) == 0 ? NULL : " <permit>{$permit}</permit>\n"); |
|
545 | } |
|
546 | ||
547 | $xml .= " </responsible>\n"; |
|
548 | } |
|
549 | ||
550 | // Add XML code for template "registered" permissions. |
|
551 | if ($template['registered_perm'] != 0) |
|
@@ 551-561 (lines=11) @@ | ||
548 | } |
|
549 | ||
550 | // Add XML code for template "registered" permissions. |
|
551 | if ($template['registered_perm'] != 0) |
|
552 | { |
|
553 | $xml .= " <registered>\n"; |
|
554 | ||
555 | foreach ($permissions as $flag => $permit) |
|
556 | { |
|
557 | $xml .= (($template['registered_perm'] & $flag) == 0 ? NULL : " <permit>{$permit}</permit>\n"); |
|
558 | } |
|
559 | ||
560 | $xml .= " </registered>\n"; |
|
561 | } |
|
562 | ||
563 | // Enumerate local groups of the same project and all global groups. |
|
564 | $rs = dal_query('groups/gplist3.sql', $id); |