Помогни ни да направим Uroci.net по - богат! Добави урок

Красива контакт форма + Админ панел

PHP » PHP
albertvision   трудност:    видян: 16136


И сега нека да направим админ панела: admin.php

<?php
require_once( dirname(__FILE__).'/form.lib.php' );

define( 'PHPFMG_USER', "вашият имей адрес" ); // must be a email address. for sending password to you.
define( 'PHPFMG_PW', "парола" );

?>
<?php

# main
# ------------------------------------------------------
error_reporting( E_ERROR ) ;
phpfmg_admin_main();
# ------------------------------------------------------




function phpfmg_admin_main(){
    $mod  = isset($_REQUEST['mod'])  ? $_REQUEST['mod']  : '';
    $func = isset($_REQUEST['func']) ? $_REQUEST['func'] : '';
    $function = "phpfmg_{$mod}_{$func}";
    if( !function_exists($function) ){
        phpfmg_admin_default();
        exit;
    };

    // no login required modules
    $public_modules   = false !== strpos('|captcha|', "|{$mod}|");
    $public_functions = false !== strpos('|phpfmg_mail_request_password||phpfmg_filman_download||phpfmg_image_processing||phpfmg_dd_lookup|', "|{$function}|") ;  
    if( $public_modules || $public_functions ) {
        $function();
        exit;
    };
   
    return phpfmg_user_isLogin() ? $function() : phpfmg_admin_default();
}

function phpfmg_admin_default(){
    if( phpfmg_user_login() ){
        phpfmg_admin_panel();
    };
}



function phpfmg_admin_panel()
{   
    phpfmg_admin_header();
    phpfmg_writable_check();
?>   
<table cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td valign=top style="padding-left:280px;">

<style type="text/css">
    .fmg_title{
        font-size: 16px;
        font-weight: bold;
        padding: 10px;
    }
   
    .fmg_sep{
        width:32px;
    }
   
    .fmg_text{
        line-height: 150%;
        vertical-align: top;
        padding-left:28px;
    }

</style>

<script type="text/javascript">
    function deleteAll(n){
        if( confirm("Сигурни ли сте, че искате да изпълните командата?" ) ){
            location.href="admin.php?mod=log&func=delete&file=" + n ;
        };
        return false ;
    }
</script>


<div class="fmg_title">
    1. Имейл трафик
</div>
<div class="fmg_text">
    <a href="admin.php?mod=log&func=view&file=1">преглед</a>   
    <a href="admin.php?mod=log&func=download&file=1">изтегляне</a>   
    <?php
        if( file_exists(PHPFMG_EMAILS_LOGFILE) ){
            echo '<a href="#" onclick="return deleteAll(1);">изтриване</a>';
        };
    ?>
</div>


<div class="fmg_title">
    2. Имейл данни
</div>
<div class="fmg_text">
    <a href="admin.php?mod=log&func=view&file=2">преглед</a>   
    <a href="admin.php?mod=log&func=download&file=2">изтегляне</a>   
    <?php
        if( file_exists(PHPFMG_SAVE_FILE) ){
            echo '<a href="#" onclick="return deleteAll(2);">изтриване</a>';
        };
    ?>
</div>

<div class="fmg_title">
    3. Имейл генератор
</div>
<div class="fmg_text">
    <a href="http://www.formmail-maker.com/generator.php" onclick="document.frmFormMail.submit(); return false;" title="<?php echo htmlspecialchars(PHPFMG_SUBJECT);?>">редактиране</a>   
    <a href="http://www.formmail-maker.com/generator.php" >добавяне</a>
</div>
    <form name="frmFormMail" action='http://www.formmail-maker.com/generator.php' method='post' enctype='multipart/form-data'>
    <input type="hidden" name="uuid" value="<?php echo PHPFMG_ID; ?>">
    <input type="hidden" name="external_ini" value="<?php echo function_exists('phpfmg_formini') ?  phpfmg_formini() : ""; ?>">
    </form>

        </td>
    </tr>
</table>

<?php
    phpfmg_admin_footer();
}



function phpfmg_admin_header( $title = '' ){
?>
<html>
<head>
    <title>Администрация на контакт формата</title>
    <meta content="text/html; charset=utf8" http-equiv="Content-Type">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="generator" content="">

    <style type='text/css'>
    body, td, label, div, span{
        font-family : Verdana, Arial, Helvetica, sans-serif;
        font-size : 12px;
    }
    </style>
</head>
<body  marginheight="0" marginwidth="0" leftmargin="0" topmargin="0">

<table cellspacing=0 cellpadding=0 border=0 width="100%">
    <td nowrap align=center style="background-color:#024e7b;padding:10px;font-size:18px;color:#ffffff;font-weight:bold;width:250px;" >
        Админ панел на контакт формата
    </td>
    <td style="padding-left:30px;background-color:#86BC1B;width:100%;font-weight:bold;" >
         
<?php
    if( phpfmg_user_isLogin() ){
        echo '<a href="admin.php" style="color:#ffffff;">Главно меню</a>   ' ;
        echo '<a href="admin.php?mod=user&func=logout" style="color:#ffffff;">Изход</a>' ;
    };
?>
    </td>
</table>

<div style="padding-top:28px;">

<?php
   
}


function phpfmg_admin_footer(){
?>

</div>

<div style="color:#cccccc;text-decoration:none;padding:18px;font-weight:bold;">
</div>

</body>
</html>
<?php
}


function phpfmg_image_processing(){
    $img = new phpfmgImage();
    $img->out_processing_gif();
}


# phpfmg module : captcha
# ------------------------------------------------------
function phpfmg_captcha_get(){
    $img = new phpfmgImage();
    $img->out();
    $_SESSION[PHPFMG_ID.'fmgCaptchCode'] = $img->text ;
}



function phpfmg_captcha_generate_images(){
    for( $i = 0; $i < 50; $i ++ ){
        $file = "$i.png";
        $img = new phpfmgImage();
        $img->out($file);
        $data = base64_encode( file_get_contents($file) );
        echo "'{$img->text}' => '{$data}',n" ;
        unlink( $file );
    };
}


function phpfmg_dd_lookup(){
    $paraOk = ( isset($_REQUEST['n']) && isset($_REQUEST['lookup']) && isset($_REQUEST['field_name']) );
    if( !$paraOk )
        return;
       
    $base64 = phpfmg_dependent_dropdown_data();
    $data = @unserialize( base64_decode($base64) );
    if( !is_array($data) ){
        return ;
    };
   
   
    foreach( $data as $field ){
        if( $field['name'] == $_REQUEST['field_name'] ){
            $nColumn = intval($_REQUEST['n']);
            $lookup  = $_REQUEST['lookup']; // $lookup is an array
            $dd      = new DependantDropdown();
            echo $dd->lookupFieldColumn( $field, $nColumn, $lookup );
            return;
        };
    };
   
    return;
}


function phpfmg_filman_download(){
    if( !isset($_REQUEST['filelink']) )
        return ;
       
    $info =  @unserialize(base64_decode($_REQUEST['filelink']));
    if( !isset($info['recordID']) ){
        return ;
    };
   
    $file = PHPFMG_SAVE_ATTACHMENTS_DIR . $info['recordID'] . '-' . $info['filename'];
    phpfmg_util_download( $file, $info['filename'] );
}


class phpfmgDataManager
{
    var $dataFile = '';
    var $columns = '';
    var $records = '';
   
    function phpfmgDataManager(){
        $this->dataFile = PHPFMG_SAVE_FILE;
    }
   
    function parseFile(){
        $fp = @fopen($this->dataFile, 'rb');
        if( !$fp ) return false;
       
        $i = 0 ;
        $phpExitLine = 1; // first line is php code
        $colsLine = 2 ; // second line is column headers
        $this->columns = array();
        $this->records = array();
        $sep = chr(0x09);
        while( !feof($fp) ) {
            $line = fgets($fp);
            $line = trim($line);
            if( empty($line) ) continue;
            $line = $this->line2display($line);
            $i ++ ;
            switch( $i ){
                case $phpExitLine:
                    continue;
                    break;
                case $colsLine :
                    $this->columns = explode($sep,$line);
                    break;
                default:
                    $this->records[] = explode( $sep, phpfmg_data2record( $line, false ) );
            };
        };
        fclose ($fp);
    }
   
    function displayRecords(){
        $this->parseFile();
        echo "<table border=1 style='width=95%;border-collapse: collapse;border-color:#cccccc;' >";
        echo "<tr><td> </td><td><b>" . join( "</b></td><td> <b>", $this->columns ) . "</b></td></tr>n";
        $i = 1;
        foreach( $this->records as $r ){
            echo "<tr><td align=right>{$i} </td><td>" . join( "</td><td> ", $r ) . "</td></tr>n";
            $i++;
        };
        echo "</table>n";
    }
   
    function line2display( $line ){
        $line = str_replace( array('"' . chr(0x09) . '"', '""'),  array(chr(0x09),'"'),  $line );
        $line = substr( $line, 1, -1 ); // chop first " and last "
        return $line;
    }
   
}
# end of class



# ------------------------------------------------------
class phpfmgImage
{
    var $im = null;
    var $width = 73 ;
    var $height = 33 ;
    var $text = '' ;
    var $line_distance = 8;
    var $text_len = 4 ;

    function phpfmgImage( $text = '', $len = 4 ){
        $this->text_len = $len ;
        $this->text = '' == $text ? $this->uniqid( $this->text_len ) : $text ;
        $this->text = strtoupper( substr( $this->text, 0, $this->text_len ) );
    }
   
    function create(){
        $this->im = imagecreate( $this->width, $this->height );
        $bgcolor   = imagecolorallocate($this->im, 255, 255, 255);
        $textcolor = imagecolorallocate($this->im, 0, 0, 0);
        $this->drawLines();
        imagestring($this->im, 5, 20, 9, $this->text, $textcolor);
    }
   
    function drawLines(){
        $linecolor = imagecolorallocate($this->im, 210, 210, 210);
   
        //vertical lines
        for($x = 0; $x < $this->width; $x += $this->line_distance) {
          imageline($this->im, $x, 0, $x, $this->height, $linecolor);
        };
   
        //horizontal lines
        for($y = 0; $y < $this->height; $y += $this->line_distance) {
          imageline($this->im, 0, $y, $this->width, $y, $linecolor);
        };
    }
   
    function out( $filename = '' ){
        if( function_exists('imageline') ){
            $this->create();
            if( '' == $filename ) header("Content-type: image/png");
            ( '' == $filename ) ? imagepng( $this->im ) : imagepng( $this->im, $filename );
            imagedestroy( $this->im );
        }else{
            $this->out_predefined_image();
        };
    }

    function uniqid( $len = 0 ){
        $md5 = md5( uniqid(rand()) );
        return $len > 0 ? substr($md5,0,$len) : $md5 ;
    }
   
    function out_predefined_image(){
        header("Content-type: image/png");
        $data = $this->getImage();
        echo base64_decode($data);
    }
   
    // Use predefined captcha random images if web server doens't have GD graphics library installed 
    function getImage(){
        $images = array(
            '8850' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7WAMYQ1hDHVqRxUSmsLayNjBMdUASC2gVaXRtYAgIQFc3ldFBBMl9S6NWhi3NzMyahuQ+kDqGhkCYOrh5DljEXBsCMOxgdHRAcQvIzQyhDChuHqjwoyLE4j4ATu7MVw00EEsAAAAASUVORK5CYII=',
            'CE80' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAX0lEQVR4nGNYhQEaGAYTpIn7WENEQxlCGVqRxURaRRoYHR2mOiCJBTSKNLA2BAQEIIs1gNQ5OogguS9q1dSwVaErs6YhuQ9NHVyMtSEQVQyLHdjcgs3NAxV+VIRY3AcAuXXL3HAdn+YAAAAASUVORK5CYII=',
            'BB8C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAV0lEQVR4nGNYhQEaGAYTpIn7QgNEQxhCGaYGIIkFTBFpZXR0CBBBFmsVaXRtCHRgwVDn6IDsvtCoqWGrQldmIbsPTR2KedjEMO1AdQs2Nw9U+FERYnEfANUOzL/OGxvsAAAAAElFTkSuQmCC',
            'F381' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAVUlEQVR4nGNYhQEaGAYTpIn7QkNZQxhCGVqRxQIaRFoZHR2moooxNLo2BISiiYHUwfSCnRQatSpsVeiqpcjuQ1OHbB4RYiJY9ILdHBowCMKPihCL+wA6v80rZj24kwAAAABJRU5ErkJggg==',
            '332C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7RANYQxhCGaYGIIkFTBFpZXR0CBBBVtnK0OjaEOjAgiw2BSgKFEN238qoVWGrVmZmobgPpK6V0YEBzTyHKVjEAhhR7AC7xYEBxS0gN7OGBqC4eaDCj4oQi/sA36XKR40ZxSUAAAAASUVORK5CYII=',
            'BB26' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7QgNEQxhCGaY6IIkFTBFpZXR0CAhAFmsVaXRtCHQQQFPHABRDdl9o1NSwVSszU7OQ3AdW18qIYZ7DFEYHEXSxADQxkFscGFD0gtzMGhqA4uaBCj8qQizuAwBVGs0VvAtkzAAAAABJRU5ErkJggg==',
            '660C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7WAMYQximMEwNQBITmcLayhDKECCCJBbQItLI6OjowIIs1iDSwNoQ6IDsvsioaWFLV0VmIbsvZIpoK5I6iN5WkUZXLGKOaHZgcws2Nw9U+FERYnEfANrlyzWoPeo0AAAAAElFTkSuQmCC',
            '217A' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAc0lEQVR4nGNYhQEaGAYTpIn7WAMYAlhDA1qRxUSmMAYwNARMdUASC2hlBYkFBCDrbmUIYGh0dBBBdt+0VVGrlq7MmobsPqAdDFMYYerAkNEBJMoYGoLsFqBKRgdUdUB2AGsDqlhoKGsouthAhR8VIRb3AQA4+8iZWJW67wAAAABJRU5ErkJggg==',
            'EDF5' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAX0lEQVR4nGNYhQEaGAYTpIn7QkNEQ1hDA0MDkMQCGkRaWRsYHRhQxRpdsYu5OiC5LzRq2srU0JVRUUjug6hjaBDB0ItNjNEBTQzoFoYAZPeB3dzAMNVhEIQfFSEW9wEA93DM8dSdiHkAAAAASUVORK5CYII=',
            '170B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7GB1EQx2mMIY6IImxOjA0OoQyOgQgiYkCxRwdHR1EUPQytLI2BMLUgZ20MmvVtKWrIkOzkNwHVBeApA4qxugAEkM1j7WBEcMOIA/dLSFAMTQ3D1T4URFicR8AYV/IQc/A8ggAAAAASUVORK5CYII=',
            'AB13' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7GB1EQximMIQ6IImxBoi0MoQwOgQgiYlMEWl0DAHSSGIBrUB1U4A0kvuilk4NWzVt1dIsJPehqQPD0FCRRocpGOZhEwPqRXVLQKtoCGOoA4qbByr8qAixuA8AG37NU1cF23AAAAAASUVORK5CYII=',
            '8B67' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAY0lEQVR4nGNYhQEaGAYTpIn7WANEQxhCGUNDkMREpoi0Mjo6NIggiQW0ijS6NqCKgdSxguSQ3Lc0amrY0qmrVmYhuQ+sztGhlQHDvIApWMQCGDDc4uiAxc0oYgMVflSEWNwHAKF8zF+SsRU+AAAAAElFTkSuQmCC',
            'C627' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7WEMYQxhCGUNDkMREWllbGR0dGkSQxAIaRRpZGwJQxcC8ACBEuC9q1bSwVSuzVmYhuS+gQbSVAQRR9TY6TGGYwoBmh0MAQwADulscGB3Q3cwaGogiNlDhR0WIxX0ArgTLifI/xLUAAAAASUVORK5CYII=',
            'ADCE' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYElEQVR4nGNYhQEaGAYTpIn7GB1EQxhCHUMDkMRYA0RaGR0CHZDViUwRaXRtEEQRC2gFiTHCxMBOilo6bWXqqpWhWUjuQ1MHhqGhmGIQdRh2YLgloBXTzQMVflSEWNwHAMizy1bkEx7iAAAAAElFTkSuQmCC',
            'A631' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7GB0YQxhDGVqRxVgDWFtZGx2mIouJTBFpZGgICEUWC2gVaWBodIDpBTspaum0sFVTVy1Fdl9Aq2grkjowDA0VaXQAyqCZh0UM7BY0MbCbQwMGQfhREWJxHwBQ+M2B6zkcOwAAAABJRU5ErkJggg==',
            '2D06' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7WANEQximMEx1QBITmSLSyhDKEBCAJBbQKtLo6OjoIICsGyjm2hDogOK+adNWpq6KTM1Cdl8AWB2KeYwOEL0iyG5pgNiBLCbSgOmW0FBMNw9U+FERYnEfANosy/Vf7KHeAAAAAElFTkSuQmCC',
            '3774' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7RANEQ11DAxoCkMQCpjA0OjQENCKLMbSCxVpRxKaARacEILlvZdSqaauWroqKQnbfFIYAhimMDqjmMTowBDCGhqCIsTYARdHcItLA2oAqJhqAKTZQ4UdFiMV9AIbozbJiEbzkAAAAAElFTkSuQmCC',
            '4ADB' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpI37pjAEsIYyhjogi4UwhrA2OjoEIIkBRVpZGwIdRJDEWKeINLoCxQKQ3Ddt2rSVqasiQ7OQ3BeAqg4MQ0NFQ13RzGOAqsMQQ3MLWAzdzQMVftSDWNwHAH2LzNeVyrbRAAAAAElFTkSuQmCC',
            '11B5' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7GB0YAlhDGUMDkMRYHRgDWBsdHZDViTqwBrA2BDpg6G10dHVAct/KrFVRS0NXRkUhuQ+izqFBBF1vQwAWsUAHDLFGhwBk94mGsIayhjJMdRgE4UdFiMV9AHe/xw0EPVj7AAAAAElFTkSuQmCC',
            'C943' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nGNYhQEaGAYTpIn7WEMYQxgaHUIdkMREWllbGVodHQKQxAIaRRodpjo0iCCLNQDFAh0aApDcF7Vq6dLMzKylWUjuC2hgDHRthKuDijE0uoYGoJrXyNLo0IhqB9gtjahuwebmgQo/KkIs7gMAPBPOoZc1/xsAAAAASUVORK5CYII=',
            '3F94' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7RANEQx1CGRoCkMQCpog0MDo6NCKLMbSKNLA2BLSiiE0Bi00JQHLfyqipYSszo6KikN0HVMcQEuiAbh5DQ2BoCJoYI9AlWNyCIiYaANSL5uaBCj8qQizuAwDk5s2OTcnU8QAAAABJRU5ErkJggg==',
            'C116' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7WEMYAhimMEx1QBITaWUMYACKByCJBTSyBjCGMDoIIIs1gPQyOiC7LwqEpq1MzUJyH1QdqnlQvSIodmCKibSC3YeilzWENZQx1AHFzQMVflSEWNwHAIPGyV/Vj4AZAAAAAElFTkSuQmCC',
            '6969' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7WAMYQxhCGaY6IImJTGFtZXR0CAhAEgtoEWl0bXB0EEEWawCJMcLEwE6KjFq6NHXqqqgwJPeFTGEMdHV0mIqit5UBqBdoAooYC0gMxQ5sbsHm5oEKPypCLO4DAJkWzJktcyWNAAAAAElFTkSuQmCC',
            'DF92' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaElEQVR4nGNYhQEaGAYTpIn7QgNEQx1CGaY6IIkFTBFpYHR0CAhAFmsVaWBtCHQQwRALaBBBcl/U0qlhKzOjVkUhuQ+kjiEkoNEBTS+IZEATYwTazoDFLahuBuoNZQwNGQThR0WIxX0Ah4PN+QfI4S0AAAAASUVORK5CYII=',
            '497F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpI37pjCGsIYGhoYgi4WwtjI0BDogq2MMEWl0QBNjnQIUa3SEiYGdNG3a0qVZS1eGZiG5L2AKY6DDFEYUvaGhDI0OAahiDFNYgKahi7G2sjagiwHdjC42UOFHPYjFfQCCpMnE81fL+AAAAABJRU5ErkJggg==',
            '0058' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcElEQVR4nGNYhQEaGAYTpIn7GB0YAlhDHaY6IImxBjCGsDYwBAQgiYlMYW1lBaoWQRILaBVpdJ0KVwd2UtTSaStTM7OmZiG5D6TOoSEAxTyIWCCKeRA7UMVAbmF0dEDRC3IzQygDipsHKvyoCLG4DwAK2stLqqvFkwAAAABJRU5ErkJggg==',
            '11BF' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXElEQVR4nGNYhQEaGAYTpIn7GB0YAlhDGUNDkMRYHRgDWBsdHZDViTqwBrA2BDpg6EWoAztpZdaqqKWhK0OzkNyHpg4hhs08/HZA3BLCGgp0M4rYQIUfFSEW9wEAeyjFKhftj4wAAAAASUVORK5CYII=',
            '3EF3' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWklEQVR4nGNYhQEaGAYTpIn7RANEQ1lDA0IdkMQCpog0sDYwOgQgq2wFiTE0iCCLTYGIBSC5b2XU1LCloauWZiG7D1UdbvOwiGFzC9jNDQwobh6o8KMixOI+AHMuy4+e05yaAAAAAElFTkSuQmCC',
            '6869' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7WAMYQxhCGaY6IImJTGFtZXR0CAhAEgtoEWl0bXB0EEEWa2BtZW1ghImBnRQZtTJs6dRVUWFI7gsBmsfq6DAVRW8ryLyABixiKHZgcws2Nw9U+FERYnEfAEJZzF/mnlYPAAAAAElFTkSuQmCC',
            '2E8A' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7WANEQxlCGVqRxUSmiDQwOjpMdUASC2gVaWBtCAgIQNbdClLn6CCC7L5pU8NWha7MmobsvgAUdWDI6AAyLzA0BNktDWAxFHUiDZh6Q0NBbmZEERuo8KMixOI+ANRvyid2aZ/5AAAAAElFTkSuQmCC',
            '6CBA' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7WAMYQ1lDGVqRxUSmsDa6NjpMdUASC2gRaXBtCAgIQBZrEGlgbXR0EEFyX2TUtFVLQ1dmTUNyX8gUFHUQva1AsYbA0BA0MdeGQBR1ELeg6oW4mRFFbKDCj4oQi/sAuYTNReVvKlMAAAAASUVORK5CYII=',
            '0B65' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpIn7GB1EQxhCGUMDkMRYA0RaGR0dHZDViUwRaXRtQBULaBVpZW1gdHVAcl/U0qlhS6eujIpCch9YnaNDgwiqXqB5AShiEDsCHUQw3OIQgOw+iJsZpjoMgvCjIsTiPgC8YctEj5NCEQAAAABJRU5ErkJggg==',
            'E60A' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7QkMYQximMLQiiwU0sLYyhDJMdUARE2lkdHQICEAVa2BtCHQQQXJfaNS0sKWrIrOmIbkvoEG0FUkd3DzXhsDQEDQxR0dHNHUgtzCiiEHcjCo2UOFHRYjFfQCHnMxdUYLg8QAAAABJRU5ErkJggg==',
            'E6C6' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYklEQVR4nGNYhQEaGAYTpIn7QkMYQxhCHaY6IIkFNLC2MjoEBASgiIk0sjYIOgigijWwNjA6ILsvNGpa2NJVK1OzkNwX0CDaClSHYZ4rUK8IhpggmhimW7C5eaDCj4oQi/sAp2TMpqZ6OiIAAAAASUVORK5CYII=',
            'A0D5' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nGNYhQEaGAYTpIn7GB0YAlhDGUMDkMRYAxhDWBsdHZDViUxhbWVtCEQRC2gVaXRtCHR1QHJf1NJpK1NXRUZFIbkPoi6gQQRJb2goplhAK8QOVDGQWxwCAlDEQG5mmOowCMKPihCL+wAeY8ycUAszXwAAAABJRU5ErkJggg==',
            'D0ED' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAV0lEQVR4nGNYhQEaGAYTpIn7QgMYAlhDHUMdkMQCpjCGsDYwOgQgi7WytoLERFDERBpdEWJgJ0UtnbYyNXRl1jQk96GpwyOGxQ4sbsHm5oEKPypCLO4DALzry9L+cJ7wAAAAAElFTkSuQmCC',
            'BB4A' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZElEQVR4nGNYhQEaGAYTpIn7QgNEQxgaHVqRxQKmiLQytDpMdUAWaxVpBIoEBKCrC3R0EEFyX2jU1LCVmZlZ05DcB1LH2ghXBzfPNTQwNATdDnR1IDvQxCBuRhUbqPCjIsTiPgASgc5a2IGxowAAAABJRU5ErkJggg==',
            '554F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7QkNEQxkaHUNDkMQCGkQaGFodHRjQxaaiigUGiIQwBMLFwE4KmzZ16crMzNAsZPe1MjS6NqLqBYuFBqLa0SrS6ICmTmQKK1AlqhhrAGMIuthAhR8VIRb3AQDmgMry31gN0wAAAABJRU5ErkJggg==',
            '4B50' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAd0lEQVR4nGNYhQEaGAYTpI37poiGsIY6tKKIhYi0sjYwTHVAEmMMEWl0bWAICEASY50CVDeV0UEEyX3Tpk0NW5qZmTUNyX0BQHUMDYEwdWAYGirS6IAmxjAFZEcAih1AsVZGRwcUt4DczBDKgOrmgQo/6kEs7gMA+6XMK1OhT/MAAAAASUVORK5CYII=',
            '406C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpI37pjAEMIQyTA1AFgthDGF0dAgQQRJjDGFtZW1wdGBBEmOdItLo2sDogOy+adOmrUydujIL2X0BIHWOjg7I9oaGgvQGOqC6BWRHIIodDFMw3YLVzQMVftSDWNwHANObynHjFXh2AAAAAElFTkSuQmCC',
            '6511' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7WANEQxmmMLQii4lMEWlgCGGYiiwW0CLSwBjCEIoi1iASgqQX7KTIqKlLV01btRTZfSFTGBod0OwIaMUmJoIhJjKFtRXdfawBjCGMoQ6hAYMg/KgIsbgPAPg1zDW1meP/AAAAAElFTkSuQmCC',
            '67F1' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZElEQVR4nGNYhQEaGAYTpIn7WANEQ11DA1qRxUSmMDS6NjBMRRYLaAGLhaKINTC0sgIxsvsio1ZNWxq6aimy+0KmMAQgqYPobWV0wBRjbUAXE5kigiHGGgAWCw0YBOFHRYjFfQDbaMvPck5UugAAAABJRU5ErkJggg==',
            '3AA6' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7RAMYAhimMEx1QBILmMIYwhDKEBCArLKVtZXR0dFBAFlsikija0OgA7L7VkZNW5m6KjI1C9l9EHVo5omGuoYGOoigiEHME0FxC0gsAEWvaABYDMXNAxV+VIRY3AcAnQjNFC9QZ/oAAAAASUVORK5CYII=',
            '9F55' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WANEQ11DHUMDkMREpog0sDYwOiCrC2jFITaV0dUByX3Tpk4NW5qZGRWF5D5WVxGQ6gYRZJtbMcUEwHYEOiCLgdzC6OgQgOw+1gCgilCGqQ6DIPyoCLG4DwCnGMsI9fdDVAAAAABJRU5ErkJggg==',
            '88B9' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXklEQVR4nGNYhQEaGAYTpIn7WAMYQ1hDGaY6IImJTGFtZW10CAhAEgtoFWl0bQh0EMFQ5wgTAztpadTKsKWhq6LCkNwHNW+qCIZ5AQ1YxLDYgeoWbG4eqPCjIsTiPgBBfs0nqp22RQAAAABJRU5ErkJggg==',
            '9FE4' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZUlEQVR4nGNYhQEaGAYTpIn7WANEQ11DHRoCkMREpog0sDYwNCKLBbSCxVqxiE0JQHLftKlTw5aGroqKQnIfqytIHaMDsl4GsF7G0BAkMQGIedjcgiLGGgAUQ3PzQIUfFSEW9wEAMGnM54bUeJQAAAAASUVORK5CYII=',
            '1481' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZ0lEQVR4nGNYhQEaGAYTpIn7GB0YWhlCgRhJjNWBYSqjo8NUZDFRB4ZQ1oaAUFS9jK5AdTC9YCetzFq6dFXoqqXI7mN0EGlFUgcVEw11bQhoRXcLKxYxdL2iIWA3hwYMgvCjIsTiPgBta8iO9oufrwAAAABJRU5ErkJggg==',
            '43FF' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAW0lEQVR4nGNYhQEaGAYTpI37prCGsIYGhoYgi4WItLI2MDogq2MMYWh0RRNjncKArA7spGnTVoUtDV0ZmoXkvgBUdWAYGoppHsMUbGKYbgG7GV1soMKPehCL+wDb1MiudUMNjQAAAABJRU5ErkJggg==',
            '5577' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7QkNEQ1lDA0NDkMQCGkTgJD6xwACREIZGB6Aown1h06YuXbV01cosZPe1AlVNAZLINoPEAhimIIsFtIo0OjowBCCLiUxhbWVtYHRAFmMNYAxBFxuo8KMixOI+APaAzDpQ2vp2AAAAAElFTkSuQmCC',
            '5168' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7QkMYAhhCGaY6IIkFNDAGMDo6BASgiLEGsDY4OoggiQUGMADFGGDqwE4Km7YqaunUVVOzkN3XClSHZh5YrCEQxbwALGIiUxgw3AJ0SSi6mwcq/KgIsbgPAK+VyhUtrzVoAAAAAElFTkSuQmCC',
            '2A8D' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7WAMYAhhCGUMdkMREpjCGMDo6OgQgiQW0srayNgQ6iCDrbhVpdASqE0F237RpK7NCV2ZNQ3ZfAIo6MGR0EA11RTOPtUGkEV1MpAGiF9ktoaEijQ5obh6o8KMixOI+AFdXywdUPuseAAAAAElFTkSuQmCC',
            '6818' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WAMYQximMEx1QBITmcLayhDCEBCAJBbQItLoGMLoIIIs1gBUNwWuDuykyKiVYaumrZqaheS+kCko6iB6W0UaHaagmYdFTASLXpCbGUMdUNw8UOFHRYjFfQAlpMxHZKlNWQAAAABJRU5ErkJggg==',
            'C676' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdklEQVR4nGNYhQEaGAYTpIn7WEMYQ1hDA6Y6IImJtLK2MjQEBAQgiQU0ijQyNAQ6CCCLNYg0MDQ6OiC7L2rVtLBVS1emZiG5L6BBtJVhCiOqeQ0ijQ4BjA4iaHY4OqCKgdzC2sCAohfs5gYGFDcPVPhREWJxHwBO7cwkUHYSRAAAAABJRU5ErkJggg==',
            'A4D7' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcElEQVR4nGNYhQEaGAYTpIn7GB0YWllDGUNDkMRYAximsjY6NIggiYlMYQhlbQhAEQtoZXQFiQUguS9qKRCsilqZheS+gFaRVqC6VmR7Q0NFQ10bAqYwoJjHAFIXgCHW6OiAIRbKiCI2UOFHRYjFfQDpfczeZt7GDgAAAABJRU5ErkJggg==',
            'ED2C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZElEQVR4nGNYhQEaGAYTpIn7QkNEQxhCGaYGIIkFNIi0Mjo6BIigijW6NgQ6sKCJOQDFkN0XGjVtZdbKzCxk94HVtTI6MKDrnYJFLIAR3Q6QThS3gNzMGhqA4uaBCj8qQizuAwDbZMynQDKbAgAAAABJRU5ErkJggg==',
            '463C' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpI37pjCGMIYyTA1AFgthbWVtdAgQQRJjDBFpZGgIdGBBEmOdAlTR6OiA7L5p06aFrZq6MgvZfQFTRFuR1IFhaKhIowPQPFS3QMRYUMQw3YLVzQMVftSDWNwHAFtQy7Oj6Mx1AAAAAElFTkSuQmCC',
            '836F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXUlEQVR4nGNYhQEaGAYTpIn7WANYQxhCGUNDkMREpoi0Mjo6OiCrC2hlaHRtQBUTmcLQytrACBMDO2lp1KqwpVNXhmYhuQ+sDqt5gQTFsLkF6mYUsYEKPypCLO4DADasycD1TxqIAAAAAElFTkSuQmCC',
            'B9C0' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYUlEQVR4nGNYhQEaGAYTpIn7QgMYQxhCHVqRxQKmsLYyOgRMdUAWaxVpdG0QCAhAUQcSY3QQQXJfaNTSpamrVmZNQ3JfwBTGQCR1UPMYGjHFWLDYgekWbG4eqPCjIsTiPgA8Js3NWYlfzQAAAABJRU5ErkJggg==',
            'ABAE' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7GB1EQximMIYGIImxBoi0MoQyOiCrE5ki0ujo6IgiFtAq0sraEAgTAzspaunUsKWrIkOzkNyHpg4MQ0NFGl1DA9HNa3RtwBDD0BvQKhoCFENx80CFHxUhFvcBAOpzy7PBaFhLAAAAAElFTkSuQmCC',
            '4243' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAeElEQVR4nGNYhQEaGAYTpI37pjCGMDQ6hDogi4WwtjK0OjoEIIkxhog0Okx1aBBBEmOdAtQZ6NAQgOS+adNWLV2ZmbU0C8l9AVMYprA2wtWBYWgoQwBraACKeUC3OABNRBNjbWBoRHULwxTRUAd0Nw9U+FEPYnEfALyjzYH/eoTgAAAAAElFTkSuQmCC',
            '2A73' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAd0lEQVR4nM2QMQ6AMAhF6dAb4H1wcMdELtFT0KE3aHqDDvaU1o1GR43yE4YXIC9Au5TCn/KKn2dgLyxkGGa3ga7EhnHyqXdFu50wUiRl61fKHmqrwfpxn8ug9p6jSYhhuOcV40wjw86WPm13RU4Gg/NX/3swN34HTIPNIWe6CHYAAAAASUVORK5CYII=',
            '5348' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7QkNYQxgaHaY6IIkFNIi0MrQ6BASgiIFUOTqIIIkFBjC0MgTC1YGdFDZtVdjKzKypWcjuA5rG2ohqHlCs0TU0EMW8AKCYQyOqHSJTRECiKHpZAzDdPFDhR0WIxX0A4/3NcYKvDOEAAAAASUVORK5CYII=',
            '640B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7WAMYWhmmMIY6IImJTGGYyhDK6BCAJBbQAhRxdHQQQRZrYHRlbQiEqQM7KTJq6dKlqyJDs5DcFzJFpBVJHURvq2ioK1AMxbxWhlZ0O4BuaUV3CzY3D1T4URFicR8A0wDLKklE7b0AAAAASUVORK5CYII=',
            '5125' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAc0lEQVR4nM3QsQ2AIBCF4aNgAwaCwv6ReBZs4BbXsAG6g0wpdEe01ASu+3KEP1B9HKGZ5pc+XgnEhqEMYmBC8DSYhZU4WES7K3Hxqm87a6rXnpLuy20vkzj9crcyGrrBeG2udCHovlbClnH4Cf7vw3npuwHvYMjBuh4ZpAAAAABJRU5ErkJggg==',
            '3F86' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXUlEQVR4nGNYhQEaGAYTpIn7RANEQx1CGaY6IIkFTBFpYHR0CAhAVtkq0sDaEOgggCwGVufogOy+lVFTw1aFrkzNQnYfRB1W80QIiGFzi2gAUAWamwcq/KgIsbgPAPJfyzt7415ZAAAAAElFTkSuQmCC',
            '612D' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAb0lEQVR4nGNYhQEaGAYTpIn7WAMYAhhCGUMdkMREpjAGMDo6OgQgiQW0sAawNgQ6iCCLNQD1IsTAToqMWhW1amVm1jQk94VMAaprZUTV2woUm4JFLABVTGQKSIQRxS1Al4SyhgaiuHmgwo+KEIv7AL2YyJUt1fsnAAAAAElFTkSuQmCC',
            '4284' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAc0lEQVR4nM3QMQ7AIAgFUBy4QXsfHbrTRBZPg4M3IN6gi6esI9qObVrYfiC8AO1SAn/qd3zqIjAI2SxiccFnm7m45E2o2AwVcgheyfhqbUfjlpLxkfYrfdDuMgOh7BxHi8cuGSyK0i1TtrKfzV/977m+8Z1kCs1C4JEuNAAAAABJRU5ErkJggg==',
            'CCB1' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYElEQVR4nGNYhQEaGAYTpIn7WEMYQ1lDGVqRxURaWRtdGx2mIosFNIo0uDYEhKKINYg0sDY6wPSCnRS1atqqpaGrliK7D00dQqwhoBWLHdjcgiIGdXNowCAIPypCLO4DAG62zgxVJ6JNAAAAAElFTkSuQmCC',
            '6083' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZUlEQVR4nGNYhQEaGAYTpIn7WAMYAhhCGUIdkMREpjCGMDo6OgQgiQW0sLayNgQ0iCCLNYg0ApU1BCC5LzJq2sqs0FVLs5DcFzIFRR1Eb6tIoyu6ea2YdmBzCzY3D1T4URFicR8AoJnMmyIlkd0AAAAASUVORK5CYII=',
            'BFFC' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWUlEQVR4nGNYhQEaGAYTpIn7QgNEQ11DA6YGIIkFTBFpYG1gCBBBFmsFiTE6sGCoY3RAdl9o1NSwpaErs5Ddh6YOxTxsYph2oLolNAAshuLmgQo/KkIs7gMA+c7L8Bx3iVYAAAAASUVORK5CYII=',
            'E5D1' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYElEQVR4nGNYhQEaGAYTpIn7QkNEQ1lDGVqRxQIaRBpYGx2mYog1BISiiYUAxWB6wU4KjZq6dOmqqKXI7gtoYGh0RajDIyaCRYy1FegWFLHQEMYQoJtDAwZB+FERYnEfAOLPznSyvDopAAAAAElFTkSuQmCC',
            'A25D' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdElEQVR4nGNYhQEaGAYTpIn7GB0YQ1hDHUMdkMRYA1hbWYEyAUhiIlNEGl2BYiJIYgGtDI2uU+FiYCdFLV21dGlmZtY0JPcB1U1haAhE0RsayhCALhbQyujAiiEGdImjI4pbAlpFQx1CGVHcPFDhR0WIxX0A7XTLa6xa0SAAAAAASUVORK5CYII=',
            'DB3B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWElEQVR4nGNYhQEaGAYTpIn7QgNEQxhDGUMdkMQCpoi0sjY6OgQgi7WKNDo0BDqIoIq1MiDUgZ0UtXRq2KqpK0OzkNyHpg6feZhiWNyCzc0DFX5UhFjcBwDs+s5lix+JYgAAAABJRU5ErkJggg==',
            '7225' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdElEQVR4nM2QMQ6AIAwA28Ef4H/qwF4Su/ADf1EGfqBPcJBXCluJjprQbpdrcimUxyiMtL/0ieAKgsKW5injslBnZpe8hp7tkEiDJ9sXy1muLUbTh1TNDOrM7aTAlXbMNZORLONqNsodm8ULHzTA/z7cl74b74DKicdFhLEAAAAASUVORK5CYII=',
            'D467' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7QgMYWhlCGUNDkMQCpjBMZXR0aBBBFgOqYm1AF2N0ZQXRSO6LWgoEU1etzEJyX0CrSCuro0MrA4pe0VBXkE2odrSyNgQEMKC6pZXR0dEBi5tRxAYq/KgIsbgPAG+lzQJ526SuAAAAAElFTkSuQmCC',
            'AA96' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbElEQVR4nGNYhQEaGAYTpIn7GB0YAhhCGaY6IImxBjCGMDo6BAQgiYlMYW1lbQh0EEASC2gVaXQFiiG7L2rptJWZmZGpWUjuA6lzCAlEMS80VDTUAahXBM08R2xiaG4Bm4fm5oEKPypCLO4DAGdKzPoM2bAqAAAAAElFTkSuQmCC',
            'A00B' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZUlEQVR4nGNYhQEaGAYTpIn7GB0YAhimMIY6IImxBjCGMIQyOgQgiYlMYW1ldHR0EEESC2gVaXRtCISpAzspaum0lamrIkOzkNyHpg4MQ0MhYqjmYbMD0y0BrZhuHqjwoyLE4j4AzsPLYsSfYO4AAAAASUVORK5CYII=',
            '6158' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcklEQVR4nGNYhQEaGAYTpIn7WAMYAlhDHaY6IImJTGEMYG1gCAhAEgtoYQWKMTqIIIsB1bBOhasDOykyalXU0sysqVlI7guZwhAAVI1qXitILBDVPKAYK5qYCFAvo6MDil6gS0IZQhlQ3DxQ4UdFiMV9ALhZyjy4Ad8gAAAAAElFTkSuQmCC',
            '2567' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAdElEQVR4nM3QsRGAIAxA0aRgg7gPFPYpyBJOEQs2EDegkCmFLpyWekq6lyL/gHp5Cn+aV/ocTwKCEo3RRorBKxnjROp0NEgUXd/Zvj2Xkuux2D6GdQ4+2bvomylvQ4tSN7bWriYMwVsTwdiaB/vq/x6cm74TTCLLTBuQKEoAAAAASUVORK5CYII=',
            'A122' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nGNYhQEaGAYTpIn7GB0YAhhCGaY6IImxBjAGMDo6BAQgiYlMYQ1gbQh0EEESC2gF6m0IaBBBcl/U0lVRq1ZmAQmE+8DqWhkake0IDQWKTQGKopsHEkUTA7sRRYw1lDU0MDRkEIQfFSEW9wEAQ4fKAhouowYAAAAASUVORK5CYII=',
            '32B8' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7RAMYQ1hDGaY6IIkFTGFtZW10CAhAVtkq0ujaEOgggiw2haHRFaEO7KSVUauWLg1dNTUL2X1TGKZgmscQwIpuXiujA7oY0C0N6HpFA0RDXdHcPFDhR0WIxX0A+PHMxjCpkX0AAAAASUVORK5CYII=',
            '6316' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7WANYQximMEx1QBITmSLSyhDCEBCAJBbQwtDoGMLoIIAs1sDQyjCF0QHZfZFRq8JWTVuZmoXkvpApYHWo5rUyNDoA9YoQEAO7ZQqqW0BuZgx1QHHzQIUfFSEW9wEAPQXLldUvqWsAAAAASUVORK5CYII=',
            '393F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAX0lEQVR4nGNYhQEaGAYTpIn7RAMYQxhDGUNDkMQCprC2sjY6OqCobBVpdGgIRBWbAhRDqAM7aWXU0qVZU1eGZiG7bwpjoAOGeQyY5rWyYIhhcwvUzah6Byj8qAixuA8AbYHKpMyBe38AAAAASUVORK5CYII=',
            'EB01' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWklEQVR4nGNYhQEaGAYTpIn7QkNEQximMLQiiwU0iLQyhDJMRRNrdHR0CEVXx9oQANMLdlJo1NSwpauiliK7D00d3DxXLGJAO7C5BUUM6ubQgEEQflSEWNwHANPNzZa08kfuAAAAAElFTkSuQmCC',
            'F93E' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWklEQVR4nGNYhQEaGAYTpIn7QkMZQxhDGUMDkMQCGlhbWRsdHRhQxEQaHRoCMcUQ6sBOCo1aujRr6srQLCT3BTQwBjpgmMeAxTwWLGLY3ILp5oEKPypCLO4DAKJmzJLbVITUAAAAAElFTkSuQmCC',
            '7F39' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7QkNFQx1DGaY6IIu2ijSwNjoEBKCJMTQEOoggi00B8hodYWIQN0VNDVs1dVVUGJL7GEEqGh2mIutlbQDxAhqQxUQgYih2gFSguwUkxoju5gEKPypCLO4DAKGZzK7IjcV2AAAAAElFTkSuQmCC',
            '35EF' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYElEQVR4nGNYhQEaGAYTpIn7RANEQ1lDHUNDkMQCpog0sDYwOqCobMUiNkUkBEkM7KSVUVOXLg1dGZqF7L4pDI2uGOZhExPBEAuYwtqKbq9oAGMI0M2oegco/KgIsbgPADnByOzopCIIAAAAAElFTkSuQmCC',
            'BFCE' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAX0lEQVR4nGNYhQEaGAYTpIn7QgNEQx1CHUMDkMQCpog0MDoEOiCrC2gVaWBtEEQVmwISY4SJgZ0UGjU1bOmqlaFZSO5DU4dkHjYxTDvQ3RIaINLAgObmgQo/KkIs7gMAL9nLV8JYhPYAAAAASUVORK5CYII=',
            '3E86' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAWUlEQVR4nGNYhQEaGAYTpIn7RANEQxlCGaY6IIkFTBFpYHR0CAhAVtkq0sDaEOgggCwGVufogOy+lVFTw1aFrkzNQnYfRB1W80QIiGFzCzY3D1T4URFicR8AZfrK0XGqfhoAAAAASUVORK5CYII=',
            '8653' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbklEQVR4nGNYhQEaGAYTpIn7WAMYQ1hDHUIdkMREprC2sjYwOgQgiQW0ijSyguRQ1Ik0sE4FyiG5b2nUtLClmVlLs5DcJzJFtBWkCt08B6CICJqYK5oYyC2Mjo4obgG5mSGUAcXNAxV+VIRY3AcA8WbM43FJEq0AAAAASUVORK5CYII=',
            '2F77' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAa0lEQVR4nGNYhQEaGAYTpIn7WANEQ11DA0NDkMREpogAyYAGESSxgFZMMQaQWKMDUBTJfdOmhq1aumplFrL7AoDqpjC0ItvL6AAUCwCKIrsFaDqjA1AU2S1AyAoSRRILDcUUG6jwoyLE4j4AplrLPg7CgLoAAAAASUVORK5CYII=',
            'BAA7' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7QgMYAhimMIaGIIkFTGEMYQhlaBBBFmtlbWV0dEAVmyLS6NoQAIQI94VGTVuZuipqZRaS+6DqWhlQzBMNdQ0NmIIqBlYXwIBhR6ADqpsxxQYq/KgIsbgPAC4NzttP5/C2AAAAAElFTkSuQmCC',
            'FA7F' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAXklEQVR4nGNYhQEaGAYTpIn7QkMZAlhDA0NDkMQCGhhDGBoCHRhQxFhbMcVEGh0aHWFiYCeFRk1bmbV0ZWgWkvvA6qYwoukVDXUIQBcTAZqGKebaQFhsoMKPihCL+wC5NMvIO/IkDQAAAABJRU5ErkJggg==',
            '60B4' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaklEQVR4nGNYhQEaGAYTpIn7WAMYAlhDGRoCkMREpjCGsDY6NCKLBbSwtrI2BLSiiDWINLo2OkwJQHJfZNS0lamhq6KikNwXMgWkztEBRW8rUKwhMDQERQxsBza3oIhhc/NAhR8VIRb3AQA9ws6yT3/8RQAAAABJRU5ErkJggg==',
            'BDCA' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZElEQVR4nGNYhQEaGAYTpIn7QgNEQxhCHVqRxQKmiLQyOgRMdUAWaxVpdG0QCAhAVQcUY3QQQXJfaNS0lamrVmZNQ3Ifmjok8xhDQzDEBFHVgd0SiCIGcbMjithAhR8VIRb3AQBqS83JDWDl5AAAAABJRU5ErkJggg==',
            'AA70' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAcUlEQVR4nGNYhQEaGAYTpIn7GB0YAlhDA1qRxVgDGEMYGgKmOiCJiUxhBaoJCAhAEgtoFWl0aHR0EEFyX9TSaSuzlq7MmobkPrC6KYwwdWAYGioa6hCAKgZS5wh0D7odrg0MKG6BiqG4eaDCj4oQi/sAZwDNgapWZM8AAAAASUVORK5CYII=',
            'F782' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAbUlEQVR4nM2QMQ6AMAhF6dAb1PvQwR0TWXoaOvQG6iE4pYylOmpS/vbyCS+APkZgpvzix7wwMpzYMRKoOSPRwFbZMHnWQkZJnR8XvZRVS+dnPbJe9TcCRqEGjkULHZ4lsV0aGXDgfYL/fZgXvxvYNs1jd2PgAgAAAABJRU5ErkJggg==',
            '76EF' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAYElEQVR4nGNYhQEaGAYTpIn7QkMZQ1hDHUNDkEVbWVtZGxgdUFS2ijRiiE0RaUASg7gpalrY0tCVoVlI7mN0EMUwj7VBpNEVTUwEi1hAA6ZbAhrAbkZ1ywCFHxUhFvcBAKB0yJNK+JivAAAAAElFTkSuQmCC',
            'F873' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAZklEQVR4nGNYhQEaGAYTpIn7QkMZQ1hDA0IdkMQCGlhbGRoCHQJQxEQaHUAkujqwKMJ9oVErw1YtXbU0C8l9YHVTGBowzAtgQDNPpNHRAV2MtZW1gRHNLUA3NzCguHmgwo+KEIv7AB5Wzl7a7quhAAAAAElFTkSuQmCC',
            'A931' => 'iVBORw0KGgoAAAANSUhEUgAAAEkAAAAhAgMAAADoum54AAAACVBMVEX///8AAADS0tIrj1xmAAAAaUlEQVR4nGNYhQEaGAYTpIn7GB0YQxhDGVqRxVgDWFtZGx2mIouJTBFpdGgICEUWC2gFijU6wPSCnRS1dOnSrKmrliK7L6CVMRBJHRiGhjKAzGtFNY8FixjYLWhiYDeHBgyC8KMixOI+APuUzfQGfyN2AAAAAElFTkSuQmCC'       
        );
        $this->text = array_rand( $images );
        return $images[ $this->text ] ;   
    }
   
    function out_processing_gif(){
        $image = dirname(__FILE__) . '/processing.gif';
        $base64_image = "R0lGODlhFAAUALMIAPh2AP+TMsZiALlcAKNOAOp4ANVqAP+PFv///wAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgAIACwAAAAAFAAUAAAEUxDJSau9iBDMtebTMEjehgTBJYqkiaLWOlZvGs8WDO6UIPCHw8TnAwWDEuKPcxQml0Ynj2cwYACAS7VqwWItWyuiUJB4s2AxmWxGg9bl6YQtl0cAACH5BAUKAAgALAEAAQASABIAAAROEMkpx6A4W5upENUmEQT2feFIltMJYivbvhnZ3Z1h4FMQIDodz+cL7nDEn5CH8DGZhcLtcMBEoxkqlXKVIgAAibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkphaA4W5upMdUmDQP2feFIltMJYivbvhnZ3V1R4BNBIDodz+cL7nDEn5CH8DGZAMAtEMBEoxkqlXKVIg4HibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpjaE4W5tpKdUmCQL2feFIltMJYivbvhnZ3R0A4NMwIDodz+cL7nDEn5CH8DGZh8ONQMBEoxkqlXKVIgIBibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpS6E4W5spANUmGQb2feFIltMJYivbvhnZ3d1x4JMgIDodz+cL7nDEn5CH8DGZgcBtMMBEoxkqlXKVIggEibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpAaA4W5vpOdUmFQX2feFIltMJYivbvhnZ3V0Q4JNhIDodz+cL7nDEn5CH8DGZBMJNIMBEoxkqlXKVIgYDibbK9YLBYvLtHH5K0J0IACH5BAUKAAgALAEAAQASABIAAAROEMkpz6E4W5tpCNUmAQD2feFIltMJYivbvhnZ3R1B4FNRIDodz+cL7nDEn5CH8DGZg8HNYMBEoxkqlXKVIgQCibbK9YLBYvLtHH5K0J0IACH5BAkKAAgALAEAAQASABIAAAROEMkpQ6A4W5spIdUmHQf2feFIltMJYivbvhnZ3d0w4BMAIDodz+cL7nDEn5CH8DGZAsGtUMBEoxkqlXKVIgwGibbK9YLBYvLtHH5K0J0IADs=";
        $binary = is_file($image) ? join("",file($image)) : base64_decode($base64_image);
        header("Cache-Control: post-check=0, pre-check=0, max-age=0, no-store, no-cache, must-revalidate");
        header("Pragma: no-cache");
        header("Content-type: image/gif");
        echo $binary;
    }

}
# end of class phpfmgImage
# ------------------------------------------------------
# end of module : captcha


# module user
# ------------------------------------------------------
function phpfmg_user_isLogin(){
    return ( isset($_SESSION['authenticated']) && true === $_SESSION['authenticated'] );
}


function phpfmg_user_logout(){
    session_destroy();
    header("Location: admin.php");
}

function phpfmg_user_login()
{
    if( phpfmg_user_isLogin() ){
        return true ;
    };
   
    $sErr = "" ;
    if( 'Y' == $_POST['formmail_submit'] ){
        if(
            defined( 'PHPFMG_USER' ) && PHPFMG_USER == $_POST['Username'] &&
            defined( 'PHPFMG_PW' )   && PHPFMG_PW   == $_POST['Password']
        ){
             $_SESSION['authenticated'] = true ;
             return true ;
            
        }else{
            $sErr = 'Въвели сте грешни данни!';
        }
    };
   
    // show login form
    phpfmg_admin_header();
?>
<form name="frmFormMail" action="" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>

<center>
<div style="width:380px;height:260px;">
<fieldset style="padding:18px;" >
<table cellspacing='3' cellpadding='3' border='0' >
    <tr>
        <td class="form_field" valign='top' align='right'>Потребителско име:</td>
        <td class="form_text">
            <input type="text" name="Username"  value="<?php echo $_POST['Username']; ?>" class='text_box' >
        </td>
    </tr>

    <tr>
        <td class="form_field" valign='top' align='right'>Парола:</td>
        <td class="form_text">
            <input type="password" name="Password"  value="" class='text_box'>
        </td>
    </tr>

    <tr><td colspan=3 align='center'>
        <input type='submit' value='Вход'><br><br>
        <?php if( $sErr ) echo "<span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>n"; ?>
        <a href="admin.php?mod=mail&func=request_password">Забравена парола</a>  
    </td></tr>
</table>
</fieldset>
</div>
<script type="text/javascript">
    document.frmFormMail.Username.focus();
</script>
</form>
<?php
    phpfmg_admin_footer();
}


function phpfmg_mail_request_password(){
    $sErr = '';
    if( $_POST['formmail_submit'] == 'Y' ){
        if( strtoupper(trim($_POST['Username'])) == strtoupper(trim(PHPFMG_USER)) ){
            phpfmg_mail_password();
            exit;
        }else{
            $sErr = "Няма такъв имейл адрес в базите с данни!";
        };
    };
   
    $n1 = strpos(PHPFMG_USER,'@');
    $n2 = strrpos(PHPFMG_USER,'.');
    $email = substr(PHPFMG_USER,0,1) . str_repeat('*',$n1-1) .
            '@' . substr(PHPFMG_USER,$n1+1,1) . str_repeat('*',$n2-$n1-2) .
            '.' . substr(PHPFMG_USER,$n2+1,1) . str_repeat('*',strlen(PHPFMG_USER)-$n2-2) ;


    phpfmg_admin_header("Request Password of Email Form Admin Panel");
?>
<form name="frmRequestPassword" action="admin.php?mod=mail&func=request_password" method='post' enctype='multipart/form-data'>
<input type='hidden' name='formmail_submit' value='Y'>
<br><br><br>

<center>
<div style="width:580px;height:260px;text-align:left;">
<fieldset style="padding:18px;" >
<legend>Забравена парола</legend>
Въведете е-пощата си!:<br />
<input type="text" name="Username"  value="<?php echo $_POST['Username']; ?>" style="width:380px;">
<input type='submit' value='Изпрати'><br>
Паролата ще бъде изпратена на имейл адреса Ви!
<?php if( $sErr ) echo "<br /><br /><span style='color:red;font-weight:bold;'>{$sErr}</span><br><br>n"; ?>
</fieldset>
</div>
<script type="text/javascript">
    document.frmRequestPassword.Username.focus();
</script>
</form>
<?php
    phpfmg_admin_footer();   
}


function phpfmg_mail_password(){
    phpfmg_admin_header();
    if( defined( 'PHPFMG_USER' ) && defined( 'PHPFMG_PW' ) ){
        $body = "Някой е изпратил забравена парола! Дано си ти, защото... някой може да те хакне... nnЕто ти данните:nnПотребителрско име: " . PHPFMG_USER . "nПарола: " . PHPFMG_PW . "nn" ;
        if( 'html' == PHPFMG_MAIL_TYPE )
            $body = nl2br($body);
        mailAttachments( PHPFMG_USER, "Паролата за админ панела на контакт формата", $body, PHPFMG_USER, 'You', "You <" . PHPFMG_USER . ">" );
        echo "<center>Вашата парола е изпратена!<br><br><a href='admin.php'>Натиснете тук, за да се върнете в началната страница на админ панела</a></center>";
    };  
    phpfmg_admin_footer();
}


function phpfmg_writable_check(){
 
    if( is_writable( dirname(PHPFMG_SAVE_FILE) ) && is_writable( dirname(PHPFMG_EMAILS_LOGFILE) )  ){
        return ;
    };
?>
<style type="text/css">
    .fmg_warning{
        background-color: #F4F6E5;
        border: 1px dashed #ff0000;
        padding: 16px;
        color : black;
        margin: 10px;
        line-height: 180%;
        width:80%;
    }
   
    .fmg_warning_title{
        font-weight: bold;
    }

</style>
<br><br>
<div class="fmg_warning">
    <div class="fmg_warning_title">Your form data or email traffic log is NOT saving.</div>
    The form data (<?php echo PHPFMG_SAVE_FILE ?>) and email traffic log (<?php echo PHPFMG_EMAILS_LOGFILE?>) will be created aumotically when the form is submitted.
    However, the script doesn't have writable permission to create those files. In order to save your valuable information, please set the directory to writable.
     If you don't know how to do it, please ask for help from your web Administrator or Technical Support of your hosting company.  
</div>
<br><br>
<?php
}


function phpfmg_log_view(){
    $n = isset($_REQUEST['file'])  ? $_REQUEST['file']  : '';
    $files = array(
        1 => PHPFMG_EMAILS_LOGFILE,
        2 => PHPFMG_SAVE_FILE,
    );
   
    phpfmg_admin_header();
  
    $file = $files[$n];
    if( is_file($file) ){
        if( 1== $n ){
            echo "<pre>n";
            echo join("",file($file) );
            echo "</pre>n";
        }else{
            $man = new phpfmgDataManager();
            $man->displayRecords();
        };
    

    }else{
        echo "<b>Няма данни!</b>";
    };
    phpfmg_admin_footer();
}


function phpfmg_log_download(){
    $n = isset($_REQUEST['file'])  ? $_REQUEST['file']  : '';
    $files = array(
        1 => PHPFMG_EMAILS_LOGFILE,
        2 => PHPFMG_SAVE_FILE,
    );

    $file = $files[$n];
    if( is_file($file) ){
        phpfmg_util_download( $file, PHPFMG_SAVE_FILE == $file ? 'form-data.csv' : 'email-traffics.txt', true, 1 ); // skip the first line
    }else{
        phpfmg_admin_header();
        echo "<b>Няма данни за изтегляне!</b>";
        phpfmg_admin_footer();
    };

}


function phpfmg_log_delete(){
    $n = isset($_REQUEST['file'])  ? $_REQUEST['file']  : '';
    $files = array(
        1 => PHPFMG_EMAILS_LOGFILE,
        2 => PHPFMG_SAVE_FILE,
    );
    phpfmg_admin_header();

    $file = $files[$n];
    if( is_file($file) ){
        echo unlink($file) ? "Данните са успешно изтрити!" : "Файловете не са изтрити!" ;
    };
    phpfmg_admin_footer();
}


function phpfmg_util_download($file, $filename='', $toCSV = false, $skipN = 0 ){
    if (!is_file($file)) return false ;

    set_time_limit(0);


    $buffer = "";
    $i = 0 ;
    $fp = @fopen($file, 'rb');
    while( !feof($fp)) {
        $i ++ ;
        $line = fgets($fp);
        if($i > $skipN){ // skip lines
            if( $toCSV ){
              $line = str_replace( chr(0x09), ',', $line );
              $buffer .= phpfmg_data2record( $line, false );
            }else{
                $buffer .= $line;
            };
        };
    };
    fclose ($fp);
 

   
    /*
        If the Content-Length is NOT THE SAME SIZE as the real conent output, Windows+IIS might be hung!!
    */
    $len = strlen($buffer);
    $filename = basename( '' == $filename ? $file : $filename );
    $file_extension = strtolower(substr(strrchr($filename,"."),1));

    switch( $file_extension ) {
        case "pdf": $ctype="application/pdf"; break;
        case "exe": $ctype="application/octet-stream"; break;
        case "zip": $ctype="application/zip"; break;
        case "doc": $ctype="application/msword"; break;
        case "xls": $ctype="application/vnd.ms-excel"; break;
        case "ppt": $ctype="application/vnd.ms-powerpoint"; break;
        case "gif": $ctype="image/gif"; break;
        case "png": $ctype="image/png"; break;
        case "jpeg":
        case "jpg": $ctype="image/jpg"; break;
        case "mp3": $ctype="audio/mpeg"; break;
        case "wav": $ctype="audio/x-wav"; break;
        case "mpeg":
        case "mpg":
        case "mpe": $ctype="video/mpeg"; break;
        case "mov": $ctype="video/quicktime"; break;
        case "avi": $ctype="video/x-msvideo"; break;
        //The following are for extensions that shouldn't be downloaded (sensitive stuff, like php files)
        case "php":
        case "htm":
        case "html":
                $ctype="text/plain"; break;
        default:
            $ctype="application/x-download";
    }
                                           

    //Begin writing headers
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: public");
    header("Content-Description: File Transfer");
    //Use the switch-generated Content-Type
    header("Content-Type: $ctype");
    //Force the download
    header("Content-Disposition: attachment; filename=".$filename.";" );
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: ".$len);
   
    while (@ob_end_clean()); // no output buffering !
    flush();
    echo $buffer ;
   
    return true;
 
   
}
?>

 

Това е урокът! Ако имате някакви въпроси пишете!  Забранявам урокът да е написан в други сайтове без моето съгласие!


Страници: «1 2 3

Коментари (1)

xmaniacbg на 03.05 2013 в 17:17ч.
Parse error: syntax error, unexpected '$fromName' (T_VARIABLE) in C:\xampp\htdocs\loginform\form.lib.php on line 355

Регистрирайте се, за да добавите коментар


Калдейта ЕООД - © 2003-2010. Всички права запазени.
Препоръчваме: Национален Бизнес | Bomba.bg | IT Новини | Диплома.бг | TRAVEL туризъм | Реферати | AmAm.bg | Иде.ли | Курсови работи | Фото Форум | Spodeli.net | Фото-Култ | Atol.bg | Elmaz.com | MobileBulgaria.com | Казанлък.Com