<<!DOCTYPE html> <html> <head> <meta charset="UTF-8"/> <title></title> </head> <body> <?php include "php/converter.class.php"; $file = new Converter("Disp Toto\nLine(10,20,30,40,0)\n1→∆X:1→Y\nText(10,10,\"totofaitdu velo\")\n"); echo "<textarea>" . $file->getSrc() . "</textarea>"; $file->GetTypeOfDefinitionScreen(); $result = $file->MonoToColor(); echo '<textarea>' . $result . '</textarea>'; ?> </body> </html>
<?php session_start(); require 'head.php'; $current_prgm = new Converter($_SESSION['src'], $_SESSION['type'], $_SESSION['lang']); /*$newPrgm->setContentFromString($current_prgm->ColorToMono()); $newPrgm->saveVarToFile("files/", "trololol"); */ ?> <section class="SEC_main"> <h1>Fichier converti</h1> <?php ?> <textarea><?php echo $current_prgm->getSrc(); ?> </textarea> <textarea><?php echo $current_prgm->colorToMono(); ?> </textarea> </section> <?php require 'footer.php';