Commit 49b2222f authored by yllen's avatar yllen

harmonization

parent b0641d71
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -39,10 +39,8 @@ if (strpos($_SERVER['PHP_SELF'],"dropdownConnect.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
if (!isset($_POST['fromtype']) || !($fromitem = getItemForItemtype($_POST['fromtype']))) {
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -41,10 +41,8 @@ if (strpos($_SERVER['PHP_SELF'],"dropdownDelegationUsers.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -39,9 +39,8 @@ if (strpos($_SERVER['PHP_SELF'],"dropdownTicketCategories.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
$opt = array('entity' => $_POST["entity_restrict"]);
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"getDropdownConnect.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
if (!isset($_GET['fromtype']) || !($fromitem = getItemForItemtype($_GET['fromtype']))) {
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -42,10 +42,8 @@ if (strpos($_SERVER['PHP_SELF'],"getDropdownNetpoint.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -41,10 +41,8 @@ if (strpos($_SERVER['PHP_SELF'],"getDropdownNumber.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -42,10 +42,8 @@ if (strpos($_SERVER['PHP_SELF'],"getDropdownUsers.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -41,10 +41,8 @@ if (strpos($_SERVER['PHP_SELF'],"getDropdownValue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......@@ -399,7 +397,7 @@ if ($item instanceof CommonTreeDropdown) {
}
array_push($datastoadd, array('id' => $ID,
'text' => $outputval,
'level' => $level,
'level' => $level,
'title' => $title));
$count++;
}
......@@ -632,7 +630,7 @@ if ($item instanceof CommonTreeDropdown) {
$outputval = sprintf(__('%1$s (%2$s)'), $outputval, $ID);
}
array_push($datastoadd, array('id' => $ID,
'text' => $outputval,
'text' => $outputval,
'title' => $title));
$count++;
}
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -39,10 +39,8 @@ if (strpos($_SERVER['PHP_SELF'],"ldapdaterestriction.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -39,10 +39,8 @@ if (strpos($_SERVER['PHP_SELF'],"private_public.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
if (isset($_POST['is_private'])) {
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"ruleaction.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"ruleactionvalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"rulecriteria.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strstr($_SERVER['PHP_SELF'],"rulecriteriavalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"searchoption.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -40,10 +40,8 @@ if (strpos($_SERVER['PHP_SELF'],"searchoptionvalue.php")) {
include ('../inc/includes.php');
header("Content-Type: text/html; charset=UTF-8");
Html::header_nocache();
}
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
} else if (!defined('GLPI_ROOT')) {
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -38,7 +38,7 @@
// autoload include in objecttask.form (ticketcost, problemcost,...)
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
die("Sorry. You can't access this file directly");
}
Session::checkCentralAccess();
if (!($cost instanceof CommonITILCost)) {
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -37,7 +37,7 @@
// autoload include in objecttask.form (tickettask, problemtask,...)
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
die("Sorry. You can't access this file directly");
}
Session::checkCentralAccess();
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -38,7 +38,7 @@
// autoload include in objecttask.form (ticketvalidation, changevalidation,...)
if (!defined('GLPI_ROOT')) {
die("Cannot access this file directly");
die("Sorry. You can't access this file directly");
}
Session::checkLoginUser();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment