-
Notifications
You must be signed in to change notification settings - Fork 1
/
ax_ipcheck_010.txt
60 lines (58 loc) · 3.84 KB
/
ax_ipcheck_010.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Name: ax_ipcheck v0.1
# Type: Public plugin
# Show parts of a page depending on the client's IP address
# Author: eliph
# URL: https://github.com/eliph/ax_ipcheck
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# .....................................................................
YToxMTp7czo0OiJuYW1lIjtzOjEwOiJheF9pcGNoZWNrIjtzOjY6ImF1dGhvciI7czo1OiJl
bGlwaCI7czoxMDoiYXV0aG9yX3VyaSI7czozNToiaHR0cHM6Ly9naXRodWIuY29tL2VsaXBo
L2F4X2lwY2hlY2siO3M6NzoidmVyc2lvbiI7czozOiIwLjEiO3M6MTE6ImRlc2NyaXB0aW9u
IjtzOjU4OiJTaG93IHBhcnRzIG9mIGEgcGFnZSBkZXBlbmRpbmcgb24gdGhlIGNsaWVudCdz
IElQIGFkZHJlc3MgIjtzOjQ6ImNvZGUiO3M6OTAwOiIkcGx1Z2luWyduYW1lJ10gPSAnYXhf
aXBjaGVjayc7DQokcGx1Z2luWydhbGxvd19odG1sX2hlbHAnXSA9IDE7DQokcGx1Z2luWyd2
ZXJzaW9uJ10gPSAnMC4xJzsNCiRwbHVnaW5bJ2F1dGhvciddID0gJ2VsaXBoJzsNCiRwbHVn
aW5bJ2F1dGhvcl91cmknXSA9ICdodHRwczovL2dpdGh1Yi5jb20vZWxpcGgnOw0KJHBsdWdp
blsnZGVzY3JpcHRpb24nXSA9ICdTaG93IHBhcnRzIG9mIGEgcGFnZSBkZXBlbmRpbmcgb24g
dGhlIGNsaWVudCBJUCBhZGRyZXNzJzsNCiRwbH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