Global gibt es das auch für $idmod
Verfasst: Do 14. Nov 2013, 07:47
Hallo Gemeinde,
ich habe eine Frage. Ich nutze ein Plugin spamspan, mit dem möchte ich jetzt sagen: "Output nicht verändern wenn in Modul-ID xy das vorkommt."
Das klappt soweit bei $idart und $idcat. Jetzt möchte ich das auch beim $idmod machen.
Gibt es sowas für $idmod überhaupt oder kann ich das über global gar nicht nutzen?
Ein Beispiel für $idcat wo es funktioniert:
Vielen Dank
MfG Steffen
ich habe eine Frage. Ich nutze ein Plugin spamspan, mit dem möchte ich jetzt sagen: "Output nicht verändern wenn in Modul-ID xy das vorkommt."
Das klappt soweit bei $idart und $idcat. Jetzt möchte ich das auch beim $idmod machen.
Code: Alles auswählen
global $cfg, $idart, $idcat, $idmod;
Ein Beispiel für $idcat wo es funktioniert:
Code: Alles auswählen
function spamspan_skipProtection()
{
global $cfg, $idart, $idcat, $idmod;
$excludeIdcats = getEffectiveSetting('pi_spamspan', 'excludeidcats', false);
if ($excludeIdcats && strlen($excludeIdcats) > 0) {
$excludeIdcats = preg_replace("/[^0-9,]/", '', $excludeIdcats);
$excludeIdcats = explode(',', $excludeIdcats);
if (in_array($idcat, $excludeIdcats)) {
return true;
}
}
return false;
}
MfG Steffen