Fixed php errors in setup class
Fixed php errors in setup class

- $_SERVER['REQUEST_SCHEME'] set to 'http' if not set in $GLOBALS
- fixed use of method return value in wrtie context around line 335

thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits