<?php

    if ( ! defined( 'ABSPATH' ) ) { exit;}
    if ( !class_exists( 'DE_DF' ) ) {
        class DE_DF
        {
            var $licence;

            var $interface;

            /**
            *
            * Run on class construct
            *
            */
            function __construct( )
                {
                    $this->licence              =   new DE_DF_LICENSE();

                    $this->interface            =   new DE_DF_options_interface();

                }

            static function log_data( $data )
                {

                    $data   =   (array)$data;

                    $fp = fopen( DE_DF_PATH . '/log.txt', 'a');


                    foreach($data   as  $key    =>  $line)
                        {
                            $key    =   trim($key);

                            if(!empty($key))
                                fwrite($fp, $key . " " . $line ."\n");
                                else
                                fwrite($fp, $line ."\n");
                        }

                    fclose($fp);


                }


        }
    }
    