|
|
@ -23,27 +23,6 @@ class UserController
|
|
|
|
case "goToTest":
|
|
|
|
case "goToTest":
|
|
|
|
$this->goToTest();
|
|
|
|
$this->goToTest();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "goToChouette":
|
|
|
|
|
|
|
|
$this->goToChouette();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToCesarEncrypt":
|
|
|
|
|
|
|
|
$this->goToCesarEncrypt();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToCesarDecrypt":
|
|
|
|
|
|
|
|
$this->goToCesarDecrypt();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToChuckNorris":
|
|
|
|
|
|
|
|
$this->goToChuckNorris();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToHanoi":
|
|
|
|
|
|
|
|
$this->goToHanoi();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToTrianglePascal":
|
|
|
|
|
|
|
|
$this->goToTrianglePascal();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToDoubleElement":
|
|
|
|
|
|
|
|
$this->goToDoubleElement();
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
case "goToNext":
|
|
|
|
case "goToNext":
|
|
|
|
$this->goToNext();
|
|
|
|
$this->goToNext();
|
|
|
|
break;
|
|
|
|
break;
|
|
|
@ -115,76 +94,6 @@ class UserController
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public function goToChouette()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['chouette']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToCesarEncrypt()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['cesarEncrypt']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToCesarDecrypt()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['cesarDecrypt']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToChuckNorris()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['chuckNorris']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToHanoi()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['hanoi']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToTrianglePascal()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['trianglePascal']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToDoubleElement()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
global $rep, $vues;
|
|
|
|
|
|
|
|
require($rep . $vues['doubleElement']);
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
|
|
|
|
$error = $e->getMessage();
|
|
|
|
|
|
|
|
require($rep . $vues['erreur']);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public function goToNext()
|
|
|
|
public function goToNext()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|