Select Git revision
-
Guillaume Serre authored
fixes
Guillaume Serre authoredfixes
ddyoyock.php 7.44 KiB
<?php
/*
* @category Add on
* @package Mod Swizzin
* @author Christophe K. <ckforall@gmail.com>
* @copyright 2018 cklv
* @license http://opensource.org/licenses/bsd-license.php New BSD License
* @link https://www.nailis.fr
*/
/* --------------------------------
* @version 4.3c
* --------------------------------
*/
// DD 1
// 1 YOYO SERIES
$yoyolocation = "/home/data";
$totheformatyoyo = createarrayinfdata($yoyolocation);
//hard disk for percentages
$dptotalyoyo = formatarrygetdf($totheformatyoyo["total"]); //Total
$dpfreeyoyo = formatarrygetdf($totheformatyoyo["free"]); //Available
$dpusedyoyo = formatarrygetdf($totheformatyoyo["used"]); //used
$barWidthyoyo = str_ireplace("%", "", $totheformatyoyo["PUsed"]); // %P used;
$linknetdatayoyo = '<embed src="https://www.nailis.fr/netdata/api/v1/badge.svg?chart=disk_space._home_data&alarm=disk_fill_rate&refresh=auto" type="image/svg+xml" height="20"/>';
echo CreateTemplateDD("DD YOYO SERIES",$yoyolocation,$dptotalyoyo,$dpfreeyoyo,$dpusedyoyo,$barWidthyoyo,$linknetdatayoyo);
// DD 4
// 4 YOYO FILMS
$yoyolocation4 = "/home/data4";
$totheformatyoyo4 = createarrayinfdata($yoyolocation4);
//hard disk for percentages
$dptotalyoyo4 = formatarrygetdf($totheformatyoyo4["total"]); //Total
$dpfreeyoyo4 = formatarrygetdf($totheformatyoyo4["free"]); //Available
$dpusedyoyo4 = formatarrygetdf($totheformatyoyo4["used"]); //used
$barWidthyoyo4 = str_ireplace("%", "", $totheformatyoyo4["PUsed"]); // %P used;
$linknetdatayoyo4 = '<embed src="https://www.nailis.fr/netdata/api/v1/badge.svg?chart=disk_space._home_data4&alarm=disk_fill_rate&refresh=auto" type="image/svg+xml" height="20"/>';
echo CreateTemplateDD("DD YOYO FILMS",$yoyolocation4,$dptotalyoyo4,$dpfreeyoyo4,$dpusedyoyo4,$barWidthyoyo4,$linknetdatayoyo4);
// DD 2
// 2 CK FILMS/SERIES
$yoyolocation2 = "/home/data2";
$totheformatyoyo2 = createarrayinfdata($yoyolocation2);
//hard disk for percentages
$dptotalyoyo2 = formatarrygetdf($totheformatyoyo2["total"]); //Total
$dpfreeyoyo2 = formatarrygetdf($totheformatyoyo2["free"]); //Available
$dpusedyoyo2 = formatarrygetdf($totheformatyoyo2["used"]); //used
$barWidthyoyo2 = str_ireplace("%", "", $totheformatyoyo2["PUsed"]); // %P used;
$linknetdatayoyo2 = '<embed src="https://www.nailis.fr/netdata/api/v1/badge.svg?chart=disk_space._home_data2&alarm=disk_fill_rate&refresh=auto" type="image/svg+xml" height="20"/>';
echo CreateTemplateDD("DD CK FILMS/SERIES",$yoyolocation2,$dptotalyoyo2,$dpfreeyoyo2,$dpusedyoyo2,$barWidthyoyo2,$linknetdatayoyo2);
// DD 3
// 2 JK FILMS/SERIES
$yoyolocation3 = "/home/data3";
$totheformatyoyo3 = createarrayinfdata($yoyolocation3);
//hard disk for percentages
$dptotalyoyo3 = formatarrygetdf($totheformatyoyo3["total"]); //Total
$dpfreeyoyo3 = formatarrygetdf($totheformatyoyo3["free"]); //Available
$dpusedyoyo3 = formatarrygetdf($totheformatyoyo3["used"]); //used
$barWidthyoyo3 = str_ireplace("%", "", $totheformatyoyo3["PUsed"]); // %P used;
$linknetdatayoyo3 = '<embed src="https://www.nailis.fr/netdata/api/v1/badge.svg?chart=disk_space._home_data3&alarm=disk_fill_rate&refresh=auto" type="image/svg+xml" height="20"/>';
echo CreateTemplateDD("DD JK FILMS/SERIES",$yoyolocation3,$dptotalyoyo3,$dpfreeyoyo3,$dpusedyoyo3,$barWidthyoyo3,$linknetdatayoyo3);
// --------------------------------------------------------- Do not modify below
// Fonctions
// --------------------------------------------------------- Do not modify below