Esempio n. 1
0
//----------------------------------------------------------
$object = SetPublicProp::findObj($object, $_OBJ['functionName']);
//----------------------------------------------------------
$orig_functionName = $_OBJ['functionName'];
//----------------------------------------------------------
$_OBJ['functionName'] = $object['string'];
//----------------------------------------------------------
$object = $object['class'];
//----------------------------------------------------------
//if (!file_exists($classPath) && is_null($object)) die($classPath." does not exist!!!!");
//----------------------------------------------------------
if (isset($_OBJ['prop'])) {
    SetPublicProp::go($object, $_OBJ['prop']);
}
//----------------------------------------------------------
if (Constants::$loginCHK && isset($_COOKIE[Account_v0::getPrefix() . "user"])) {
    $loggedIN = Account_v0::getUserSession();
    if (!$loggedIN['bool']) {
        Constants::$loggedIN = NULL;
    }
}
//-----------------------------------------------------------------------------
if (!isset($_OBJ['params'])) {
    $_OBJ['params'] = array();
}
//----------------------------------------------------------
if (!method_exists($object, $_OBJ['functionName'])) {
    $chk['bool'] = false;
    $chk['message'] = $orig_functionName . " does not exist in " . $_OBJ['service'];
}
//----------------------------------------------------------
Esempio n. 2
0
 public static function getUserSession($userKey = NULL)
 {
     if (is_null($userKey)) {
         $userKey = $_COOKIE[Account_v0::getPrefix() . "user"];
     }
     //----------------------------------------------------------
     //init var
     //----------------------------------------------------------
     $chk = array("bool" => true, 'traceID' => "getUserSession");
     //----------------------------------------------------------
     if (is_null(self::$object)) {
         self::$object = new Account_v0();
     }
     //----------------------------------------------------------
     $chk = self::$object->getSession($userKey);
     //----------------------------------------------------------
     return $chk;
 }
Esempio n. 3
0
//----------------------------------------------------------
$object = SetPublicProp::findObj($object, $_REQUEST['functionName']);
//----------------------------------------------------------
$orig_functionName = $_REQUEST['functionName'];
//----------------------------------------------------------
$_REQUEST['functionName'] = $object['string'];
//----------------------------------------------------------
$object = $object['class'];
//----------------------------------------------------------
//if (!file_exists($classPath) && is_null($object)) die($classPath." does not exist!!!!");
//----------------------------------------------------------
if (isset($_REQUEST['prop'])) {
    SetPublicProp::go($object, $_REQUEST['prop']);
}
//----------------------------------------------------------
if (GlobalMas::$loginCHK && isset($_COOKIE[Account_v0::getPrefix() . "user"])) {
    $loggedIN = Account_v0::getUserSession();
    if (!$loggedIN['bool']) {
        GlobalMas::$loggedIN = NULL;
    }
}
//-----------------------------------------------------------------------------
if (!isset($_REQUEST['params'])) {
    $_REQUEST['params'] = array();
}
//----------------------------------------------------------
if (!method_exists($object, $_REQUEST['functionName'])) {
    $chk['bool'] = false;
    $chk['message'] = $orig_functionName . " does not exist in " . $_REQUEST['service'];
}
//----------------------------------------------------------