/[smecontribs]/rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10860-license_key.patch
ViewVC logotype

Annotation of /rpms/smeserver-xt_geoip/contribs9/smeserver-xt_geoip-1.0.1-bz10860-license_key.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Sat Jan 11 07:29:10 2020 UTC (4 years, 4 months ago) by michel
Branch: MAIN
CVS Tags: smeserver-xt_geoip-1_0_1-22_el6_sme
* Sat Jan 11 2020 Michel Begue <mab974@gmail.com> 1.0.1-22.sme
- add license_key in config db and panel control

1 michel 1.1 diff -urN smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip
2     --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip 2020-01-11 09:35:29.000000000 +0400
3     +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/locale/en-us/etc/e-smith/web/functions/xt_geoip 2020-01-11 09:43:11.161000000 +0400
4     @@ -286,5 +286,9 @@
5     <trans>Available Services</trans>
6     </entry>
7    
8     + <entry>
9     + <base>ERROR_LICENSE_KEY</base>
10     + <trans><![CDATA[ <font color="red">GEOIP license key unavailable. Downloading is <b>inactive</b></font> ]]></trans>
11     + </entry>
12    
13     </lexicon>
14     diff -urN smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/web/functions/xt_geoip smeserver-xt_geoip-1.0.1/root/etc/e-smith/web/functions/xt_geoip
15     --- smeserver-xt_geoip-1.0.1.old/root/etc/e-smith/web/functions/xt_geoip 2020-01-11 09:35:29.000000000 +0400
16     +++ smeserver-xt_geoip-1.0.1/root/etc/e-smith/web/functions/xt_geoip 2020-01-11 10:04:19.498000000 +0400
17     @@ -99,6 +99,13 @@
18     <label> </label>
19     </field>
20    
21     + <field
22     + type="literal"
23     + id="stat_license"
24     + value="get_stat_license_key()">
25     + <label> </label>
26     + </field>
27     +
28    
29     <field type="literal" id="country_list_label" value="">
30     <description>COUNTRY_LIST_DESCRIPTION</description>
31     diff -urN smeserver-xt_geoip-1.0.1.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/xt_geoip.pm smeserver-xt_geoip-1.0.1/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/xt_geoip.pm
32     --- smeserver-xt_geoip-1.0.1.old/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/xt_geoip.pm 2020-01-11 09:35:29.000000000 +0400
33     +++ smeserver-xt_geoip-1.0.1/root/usr/share/perl5/vendor_perl/esmith/FormMagick/Panel/xt_geoip.pm 2020-01-11 10:38:43.843000000 +0400
34     @@ -25,6 +25,7 @@
35     get_value
36     get_badcountries
37     get_geoip
38     + get_stat_license_key
39     get_reverse
40     print_service_table
41     get_stat_geoip
42     @@ -189,6 +190,20 @@
43     }
44     }
45    
46     +=head2 get_stat_license_key
47     +
48     +method to retrieve the status of geoip license_key for the site
49     +=cut
50     +
51     +sub get_stat_license_key {
52     +
53     + my $fm = shift;
54     + if ( (get_value( $fm, 'xt_geoip_LicenseKey' ) || '') eq '' ) {
55     + return $fm->localise('ERROR_LICENSE_KEY');
56     + }
57     + return '';
58     +}
59     +
60     =head2 get_date_update
61     =cut
62    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed