fixup gobals, @mail

fixed up globals, added pagesarray
supressing mail(), causes header failures on install login cookie set,
if mail throws errors.