/** * Get an EasySCP_Configuration instance * * Returns a reference to a EasySCP_Configuration instance * Creating it if it doesn't already exist. * * @return Object EasySCP_Configuration_Instance An EasySCP_Configuration instance */ public static function getInstance() { if (self::$instance === false) { self::$instance = new self(); } return self::$instance; }
* * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * @link http://www.easyscp.net * @author EasySCP Team */ require '../../include/easyscp-lib.php'; $cfg = EasySCP_Registry::get('Config'); $cfg2 = EasySCP_Configuration::getInstance(); $cfg2->PREVENT_EXTERNAL_LOGIN_ADMIN = 'blablub'; $cfg2->DUMP_GUI_DEBUG = 'blablub'; check_login(__FILE__); $tpl = EasySCP_TemplateEngine::getInstance(); $template = 'admin/index.tpl'; get_admin_general_info($tpl); get_update_infos($tpl); gen_server_trafic($tpl); gen_system_message($tpl); // static page messages $tpl->assign(array('TR_PAGE_TITLE' => tr('EasySCP - Admin/Main Index'))); gen_admin_mainmenu($tpl, 'admin/main_menu_general_information.tpl'); gen_admin_menu($tpl, 'admin/menu_general_information.tpl'); gen_page_message($tpl); if ($cfg->DUMP_GUI_DEBUG) {