Example #1
0
<?php

session_start();
include '../../modele/filActu/Fil.php';
if (!isset($_SESSION['pageFil'])) {
    $_SESSION['pageFil'] = 1;
}
$fil = new Fil();
?>
<!DOCTYPE html>
<html>
	<head>
		<title>AARON</title>
		<link rel="stylesheet" type="text/css" href="/style/style.css">
		<link rel="icon" type="image/png" href="/Images/favicon.png" />
		<meta charset="UTF-8">
        <meta name="description" content="AARON est une application web qui vous permet d'enregistrer et de consulter vos articles préférés provenant de différents sites." />
        <meta name="keywords" content="Flux, RSS, Twitter, AARON," />
	</head>
	<body>
		
		<header>
		<?php 
//affichage des fontion users
if (isset($_SESSION['login']) != "") {
    echo '<div id = "connecté">';
    echo "Bonjour " . $_SESSION['login'] . '
					  <br/>
					  <a href="/vue/formulaire/formulaire.php">Espace membre</a><br />
					  <a href="/vue/formulaire/deconnexion.php"> Deconnexion </a>';
    echo '</div>';
Example #2
0
 public function copy($newname)
 {
     return new Bild(null, parent::copy($newname, false));
 }
Example #3
0
function deplacerFil()
{
    $reponse = array('statut' => 'ok');
    $idFil = convertDataSent($_REQUEST['idFil']);
    $idNouvelleSec = convertDataSent($_REQUEST['idNouvelleSec']);
    $arch = new Archiviste();
    $testSection = new Section();
    $testSection->set('id', $idNouvelleSec);
    $blobSection = $arch->restituer($testSection);
    if (count($blobSection) == 1) {
        $filAncien = new Fil();
        $filAncien->set('id', $idFil);
        $filNouveau = new Fil();
        $filNouveau->set('idSection', $idNouvelleSec);
        $arch->modifier($filAncien, $filNouveau);
    } else {
        $reponse = array('statut' => 'nok');
    }
    return $reponse;
}