Esempio n. 1
0
<?php

include 'vendor/autoload.php';
include 'phpnet.php';
use Gregwar\Slidey\Slidey;
/**
 * Dossier dans lequel sera construit le site
 */
$targetDirectory = '../php/';
$slidey = new Slidey();
$slidey->setTitle('PHP')->addReference(new PhpNet())->copy('img')->copy('css')->mkdir('files')->copy(__DIR__ . '/files/*.zip', 'files/')->copy(__DIR__ . '/files/*.bat', 'files/')->addCss('css/style.css')->copy('favicon.ico');
$password = @(include 'password.php');
if ($password) {
    $slidey->enableInteractive($password, '/tmp/phpslidey');
}
$slidey->build($targetDirectory);
Esempio n. 2
0
File: build.php Progetto: Gregwar/SE
<?php

include 'vendor/autoload.php';
use Gregwar\Slidey\Slidey;
/**
 * Dossier dans lequel sera construit le site
 */
$targetDirectory = '../se/';
$slidey = new Slidey();
$slidey->setTitle('Système embarqué')->copy('img')->copy('css')->mkdir('files')->copy(__DIR__ . '/files/*.zip', 'files/')->copy(__DIR__ . '/files/*.pdf', 'files/')->addCss('css/style.css')->copy('favicon.ico');
$password = @(include 'password.php');
if ($password) {
    $slidey->enableInteractive($password, '/tmp/seslidey');
}
$slidey->build($targetDirectory);