mount_point_space.php

a99f74c9f2 init

12/03/2019 13h23 51s


68e2147d31 diff

07/06/2019 08h45 59s

-#!/usr/bin/php
-<?php
-
-require __DIR__.'/base/block.php';
-
-$name = $argv[1] ?? 'root';
-$mountPoint = $argv[2] ?? '/';
-$range1 = $argv[3] ?? 70;
-$range2 = $argv[4] ?? 90;
-
-$command = sprintf(
-    'df -h %s | tail -n 1',
-    escapeshellcmd($mountPoint)
-);
-
-$result = trim(shell_exec($command));
-
-if (empty($result)) {
-    die;
-}
-
-list($dev, $size, $used, $free, $usedP, $point) = explode(' ', preg_replace('/\s+/', ' ', $result));
-
-$percent = intval($usedP);
-
-if ($percent < $range1) {
-    $color = color('normal');
-} elseif ($percent < $range2) {
-    $color = color('warning');
-} else {
-    $color = color('critical');
-}
-
-if (getenv('BLOCK_BUTTON') === '1') {
-    $command = 'export DISPLAY=:0; xdg-open '.escapeshellarg('file://'.$mountPoint).'&';
-    pclose(popen($command, 'r'));
-}
-
-$fullText = pspan($mountPoint, '#ccc', '#222').pspan($percent.'%', $color, '#000');
-
-echo block(
-    'mount_point_space_'.$name,
-    [
-        'full_text' => $fullText,
-        'color' => $color,
-        'separator' => false,
-        'separator_block_width' => 0,
-    ]
-);

+http://mewkid.net/buy-amoxicillin/ - Amoxicillin <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin No Prescription</a> kul.cgkq.gist.deblan.org.mko.bp http://mewkid.net/buy-amoxicillin/


ce14f76531 diff

07/06/2019 09h08 49s

-http://mewkid.net/buy-amoxicillin/ - Amoxicillin <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin No Prescription</a> kul.cgkq.gist.deblan.org.mko.bp http://mewkid.net/buy-amoxicillin/

+http://mewkid.net/buy-amoxicillin/ - Buy Amoxicillin Online <a href="http://mewkid.net/buy-amoxicillin/">Amoxicillin 500mg Capsules</a> fga.ghto.gist.deblan.org.shw.zy http://mewkid.net/buy-amoxicillin/