}
- function get($r,$opts)
+ function get($r,$opts=array())
{
$this->parseArgs($opts);
{
// this should check each module for 'GenerateNotifications.php' class..
//and run it if found..
+ $ff = HTML_FlexyFramework::get();
-
+ $disabled = explode(',', $ff->disable);
+
$modules = array_reverse($this->modulesList());
// move 'project' one to the end...
foreach ($modules as $module){
- if(in_array($module, $this->disabled)){
+ if(in_array($module, $disabled)){
continue;
}
$file = $this->rootDir. "/Pman/$module/GenerateNotifications.php";
function poolHasDomain($email)
{
$ret = 0;
- $dom = strtolower(array_pop(explode('@',$email)));
+ $ea = explode('@',$email);
+ $dom = strtolower(array_pop($ea));
foreach($this->pool as $p) {
- $mdom = strtolower(array_pop(explode('@',$p['email'])));
+ $ea = explode('@',$p['email']);
+ $mdom = strtolower(array_pop($ea));
if ($mdom == $dom) {
$ret++;
}