Exemplo n.º 1
0
/**
 * Returns a value from the GET-array
 *
 * @param string $strKey
 *
 * @return string
 * @deprecated use @link{class_carrier::getInstance()->getParam("")} instead
 */
function getGet($strKey)
{
    if (issetGet($strKey)) {
        return $_GET[$strKey];
    } else {
        return "";
    }
}
Exemplo n.º 2
0
 public function __construct()
 {
     //start up system
     $this->objTemplates = class_carrier::getInstance()->getObjTemplate();
     $this->objLang = class_carrier::getInstance()->getObjLang();
     //init session-support
     $this->objSession = class_carrier::getInstance()->getObjSession();
     //set a different language?
     if (issetGet("language")) {
         if (in_array(getGet("language"), explode(",", class_carrier::getInstance()->getObjConfig()->getConfig("adminlangs")))) {
             $this->objLang->setStrTextLanguage(getGet("language"));
             //and save to a cookie
             $objCookie = new class_cookie();
             $objCookie->setCookie("adminlanguage", getGet("language"));
         }
     } else {
         //init correct text-file handling as in admins
         $this->objLang->setStrTextLanguage($this->objSession->getAdminLanguage(true));
     }
     $this->STR_ORIG_CONFIG_FILE = class_resourceloader::getInstance()->getCorePathForModule("module_system") . "/module_system/system/config/config.php";
     $this->STR_PROJECT_CONFIG_FILE = _realpath_ . "/project/system/config/config.php";
 }
Exemplo n.º 3
0
<?php

/*"******************************************************************************************************
*   (c) 2004-2006 by MulchProductions, www.mulchprod.de                                                 *
*   (c) 2007-2015 by Kajona, www.kajona.de                                                              *
*       Published under the GNU LGPL v2.1, see /system/licence_lgpl.txt                                 *
*-------------------------------------------------------------------------------------------------------*
*	$Id$                                                      *
********************************************************************************************************/
//Determine the area to load
if (issetGet("admin") && getGet("admin") == 1) {
    define("_admin_", true);
} else {
    define("_admin_", false);
}
define("_autotesting_", false);
/**
 * Class handling all requests to be served with xml
 *
 * @package module_system
 */
class class_xml
{
    private static $bitRenderXmlHeader = true;
    /**
     * @var class_response_object
     */
    public $objResponse;
    /**
     * Starts the processing of the requests, fetches params and passes control to the request dispatcher
     * @return void