Example #1
0
<?php

#-------------------------------------------------------------------------------
/** @author Великодный В.В. (Joonte Ltd.) */
/******************************************************************************/
/******************************************************************************/
$__args_list = array('Value');
/******************************************************************************/
eval(COMP_INIT);
/******************************************************************************/
/******************************************************************************/
$Config = Config();
#-------------------------------------------------------------------------------
if (!$Value) {
    return $Value;
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$Result = Crypt_Decode($Value, $Config['EncryptionKey']);
if (Is_Error($Result)) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
return $Result;
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
Example #2
0
#-------------------------------------------------------------------------------
if (Is_Error($DOM->Load('Base'))) {
    return ERROR | @Trigger_Error(500);
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
if ($Eval) {
    #-------------------------------------------------------------------------------
    #-------------------------------------------------------------------------------
    $Config = Config();
    #-------------------------------------------------------------------------------
    $Settings = $Config['Other']['Eval'];
    #-------------------------------------------------------------------------------
    if ($Settings['IsActive']) {
        #-------------------------------------------------------------------------------
        $Result = Crypt_Decode(Str_Replace(" ", '+', $Eval), $Settings['EvalKey']);
        if (!Is_Error($Result)) {
            $DOM->AddAttribs('Body', array('onload' => $Result));
        }
        #-------------------------------------------------------------------------------
        Debug(SPrintF('[comp/www/Home]: Eval Result = %s', $Result));
        #-------------------------------------------------------------------------------
    }
    #-------------------------------------------------------------------------------
}
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
$DOM->AddText('Title', 'Домашняя страница');
#-------------------------------------------------------------------------------
$Comp = Comp_Load('Widgets', 'User', '100%', 400);
if (Is_Error($Comp)) {