function __construct($switch = TRUE) { global $IN, $LANG; parent::__construct(); $this->CP_base_url = BASE . AMP . 'C=modules' . AMP . 'M=Nsm_quarantine'; if ($switch === TRUE) { $LANG->fetch_language_file('publish'); // check the page switch ($IN->GBL('P')) { case 'entries': $this->entries(); break; case 'comments': $this->comments(); break; case 'delete_flag_confirmation': $this->delete_flag_confirmation(); break; case 'flags': $method = $IN->GBL('quarantinable_type') . "_flags"; $this->{$method}(); break; default: $this->index(); break; } } }
function __construct() { parent::__construct(); }