Subversion Repositories computer_asset_manager_v2

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php
   if ( ! $connection->test() ) { // the tables have not been set up
      $initValues = array( 
         'users' => array( 
            'login' => 'admin', 
            'pass' => password_hash( 'admin', PASSWORD_DEFAULT ),
            'admin' => 1, 
         )
         );
      $connection->buildTable( );
      $connection->initTables( $initValues );
      $connection->addPermission ( 'Main', 'P1', 'Permission All', 1 );
      $connection->addPermission ( 'Main', 'P2', 'Permission Some', 0 );
      $connection->setUsersPermissions();
   }
   
   create table _config ( config_id int unsigned not null auto_increment, category varchar(16), item varchar(16), value text, primary key (config_id) );
?>