#!/usr/bin/php -q 0 && !version_compare($min,$current['version'],">")) { // So that "'" doesn't show up in email $event = str_replace("'","'",_("Plugin")." - $name [$new]"); $subject = str_replace("'","'",sprintf(_("Notice [%s] - Version update %s"),$server,$new)); $description = str_replace("'","'",sprintf(_("A new version of %s is available"),$name)); exec("$notify -e ".escapeshellarg($event)." -s ".escapeshellarg($subject)." -d ".escapeshellarg($description)." -i ".escapeshellarg("normal $output")." -l '/Plugins' -x"); } } exit(0); ?>