예제 #1
0
 //Supression de l'ancienne base si elle existe
 if (file_exists(DB_NAME)) {
     unlink(DB_NAME);
 }
 //Instanciation des managers d'entités
 $user = new User();
 $configuration = new Configuration();
 $right = new Right();
 $rank = new Rank();
 $section = new Section();
 $event = new Event();
 $client = new Client();
 //Création des tables SQL
 $configuration->create();
 $user->create();
 $right->create();
 $rank->create();
 $section->create();
 $event->create();
 $client->create();
 $configuration->put('UPDATE_URL', 'http://update.idleman.fr/yana?callback=?');
 $configuration->put('DEFAULT_THEME', 'default');
 $configuration->put('COOKIE_NAME', 'yana');
 $configuration->put('COOKIE_LIFETIME', '7');
 $configuration->put('VOCAL_ENTITY_NAME', 'YANA');
 $configuration->put('PROGRAM_VERSION', '3.0.6');
 $configuration->put('HOME_PAGE', 'index.php');
 $configuration->put('VOCAL_SENSITIVITY', '0.0');
 //Création du rang admin
 $rank = new Rank();
 $rank->setLabel('admin');