\usepackage{psboxit,pstricks}

\makeatletter
\def\thickhrulefill{\leavevmode \leaders \hrule height 1pt\hfill \kern \z@}
\renewcommand{\maketitle}{\begingroup
  \null\thispagestyle{empty}%
    \let\footnotesize\small
    \let\footnoterule\relax
    \parindent \z@
    \reset@font
    \vskip 10\p@
%    \begin{flushleft}
    \begin{center}
      \LARGE
      \strut\black\bf\@title
%    \end{flushleft}
    \end{center}

    \newlength{\barline}
    \setlength{\barline}{\hsize minus 6cm}
    \fcolorbox{cyan}{cyan}{\parbox{\barline}{\vspace{0.1cm} \color{white}{\hfill \small \@author} \vspace{0.1cm}}}

    \vskip 40\p@
  \endgroup
  \setcounter{footnote}{0}%
}


\def\section{\@ifstar\unnumberedsection\numberedsection}
\def\numberedsection{\@ifnextchar[%]
  \numberedsectionwithtwoarguments\numberedsectionwithoneargument}
\def\unnumberedsection{\@ifnextchar[%]
  \unnumberedsectionwithtwoarguments\unnumberedsectionwithoneargument}
\def\numberedsectionwithoneargument#1{\numberedsectionwithtwoarguments[#1]{#1}}
\def\unnumberedsectionwithoneargument#1{\unnumberedsectionwithtwoarguments[#1]{#1}}
\def\numberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 5ex\goodbreak
  \refstepcounter{section}%
  \hbox to \hsize{\vbox{%
      \noindent
%      \leavevmode\Large\bfseries\raggedleft
      \leavevmode\large\bfseries\raggedright\color{cyan}
%      \thechapter.\thesection.\
%      \thesection.\
      #2\par
      \vskip -2ex
      \noindent\hrulefill
      }}\nobreak
  \vskip 2ex\nobreak
  \addcontentsline{toc}{section}{%
    \protect\numberline{\thesection} \nobreak%
    #1}%
  }
\def\unnumberedsectionwithtwoarguments[#1]#2{%
  \ifhmode\par\fi
  \removelastskip
  \vskip 5ex\goodbreak
%  \refstepcounter{section}%
  \hbox to \hsize{\vbox{%
      \noindent
      \leavevmode\Large\bfseries\raggedleft
%      \thesection\
      #2\par
      \vskip -2ex
      \noindent\hrulefill
      }}\nobreak
  \vskip 2ex\nobreak
  \addcontentsline{toc}{section}{%
%    \protect\numberline{\thesection}%
    #1}%
}

\makeatother
