Added elseif statement to check action frontend/php.