Commit initial

This commit is contained in:
2020-05-15 12:27:34 +02:00
commit 70f72f2e54
87 changed files with 12684 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<h1>Site web Projet L3</h1>
<form method="get" action="default">
<button type="submit">Retour</button>
</form>
<form method="get" action="connexion/disconnect">
<button type="submit">Deconnexion</button>
</form>
<?php foreach($videos as $i => $video): ?>
<h5>Du <?=$video["begin"]?> au <?=$video["end"]?></h5>
<div id="rtmp-player-container-<?=$i?>"></div>
<script>
jwplayer("rtmp-player-container-<?=$i?>").setup({
file: "<?=$video['path']?>",
preload: false
});
</script>
<?php endforeach; ?>

View File

@ -0,0 +1,37 @@
<h1>Site web Projet L3</h1>
<form method="get" action="default">
<button type="submit">Retour</button>
</form>
<form method="get" action="connexion/disconnect">
<button type="submit">Deconnexion</button>
</form>
<form method="post" action="camera/swapState/<?=$this->clean($camera->getId())?>">
<h2>Caméra : <?= $this->clean($camera->getName())?></h2>
<?php if($this->clean($camera->getAvailable()) == true):?> Joignable -
<?php else: ?> Non joignable -
<?php endif ?>
<?php if($this->clean($camera->getEnabled()) == true):?> Activée <button type="submit">Désactiver</button>
<?php $swap = "disable";?>
<?php else: ?> Désactivée <button type="submit">Activer</button>
<?php $swap = "enable";?>
<?php endif ?>
<a href="camera/delayed/<?=$this->clean($camera->getId())?>"><button type="button">Regarder le différé</button></a>
<input type="hidden" name="whereController" value="camera">
<input type="hidden" name="whereAction" value="index/<?=$this->clean($camera->getId())?>">
<input type="hidden" name="swap" value="<?=$swap?>">
</form>
<br>
<div id="rtmp-player-container"></div>
<script>
jwplayer("rtmp-player-container").setup({
file: "rtmp://<?=Configuration::get('host')?>:1935/livecam/<?=$this->clean($camera->getId())?>?login=<?=$this->clean($user->getLogin())?>&password=<?=$this->clean($user->getPassword())?>",
controls: false,
autostart: true,
preload: "none"
});
</script>

View File

@ -0,0 +1,17 @@
<?php $this->title = " Connexion" ?>
<p>Vous devez être connecté pour accéder au site.</p>
<form action="connexion/logOn" method="post">
<input name="login" type="text" placeholder="Entrez votre login" required autofocus>
<input name="password" type="password" placeholder="Entrez votre mot de passe" required>
<button type="submit">Connexion</button>
</form>
<form method="get" action="connexion/registration">
<button type="submit">Inscription</button>
</form>
<?php if (isset($msgError)): ?>
<p><?= $msgError ?></p>
<?php endif; ?>

View File

@ -0,0 +1,23 @@
<?php $this->title = "Inscription" ?>
<p>Enregistrez vous pour avoir accès au site</p>
<form action="connexion/register" method="post" >
<label>Login</label>
<input type="text" name="login" size="30" placeholder="Entrez votre login" required autofocus/> <br/>
<label>Mot de passe</label>
<input type="password" name="password" size="30" placeholder="Entrez votre Mot de passe" required /> <br/>
<label>Retapez votre mot de passe</label>
<input type="password" name="passwordBis" size="30" placeholder="Entrez votre Mot de passe" required /> <br/>
<button type="submit">Valider l'inscription</button>
</form>
<form method="get" action="connexion">
<button type="submit">Annuler l'inscription</button>
</form>
<?php if (isset($msgError)): ?>
<p><?= $msgError ?></p>
<?php endif; ?>

View File

@ -0,0 +1,10 @@
<h1>Site web Projet L3</h1>
<a href="connexion/disconnect"><button type="submit">Deconnexion</button></a>
<a href="default/addCamAdmin"><button type="submit">Ajouter une caméra</button></a>
<?php if(isset($id) && isset($product_key)):?>
<p>Numéro de série de la caméra : <?= $this->clean($id) ?></p>
<p>Clé produit de la caméra : <?= $this->clean($product_key) ?></p>
<?php endif?>

View File

@ -0,0 +1,34 @@
<h1>Site web Projet L3</h1>
<a href="connexion/disconnect"><button type="submit">Deconnexion</button></a>
<a href="default/settings"><button type="submit">Paramètre</button></a>
<h2>Mes caméras</h2>
<?php if($cameras != null): ?>
<ul>
<?php foreach($cameras as $camera): ?>
<li>
<form method="post" action="camera/swapState/<?=$camera->getId()?>">
<a href="<?= "camera/" . $this->clean($camera->getId()) ?>">
<?= $camera->getName() ?>
</a>
<?php if($camera->getAvailable() == true):?> Joignable -
<?php else: ?> Non joignable -
<?php endif ?>
<?php if($camera->getEnabled() == true):?> Activée <button type="submit">Désactiver</button>
<?php $swap = "disable";?>
<?php else: ?> Désactivée <button type="submit">Activer</button>
<?php $swap = "enable";?>
<?php endif ?>
<a href="camera/delayed/<?=$camera->getId()?>"><button type="button">Regarder le différé</button></a>
<input type="hidden" name="swap" value="<?=$swap?>">
</form>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p>Vous n'avez accès à aucune caméra</p>
<?php endif ?>

View File

@ -0,0 +1,18 @@
<h1>Site web Projet L3</h1>
<form method="get" action="default">
<button type="submit">Retour</button>
</form>
<form method="get" action="connexion/disconnect">
<button type="submit">Deconnexion</button>
</form>
<h2>Caméra : <?= $this->clean($camera->getName())?></h2>
<div id="rtmp-player-container"></div>
<script>
jwplayer("rtmp-player-container").setup({
file: "rtmp://cam.wildsparksoftware.com:1935/livecam/<?=$this->clean($camera->getId())?>"
});
</script>

View File

@ -0,0 +1,61 @@
<h1>Site web Projet L3</h1>
<a href="connexion/disconnect"><button type="submit">Deconnexion</button></a>
<a href="default"><button type="submit">Retour</button></a>
<h3>Mes informations</h3>
<?php if(isset($messageInfo)): ?>
<p><?= $messageInfo ?></p>
<?php endif ?>
<h4>Mes identifiants :</h4>
<form method="post" action="default/updateLogin">
<label>Login :</label>
<input type="text" name="login" placeholder="Login" required>
<button type="submit">Modifier</button>
</form>
<form method="post" action="default/updatePassword">
<label>Mot de passe :</label>
<input type="password" name="password" placeholder="Mot de passe" required>
<label>Vérification :</label>
<input type="password" name="passwordBis" placeholder="Mot de passe" required>
<button type="submit">Modifier</button>
</form>
<h4>Mes caméras :</h4>
<?php if($cameras != null): ?>
<ul>
<?php foreach($cameras as $camera): ?>
<li>
<form method="post" action="camera/swapState/<?=$camera->getId()?>">
<a href="<?= "camera/" . $this->clean($camera->getId()) ?>">
<?= $camera->getName() ?>
</a>
<?php if($camera->getAvailable() == true):?> Joignable -
<?php else: ?> Non joignable -
<?php endif ?>
<?php if($camera->getEnabled() == true):?> Activée <button type="submit">Désactiver</button>
<?php $swap = "disable";?>
<?php else: ?> Désactivée <button type="submit">Activer</button>
<?php $swap = "enable";?>
<?php endif ?>
<input type="hidden" name="swap" value="<?=$swap?>">
<input type="hidden" name="whereAction" value="settings">
<a href="camera/delete/<?=$camera->getId()?>"><button type="button">Supprimer</button></a>
</form>
</li>
<?php endforeach; ?>
</ul>
<?php else: ?>
<p>Vous n'avez accès à aucune caméra</p>
<?php endif ?>
<form method="post" action="default/addCam">
<label>Nom :</label>
<input type="text" name="name" placeholder="Entrez un nom" required>
<label>Numéro de série :</label>
<input type="text" name="camera_id" placeholder="Entrez le numéro de série" required>
<button type="submit">Ajouter Caméra</button>
</form>

View File

@ -0,0 +1,18 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Erreur</title>
</head>
<body>
<h1>ERREUR !!!!!</h1>
<?php
if (isset($msgError))
echo $msgError;
?>
</body>
</html>

View File

@ -0,0 +1,15 @@
<!doctype html>
<html lang="fr">
<head>
<meta charset="UTF-8" />
<base href="<?= $root ?>" >
<link rel="stylesheet" href="Content/myStyle.css" />
<title><?= $title ?></title>
<?= $headScript ?>
</head>
<body>
<div id="content">
<?= $content ?>
</div>
</body>
</html>