function cleanup() { ## path to remover $path = JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_ticketmaster' . DS . 'classes' . DS . 'ticketcleaner.class.php'; ## Include path. if (file_exists($path)) { require_once $path; } else { return false; } $cleaner = new remover(); $cleaner->cleanup(); $msg = $cleaner->error(); $count = $cleaner->counter(); if ($msg == '') { return $count; } else { return false; } }