WordPress.org

Plugin Directory

Changeset 1661953


Ignore:
Timestamp:
05/22/17 04:03:41 (8 months ago)
Author:
codename065
Message:

2.9.51

  • Added IP block option to prevent bot downloads or downloads from unwanted IP addresses
  • Fixed issue with redirection after login
  • Fixed issued with master key reset on product update
Location:
download-manager/trunk
Files:
1 added
11 edited

Legend:

Unmodified
Added
Removed
  • download-manager/trunk/admin/menus/class.Packages.php

    r1629686 r1661953  
    3737        foreach ($cdata as $k => $v) { 
    3838            $tk = str_replace("__wpdm_", "", $k); 
    39             if (!isset($_POST['file'][$tk]) && $tk !== $k) { 
     39            if (!isset($_POST['file'][$tk]) && $tk !== $k && $k != "masterkey") { 
    4040                delete_post_meta($post, $k); 
    4141            } 
  • download-manager/trunk/admin/tpls/settings/basic.php

    r1610186 r1661953  
    119119                        </div> 
    120120                    </div> 
     121                    <br/> 
     122                    <fieldset> 
     123                        <legend><?php echo __('Blocked IPs','download-manager'); ?></legend> 
     124                        <div class="form-group"> 
     125                            <textarea placeholder="<?php _e('One IP per line','download-manager'); ?>" rows="5" class="form-control" name="__wpdm_blocked_ips"><?php echo esc_attr(get_option('__wpdm_blocked_ips')); ?></textarea> 
     126                            <em><?php _e('List IP Addresses to blacklist. One IP per line ( Ex: IPv4 - 192.168.23.12 or 192.168.23.1/24 or 192.168.23.* , IPv6 - 2a01:8760:2:3001::1 or 2620:112:3000::/44 )','download-manager'); ?></em> 
     127                        </div> 
     128                        <div class="form-group"> 
     129                            <textarea placeholder="<?php _e('Write a Message for Blocked IPs','download-manager'); ?>" class="form-control" name="__wpdm_blocked_ips_msg"><?php echo get_option('__wpdm_blocked_ips_msg'); ?></textarea> 
     130                            <em><?php _e('Message for Blocked IPs','download-manager'); ?></em> 
     131                        </div> 
     132                    </fieldset> 
    121133                    <hr/> 
    122134                    <em class="note"><?php _e('If you get broken download, then try enabling/disabling following options, as sometimes server may not support output buffering or partial downloads','download-manager'); ?>:</em> 
     
    150162                            <label><a name="liappid"></a><?php echo __('reCAPTCHA Site Key','download-manager'); ?></label> 
    151163                            <input type="text" class="form-control" name="_wpdm_recaptcha_site_key" value="<?php echo get_option('_wpdm_recaptcha_site_key'); ?>"> 
    152                             <em>Register a new site for reCAPTCHA from <a target="_blank" href='https://www.google.com/recaptcha/admin#list'>here</a></em> 
     164                            <em><?php _e('Register a new site for reCAPTCHA from <a target="_blank" href="https://www.google.com/recaptcha/admin#list">here</a>','download-manager'); ?></em> 
    153165                        </div> 
    154166                        <div class="form-group"> 
    155167                            <label><a name="liappid"></a><?php echo __('reCAPTCHA Secret Key','download-manager'); ?></label> 
    156168                            <input type="text" class="form-control" name="_wpdm_recaptcha_secret_key" value="<?php echo get_option('_wpdm_recaptcha_secret_key'); ?>"> 
    157                             <em>Register a new site for reCAPTCHA from <a target="_blank" href='https://www.google.com/recaptcha/admin#list'>here</a></em> 
    158169                        </div> 
    159170                    </fieldset> 
     171 
     172 
    160173 
    161174 
  • download-manager/trunk/assets/css/front.css

    r1650075 r1661953  
     1 
    12@import url('https://fonts.googleapis.com/css?family=Montserrat:400,700'); 
    23 
     4.w3eden .btn.wpdm-clear, 
    35.w3eden .clear { 
    46    clear: both; 
     
    79    border-radius: 0 !important; 
    810} 
    9 .w3eden .wpdm-category { 
     11.w3eden .btn.wpdm-category { 
    1012    border: 0px; 
    1113    border-bottom: 0px solid #ccc; 
     
    1416    font-weight: 700; 
    1517} 
    16 .w3eden .wpdm-front h3.title { 
     18.w3eden .btn.wpdm-front h3.title { 
    1719    font-family: 'Montserrat'; 
    1820    margin: 10px 0 5px 10px; 
     
    3234    margin-top: 20px; 
    3335} 
    34 .w3eden .wpdm-category-list li { 
     36.w3eden .btn.wpdm-category-list li { 
    3537    clear: both; 
    3638} 
    37 .w3eden .wpdm-category-list { 
     39.w3eden .btn.wpdm-category-list { 
    3840    list-style: none; 
    3941} 
     
    6466    z-index: 999999; 
    6567} 
    66 .w3eden .wpdm-email2dl { 
     68.w3eden .btn.wpdm-email2dl { 
    6769    text-align: center; 
    6870    background: #ffffff; 
     
    7173    border: 4px solid #eee; 
    7274} 
    73 .w3eden .wpdm-email2dl .wcon { 
     75.w3eden .btn.wpdm-email2dl .wcon { 
    7476    padding: 10px; 
    7577    border: 1px solid #ccc; 
    7678    font-size: 10pt; 
    7779} 
    78 .w3eden .wpdm-email2dl input[type=button]:active { 
     80.w3eden .btn.wpdm-email2dl input[type=button]:active { 
    7981    background-color: #f4f4f4; 
    8082    background-image: -moz-linear-gradient(top, #f6f6f6, #f1f1f1); 
     
    9092    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); 
    9193} 
    92 .w3eden .wpdm-email2dl input[type=button]:hover { 
     94.w3eden .btn.wpdm-email2dl input[type=button]:hover { 
    9395    border: 1px solid #2F5BB7; 
    9496    text-shadow: 0 1px rgba(0, 0, 0, 0.3); 
     
    106108    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#4d90fe', endColorstr='#357ae8', GradientType=0); 
    107109} 
    108 .w3eden .wpdm-email2dl form { 
     110.w3eden .btn.wpdm-email2dl form { 
    109111    margin-top: 10px; 
    110112    padding-bottom: 10px; 
    111113} 
    112 .w3eden .wpdm-email2dl input[type=button] { 
     114.w3eden .btn.wpdm-email2dl input[type=button] { 
    113115    color: white; 
    114116    text-shadow: 0 1px rgba(0, 0, 0, 0.1); 
     
    130132    border-radius: 0px; 
    131133} 
    132 .w3eden .wpdm-email2dl .wcon input[type=text] { 
     134.w3eden .btn.wpdm-email2dl .wcon input[type=text] { 
    133135    background: #ffffff; 
    134136    -webkit-border-radius: 0px; 
     
    140142    width: 250px; 
    141143} 
    142 .w3eden .wpdm-email2dl label { 
     144.w3eden .btn.wpdm-email2dl label { 
    143145    display: none; 
    144146} 
     
    151153    padding: 30px; 
    152154} 
    153 .w3eden .wpdm-front .inside { 
     155.w3eden .btn.wpdm-front .inside { 
    154156    padding: 10px; 
    155157} 
     
    161163    z-index: 9999999; 
    162164} 
    163 .w3eden .wpdm-drop-box { 
     165.w3eden .btn.wpdm-drop-box { 
    164166    z-index: 99999; 
    165167    display: none; 
     
    184186.w3eden .more_previews_a:last-child { 
    185187    margin-right: 0px !important; 
    186 } 
    187 .w3eden .wpdm-facebook { 
    188     border: 6px solid #777777; 
    189     background: #7C89A3; 
    190     -webkit-border-radius: 8px; 
    191     -moz-border-radius: 8px; 
    192     border-radius: 8px; 
    193     opacity: 0.9; 
    194     filter: alpha(opacity=90); 
    195     margin-bottom: 10px; 
    196 } 
    197 .w3eden .wpdm-facebook h3 { 
    198     margin: 0px !important; 
    199     padding: 4px 10px !important; 
    200     background: #3B5998 !important; 
    201     color: #ffffff !important; 
    202     font-size: 12pt; 
    203     font-weight: bold; 
    204     border: 0px  !important; 
    205     -webkit-border-top-left-radius: 1px; 
    206     -webkit-border-top-right-radius: 1px; 
    207     -moz-border-radius-topleft: 1px; 
    208     -moz-border-radius-topright: 1px; 
    209     border-top-left-radius: 1px; 
    210     border-top-right-radius: 1px; 
    211188} 
    212189.w3eden .wpdm_file .cont { 
     
    220197    font-size: 9pt; 
    221198} 
    222 .w3eden .wpdm-facebook .btn_left { 
     199.w3eden .wpdm-social-lock { 
     200    margin-right: 5px; 
     201} 
     202.w3eden .btn.wpdm-facebook .btn_left { 
    223203    background: #3b5998; 
    224204    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzNiNTk5OCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM1NDc3YmYiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+"); 
     
    244224    text-shadow: 0 1px 0 #000; 
    245225} 
    246 .w3eden .wpdm-facebook .cont { 
     226.w3eden .btn.wpdm-facebook .cont { 
    247227    background: #fff; 
    248228} 
    249 .w3eden .wpdm-facebook .btn_outer { 
     229.w3eden .btn.wpdm-facebook .btn_outer { 
    250230    background: none repeat scroll 0 0 #D6E3FF; 
    251231    border: 1px solid #3b5998; 
     
    259239    padding: 0; 
    260240} 
    261 .w3eden .wpdm-facebook .btn_right { 
     241.w3eden .btn.wpdm-facebook .btn_right { 
    262242    display: block; 
    263243    float: left; 
     
    384364    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset; 
    385365} 
    386 .w3eden .wpdm-bluebox { 
     366.w3eden .btn.wpdm-bluebox { 
    387367    border: 1px solid #30aedc; 
    388368    -webkit-border-radius: 8px; 
     
    403383    text-align: center; 
    404384} 
    405 .w3eden .wpdm-bluebox h3 { 
     385.w3eden .btn.wpdm-bluebox h3 { 
    406386    padding: 4px 10px; 
    407387    font-size: 12pt; 
    408388    margin-bottom: 0px; 
    409389} 
    410 .w3eden .wpdm-bluebox .cont { 
     390.w3eden .btn.wpdm-bluebox .cont { 
    411391    background: #ffffff; 
    412392    text-align: left; 
     
    417397    border-radius: 8px; 
    418398} 
    419 .w3eden .wpdm-bluebox .passit { 
     399.w3eden .btn.wpdm-bluebox .passit { 
    420400    margin-bottom: 10px; 
    421401} 
    422 .w3eden .wpdm-bluebox .btn_outer .btn_left { 
     402.w3eden .btn.wpdm-bluebox .btn_outer .btn_left { 
    423403    background: #7abcff; 
    424404    background: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzdhYmNmZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjUyJSIgc3RvcC1jb2xvcj0iIzYwYWJmOCIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiM0MDk2ZWUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+"); 
     
    469449} 
    470450.w3eden #wp-post_content-editor-container { 
    471     border: 1px solid #dddddd; 
     451    border: 0; 
     452} 
     453.w3eden #package-content-section #insert-media-button { 
     454    margin: 3px 0 0; 
     455} 
     456.w3eden #package-content-section .wp-editor-tools.hide-if-no-js { 
     457    background: #eef2f4 none repeat scroll 0 0; 
     458    border-bottom: 1px solid #e5e5e5; 
     459    padding: 10px 10px 0; 
    472460} 
    473461.w3eden td.mceToolbar { 
     
    483471    text-align: left !important; 
    484472} 
     473.w3eden #attach-file-section .panel-body, 
    485474.w3eden #package-settings-section .panel-body { 
    486475    padding: 0 !important; 
    487476} 
     477.w3eden #attach-file-section .tab-content .panel-body, 
    488478.w3eden #package-settings-section .tab-content .panel-body { 
    489479    padding: 15px !important; 
    490480} 
    491 .w3eden .wpdm-full-front { 
     481.w3eden .btn.wpdm-full-front { 
    492482    width: 100% !important; 
    493483    clear: both; 
    494484    display: block; 
    495485} 
     486.w3eden #attach-file-section .nav-tabs, 
    496487.w3eden #package-settings-section .nav-tabs { 
    497488    margin: 0 !important; 
     
    501492    background: #fafafa; 
    502493} 
     494.w3eden #attach-file-section .nav-tabs li, 
    503495.w3eden #package-settings-section .nav-tabs li { 
    504496    padding-bottom: 0 !important; 
     
    506498    margin-right: 2px; 
    507499} 
     500.w3eden #attach-file-section .nav-tabs li a, 
    508501.w3eden #package-settings-section .nav-tabs li a { 
    509502    padding: 8px 20px; 
     
    512505    font-weight: 600; 
    513506} 
     507.w3eden #attach-file-section .nav-tabs li.active a, 
    514508.w3eden #package-settings-section .nav-tabs li.active a { 
    515509    color: #333333; 
    516510} 
     511.w3eden #attach-file-section .nav-tabs li:not(.active) a, 
    517512.w3eden #package-settings-section .nav-tabs li:not(.active) a { 
    518513    background: rgba(0, 0, 0, 0.03) !important; 
    519514    border: 1px solid #ddd; 
    520515} 
     516.w3eden #attach-file-section .nav-tabs li:not(.active) a:hover, 
    521517.w3eden #package-settings-section .nav-tabs li:not(.active) a:hover { 
    522518    background: rgba(0, 0, 0, 0.06) !important; 
    523519} 
     520.w3eden #attach-file-section .tab-content, 
    524521.w3eden #package-settings-section .tab-content { 
    525522    padding: 20px; 
    526523} 
     524.w3eden #attach-file-section #ftabs ul.jqueryFileTree li { 
     525    padding-left: 20px !important; 
     526} 
    527527.w3eden #package-settings-section td { 
    528528    vertical-align: middle; 
     
    531531    border: 0 !important; 
    532532} 
    533 .w3eden .wpdm-accordion h3 { 
     533.w3eden .wpdm-accordion .panel h3 { 
    534534    font-size: 10pt !important; 
    535     margin: 2px 0 !important; 
    536     border-radius: 3px; 
     535    border-radius: 0; 
    537536    padding: 7px 10px !important; 
    538     border: 1px solid #eeeeee; 
     537    border-bottom: 1px solid #D1E0E4 !important; 
    539538    font-weight: 700; 
     539    margin-bottom: -1px; 
    540540} 
    541541.w3eden .wpdm-accordion h3 .wpdmlock { 
     
    543543    margin-right: 10px !important; 
    544544} 
     545.w3eden .wpdm-accordion .panel { 
     546    padding: 0; 
     547    overflow: hidden; 
     548    border: 1px solid #D1E0E4; 
     549    margin-bottom: 5px !important; 
     550} 
     551.w3eden .wpdm-accordion .panel .panel-body, 
     552.w3eden .wpdm-accordion .panel h3 { 
     553    border: 0; 
     554    margin: 0 !important; 
     555} 
    545556.w3eden .wpdmlock + label { 
    546     width: 18px !important; 
    547     height: 18px !important; 
    548     border: 2px solid #306ACB; 
     557    border: 2px solid #306acb; 
     558    display: inline-block; 
    549559    float: left; 
    550     display: inline-block; 
     560    height: 14px !important; 
     561    margin-right: 5px; 
     562    margin-top: 1px !important; 
     563    width: 14px !important; 
    551564} 
    552565.w3eden .panel-heading > label { 
    553566    position: relative; 
     567    margin: 0; 
    554568} 
    555569.w3eden .wpdmlock:checked + label:after { 
    556570    content: ""; 
    557571    position: absolute; 
    558     left: 4px; 
    559     top: 4px; 
     572    left: 2px; 
     573    top: 3px; 
    560574    background: #306ACB; 
    561575    width: 10px !important; 
     
    575589    box-shadow: none !important; 
    576590} 
    577 .w3eden .wpdm-spinner { 
     591.w3eden #package-settings-section .wpdm-accordion .panel { 
     592    margin-bottom: -2px !important; 
     593    border-radius: 0 !important; 
     594} 
     595.w3eden .btn.wpdm-spinner { 
    578596    background: url('../images/wpdm-settings.png') center center no-repeat; 
    579597    width: 16px; 
     
    589607    /*border-radius: 100%;*/ 
    590608} 
    591 .w3eden .wpdm-spin { 
     609.w3eden .btn.wpdm-spin { 
    592610    -webkit-animation: spin 2s infinite linear; 
    593611    -moz-animation: spin 2s infinite linear; 
     
    705723    color: #354C8C !important; 
    706724} 
     725.w3eden .btn.wpdm-android { 
     726    background: #8ec147; 
     727    color: #ffffff !important; 
     728} 
     729.w3eden .btn.wpdm-apple { 
     730    background: #777; 
     731    color: #ffffff !important; 
     732} 
     733.w3eden .btn.wpdm-behance { 
     734    background: #0077ff; 
     735    color: #ffffff !important; 
     736} 
     737.w3eden .btn.wpdm-bitcoin { 
     738    background: #f79012; 
     739    color: #ffffff !important; 
     740} 
     741.w3eden .btn.wpdm-buysellads { 
     742    background: #c90100; 
     743    color: #ffffff !important; 
     744} 
     745.w3eden .btn.wpdm-codepen { 
     746    background: #444; 
     747    color: #ffffff !important; 
     748} 
     749.w3eden .btn.wpdm-css3 { 
     750    background: #0270bb; 
     751    color: #ffffff; 
     752} 
     753.w3eden .btn.wpdm-delicious { 
     754    background: #31a9ff; 
     755    color: #ffffff !important; 
     756} 
     757.w3eden .btn.wpdm-deviantart { 
     758    background: #05cc47; 
     759    color: #ffffff !important; 
     760} 
     761.w3eden .btn.wpdm-digg { 
     762    background: #0093cc; 
     763} 
     764.w3eden .btn.wpdm-dribbble { 
     765    background: #ea4c89; 
     766} 
     767.w3eden .btn.wpdm-dropbox { 
     768    background: #007ee5; 
     769} 
     770.w3eden .btn.wpdm-drupal { 
     771    background: #0073ba; 
     772} 
     773.w3eden .btn.wpdm-email-1 { 
     774    background: #35c7ed; 
     775} 
     776.w3eden .btn.wpdm-email-2 { 
     777    background: #35c7ed; 
     778} 
     779.w3eden .btn.wpdm-facebook { 
     780    background: #4862a3; 
     781    color: #ffffff !important; 
     782} 
     783.w3eden .btn.wpdm-flickr { 
     784    background: #ff1981; 
     785} 
     786.w3eden .btn.wpdm-foursquare { 
     787    background: #f04d7a; 
     788} 
     789.w3eden .btn.wpdm-git { 
     790    background: #f64d27; 
     791} 
     792.w3eden .btn.wpdm-github { 
     793    background: #999; 
     794} 
     795.w3eden .btn.wpdm-google { 
     796    background: #3f85f4; 
     797    color: #ffffff !important; 
     798} 
     799.w3eden .btn.wpdm-google-plus { 
     800    background: #dd4b39; 
     801    color: #ffffff !important; 
     802} 
     803.w3eden .btn.wpdm-html5 { 
     804    background: #e54d26; 
     805} 
     806.w3eden .btn.wpdm-instagram { 
     807    background: #3d6b92; 
     808} 
     809.w3eden .btn.wpdm-joomla { 
     810    background: #fc8f30; 
     811} 
     812.w3eden .btn.wpdm-jsfiddle { 
     813    background: #4679bd; 
     814} 
     815.w3eden .btn.wpdm-lastfm { 
     816    background: #df1c23; 
     817} 
     818.w3eden .btn.wpdm-linkedin { 
     819    background: #0177b5; 
     820    color: #ffffff !important; 
     821} 
     822.w3eden .btn.wpdm-linux { 
     823    background: #39a6df; 
     824} 
     825.w3eden .btn.wpdm-maxcdn { 
     826    background: #ff5b02; 
     827} 
     828.w3eden .btn.wpdm-medium { 
     829    background: #333; 
     830} 
     831.w3eden .btn.wpdm-pagelines { 
     832    background: #444; 
     833} 
     834.w3eden .btn.wpdm-paypal { 
     835    background: #009cde; 
     836} 
     837.w3eden .btn.wpdm-pinterest { 
     838    background: #db242c; 
     839    color: #ffffff !important; 
     840} 
     841.w3eden .btn.wpdm-reddit { 
     842    background: #ff4500; 
     843} 
     844.w3eden .btn.wpdm-rss { 
     845    background: #fc8f55; 
     846} 
     847.w3eden .btn.wpdm-share { 
     848    background: #01924b; 
     849} 
     850.w3eden .btn.wpdm-skype { 
     851    background: #00aff0; 
     852} 
     853.w3eden .btn.wpdm-slideshare { 
     854    background: #0679b5; 
     855} 
     856.w3eden .btn.wpdm-soundcloud { 
     857    background: #ff4e00; 
     858} 
     859.w3eden .btn.wpdm-spotify { 
     860    background: #84bd00; 
     861} 
     862.w3eden .btn.wpdm-stack-exchange { 
     863    background: #366fb3; 
     864} 
     865.w3eden .btn.wpdm-stack-overflow { 
     866    background: #07c; 
     867} 
     868.w3eden .btn.wpdm-stumbleupon { 
     869    background: #ea4b24; 
     870} 
     871.w3eden .btn.wpdm-trello { 
     872    background: #026aa7; 
     873} 
     874.w3eden .btn.wpdm-tumblr { 
     875    background: #2c4762; 
     876} 
     877.w3eden .btn.wpdm-twitter { 
     878    background: #55acee; 
     879    color: #ffffff !important; 
     880} 
     881.w3eden .btn.wpdm-vimeo { 
     882    background: #44bbff; 
     883} 
     884.w3eden .btn.wpdm-vine { 
     885    background: #00bf8f; 
     886} 
     887.w3eden .btn.wpdm-vk { 
     888    background: #6281a3; 
     889} 
     890.w3eden .btn.wpdm-whatsapp { 
     891    background: #59ac23; 
     892} 
     893.w3eden .btn.wpdm-windows { 
     894    background: #00bcf2; 
     895} 
     896.w3eden .btn.wpdm-wordpress { 
     897    background: #1e8cbe; 
     898} 
     899.w3eden .btn.wpdm-xing { 
     900    background: #006464; 
     901} 
     902.w3eden .btn.wpdm-yahoo { 
     903    background: #5210c4; 
     904} 
     905.w3eden .btn.wpdm-yelp { 
     906    background: #c41200; 
     907} 
     908.w3eden .btn.wpdm-youtube { 
     909    background: #d02022; 
     910} 
     911.w3eden .btn.wpdm-youtube-play { 
     912    background: #d02022; 
     913} 
     914.w3eden .btn.wpdm-*:hover { 
     915    opacity: 0.9; 
     916} 
     917.w3eden .wpdm-social-lock { 
     918    text-transform: none !important; 
     919} 
     920.w3eden .wpdm-social-lock .fa { 
     921    margin-right: 5px; 
     922} 
    707923.w3eden .pluginButtonIcon { 
    708924    left: 0; 
     
    712928    vertical-align: top; 
    713929} 
    714 .w3eden .wpdm-btn-play { 
     930.w3eden .btn.wpdm-btn-play { 
    715931    outline: none !important; 
    716932} 
    717 .w3eden .wpdm-btn-play-lg { 
     933.w3eden .btn.wpdm-btn-play-lg { 
    718934    font-size: 25px !important; 
    719935    padding: 12px 15px !important; 
     
    726942    margin-left: 0 !important; 
    727943} 
    728 .w3eden .nav.nav-tabs > li > a { 
     944.w3eden .nav-tabs li a { 
    729945    outline: none !important; 
    730     font-weight: 600 !important; 
    731946} 
    732947.w3eden .ptypes li { 
     
    762977    font-size: 11px !important; 
    763978} 
    764 .w3eden .wpdm-archive-meta .wpdm-download-link { 
     979.w3eden .btn.wpdm-archive-meta .wpdm-download-link { 
    765980    padding: 5px 10px !important; 
    766981    margin: 0 !important; 
    767982    font-size: 9pt; 
    768983} 
    769 .w3eden .wpdm-archive-meta li { 
     984.w3eden .btn.wpdm-archive-meta li { 
    770985    border: 0px !important; 
    771986    list-style: none !important; 
    772987    padding-right: 20px !important; 
    773988} 
    774 .w3eden .wpdm-archive-meta li:last-child { 
     989.w3eden .btn.wpdm-archive-meta li:last-child { 
    775990    padding: 0 !important; 
    776991    max-width: 100px !important; 
    777992    text-align: right !important; 
    778993} 
    779 .w3eden .wpdm-archive-meta .wpdm-download-link img { 
     994.w3eden .btn.wpdm-archive-meta .wpdm-download-link img { 
    780995    box-shadow: none !important; 
    781996    height: 30px; 
     
    10431258    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 
    10441259} 
    1045 .w3eden .wpdm-prices fieldset { 
     1260.w3eden .w3eden.wpdm-prices fieldset { 
    10461261    margin-bottom: 10px; 
    10471262} 
    1048 .w3eden .wpdm-prices fieldset legend { 
     1263.w3eden .w3eden.wpdm-prices fieldset legend { 
    10491264    font-size: 10pt; 
    10501265    font-weight: 900; 
    10511266    margin-bottom: 7px; 
    10521267} 
    1053 .w3eden .wpdm-prices fieldset label { 
     1268.w3eden .w3eden.wpdm-prices fieldset label { 
    10541269    display: block; 
    10551270    clear: both; 
     
    10711286    font-size: 8pt; 
    10721287    font-weight: 400; 
    1073 } 
    1074 .w3eden .wpdm-social-lock-box { 
    1075     display: inline-block; 
    1076     overflow: hidden; 
    1077     padding: 10px; 
    1078     margin-right: 5px; 
    1079     border-radius: 3px; 
    1080     height: 45px; 
    1081     margin-bottom: 3px; 
    1082     width: 150px; 
    1083     position: relative; 
    1084     text-align: center; 
    1085     transition: all 300ms ease-in-out; 
    1086 } 
    1087 .w3eden .wpdm-social-lock-box .wpdm-download-button, 
    1088 .w3eden .wpdm-social-lock-box .placehold { 
    1089     height: 45px; 
    1090     margin-bottom: 5px; 
    1091     width: 150px; 
    1092     margin-left: -10px; 
    1093     margin-top: -10px; 
    1094     text-align: center; 
    1095     line-height: 45px; 
    1096     color: #ffffff; 
    1097     position: absolute; 
    1098     z-index: 1; 
    1099     font-family: Courier, serif; 
    1100     transition: all 300ms ease-in-out; 
    1101 } 
    1102 .w3eden .wpdm-social-locks .fa { 
    1103     border: 0.05em solid #fff; 
    1104     border-radius: 500px; 
    1105     font-size: 10px; 
    1106     height: 20px; 
    1107     line-height: 16px; 
    1108     padding: 1px; 
    1109     text-align: center; 
    1110     width: 20px; 
    1111 } 
    1112 .w3eden .wpdm-social-lock-box .placehold.wpdmgoogle { 
    1113     background: #DF4B38; 
    11141288} 
    11151289.w3eden .btn-linkedin { 
     
    12051379    border-top-left-radius: 3px; 
    12061380    color: #fff; 
    1207     content: "\f058"; 
     1381    content: "\f14a"; 
    12081382    font-family: FontAwesome; 
    1209     font-size: 16pt; 
     1383    font-size: 18pt; 
    12101384    height: 100%; 
    1211     margin: -15px 0 0 -60px; 
    1212     padding-top: 8px; 
     1385    left: 0; 
     1386    top: 0; 
     1387    line-height: 50px; 
    12131388    position: absolute; 
    12141389    text-align: center; 
    1215     width: 45px; 
     1390    width: 50px; 
     1391    text-shadow: 0 0 2px rgba(0, 0, 0, 0.2); 
    12161392} 
    12171393.w3eden .alert.alert-success { 
     
    12321408    content: "\f057"; 
    12331409    font-family: FontAwesome; 
    1234     font-size: 16pt; 
     1410    font-size: 18pt; 
    12351411    height: 100%; 
    1236     margin: -15px 0 0 -60px; 
    1237     padding-top: 8px; 
     1412    left: 0; 
     1413    top: 0; 
     1414    line-height: 50px; 
    12381415    position: absolute; 
    12391416    text-align: center; 
     
    14011578    border-bottom-color: #e74c3c; 
    14021579} 
    1403 .w3eden #lock-options .wpdm-accordion .panel { 
     1580.w3eden #lock-options .btn.wpdm-accordion .panel { 
    14041581    padding: 0 !important; 
    14051582    border: 0 !important; 
     
    14071584    border-radius: 0 !important; 
    14081585} 
    1409 .w3eden #lock-options .wpdm-accordion .panel .panel-heading label { 
     1586.w3eden #lock-options .btn.wpdm-accordion .panel .panel-heading label { 
    14101587    margin: 0 !important; 
    14111588    line-height: 18px; 
    14121589} 
    1413 .w3eden #lock-options .wpdm-accordion .panel .panel-heading { 
     1590.w3eden #lock-options .btn.wpdm-accordion .panel .panel-heading { 
    14141591    border-radius: 0 !important; 
    14151592} 
     
    14941671} 
    14951672.w3eden .well { 
    1496     box-shadow: none !important; 
    1497     border: 0 !important; 
    1498     font-style: normal !important; 
     1673    box-shadow: none; 
     1674    border: 0; 
     1675    font-style: normal; 
    14991676} 
    15001677.w3eden #wpdm-pf #title { 
    15011678    border-radius: 3px; 
    15021679} 
    1503 .w3eden .wpdmpp-price-variations .fieldset-contents { 
    1504     padding: 10px; 
     1680.w3eden .btn-addtocart .label { 
     1681    font-size: 80%; 
     1682    letter-spacing: 0.5px; 
    15051683} 
    15061684.w3eden .g-recaptcha > div > div { 
     
    15181696    width: 20px; 
    15191697} 
    1520 .w3eden #lock-options .wpdm-accordion .panel .panel-heading label .wpdmlock + label { 
    1521     margin-right: 5px !important; 
     1698.w3eden .btn .label-price:empty { 
     1699    display: none; 
     1700} 
     1701.w3eden .btn .label-price { 
     1702    background: rgba(0, 0, 0, 0.1); 
    15221703} 
    15231704.w3eden .panel .panel-heading:nth-child(n+2) { 
    15241705    border-radius: 0 !important; 
    15251706    border-top: 1px solid #dddddd !important; 
     1707} 
     1708.w3eden #currentfiles .panel-heading { 
     1709    border-top: 0 !important; 
    15261710} 
    15271711.w3eden div.list-group.pm-list { 
     
    16361820    font-weight: 900 !important; 
    16371821} 
    1638 .w3eden .user-dashboard { 
     1822.w3eden .w3eden.user-dashboard { 
    16391823    font-size: 13px; 
    16401824} 
    1641 .w3eden .user-dashboard .panel { 
     1825.w3eden .w3eden.user-dashboard .panel { 
    16421826    font-size: 10pt; 
    16431827} 
     
    16761860    border-top: 1px solid #eeeeee; 
    16771861} 
    1678 .w3eden .user-dashboard .pagination { 
     1862.w3eden .w3eden.user-dashboard .pagination { 
    16791863    padding: 0; 
    16801864} 
     
    17031887    text-align: center; 
    17041888} 
     1889.w3eden .popover-content .input-group .form-control { 
     1890    margin: 0; 
     1891} 
    17051892.w3eden .panel-body .panel-row { 
    17061893    margin-top: 10px; 
     
    17081895    display: inline-table; 
    17091896} 
    1710 .w3eden .user-dashboard .table th, 
    1711 .w3eden .user-dashboard .table td { 
     1897.w3eden .w3eden.user-dashboard .table th, 
     1898.w3eden .w3eden.user-dashboard .table td { 
    17121899    font-size: 9pt; 
    17131900    vertical-align: middle; 
    17141901} 
    1715 .w3eden .user-dashboard th { 
     1902.w3eden .w3eden.user-dashboard th { 
    17161903    background: #f5f5f5; 
    17171904    border-bottom-width: 1px; 
     
    17311918    color: #ffffff !important; 
    17321919} 
    1733 .w3eden .user-dashboard .card .card-footer { 
     1920.w3eden .w3eden.user-dashboard .card .card-footer { 
    17341921    background: #1abc9c; 
    17351922    color: #ffffff !important; 
     
    17571944    left: 50%; 
    17581945} 
    1759 .w3eden .user-dashboard #edit-profile-form .col-md-6 { 
     1946.w3eden .w3eden.user-dashboard #edit-profile-form .col-md-6 { 
    17601947    padding-bottom: 10px; 
    17611948} 
    1762 .w3eden .user-dashboard label { 
     1949.w3eden .w3eden.user-dashboard label { 
    17631950    font-size: 10pt; 
    17641951    color: #777; 
    17651952} 
    1766 .w3eden .user-dashboard input.form-control { 
     1953.w3eden .w3eden.user-dashboard input.form-control { 
    17671954    padding: 0 15px; 
    17681955    height: 36px; 
    17691956    line-height: 40px; 
    17701957} 
    1771 .w3eden .user-dashboard #edit-profile-form label .fa-star.text-danger { 
     1958.w3eden .w3eden.user-dashboard #edit-profile-form label .fa-star.text-danger { 
    17721959    float: right; 
    17731960    color: rgba(179, 0, 0, 0.77); 
    17741961    font-size: 10px; 
    17751962} 
    1776 .w3eden .user-dashboard #edit-profile-form label { 
     1963.w3eden .w3eden.user-dashboard #edit-profile-form label { 
    17771964    display: block; 
    17781965} 
    1779 .w3eden .user-dashboard .popover { 
     1966.w3eden .w3eden.user-dashboard .popover { 
    17801967    max-width: 800px !important; 
    17811968    width: 320px; 
     
    17991986.w3eden small { 
    18001987    font-size: 11px !important; 
     1988} 
     1989.w3eden .wpdmlogin-logo { 
     1990    padding: 20px; 
     1991} 
     1992.w3eden .wpdmlogin-logo img { 
     1993    box-shadow: none !important; 
    18011994} 
    18021995.w3eden #wpdmreg .input-group-addon .fa, 
     
    18222015    max-width: 450px; 
    18232016} 
    1824 .w3eden #registerform .input-group-addon .fa { 
    1825     width: 20px; 
    1826 } 
    1827 .w3eden #loginform * , 
    1828 .w3eden #registerform * { 
     2017.w3eden .popover.fade { 
     2018    z-index: -9999; 
     2019} 
     2020.w3eden .popover.fade.in { 
     2021    z-index: 9999; 
     2022} 
     2023.w3eden .package-info-list .panel { 
     2024    margin: -10px -15px; 
     2025    border: 0; 
     2026} 
     2027.w3eden .package-info-list .panel .panel-heading { 
    18292028    border-radius: 0; 
    18302029} 
    1831 .w3eden .all-locks-table .form-control, 
    1832 .w3eden .all-locks-table .wpdm_submit.btn { 
    1833     height: 34px; 
    1834 } 
    1835 .w3eden .all-locks-table .panel { 
    1836     margin-bottom: 10px !important; 
    1837 } 
    1838 .w3eden .all-locks-table { 
    1839     margin: 0; 
    1840 } 
    1841 .w3eden .wpdm-prices .wpmp-regular-price > h3 { 
    1842     margin: 8px 0; 
    1843 } 
    1844 .w3eden .well { 
    1845     margin-left: 0 !important; 
    1846 } 
    1847  
    1848 .w3eden .btn-light { 
    1849     color: #444; 
     2030.w3eden .wpdm-social-lock { 
     2031    margin: 0 3px !important; 
     2032} 
     2033.w3eden .wpdm-social-lock.btn { 
     2034    border-radius: 2px !important; 
     2035    margin-bottom: 5px !important; 
     2036} 
     2037.w3eden .w3eden.author-dashbboard #tabs li a.active { 
     2038    background: #1ABC9C; 
     2039} 
     2040.w3eden .category-panel .category-thumb { 
     2041    width: 32px; 
     2042    max-width: 100%; 
     2043} 
     2044.w3eden .category-panel.has-desc .category-thumb { 
     2045    width: 96px; 
     2046    max-width: 100%; 
     2047} 
     2048.w3eden .panel.panel-package-locks { 
     2049    border: 0 none; 
     2050    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15) !important; 
     2051    padding: 20px !important; 
     2052} 
     2053.w3eden .panel.panel-package-locks .panel-heading { 
     2054    padding-bottom: 0 !important; 
     2055    font-size: 14pt !important; 
     2056    font-weight: 900; 
     2057    background: transparent !important; 
     2058    border: 0 !important; 
     2059    text-transform: uppercase; 
     2060} 
     2061.w3eden .panel-body.wpdm-social-locks.text-center > p { 
     2062    margin-bottom: 20px; 
     2063    margin-top: 0; 
     2064    padding: 0; 
     2065} 
     2066.w3eden #wp-post_content-editor-tools { 
     2067    padding-right: 7px !important; 
     2068} 
     2069.w3eden .wp-editor-container { 
     2070    border-top: 1px solid #e7e6e6 !important; 
     2071} 
     2072.w3eden #package-description .wp-switch-editor { 
     2073    background: rgba(255, 255, 255, 0.2); 
     2074    font-family: Montserrat, "Segoe UI", sans-serif; 
     2075    font-size: 8pt !important; 
     2076    font-weight: 800; 
     2077    height: 20px !important; 
     2078    letter-spacing: 1px; 
     2079    line-height: 20px !important; 
     2080    padding: 5px 15px !important; 
     2081} 
     2082.w3eden .html-active .switch-html, 
     2083.w3eden .tmce-active .switch-tmce { 
     2084    border-bottom-color: #fafafa !important; 
     2085} 
     2086.w3eden .html-active .switch-html, 
     2087.w3eden .tmce-active .switch-tmce, 
     2088.w3eden .quicktags-toolbar, 
     2089.w3eden div.mce-toolbar-grp { 
     2090    background: #fafafa !important; 
     2091} 
     2092.w3eden .ed_button.button.button-small { 
     2093    border-color: #e1e1e1; 
     2094    border-radius: 2px; 
     2095    box-shadow: 0 0 1px rgba(0, 0, 0, 0.1); 
     2096    padding-left: 10px; 
     2097    padding-right: 10px; 
     2098} 
     2099.w3eden .w3eden.author-dashbboard .nav.nav-tabs li a { 
     2100    font-family: Montserrat, "Segoe UI", sans-serif; 
     2101    font-weight: 400 !important; 
     2102    border-top-left-radius: 2px !important; 
     2103    border-top-right-radius: 2px !important; 
     2104} 
     2105.w3eden #wpdm-pf .nav.nav-tabs a { 
     2106    font-size: 9pt !important; 
     2107    letter-spacing: 0.2px; 
     2108    text-transform: capitalize; 
     2109} 
     2110.w3eden #wpdm-pf .alert.alert-success { 
     2111    position: fixed; 
     2112    z-index: 999999999 !important; 
     2113    top: 50px; 
     2114    right: 20px; 
     2115    border-radius: 6px !important; 
     2116    color: #ffffff !important; 
     2117    background: #DCE35B !important; 
     2118    /* fallback for old browsers */ 
     2119    background: -webkit-linear-gradient(-60deg, #22A220, #96D526) !important; 
     2120    /* Chrome 10-25, Safari 5.1-6 */ 
     2121    background: rgba(0, 0, 0, 0) linear-gradient(-60deg, #22A220, #96D526) !important; 
     2122    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */ 
     2123    max-width: 300px; 
     2124    -webkit-transition: all 0.2s ease; 
     2125    transition: all 0.2s ease; 
     2126} 
     2127.w3eden #wpdm-pf .alert.alert-success:before { 
     2128    background: transparent !important; 
     2129} 
     2130.w3eden div#wpdmreg, 
     2131.w3eden div#wpdmlogin { 
     2132    position: relative; 
     2133    margin: 0 auto; 
     2134    overflow: hidden; 
     2135    padding: 40px; 
     2136    border: 1px solid #cccccc; 
     2137    box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); 
     2138    background: #ffffff; 
     2139    border-radius: 0; 
     2140    margin-bottom: 50px; 
     2141} 
     2142.w3eden a.btn.btn-light, 
     2143.w3eden button.btn.btn-light { 
     2144    color: #555555 !important; 
    18502145    background-color: #D9D7DB; 
    18512146    border-color: #A99AB8; 
    1852 } 
    1853  
     2147    font-weight: 400 !important; 
     2148    letter-spacing: 0.5px; 
     2149} 
    18542150.w3eden .btn-light:hover, 
    18552151.w3eden .btn-light:focus, 
    18562152.w3eden .btn-light:active, 
    18572153.w3eden .btn-light.active, 
    1858 .open .dropdown-toggle.w3eden .btn-light { 
     2154.w3eden .open .dropdown-toggle.btn-light { 
    18592155    color: #444; 
    18602156    background-color: #E3E4E6; 
    18612157    border-color: #A99AB8; 
    18622158} 
    1863  
    18642159.w3eden .btn-light:active, 
    18652160.w3eden .btn-light.active, 
    1866 .open .dropdown-toggle.w3eden .btn-light { 
     2161.w3eden .open .dropdown-toggle.btn-light { 
    18672162    background-image: none; 
    18682163} 
    1869  
    18702164.w3eden .btn-light.disabled, 
    18712165.w3eden .btn-light[disabled], 
    1872 fieldset[disabled] .w3eden .btn-light, 
     2166.w3eden fieldset[disabled] .btn-light, 
    18732167.w3eden .btn-light.disabled:hover, 
    18742168.w3eden .btn-light[disabled]:hover, 
    1875 fieldset[disabled] .w3eden .btn-light:hover, 
     2169.w3eden fieldset[disabled] .btn-light:hover, 
    18762170.w3eden .btn-light.disabled:focus, 
    18772171.w3eden .btn-light[disabled]:focus, 
    1878 fieldset[disabled] .w3eden .btn-light:focus, 
     2172.w3eden fieldset[disabled] .btn-light:focus, 
    18792173.w3eden .btn-light.disabled:active, 
    18802174.w3eden .btn-light[disabled]:active, 
    1881 fieldset[disabled] .w3eden .btn-light:active, 
     2175.w3eden fieldset[disabled] .btn-light:active, 
    18822176.w3eden .btn-light.disabled.active, 
    18832177.w3eden .btn-light[disabled].active, 
    1884 fieldset[disabled] .w3eden .btn-light.active { 
     2178.w3eden fieldset[disabled] .btn-light.active { 
    18852179    background-color: #D9D7DB; 
    18862180    border-color: #A99AB8; 
    18872181} 
    1888  
    18892182.w3eden .btn-light .badge { 
    18902183    color: #D9D7DB; 
  • download-manager/trunk/download-manager.php

    r1650075 r1661953  
    55Description: Manage, Protect and Track File Downloads from your WordPress site 
    66Author: Shaon 
    7 Version: 2.9.50 
     7Version: 2.9.51 
    88Author URI: https://www.wpdownloadmanager.com/ 
    99Text Domain: download-manager 
     
    1818@session_start(); 
    1919 
    20 define('WPDM_Version','2.9.50'); 
     20define('WPDM_Version','2.9.51'); 
    2121 
    2222$content_dir = str_replace('\\','/',WP_CONTENT_DIR); 
  • download-manager/trunk/libs/class.Apply.php

    r1629686 r1661953  
    412412     */ 
    413413    function rssFeed($query) { 
    414         if ( isset($query['feed'])  && !isset($query['post_type']) &&  get_option('__wpdm_rss_feed_main', 0) == 1 ){ 
     414        if ( isset($query['feed'])  && !isset($query['post_type'])){ 
    415415            $query['post_type'] = array('post','wpdmpro'); 
    416416        } 
  • download-manager/trunk/libs/class.Messages.php

    r1323498 r1661953  
    88            $message = $msg; 
    99        if($die==-1) return $message; 
    10         echo $message; 
    11         if($die==1) die(); 
     10 
     11        if($die==1) { 
     12            $t = new \WPDM\Template(); 
     13            if(!is_array($msg)) 
     14                $t->assign('message', $message)->display("message.php"); 
     15            else 
     16                $t->assign('message', $msg['message']) 
     17                    ->assign('title', $msg['title']) 
     18                    ->assign('type', $msg['type']) 
     19                    ->assign('icon', $msg['icon']) 
     20                    ->display("message.php"); 
     21            die(); 
     22        } 
    1223        return true; 
    1324    } 
     
    1930            $msg['message'] = $message; 
    2031        } 
    21         if(!isset($msg['title'])) $msg['title'] = 'Error!'; 
     32        if(!isset($msg['title'])) $msg['title'] = __('Operation Failed!','download-manager'); 
    2233        $msg['type'] = 'danger'; 
    2334        $msg['icon'] = 'exclamation-triangle'; 
     
    3142            $msg['message'] = $message; 
    3243        } 
    33         if(!isset($msg['title'])) $msg['title'] = 'Warning!'; 
     44        if(!isset($msg['title'])) $msg['title'] =  __('Warning!','download-manager'); 
    3445        $msg['type'] = 'warning'; 
    3546        $msg['icon'] = 'exclamation-circle'; 
     
    4354            $msg['message'] = $message; 
    4455        } 
    45         if(!isset($msg['title'])) $msg['title'] = 'Attention!'; 
     56        if(!isset($msg['title'])) $msg['title'] =  __('Attention!','download-manager'); 
    4657        $msg['type'] = 'info'; 
    4758        $msg['icon'] = 'info-circle'; 
     
    5566            $msg['message'] = $message; 
    5667        } 
    57         if(!isset($msg['title'])) $msg['title'] = 'Awesome!'; 
     68        if(!isset($msg['title'])) $msg['title'] = __('Awesome!','download-manager'); 
    5869        $msg['type'] = 'success'; 
    5970        $msg['icon'] = 'check-circle'; 
  • download-manager/trunk/libs/class.Template.php

    r1323498 r1661953  
    1212    } 
    1313 
    14     public static function Locate($file, $tpldir = ''){ 
     14    public static function locate($file, $tpldir = ''){ 
    1515 
    1616        if(file_exists(get_stylesheet_directory().'/download-manager/'.$file)) 
     
    2828    } 
    2929 
    30     function Assign($var, $val){ 
     30    function assign($var, $val){ 
    3131        $this->Vars[$var] = $val; 
    3232        return $this; 
    3333    } 
    3434 
    35     function Fetch($template, $tpldir = ''){ 
    36         $template = self::Locate($template, $tpldir); 
     35    function fetch($template, $tpldir = ''){ 
     36        $template = self::locate($template, $tpldir); 
    3737        extract($this->Vars); 
    3838        ob_start(); 
     
    4141    } 
    4242 
     43    function display($template, $tpldir = ''){ 
     44        echo $this->fetch($template, $tpldir); 
     45    } 
     46 
    4347} 
  • download-manager/trunk/readme.txt

    r1650075 r1661953  
    1313 
    1414== Description == 
    15 WordPress Download Manager is a Files / Documents Management Plugin and Complete e-Commerce Solution for selling digital products. WordPress Download Manager plugin will help you to manage, track, control file downloads & sell digital products easily from your WordPress site. Use Password Protection, User Roles Protection to control access to your files. And simply setup prices when you need to sell the digital item. Users can directly download free items and when an item has a price user will have to go through cart & checkout. 
    16 It has the easiest checkout option to give the user better experience in purchasing an item and which always increase the probability of successful completion of an order. As rather than trying to convince a customer to buy something, it would be more helpful to think of a cart optimization as an action to remove the barrier to that goal. 
     15WordPress Download Manager is a Files / Documents Management Plugin to manage, track and control file downloads from your WordPress Site.  Use Passwords, User Roles to control access to your files, control downloads by speed or by putting a limit on download count per user, block bots or unwanted users or spammers using Captcha Lock or IP Block feature, you may also ask users to agree with your terms and conditions before they download. 
     16 
     17Also, you may use WordPress Download Manager as a complete e-Commerce Solution for selling digital products. Simply put a price when you need to sell a digital item. You also may use license  ( ex: Simple, Extended, Unlimited ) based prices for a product. Users can directly download free items and when an item has a price user will have to go through cart & checkout. WordPress Download Manager has the easiest checkout option to give the user better experience in purchasing an item and which always increase the probability of successful completion of an order. 
    1718 
    1819= Features = 
    19 *   Custom post type and taxonomy 
     20*   Custom post type and taxonomy, adding a download is just like creating a post 
    2021*   Drag and Drop File Upload 
     22*   Attach file directly from your server using server file browser 
     23*   Quick add panel with tinymce editor button to create and insert a download easily when you are editing a post or page 
    2124*   Google Drive support to store your files in Google drive ( 15 GB of space for free) 
    2225*   DropBox support to store your files in DropBox ( 2 GB of space for free ) 
     
    2932*   Password protection 
    3033*   CAPTCHA protection 
     34*   IP block option to prevent bot downloads or downloads from unwanted IP addresses 
     35*   Download logs to check who is downloading which file from where and when 
    3136*   Terms protection - Agree with Terms & Conditions before download 
    32 *   Download Counter and Stats 
     37*   Download Counter to see total download count for each file 
    3338*   Custom download link icon 
    3439*   File type icon support 
     
    6772*   Invoice Generation 
    6873*   Easiest Checkout System 
    69 *   Guest Checkout 
     74*   Guest Checkout and Guest Download 
     75*   Order expiration option ( Like 1 year support & update access, then expire ) 
     76*   Auto-renew order option ( Accept Recurring Payment for Orders ) 
    7077*   Easy Order Management 
    7178*   Sales Notifications via Email 
     
    143150== Changelog == 
    144151 
     152= 2.9.51 = 
     153* Added IP block option to prevent bot downloads or downloads from unwanted IP addresses 
     154* Fixed issue with redirection after login 
     155* Fixed issued with master key reset on product update 
     156 
    145157= 2.9.50 = 
    146158* Added new page template to show terms and conditions in a modal popup 
  • download-manager/trunk/tpls/wpdm-login-form.php

    r1650075 r1661953  
    11<?php 
    22 
    3 if(!isset($redirect)) $redirect = get_permalink(get_the_ID()); 
    4 $redirect = isset($_GET['redirect_to']) ? esc_attr(esc_url($_GET['redirect_to'])) : $redirect; 
     3 
    54$regurl = get_option('__wpdm_register_url'); 
    65if($regurl > 0) 
     
    98if(isset($params['redirect'])) $log_redirect = esc_url($params['redirect']); 
    109if(isset($_GET['redirect_to'])) $log_redirect = esc_url($_GET['redirect_to']); 
     10 
     11$up = parse_url($log_redirect); 
     12if($up['host'] != $_SERVER['SERVER_NAME']) $log_redirect = $_SERVER['REQUEST_URI']; 
     13 
     14 
    1115?> 
    1216<div class="w3eden" id="wpdmlogin"> 
     
    7882            </div> 
    7983 
    80             <input type="hidden" name="redirect_to" value="<?php echo isset($redirect)?esc_attr(esc_url($redirect)):esc_attr($_SERVER['REQUEST_URI']); ?>" /> 
     84            <input type="hidden" name="redirect_to" value="<?php echo isset($log_redirect)?esc_attr(esc_url($log_redirect)):esc_attr($_SERVER['REQUEST_URI']); ?>" /> 
    8185 
    8286 
  • download-manager/trunk/wpdm-functions.php

    r1629686 r1661953  
    368368{ 
    369369    if( defined('WPDM_THEME_SUPPORT') && WPDM_THEME_SUPPORT == true ) return $content; 
     370    if(get_post_type(get_the_ID()) != 'wpdmpro') return $content; 
    370371 
    371372    global $wpdb, $current_user, $post, $wp_query, $wpdm_package; 
     
    12071208} 
    12081209 
    1209  
    1210 /*** developer fns **/ 
    1211 if(!function_exists('dd')) { 
    1212     function dd($data) 
    1213     { 
    1214         echo "<pre>" . print_r($data, 1) . "</pre>"; 
    1215         die(); 
    1216     } 
    1217 } 
    1218 if(!function_exists('precho')) { 
    1219     function precho($data) 
    1220     { 
    1221         echo "<pre>" . print_r($data, 1) . "</pre>"; 
    1222     } 
    1223 } 
    1224 /*** developer fns **/ 
    1225  
     1210/** 
     1211 * @param $ip 
     1212 * @param $range 
     1213 * @return bool 
     1214 */ 
     1215function wpdm_ip_in_range( $ip, $range ) { 
     1216    // Check IP range 
     1217    list($subnet, $bits) = explode('/', $range); 
     1218    // Convert subnet to binary string of $bits length 
     1219    $subnet = unpack('H*', inet_pton($subnet)); // Subnet in Hex 
     1220    foreach($subnet as $i => $h) $subnet[$i] = base_convert($h, 16, 2); // Array of Binary 
     1221    $subnet = substr(implode('', $subnet), 0, $bits); // Subnet in Binary, only network bits 
     1222 
     1223    // Convert remote IP to binary string of $bits length 
     1224    $ip = unpack('H*', inet_pton($ip)); // IP in Hex 
     1225    foreach($ip as $i => $h) $ip[$i] = base_convert($h, 16, 2); // Array of Binary 
     1226    $ip = substr(implode('', $ip), 0, $bits); // IP in Binary, only network bits 
     1227 
     1228    // Check network bits match 
     1229    if($subnet == $ip) { 
     1230        return true; 
     1231    } 
     1232    return false; 
     1233} 
     1234 
     1235/** 
     1236 * @param null $ip 
     1237 * @return bool 
     1238 */ 
     1239function wpdm_ip_blocked($ip = null){ 
     1240    $ip = $ip?$ip:wpdm_get_client_ip(); 
     1241    $allblocked = get_option('__wpdm_blocked_ips', ''); 
     1242    $allblocked = explode("\n", str_replace("\r", "", $allblocked)); 
     1243    $isblocked = false; 
     1244    foreach ($allblocked as $blocked) { 
     1245        if(strstr($blocked, '/')) 
     1246            $isblocked = wpdm_ip_in_range($ip, $blocked); 
     1247        else if(strstr($blocked, '*')){ 
     1248            preg_match('/'.$blocked.'/', $ip, $matches); 
     1249            $isblocked = count($matches) > 0?true:false; 
     1250        } else if( $ip == $blocked ) 
     1251            $isblocked = true; 
     1252 
     1253        if($isblocked == true) return $isblocked; 
     1254 
     1255    } 
     1256    return $isblocked; 
     1257} 
     1258 
     1259/** 
     1260 * @return string or bool 
     1261 */ 
     1262function wpdm_get_client_ip() { 
     1263    $ipaddress = ''; 
     1264    if (isset($_SERVER['HTTP_CLIENT_IP'])) 
     1265        $ipaddress = $_SERVER['HTTP_CLIENT_IP']; 
     1266    else if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) 
     1267        $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR']; 
     1268    else if(isset($_SERVER['HTTP_X_FORWARDED'])) 
     1269        $ipaddress = $_SERVER['HTTP_X_FORWARDED']; 
     1270    else if(isset($_SERVER['HTTP_FORWARDED_FOR'])) 
     1271        $ipaddress = $_SERVER['HTTP_FORWARDED_FOR']; 
     1272    else if(isset($_SERVER['HTTP_FORWARDED'])) 
     1273        $ipaddress = $_SERVER['HTTP_FORWARDED']; 
     1274    else if(isset($_SERVER['REMOTE_ADDR'])) 
     1275        $ipaddress = $_SERVER['REMOTE_ADDR']; 
     1276    else 
     1277        $ipaddress = false; 
     1278    return $ipaddress; 
     1279} 
     1280 
     1281 
  • download-manager/trunk/wpdm-start-download.php

    r1610186 r1661953  
    22 
    33if (!defined('ABSPATH')) die('Error!'); 
     4 
     5if(wpdm_ip_blocked()) { 
     6    $_ipblockedmsg =  __('Your IP address is blocked!', 'download-manager'); 
     7    $ipblockedmsg = get_option('__wpdm_blocked_ips_msg', ''); 
     8    $ipblockedmsg = $ipblockedmsg == ''?$_ipblockedmsg:$ipblockedmsg; 
     9    WPDM_Messages::Error($ipblockedmsg, 1); 
     10} 
    411 
    512do_action("wpdm_onstart_download", $package); 
Note: See TracChangeset for help on using the changeset viewer.