grame-cncm / onlinecompiler

Create audio applications, vst plugins and much more online
http://faust.grame.fr/onlinecompiler/
12 stars 1 forks source link

The online compiler does not launch #2

Open programLyrique opened 5 years ago

programLyrique commented 5 years ago

https://faust.grame.fr/tools/onlinecompiler/ displays :

. */ error_reporting(E_ERROR | E_WARNING | E_PARSE); //error_reporting(E_ERROR); //if no session is found, a new one is started if (session_id()=="") session_start(); require("php/env.php"); require "php/functions.php"; require "php/make_element.php"; //session variables are updated $_SESSION['orig_editor'] = 1; $_SESSION['goto'] = "faustCode"; //creating the session folder on the server id it doesn't already exists $_SESSION['id'] = session_id(); // another comment $_SESSION['path'] = $_SERVER['DOCUMENT_ROOT']."/onlinecompiler/tmp/".$_SESSION['id']; // and another one system("scripts/new_session {$_SESSION['path']}", $ret); if ($ret != 0) {erreur("index.php: Unable to start a new session {$_SESSION['path']}. Please, try later."); return 1;} //get the code of compiler.html if ($_SESSION['htmlCode'] == "" || $_SESSION['fullScreenModeTest'] == 1){ if($_SESSION['fullScreenMode'] == 1) $_SESSION['htmlCode'] = read_file("compiler-large.html"); else $_SESSION['htmlCode'] = read_file("compiler.html"); $_SESSION['fullScreenModeTest'] = 0; } $html = $_SESSION['htmlCode']; //the html page is built display_header($html); // display_catalog($html,"goto_codeFaust.php"); // display_exampleSaver($html); display_dropFile($html,"goto_codeFaust()"); display_navigation($html,2); display_atelier($html); // display_welcome($html); display_footer($html); ?>

orlarey commented 5 years ago

The online compiler is no longer available. We plan to replace most of its features with the online editor.

dfober commented 5 years ago

You could automatically redirect the old online compiler page to the online editor, directly or via a temporary information page such as:

"The online compiler is replaced by ... You'll be redirected to the online editor in a few seconds... bla bla bla, in case it doesn't work click here bla bla bla..."

Note that you can also inform the search engines of the redirection (don't remember exactly how).