Ejemplo n.º 1
0
 function putAttrS($attr, $value)
 {
     callmethod("WebChartViewer.putAttrS", $this->ptr, $attr, $value);
 }
Ejemplo n.º 2
0
//damit können auch Suchabfragen gecached werden. 
$id=getproperty("session","user",0)->id.callmethod("request","getid");

//Angefragte Seite ziehen
$pagefile =strtolower(callmethod("request","getrequest","page","news",FILTER_ALPHANUM));
$template ="main.txt";
       
//Die Cacheengine einhängen
setproperty("unimatrix","cacheengine" ,callmethod("cache","getthis"));
setproperty("unimatrix","cachetimeout",CACHE_TIMEOUT);

//Seite nur erzeugen, wenn sie nicht gepuffert ist
if (callmethod("unimatrix","iscached",$id) == FALSE)
    {
    callmethod("unimatrix","assign","pagetitle",$pagefile);
    callmethod("unimatrix","assign","pagefile",$pagefile.".txt");
    callmethod("unimatrix","assign","sitename","Guru-Meditation");
    callmethod("unimatrix","assign","pagelink",callmethod("request","getlink"));
    callmethod("unimatrix","assign","version","1.0");
    
    //Alle Session- und Uservariablen
    callmethod("unimatrix","assign","sessionid",getproperty("session","id",ID_NONE));
    callmethod("unimatrix","assign","user_name"     ,getproperty("session","user",0)->realname);
    callmethod("unimatrix","assign","user_email"    ,getproperty("session","user",0)->email);
    callmethod("unimatrix","assign","user_active"   ,getproperty("session","user",0)->active);
    callmethod("unimatrix","assign","user_login"    ,getproperty("session","user",0)->login);
    }

//Here we go
echo callmethod("unimatrix","render",$id,$template);
</script>
    function _decode($data)
        {
        if ( $this->compressed == TRUE )
            {
            $data=@gzuncompress($data);
            }

        if ( $this->encrypted == TRUE )
            {
            $data=callmethod("crypt","decrypt",$data,SSALT1);
            }
        return ( @unserialize( $data ) );
        }
Ejemplo n.º 4
0
 function rpcaccess($id)
     {
     return (callmethod("user","exists",USER_PREFIX.$id));
     }