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