function drop($share_id) { $share = $this->getOne($share_id); if ($share['logo'] && strpos($share['logo'], 'data/system/') === false) { file_exists(ROOT_PATH . '/' . $share['logo']) && @unlink(ROOT_PATH . '/' . $share['logo']); } parent::drop($share_id); }
function getOne($key) { $index_data = parent::getOne($key); if (!$index_data) { return false; } $details_data = file_exists($this->_mail_user_dir . $key . '.php') ? include $this->_mail_user_dir . $key . '.php' : (include $this->_mail_default_dir . $key . '.php'); $data = array_merge($index_data, $details_data); return $data; }