HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/plugins/digimember/application/model/logic/notifier.php
<?php

class digimember_NotifierLogic extends ncore_NotifierLogic
{
    public function purgeCache( $msg_key, $context )
    {
        $cachekey = "notify_${msg_key}_$context";

        ncore_cacheStore( $cachekey, $templates=false, $lifetime=0 );
    }

    protected function mailTemplates( $msg_key, $context )
    {
        $cachekey = "notify_${msg_key}_$context";

        try
        {
            $force_reload = !empty($_GET['reload']);

            if (!$force_reload)
            {
                $templates = ncore_cacheRetrieve( $cachekey );

                if ($templates) {
                    return $templates;
                }
            }

            $rpc = $this->api->load->library( 'rpc_api' );

            $args[ 'language' ]           = get_bloginfo('language');
            $args[ 'locale' ]             = get_locale();

            $args[ 'msg_key' ]            = $msg_key;
            $args[ 'context']             = $context;


            $data = $rpc->mailtemplateApi( 'fetch', $args );

            $templates = ncore_retrieve( $data, 'mail_templates', array() );
            $lifetime  = ncore_retrieve( $data, 'lifetime', 86400 );

            ncore_cacheStore( $cachekey, $templates, $lifetime );
        }
        catch (Exception $e) {

            $this->api->logError('api', _ncore( 'Error contacting the mailtemplate server:' ) . ' ' . $e->getMessage() );
        }

        return $templates;
    }
}