<?php
header( 'Content-Type: text/html; charset: UTF-8' );
include_once( '../../../includes/prepend.php' );
//recuperation de l'action
$sAction = $_REQUEST[ 'action' ];
if( is_null( $sAction ) || $sAction == '' )
exit();
//connexion a la base de donnees du projet
if( isset( $_REQUEST[ 'tag' ] ) && $_REQUEST[ 'tag' ] != '' ){
$oData = $oFramework->oProjets->getData( $_REQUEST[ 'tag' ] );
$oFramework->oProjets->sChaineConnexion = "mysql:host=".$oData->bddServer.";port=3306;dbname=".$oData->bddBdd;
$oFramework->oProjets->sUser = $oData->bddUser;
$oFramework->oProjets->sPass = $oData->bddPass;
}
if( $sAction == 'generation' ){
//generation du projet
echo $oFramework->oGeneration->generation( $_REQUEST[ 'tag' ], $_REQUEST[ 'opt_genere_class_main' ] == 0, $_REQUEST[ 'opt_clean_folder' ] == 1 );
}
?>