Beispiel #1
0
    echo '===============</br>';
    foreach ($cc->getErrorList() as $e) {
        echo $e->typeError . ' : ' . $e->textError . '</br>';
        echo $e->getLigneNumber() . '</br>';
        echo $e->getTextOnly() . '</br>';
    }
    unset($cc);
}
if (strcmp($cibleTest, 'Simplex') == 0) {
    //===================  Simplex Test ================================
    require_once 'EPPersistentDataManager.php';
    require_once 'EPListProvider.php';
    require_once 'EPConfigFile.php';
    $persistManager = new EPPersistentDataManager('./config.ini');
    $listProvider = new EPListProvider('./config.ini');
    $configValues = new EPConfigFile('./config.ini');
    //echo infos by id
    $infos = $listProvider->getInfosById("backgrounds");
    echo "<br>";
    echo "Infos : <br>";
    echo $infos;
    //Add Aptitudes
    echo "<br><br>ADDING APTITUDE------------------------------------- <br><br>";
    $ap = array();
    $ap[0] = new EPAptitude('Cognition', EPAptitude::$COGNITION, "", array("Cognition group", "Apt test group 2"));
    $ap[1] = new EPAptitude('Coordination', EPAptitude::$COORDINATION);
    $ap[2] = new EPAptitude('Intuition', EPAptitude::$INTUITION);
    $ap[3] = new EPAptitude('Reflex', EPAptitude::$REFLEXS);
    $ap[4] = new EPAptitude('Savvy', EPAptitude::$SAVVY);
    $ap[5] = new EPAptitude('Somatic', EPAptitude::$SOMATICS);
    $ap[6] = new EPAptitude('Willpower', EPAptitude::$WILLPOWER);
<?php

require_once '../../../php/EPConfigFile.php';
$config = new EPConfigFile('../../../php/config.ini');
?>
<table class="popup_table" id="table_reset" align="center">
	<tr align="center">
		<td>
			<h1><b><u> Eclipse phase character creator</u></b></h1>
		</td>
	</tr>
	
	<tr align="center">
		<td>
			Welcome on the character creator for 
			<a href="http://eclipsephase.com" target="_blank">Eclipse Phase</a>
			<br><br>
			First you have to choose the amount of creation point (min 700 CP) you want to 
			use for creating your character.
			<br><br>
		</td>
	</tr>
	
	<tr align="center">
		<td>
			<input style="line-height: 1em;" id="startCP" type="number" min="800" value="1000"> Creation points.
			<br><br>
		</td>
	</tr>
	
	<tr align="center">