Subversion Repositories computer_asset_manager_v2

Rev

Rev 45 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
45 rodolico 1
<?php
2
   if ( ! $connection->test() ) { // the tables have not been set up
3
      $initValues = array( 
4
         'users' => array( 
5
            'login' => 'admin', 
6
            'pass' => password_hash( 'admin', PASSWORD_DEFAULT ),
7
            'admin' => 1, 
8
         )
9
         );
10
      $connection->buildTable( );
11
      $connection->initTables( $initValues );
12
      $connection->addPermission ( 'Main', 'P1', 'Permission All', 1 );
13
      $connection->addPermission ( 'Main', 'P2', 'Permission Some', 0 );
14
      $connection->setUsersPermissions();
15
   }
16
 
17
   create table _config ( config_id int unsigned not null auto_increment, category varchar(16), item varchar(16), value text, primary key (config_id) );
18
?>