Skip to content
Snippets Groups Projects
Select Git revision
  • 56a8ccca4d7d6f6206dfa8a0f7d3ba6909df4a9c
  • master default protected
  • multiprocessing
  • experiment/clara
  • experiment/spec2B-poc
  • experiment/qivalio-poc
  • experiment/ertms
  • MAY-2023
  • FEB-2023
  • EGC-2023
  • 0.2.1
  • v0.2.0
  • v0.1.2
13 results

negation-devGraph-2.result.ttl

Blame
  • index1.php 4.64 KiB
    <?php
    //	//Créé un projet Rekall
    //	function createProject($name, $videoUrl, $sha1password) {
    //		$retours = array("success" => 0, "error" => "", "value" => "");
    //		$name = sanitize($name);
    //
    //		if($name == "")
    //			$name = sha1(rand());
    //
    //		if(!file_exists($name)) {
    //			$zip = new ZipArchive;
    //			$res = $zip->open("create.zip");
    //			if ($res === TRUE) {
    //				$zip->extractTo($name);
    //				$zip->close();
    //				file_put_contents($name."/file/project.xml", str_replace("__video__", $videoUrl, file_get_contents($name."/file/project.xml")));
    //				file_put_contents($name."/file/projectPassword.txt", $sha1password);
    //				$retours["success"] = 1;
    //			} else {
    //				$retours["success"] = -1;
    //				$retours["error"] = "No seed found";
    //			}
    //		}
    //		else {
    //			$retours["success"] = 0;
    //			$retours["error"] = "Project already exists";
    //		}
    //		$retours["value"] = $name;
    //
    //		echo json_encode($retours);
    //	}
    //
    //	if((isset($_POST["create"])) && (isset($_POST["video"])) && (isset($_POST["p"]))) {
    //		createProject($_POST["create"], $_POST["video"], $_POST["p"]);
    //		exit();
    //	}
    //?>
    <!--<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">-->
    <!--<html xmlns="http://www.w3.org/1999/xhtml">-->
    <!--<head>-->
    <!--	<meta http-equiv="Content-type" content="text/html; charset=UTF-8">-->
    <!--	<meta http-equiv="Content-Language" content="fr">-->
    <!--	<meta name="language" content="fr">-->
    <!--	<meta name="designer" content="buzzing light">  -->
    <!--	<meta name="copyright" content="buzzing light">-->
    <!--	<meta name="HandheldFriendly" content="true" />-->
    <!--	<meta name="viewport" content="width=device-width, user-scalable=no"><!--, minimum-scale=1.0, maximum-scale=1.0-->-->
    <!--	<meta name="apple-mobile-web-app-capable" content="yes">-->
    <!--	<meta name="apple-mobile-web-app-status-bar-style" content="black">-->
    <!---->
    <!--	<link rel="apple-touch-icon" href="favicon.png" />-->
    <!--	<link rel="stylesheet" type="text/css" href="css/reset.css" />-->
    <!---->
    <!--	<title>Rekall</title>-->
    <!--	                                                                          -->
    <!--    <script language="javascript" type='text/javascript' src='js/jquery.min.js'></script>     -->
    <!--	<script language="javascript" type='text/javascript' src='js/sha1.js'></script>-->
    <!--	<link rel="stylesheet" type="text/css" href="css/create-theme.css" />    -->
    <!--	-->
    <!--	<script language="javascript" type='text/javascript'>-->
    <!--		$(document).ready(function() {-->
    <!--			$("#formCreate").submit(function(event) {-->
    <!--				event.stopPropagation();-->
    <!--				if(($("input[name=create]").val() != "") && ($("input[name=video]").val() != "") /*&& ($("input[name=password]").val() != "")*/) {-->
    <!--					var passwordRaw = "000000"; //$("input[name=p]").val();-->
    <!--					var password = (CryptoJS.SHA1(passwordRaw) + "").toUpperCase();-->
    <!--					$("#submitCreate").hide();-->
    <!--					$.ajax("index.php", {-->
    <!--						type: "POST",-->
    <!--						dataType: "json",-->
    <!--						data: {"create": $("input[name=create]").val(), "video": $("input[name=video]").val(), "p": password},-->
    <!--						success: function(retour) {-->
    <!--							console.log(retour);-->
    <!--							if(retour.success == 1) {-->
    <!--								window.document.location = document.URL.substr(0,document.URL.lastIndexOf('/')) + "/" + retour.value + "/?p=" + password;-->
    <!--							}-->
    <!--							else {-->
    <!--								alert(retour.error)-->
    <!--								$("#submitCreate").show();-->
    <!--							}-->
    <!--						},-->
    <!--						error: function(retour) {-->
    <!--							$("#submitCreate").show();-->
    <!--						}-->
    <!--					});	-->
    <!--				}-->
    <!--				else-->
    <!--					alert("Merci de saisir tous les champs");-->
    <!--				return false;-->
    <!--			});			-->
    <!--		});-->
    <!--	</script>-->
    <!--</head>-->
    <!--<body id="createProjectBody">              -->
    <!--	<img id="createProjectLogo" src="css/images/logo.png" />-->
    <!--	<br/><div class="col-md-12 row-title-box">-->
    <!--		<div class="row-title">Create Capsule</div>-->
    <!--	</div>-->
    <!--	<form action="index.php" method="post" id='formCreate'>-->
    <!--		<label>Name of the capsule</label>-->
    <!--		<input type="text" name="create"   placeholder="my-project-name" size="30"><br/>-->
    <!--		<label>YouTube or Vimeo video URL</label>-->
    <!--	    <input type="text" name="video"    placeholder="https://www.youtube.com/watch?v=4Rcw5GCXJnQ" size="30"><br/>-->
    <!--		<!--<label>Edition password *</label>-->
    <!--	    <input type="password" name="p" placeholder="password" size="30"><br/>-->-->
    <!---->
    <!--	    <input id="submitCreate" type="submit" value="Create a capsule" name="submit">-->
    <!--	</form>        -->
    <!--</body>-->
    <!--</html>-->