| @@ 578-584 (lines=7) @@ | ||
| 575 | $perm[$i] = array(false, false, false); |
|
| 576 | $n = isset($stat['chmod'][$i]) ? $stat['chmod'][$i] : 0; |
|
| 577 | ||
| 578 | if ($n - 4 >= 0) { |
|
| 579 | $perm[$i][0] = true; |
|
| 580 | $n = $n - 4; |
|
| 581 | $stat['perm'] .= 'r'; |
|
| 582 | } else { |
|
| 583 | $stat['perm'] .= '-'; |
|
| 584 | } |
|
| 585 | ||
| 586 | if ($n - 2 >= 0) { |
|
| 587 | $perm[$i][1] = true; |
|
| @@ 586-592 (lines=7) @@ | ||
| 583 | $stat['perm'] .= '-'; |
|
| 584 | } |
|
| 585 | ||
| 586 | if ($n - 2 >= 0) { |
|
| 587 | $perm[$i][1] = true; |
|
| 588 | $n = $n - 2; |
|
| 589 | $stat['perm'] .= 'w'; |
|
| 590 | } else { |
|
| 591 | $stat['perm'] .= '-'; |
|
| 592 | } |
|
| 593 | ||
| 594 | if ($n - 1 == 0) { |
|
| 595 | $perm[$i][2] = true; |
|
| @@ 594-599 (lines=6) @@ | ||
| 591 | $stat['perm'] .= '-'; |
|
| 592 | } |
|
| 593 | ||
| 594 | if ($n - 1 == 0) { |
|
| 595 | $perm[$i][2] = true; |
|
| 596 | $stat['perm'] .= 'x'; |
|
| 597 | } else { |
|
| 598 | $stat['perm'] .= '-'; |
|
| 599 | } |
|
| 600 | ||
| 601 | $stat['perm'] .= ' '; |
|
| 602 | } |
|