legacy functions from SMF

details see:
https://github.com/elkarte/Elkarte/pull/625