Since you aren't using a powerstore theme for your design, the GLOBAL variables aren't automatically defined.
I added code to the page on lines 4-26 so they are available on the page.
Then it appears you don't have a value for the 'variable' column in the wa_settings table for that row, so I had to change the reference to:
$GLOBALS['WAGLOBAL_']
Normally the variable name would appear after the underscore. It appears to be working now.