You are not logged in.
Pages: 1
Topic closed
Actuellement, un périphérique ne peut avoir une connexion directe que vers une seule machine ; c’est une restriction qui pose problème pour certains périphériques comme des baies de disques en double attachement.
La restriction se supprime très simplement :
--- connection.function.php.orig 2008-10-23 13:48:26.000000000 +0200
+++ connection.function.php 2008-10-23 13:50:40.000000000 +0200
@@ -83,29 +83,27 @@
if ($canedit)
echo "<a href=\"$target?disconnect=1&cID=".$connect->device_ID."&ID=".$key."\">".$LANG["buttons"][10]."</a>";
else echo " ";
- echo "</strong>";
+ echo "</strong></td></tr>";
}
}
- } else {
- echo "<tr><td class='tab_bg_1'><strong>".$LANG["help"][25].": </strong>";
- echo "<i>".$LANG["connect"][1]."</i>";
- echo "</td>";
- echo "<td class='tab_bg_2' align='center'>";
- if ($canedit){
- echo "<form method='post' action=\"$target\">";
- echo "<input type='hidden' name='connect' value='connect'>";
- echo "<input type='hidden' name='sID' value='$ID'>";
- echo "<input type='hidden' name='device_type' value='$type'>";
- dropdownConnect(COMPUTER_TYPE,$type,"item",$ci->getField('FK_entities'));
- echo "<input type='submit' value=\"".$LANG["buttons"][9]."\" class='submit'>";
- echo "</form>";
- } else echo " ";
-
}
+ echo "<tr><td class='tab_bg_1'><strong>".$LANG["help"][25].": </strong>";
+ echo "<i>".$LANG["connect"][1]."</i>";
+ echo "</td>";
+ echo "<td class='tab_bg_2' align='center'>";
+ if ($canedit){
+ echo "<form method='post' action=\"$target\">";
+ echo "<input type='hidden' name='connect' value='connect'>";
+ echo "<input type='hidden' name='sID' value='$ID'>";
+ echo "<input type='hidden' name='device_type' value='$type'>";
+ dropdownConnect(COMPUTER_TYPE,$type,"item",$ci->getField('FK_entities'));
+ echo "<input type='submit' value=\"".$LANG["buttons"][9]."\" class='submit'>";
+ echo "</form>";
+ } else echo " ";
+ echo "</td>";
+ echo "</tr>";
if ($global&&$computers&&count($computers)>0){
- echo "</td>";
- echo "</tr>";
echo "<tr><td class='tab_bg_1'> ";
echo "</td>";
echo "<td class='tab_bg_2' align='center'>";
@@ -117,11 +115,10 @@
echo "<input type='submit' value=\"".$LANG["buttons"][9]."\" class='submit'>";
echo "</form>";
-
+ echo "</td>";
+ echo "</tr>";
}
- echo "</td>";
- echo "</tr>";
echo "</table></div><br>";
}
}
Offline
Bonjour,
Pourquoi ne pas mettre le périphérique en gestion globale ?
PROD : 0.71.6 - Debian4.0/Apache2.2.3/php5.2.0/Mysql5.0.32
DEV : 0.72 - Debian4.0/Apache2.2/php5/Mysql5
Offline
Pfff, effectivement la fonction est déjà là.
Au temps pour moi.
Offline
je ferme
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1
Topic closed