Project

General

Profile

Revision e0c97dab

IDe0c97dabb7b25bf02506456533588cb5df912298
Parent 75e60ab7
Child 0ec9e450

Added by Francois POIROTTE about 7 years ago

Léger nettoyage

Utilisation de DIRECTORY_SEPARATOR pour la généricité.
Remplacement des tabulations par 4 espaces.

Change-Id: I6a61883963d28f49fe2919a9f5d4b0b9c7470213
Reviewed-on: https://vigilo-dev.si.c-s.fr/review/2364
Tested-by: Build system <>
Reviewed-by: Francois POIROTTE <>

View differences:

src/ajax/getVTValue.php
1 1
<?php
2 2

  
3 3
if (strpos(filter_input(INPUT_SERVER, "PHP_SELF"), "getVTValue.php")) {
4
   include ("../../../inc/includes.php");
4
  include(dirname(dirname(__DIR__)) .
5
          DIRECTORY_SEPARATOR . "inc" .
6
          DIRECTORY_SEPARATOR . "includes.php");
7

  
5 8
   header("Content-Type: text/html; charset=UTF-8");
6 9
   Html::header_nocache();
7 10
}
src/autoloader.php
3 3
function vigilo_autoloader($class_name)
4 4
{
5 5
    if (strncmp($class_name, 'Vigilo', 6)==0) {
6
        require_once __DIR__ . DIRECTORY_SEPARATOR .'Vigilo'. DIRECTORY_SEPARATOR . $class_name . '.php';
6
        require_once(__DIR__ . DIRECTORY_SEPARATOR . 'Vigilo' . DIRECTORY_SEPARATOR . $class_name . '.php');
7 7
    }
8 8
}
src/front/menu.php
1 1
<?php
2 2

  
3
include ("../../../inc/includes.php");
3
include(dirname(dirname(__DIR__)) .
4
        DIRECTORY_SEPARATOR . "inc" .
5
        DIRECTORY_SEPARATOR . "includes.php");
4 6

  
5 7
if (PluginVigiloMenu::canView()) {
6 8
    Html::header(__('Vigilo', 'vigilo'), $_SERVER["PHP_SELF"], "plugins",
......
14 16
            1 => array("pipe", "w"),
15 17
            2 => array("pipe", "w"),
16 18
        );
17
	$cmd = "/usr/bin/sudo -n /usr/bin/vigiconf deploy -f --debug";
19
        $cmd = "/usr/bin/sudo -n /usr/bin/vigiconf deploy -f --debug";
18 20
        $res = proc_open($cmd, $fds, $pipes);
19 21
        if (!is_resource($res))
20
	    $res = false;
22
            $res = false;
21 23
    }
22 24
    PluginVigiloMenu::displayMenu($res, $pipes);
23 25
} else {
src/hook.php
1 1
<?php
2 2

  
3 3
require __DIR__ . DIRECTORY_SEPARATOR .'autoloader.php';
4

  
4 5
class VigiloHooks
5 6
{
6 7
    private $confdir;
src/setup.php
1 1
<?php
2 2

  
3
require __DIR__ . "/hook.php";
3
require(__DIR__ . DIRECTORY_SEPARATOR . "hook.php");
4 4

  
5 5
function plugin_init_vigilo()
6 6
{

Also available in: Unified diff