diff --git a/_relpos.php b/_relpos.php
index db83043..3bd0d0d 100755
--- a/_relpos.php
+++ b/_relpos.php
@@ -1,31 +1,31 @@
0;$i--)
{
-if(file_exists(implode('/', $Dir) . '/siteroot.php'))
-{
-$phproot = implode('/', $Dir);
-$HTMLRel = str_repeat("../", $NDir - count($Dir));
-$i = 0;
-}
-unset($Dir[$i]);
+ if(file_exists(implode('/', $Dir) . '/siteroot.php'))
+ {
+ $phproot = implode('/', $Dir);
+ $HTMLRel = str_repeat("../", $NDir - count($Dir));
+ $i = 0;
+ }
+ unset($Dir[$i]);
}
diff --git a/config.php b/config.php
index bfaeb33..e4470dc 100755
--- a/config.php
+++ b/config.php
@@ -1,31 +1,31 @@
\ No newline at end of file
+?>
diff --git a/locales/fr_FR.php b/locales/fr_FR.php
index 864c4af..9c434b4 100644
--- a/locales/fr_FR.php
+++ b/locales/fr_FR.php
@@ -4,29 +4,29 @@
----------------------------------------------------------------------
GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2006 by the INDEPNET Development Team.
-
+
http://indepnet.net/ http://glpi.indepnet.org
----------------------------------------------------------------------
LICENSE
- This file is part of GLPI.
+ This file is part of GLPI.
- GLPI is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
+ GLPI is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
- GLPI is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
+ GLPI is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with GLPI; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ You should have received a copy of the GNU General Public License
+ along with GLPI; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
------------------------------------------------------------------------
-*/
+ */
// ----------------------------------------------------------------------
// Original Author of file:
@@ -35,4 +35,4 @@
$langexample["test"]="test french";
-?>
\ No newline at end of file
+?>
diff --git a/setup.php b/setup.php
index a0a9bbd..90d0039 100755
--- a/setup.php
+++ b/setup.php
@@ -1,31 +1,31 @@
'Plugin Example',
- 'version' => '0.0.1');
+ 'version' => '0.0.1');
}
// Get config of the plugin
@@ -86,13 +86,13 @@ function plugin_config_form_example(){
function plugin_item_update_example($parm){
if (isset($parm["type"]))
- switch ($parm["type"]){
- case COMPUTER_TYPE :
- if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
- $_SESSION["MESSAGE_AFTER_REDIRECT"].="Update Computer Hook";
- return true;
- break;
- }
+ switch ($parm["type"]){
+ case COMPUTER_TYPE :
+ if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
+ $_SESSION["MESSAGE_AFTER_REDIRECT"].="Update Computer Hook";
+ return true;
+ break;
+ }
return false;
}
@@ -100,13 +100,13 @@ function plugin_item_update_example($parm){
function plugin_item_add_example($parm){
if (isset($parm["type"]))
- switch ($parm["type"]){
- case COMPUTER_TYPE :
- if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
- $_SESSION["MESSAGE_AFTER_REDIRECT"].="Add Computer Hook";
- return true;
- break;
- }
+ switch ($parm["type"]){
+ case COMPUTER_TYPE :
+ if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
+ $_SESSION["MESSAGE_AFTER_REDIRECT"].="Add Computer Hook";
+ return true;
+ break;
+ }
return false;
}
@@ -114,13 +114,13 @@ function plugin_item_add_example($parm){
function plugin_item_delete_example($parm){
if (isset($parm["type"]))
- switch ($parm["type"]){
- case COMPUTER_TYPE :
- if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
- $_SESSION["MESSAGE_AFTER_REDIRECT"].="Delete Computer Hook";
- return true;
- break;
- }
+ switch ($parm["type"]){
+ case COMPUTER_TYPE :
+ if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
+ $_SESSION["MESSAGE_AFTER_REDIRECT"].="Delete Computer Hook";
+ return true;
+ break;
+ }
return false;
}
@@ -128,13 +128,13 @@ function plugin_item_delete_example($parm){
function plugin_item_purge_example($parm){
if (isset($parm["type"]))
- switch ($parm["type"]){
- case COMPUTER_TYPE :
- if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
- $_SESSION["MESSAGE_AFTER_REDIRECT"].="Purge Computer Hook";
- return true;
- break;
- }
+ switch ($parm["type"]){
+ case COMPUTER_TYPE :
+ if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
+ $_SESSION["MESSAGE_AFTER_REDIRECT"].="Purge Computer Hook";
+ return true;
+ break;
+ }
return false;
}
@@ -142,13 +142,13 @@ function plugin_item_purge_example($parm){
function plugin_item_restore_example($parm){
if (isset($parm["type"]))
- switch ($parm["type"]){
- case COMPUTER_TYPE :
- if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
- $_SESSION["MESSAGE_AFTER_REDIRECT"].="Restore Computer Hook";
- return true;
- break;
- }
+ switch ($parm["type"]){
+ case COMPUTER_TYPE :
+ if (!empty($_SESSION["MESSAGE_AFTER_REDIRECT"])) $_SESSION["MESSAGE_AFTER_REDIRECT"].="
";
+ $_SESSION["MESSAGE_AFTER_REDIRECT"].="Restore Computer Hook";
+ return true;
+ break;
+ }
return false;
}
@@ -163,13 +163,13 @@ function plugin_get_headings_example($type,$withtemplate){
else
return array(
1 => "Test PLugin",
- );
+ );
break;
case ENTERPRISE_TYPE :
return array(
1 => "Test PLugin",
2 => "Test PLugin 2",
- );
+ );
break;
}
@@ -178,20 +178,20 @@ function plugin_get_headings_example($type,$withtemplate){
// Define headings actions added by the plugin
function plugin_headings_actions_example($type){
-
+
switch ($type){
case COMPUTER_TYPE :
return array(
1 => "plugin_headings_example",
- );
-
+ );
+
break;
case ENTERPRISE_TYPE :
return array(
1 => "plugin_headings_example",
2 => "plugin_headings_example",
- );
-
+ );
+
break;
}
@@ -210,10 +210,10 @@ function plugin_headings_example($type,$ID,$withtemplate=0){
// Hook to be launch on central
function plugin_central_action_example(){
global $langexample;
-
+
echo "