fobiaweb/auth

Fobia Auth Component

v0.1.0 2014-07-27 00:18 UTC

This package is auto-updated.

Last update: 2024-12-06 23:56:38 UTC


README

php Fobia Auth Component

Файл прав доступа

access.php

return array(
    1 => array(
        'list' => array(
            'ACCESS_1',
            'ACCESS_2'
        ),
        'value' => array(
            'ACCESS_3' => 11
        )
    ),
    2 => array(
        'list' => array(
            'ACCESS_1',
            'ACCESS_2'
        ),
        'value' => array(
            'ACCESS_3' => 11
        )
    )
);

ADMIN OVERRIDE

Сгенерировать таблицу:

$n = $i = 1;
while (strlen((string) $i) <= 9) {
    echo sprintf("| %-4d | %-9d | %b | \n", $n, $i, $i);
    $i = $i * 2;
    $n = $n + 1;
}