Converted admin files...

Converted from smarty to PHP admin files...