Compare commits
865
Commits
v5.5.0.1-beta
...
v5.6.10
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a0d6e7228 | ||
|
|
69180914f8 | ||
|
|
5552fda906 | ||
|
|
13759821fe | ||
|
|
2e7843da56 | ||
|
|
33ee904f60 | ||
|
|
3e8bedb1e9 | ||
|
|
4f3ad37bf4 | ||
|
|
af92ea064e | ||
|
|
dab5abb89a | ||
|
|
8893b112fa | ||
|
|
d65fa99e3c | ||
|
|
29381da2ce | ||
|
|
d96f47f93d | ||
|
|
830994b637 | ||
|
|
0d586e2101 | ||
|
|
5e6549a22c | ||
|
|
ab204cfa59 | ||
|
|
3ca77a38fb | ||
|
|
67051c74a8 | ||
|
|
2a0bf12e65 | ||
|
|
dfa16adf31 | ||
|
|
96b30e0df6 | ||
|
|
ef99a886cc | ||
|
|
20eb993757 | ||
|
|
3474be175d | ||
|
|
532bf6f0f4 | ||
|
|
c4c1e50f68 | ||
|
|
7754e12194 | ||
|
|
287d68790f | ||
|
|
7d396b1749 | ||
|
|
d666e3467f | ||
|
|
d4c158cfa4 | ||
|
|
f1af936c7d | ||
|
|
72d52b594c | ||
|
|
5622b38c17 | ||
|
|
cef3a48ff1 | ||
|
|
c6b58bb16b | ||
|
|
14ffe72574 | ||
|
|
02baf1589f | ||
|
|
9a1067862a | ||
|
|
07f848e1c7 | ||
|
|
80846ac637 | ||
|
|
62c0803cf5 | ||
|
|
08df872863 | ||
|
|
ca30e27b27 | ||
|
|
56615a5e9e | ||
|
|
9c44d234ed | ||
|
|
e03e01d410 | ||
|
|
940e701fa4 | ||
|
|
031f8b4ef9 | ||
|
|
ed6b7f3326 | ||
|
|
0ded1df66d | ||
|
|
f4dfbacf03 | ||
|
|
3fd8740c92 | ||
|
|
68dc0bd4ec | ||
|
|
cc96048dfa | ||
|
|
6697327265 | ||
|
|
a301d3e1f0 | ||
|
|
2c0e05bbcc | ||
|
|
92c1052cf5 | ||
|
|
c4763a64d8 | ||
|
|
02e0996eb4 | ||
|
|
82648dcbfc | ||
|
|
61a0236938 | ||
|
|
712172a0ea | ||
|
|
d0eadcb12e | ||
|
|
f38baea729 | ||
|
|
6048a8a1c5 | ||
|
|
b84a6114f4 | ||
|
|
b3ea5f19a8 | ||
|
|
b52a1f4da4 | ||
|
|
ce89cba2c7 | ||
|
|
c3634c05f7 | ||
|
|
470d65d92a | ||
|
|
2aff3cd491 | ||
|
|
84669cb47f | ||
|
|
baa114c471 | ||
|
|
2bfd995e49 | ||
|
|
1e72d7e81c | ||
|
|
79b0066ec1 | ||
|
|
47e243c0ad | ||
|
|
bf6678e036 | ||
|
|
aba7d75de6 | ||
|
|
474fc8f9a9 | ||
|
|
a0eb804918 | ||
|
|
0d9c773d22 | ||
|
|
6705d014f9 | ||
|
|
985546fbad | ||
|
|
fa6aa881de | ||
|
|
06750e248b | ||
|
|
c1c4089883 | ||
|
|
248cb2b173 | ||
|
|
8d912e3511 | ||
|
|
c67118f374 | ||
|
|
15f2037790 | ||
|
|
cb6b39cb60 | ||
|
|
73a5f4cc47 | ||
|
|
5f910f192e | ||
|
|
bc2c939d72 | ||
|
|
b7c557f44e | ||
|
|
1ff5df8215 | ||
|
|
72d03f305c | ||
|
|
1ec9a0ee12 | ||
|
|
a061d6c863 | ||
|
|
4f2f725de8 | ||
|
|
fae53d3cd5 | ||
|
|
1fc3a343c2 | ||
|
|
5e1ab9c1e7 | ||
|
|
5605b539f4 | ||
|
|
a8baa8dd7d | ||
|
|
16051b3049 | ||
|
|
db1d56e07b | ||
|
|
4455f7d3c9 | ||
|
|
398967f804 | ||
|
|
ee75b32b3c | ||
|
|
c869f29f0d | ||
|
|
c95168fb0c | ||
|
|
b8ffd99362 | ||
|
|
64e1fbe786 | ||
|
|
91715ff830 | ||
|
|
1fb9e28510 | ||
|
|
babbc9afdb | ||
|
|
04030f9274 | ||
|
|
3085703c61 | ||
|
|
20dc211a82 | ||
|
|
a773839338 | ||
|
|
84b22909c5 | ||
|
|
28bfcea9c2 | ||
|
|
8cd1df0f43 | ||
|
|
cf2a8ab282 | ||
|
|
941f3e135a | ||
|
|
4b9b1af01e | ||
|
|
41d48891f4 | ||
|
|
616f5b8d46 | ||
|
|
a96460948c | ||
|
|
337ee4e68f | ||
|
|
7af4888458 | ||
|
|
fdc695d08c | ||
|
|
9fe34dae1d | ||
|
|
4364058313 | ||
|
|
0642c48106 | ||
|
|
d74c7b24bf | ||
|
|
fec5569c71 | ||
|
|
876534a440 | ||
|
|
5d4ba1030e | ||
|
|
e43e424d80 | ||
|
|
5036254b69 | ||
|
|
2ae4046d29 | ||
|
|
ccdbdebdec | ||
|
|
1c4465a692 | ||
|
|
bcbabf50f2 | ||
|
|
3da5145bef | ||
|
|
6868cee8d1 | ||
|
|
870dcec68d | ||
|
|
4735d62770 | ||
|
|
2c88ef6d13 | ||
|
|
12ce06c2d2 | ||
|
|
3a7d06b19e | ||
|
|
641656047d | ||
|
|
3becc03d23 | ||
|
|
6eaa6ee22a | ||
|
|
a8524eb070 | ||
|
|
db9b4ffd50 | ||
|
|
9416b7dd9a | ||
|
|
1634065870 | ||
|
|
14af11d0fa | ||
|
|
ec3fdce5c7 | ||
|
|
79ce9ec984 | ||
|
|
8eb1d46be1 | ||
|
|
cbdaccbdec | ||
|
|
ff6b160774 | ||
|
|
f96ff445b9 | ||
|
|
6e684e80f2 | ||
|
|
ffc8706a76 | ||
|
|
8ec09b0059 | ||
|
|
af64737b63 | ||
|
|
81792d2595 | ||
|
|
bbbc568db8 | ||
|
|
4eba618a82 | ||
|
|
accf20044f | ||
|
|
aaadf1487d | ||
|
|
44798a4ef5 | ||
|
|
992641dfad | ||
|
|
451ece8d8c | ||
|
|
bcda18cbd5 | ||
|
|
2a8f5f6035 | ||
|
|
f4821aa49a | ||
|
|
476b06792a | ||
|
|
9489254bbf | ||
|
|
8bcac60bda | ||
|
|
fe03163cce | ||
|
|
8ecc5ba241 | ||
|
|
4204f7970e | ||
|
|
9cd2841006 | ||
|
|
4b92543c61 | ||
|
|
b01adc51c7 | ||
|
|
bfdc48b021 | ||
|
|
10b3a9c841 | ||
|
|
3f27a5e32d | ||
|
|
a904c5c634 | ||
|
|
d603f2d5b3 | ||
|
|
275f7e5d8a | ||
|
|
2595a7a45d | ||
|
|
cb346b08c1 | ||
|
|
3db2dc8be3 | ||
|
|
b3451f1cc2 | ||
|
|
b557483e1d | ||
|
|
d28be44108 | ||
|
|
f61d6cc09a | ||
|
|
6fa0f0e704 | ||
|
|
66039a4b37 | ||
|
|
aca4733b12 | ||
|
|
85b97f4b29 | ||
|
|
724a4e4bf6 | ||
|
|
9cf8804611 | ||
|
|
8f3893bb43 | ||
|
|
7617aba611 | ||
|
|
d99641d122 | ||
|
|
7516424989 | ||
|
|
1cb12d9f2c | ||
|
|
dbcb6a2cb6 | ||
|
|
18c42a648e | ||
|
|
f5e2252997 | ||
|
|
6fd339174e | ||
|
|
1891b5eb38 | ||
|
|
3fcc1f2d5f | ||
|
|
4958cc9e35 | ||
|
|
1750e957d2 | ||
|
|
abfeee5e92 | ||
|
|
c3272f9170 | ||
|
|
df176c6ad9 | ||
|
|
22bfc5e9bb | ||
|
|
4e0cd0d911 | ||
|
|
25091a201b | ||
|
|
3706ef99d3 | ||
|
|
69a4998fce | ||
|
|
513976b5a2 | ||
|
|
97a8352117 | ||
|
|
21dc36199f | ||
|
|
0a18368759 | ||
|
|
6d9db83789 | ||
|
|
3e53cd8ff6 | ||
|
|
816a32d5c9 | ||
|
|
529b8a1004 | ||
|
|
62d0bf5c4e | ||
|
|
4c6b833f73 | ||
|
|
21532eb9bf | ||
|
|
cd50af93fd | ||
|
|
589b7f4e39 | ||
|
|
9c8f7128f2 | ||
|
|
a93008d392 | ||
|
|
d3561623aa | ||
|
|
311e879563 | ||
|
|
9932b99a51 | ||
|
|
5c9ed36bf2 | ||
|
|
dbc8e1676a | ||
|
|
749345e502 | ||
|
|
7c8a21ecc0 | ||
|
|
8751ab122a | ||
|
|
0f3e6125b5 | ||
|
|
a21d02f4c5 | ||
|
|
2f9fb355e3 | ||
|
|
8074bce274 | ||
|
|
85dbbe946a | ||
|
|
1f2e79b188 | ||
|
|
27434107e8 | ||
|
|
f1a303e445 | ||
|
|
ba062ca5b6 | ||
|
|
34774f0fc3 | ||
|
|
26b22ac9ca | ||
|
|
9e4a8a95b0 | ||
|
|
1bca642b33 | ||
|
|
3a59bca369 | ||
|
|
5ad2307175 | ||
|
|
25b3d8f6ed | ||
|
|
0d02afd712 | ||
|
|
78d5dce761 | ||
|
|
45d5404520 | ||
|
|
1e6710a55b | ||
|
|
463ca06a21 | ||
|
|
71f58f3108 | ||
|
|
a6e302ff84 | ||
|
|
0c275d0907 | ||
|
|
fa7d0bc717 | ||
|
|
95492a5cd8 | ||
|
|
58dc48d3ea | ||
|
|
281bb5427c | ||
|
|
0577882c6c | ||
|
|
be758d57a5 | ||
|
|
3cee6ede91 | ||
|
|
5d86287069 | ||
|
|
1a12b3e52b | ||
|
|
929183b3e3 | ||
|
|
c1a45a1bec | ||
|
|
444c6d88c2 | ||
|
|
2366e8ebfb | ||
|
|
a0bfc2cf6a | ||
|
|
22ea3d39c1 | ||
|
|
d4f4612b22 | ||
|
|
e061ad852b | ||
|
|
4883fb18ae | ||
|
|
32e9797fef | ||
|
|
bafa1c43bf | ||
|
|
d8b6297579 | ||
|
|
251dfc26e8 | ||
|
|
4743ec91d8 | ||
|
|
bc56480db5 | ||
|
|
958abc9a91 | ||
|
|
4b12ea8260 | ||
|
|
d4f554e653 | ||
|
|
30da5d6b22 | ||
|
|
9dd53a4efa | ||
|
|
bdb1ab852d | ||
|
|
eba9401f89 | ||
|
|
509b2c0be7 | ||
|
|
7950307173 | ||
|
|
fc43e26c14 | ||
|
|
564723c648 | ||
|
|
4724cc4c05 | ||
|
|
958b9342b5 | ||
|
|
068c8818f8 | ||
|
|
cedb732c7a | ||
|
|
477001608e | ||
|
|
d9471833fe | ||
|
|
3936a2d393 | ||
|
|
5465e073a2 | ||
|
|
df295bfe59 | ||
|
|
1fb9b5051c | ||
|
|
2371eecd13 | ||
|
|
993e689800 | ||
|
|
0d414e3ed2 | ||
|
|
b1640d7b76 | ||
|
|
9199b7c986 | ||
|
|
44650b31f6 | ||
|
|
d12c1c84e4 | ||
|
|
aaf5454144 | ||
|
|
0031b20597 | ||
|
|
b5a8ce065f | ||
|
|
30c9a54b4f | ||
|
|
c5395a7f44 | ||
|
|
238f8c042c | ||
|
|
e3016b7a77 | ||
|
|
096f744f61 | ||
|
|
62ebce3d9c | ||
|
|
767c3c5562 | ||
|
|
3aee9326d7 | ||
|
|
b591c91c99 | ||
|
|
0edbdab1d8 | ||
|
|
0b90f9d631 | ||
|
|
d3d7b9aadc | ||
|
|
66d9ae44da | ||
|
|
a19282b58e | ||
|
|
09ec2ac8cb | ||
|
|
da2b6dafb3 | ||
|
|
0a9f580c5b | ||
|
|
f4aa0d0cd8 | ||
|
|
a73cdef008 | ||
|
|
0dbdef7543 | ||
|
|
ea2187e1a8 | ||
|
|
b3d5345b45 | ||
|
|
adc8e94774 | ||
|
|
26857a8d50 | ||
|
|
5a4ddbc455 | ||
|
|
e2e06d4a23 | ||
|
|
b97565e387 | ||
|
|
7e3ad29696 | ||
|
|
5981fd11bf | ||
|
|
0645b8b2f4 | ||
|
|
3197f43be6 | ||
|
|
4bbaef4162 | ||
|
|
d08fc856df | ||
|
|
3f840d9140 | ||
|
|
ecb10436e5 | ||
|
|
97baa9d0db | ||
|
|
11718eb4c0 | ||
|
|
41e3c23f9e | ||
|
|
fdd2d30f4e | ||
|
|
13bc72def7 | ||
|
|
2457055514 | ||
|
|
6449af2b57 | ||
|
|
258f94e597 | ||
|
|
6660a4adc1 | ||
|
|
de72f42216 | ||
|
|
162ce82da0 | ||
|
|
9ac9e01a51 | ||
|
|
eef8f32efe | ||
|
|
fd7121a215 | ||
|
|
3999b86f9f | ||
|
|
38e732e71e | ||
|
|
66130b3fe1 | ||
|
|
767af99ba8 | ||
|
|
7ab46223b5 | ||
|
|
7144c4f4be | ||
|
|
15d13e2fbc | ||
|
|
05035d6f6c | ||
|
|
b4891ab773 | ||
|
|
84a065c31b | ||
|
|
ae6190116f | ||
|
|
8021ebadf9 | ||
|
|
d79c3be7ba | ||
|
|
af3b1b69d3 | ||
|
|
bdcf17dfc2 | ||
|
|
480fb98b32 | ||
|
|
99f7cd4d19 | ||
|
|
2e7953daba | ||
|
|
30a2481145 | ||
|
|
cb61fa3045 | ||
|
|
26dfe6379f | ||
|
|
4ad2f60c34 | ||
|
|
1a12ee8d2c | ||
|
|
0253508cd0 | ||
|
|
d602b5e0c6 | ||
|
|
fff191fc60 | ||
|
|
b1d22acba8 | ||
|
|
eba2f45b6c | ||
|
|
1174193b43 | ||
|
|
07631e70d8 | ||
|
|
203ca4a8a2 | ||
|
|
7d7c90bd84 | ||
|
|
3e31ce3084 | ||
|
|
1123b667af | ||
|
|
694e039b03 | ||
|
|
432bf47757 | ||
|
|
430586e490 | ||
|
|
95964e3aec | ||
|
|
40cd0362c1 | ||
|
|
53b3308019 | ||
|
|
e0bc3cce81 | ||
|
|
3d57480fef | ||
|
|
ff2421df5b | ||
|
|
3247ae2388 | ||
|
|
36baa2a6ab | ||
|
|
c1259af317 | ||
|
|
e9c4eda1d7 | ||
|
|
ce8110a2c1 | ||
|
|
e70e4b6cd2 | ||
|
|
1e7a71cdbc | ||
|
|
cf08961f63 | ||
|
|
725c88c449 | ||
|
|
ecd2b1c72a | ||
|
|
967b7cca18 | ||
|
|
ff74503bac | ||
|
|
524deac54a | ||
|
|
1440e6a790 | ||
|
|
7a6b0a3576 | ||
|
|
1870a7d131 | ||
|
|
b8223d4409 | ||
|
|
352f77d1d7 | ||
|
|
6182fce3a0 | ||
|
|
4cc9e6b001 | ||
|
|
c58122c573 | ||
|
|
8fd390c46c | ||
|
|
ad48b6ba00 | ||
|
|
b1930b9ede | ||
|
|
75174615c7 | ||
|
|
f29d32a86c | ||
|
|
1044bb9d37 | ||
|
|
92529d9c1e | ||
|
|
fa02b84889 | ||
|
|
fefe11f321 | ||
|
|
cf156f5d9e | ||
|
|
4f00321bcf | ||
|
|
0898268692 | ||
|
|
830cffefb0 | ||
|
|
78f95c3182 | ||
|
|
7a8280af93 | ||
|
|
7fe8d391d9 | ||
|
|
21f4cf82a7 | ||
|
|
7783027b58 | ||
|
|
6e72dc7af4 | ||
|
|
2f017e81a4 | ||
|
|
80a1c9ac48 | ||
|
|
6667adbef9 | ||
|
|
c0b790e7f9 | ||
|
|
71a908ebac | ||
|
|
ce7e5b2c3d | ||
|
|
27216e2135 | ||
|
|
b2c930c547 | ||
|
|
2f6096f6a8 | ||
|
|
f56b577c25 | ||
|
|
54103ddfe4 | ||
|
|
c64fbaeb8e | ||
|
|
8bdf80e38c | ||
|
|
d930791504 | ||
|
|
57fc5353f1 | ||
|
|
9aa5d237a7 | ||
|
|
033924f011 | ||
|
|
ae29c976e6 | ||
|
|
2fc24b0746 | ||
|
|
ebdd3b4390 | ||
|
|
4227039811 | ||
|
|
754b25191f | ||
|
|
8fbbae488b | ||
|
|
69b322144a | ||
|
|
d97f27f2fa | ||
|
|
bddbcd5cdd | ||
|
|
4c297a1e53 | ||
|
|
c82c33fc59 | ||
|
|
52f7eef288 | ||
|
|
7d22399eac | ||
|
|
f25354b1b2 | ||
|
|
daffdcbfce | ||
|
|
322e5cf83a | ||
|
|
7a2c29f192 | ||
|
|
9af6991edd | ||
|
|
0ba6f3d861 | ||
|
|
98b085e73e | ||
|
|
4305e6c8cc | ||
|
|
a73967dd9a | ||
|
|
d941742b67 | ||
|
|
73a0f6ea80 | ||
|
|
66d440f75e | ||
|
|
20c94e5b0a | ||
|
|
f8480a41c8 | ||
|
|
26f6b802b7 | ||
|
|
8faa9ba9a2 | ||
|
|
72e041db10 | ||
|
|
bc8162f7fe | ||
|
|
f7aac7c467 | ||
|
|
dfa677aadb | ||
|
|
2e81619ea8 | ||
|
|
796b6d9ab1 | ||
|
|
d28c165fdf | ||
|
|
80a71fef56 | ||
|
|
2144538f7e | ||
|
|
d87802eb94 | ||
|
|
8c8bb94d68 | ||
|
|
7a054e1dbb | ||
|
|
edb0b849d9 | ||
|
|
6ee9b1fbf2 | ||
|
|
413044ab06 | ||
|
|
6148da1add | ||
|
|
9020d246b7 | ||
|
|
de73f54959 | ||
|
|
9ada18ae56 | ||
|
|
ddaf4f9794 | ||
|
|
920d5fc34c | ||
|
|
3a3434104c | ||
|
|
6dc462d784 | ||
|
|
24ba84d6f0 | ||
|
|
650ea16523 | ||
|
|
7be96449b8 | ||
|
|
3d7145c947 | ||
|
|
eb812f32fb | ||
|
|
f3ef7efa91 | ||
|
|
95e6296af1 | ||
|
|
707fceb694 | ||
|
|
950e3ff6c6 | ||
|
|
5eb294eaff | ||
|
|
fc01d803f3 | ||
|
|
cbd9fc4a86 | ||
|
|
6fe49ff106 | ||
|
|
c9fb4ff9d1 | ||
|
|
6b52f0570d | ||
|
|
74ecb1aa55 | ||
|
|
fdc8faf6d0 | ||
|
|
c223847301 | ||
|
|
2ede89f338 | ||
|
|
12132598b4 | ||
|
|
1c3cf4771a | ||
|
|
8523bb5747 | ||
|
|
cde27ea510 | ||
|
|
9a61ea2d59 | ||
|
|
dd2834167a | ||
|
|
aa86ac0c30 | ||
|
|
ddd7090801 | ||
|
|
aceb0a2751 | ||
|
|
5c13b8c200 | ||
|
|
ab7ba78fd2 | ||
|
|
18bc64ab0a | ||
|
|
24268f70b8 | ||
|
|
3eb07bdfa0 | ||
|
|
e6764f4a7c | ||
|
|
5d37a15fb6 | ||
|
|
681499f8dd | ||
|
|
51355dffc5 | ||
|
|
389267bb65 | ||
|
|
239b5d7a2c | ||
|
|
de9ba8db5b | ||
|
|
ccd463170f | ||
|
|
e9439c87d1 | ||
|
|
1971be3186 | ||
|
|
5353f75284 | ||
|
|
84dd9f0766 | ||
|
|
a16926a4de | ||
|
|
c875121931 | ||
|
|
6cc2bfdd50 | ||
|
|
ff4ac1d626 | ||
|
|
fff7e074ff | ||
|
|
8dd2fe58e6 | ||
|
|
1600f63dee | ||
|
|
da29b6d0bb | ||
|
|
cc5eb6e520 | ||
|
|
726863de44 | ||
|
|
f2a1af5f46 | ||
|
|
4b0969d244 | ||
|
|
b5152b62e8 | ||
|
|
7ccf17b479 | ||
|
|
312fc5daf3 | ||
|
|
e3ed8a1af3 | ||
|
|
f230dc3522 | ||
|
|
58878593dc | ||
|
|
863f6011ac | ||
|
|
cee88a0f6f | ||
|
|
27b1a5d8f8 | ||
|
|
7d494115b3 | ||
|
|
0954beced9 | ||
|
|
2534921446 | ||
|
|
831219e2c2 | ||
|
|
ae729f1525 | ||
|
|
4d4064c40d | ||
|
|
e8abeb47e8 | ||
|
|
5fdd38e1ce | ||
|
|
82cdd90edc | ||
|
|
54b1356ab1 | ||
|
|
7ae3d6b00d | ||
|
|
da963964a9 | ||
|
|
7e7d73d394 | ||
|
|
2549172969 | ||
|
|
3fb9c2c15f | ||
|
|
0329cc9f9c | ||
|
|
a77a6ffafa | ||
|
|
15b2e73e73 | ||
|
|
0e00f05014 | ||
|
|
b2858b65ee | ||
|
|
a82f61ae2a | ||
|
|
5be739934b | ||
|
|
02d816154b | ||
|
|
0bae2cf182 | ||
|
|
a196c91ed5 | ||
|
|
c24f37421b | ||
|
|
74a8e668e5 | ||
|
|
f6a8b1bacf | ||
|
|
8958f138f4 | ||
|
|
af8494e18f | ||
|
|
b0fd1e7486 | ||
|
|
bf8efdf2ab | ||
|
|
632ca4c79a | ||
|
|
ea9825be61 | ||
|
|
fbe2021a38 | ||
|
|
5ba5836ecb | ||
|
|
a90a38f096 | ||
|
|
bc68c4bc70 | ||
|
|
7d8e2e4fdd | ||
|
|
f9dd7644cc | ||
|
|
28d079e83f | ||
|
|
54401165e8 | ||
|
|
b99efb8fc8 | ||
|
|
ad102421cb | ||
|
|
9be00683d9 | ||
|
|
e76f36a1be | ||
|
|
70b62a6c6a | ||
|
|
61b3fe4ebd | ||
|
|
30a93dbef7 | ||
|
|
b6956bd6fd | ||
|
|
7a4b7e23c5 | ||
|
|
b34a7610f5 | ||
|
|
0d19b01229 | ||
|
|
2b2d558c87 | ||
|
|
94f25f73fa | ||
|
|
5bd16c0e77 | ||
|
|
7bb40dd882 | ||
|
|
bb99c050b6 | ||
|
|
31cdf10011 | ||
|
|
02c29c137c | ||
|
|
e9afe3fdae | ||
|
|
ce9517885b | ||
|
|
6a41d655de | ||
|
|
c2a4a39ea0 | ||
|
|
b8759e4acd | ||
|
|
e6a3df6f08 | ||
|
|
617dfbf0e2 | ||
|
|
e4c9bf5ba4 | ||
|
|
910091b6c6 | ||
|
|
92b8ce3a89 | ||
|
|
8a276fc073 | ||
|
|
baa2e890ba | ||
|
|
a9f4aee93f | ||
|
|
144926774d | ||
|
|
435da08a02 | ||
|
|
945c060b67 | ||
|
|
83fd4bf68a | ||
|
|
f11c4531e9 | ||
|
|
f36c24e5d0 | ||
|
|
23a91b346d | ||
|
|
8eb465d26f | ||
|
|
6ff06d4609 | ||
|
|
c817b1edb7 | ||
|
|
f7c6a52f6d | ||
|
|
3e343bdf66 | ||
|
|
e131563c8f | ||
|
|
0094cc9afe | ||
|
|
5fde923aa0 | ||
|
|
1e3a4f2657 | ||
|
|
0693fde962 | ||
|
|
7fb5f92200 | ||
|
|
50c8207fed | ||
|
|
6dbfa73461 | ||
|
|
76ecc6efe8 | ||
|
|
f4b0737178 | ||
|
|
e99c7a81db | ||
|
|
ce0a6dc3af | ||
|
|
f3e428ea1e | ||
|
|
9b422b38c5 | ||
|
|
f6056b2d37 | ||
|
|
a560fc353c | ||
|
|
e2c67e854f | ||
|
|
3e7617e825 | ||
|
|
4515f11169 | ||
|
|
ec32f64bc4 | ||
|
|
15bd8b9632 | ||
|
|
ef013e0827 | ||
|
|
b3773217e9 | ||
|
|
70f6d92e87 | ||
|
|
042695af55 | ||
|
|
85f9523b30 | ||
|
|
8c1d6266af | ||
|
|
30009dba6f | ||
|
|
24e7e8823e | ||
|
|
42fb4b71a6 | ||
|
|
f0134b610b | ||
|
|
c2cf34392a | ||
|
|
20dc859436 | ||
|
|
f5ec4d60c0 | ||
|
|
de00b4e9d3 | ||
|
|
8c67945c64 | ||
|
|
e5889df761 | ||
|
|
624e3d74a6 | ||
|
|
30815f71e0 | ||
|
|
949a73b468 | ||
|
|
24d57cdd4b | ||
|
|
191f3d2f97 | ||
|
|
4973714e2f | ||
|
|
70bfeefb3b | ||
|
|
e8b83f3a33 | ||
|
|
c6bdc172ee | ||
|
|
c3cf74f0c5 | ||
|
|
52db203ecd | ||
|
|
6e05353f31 | ||
|
|
7f6a9a090a | ||
|
|
1825830c3d | ||
|
|
3047e09f88 | ||
|
|
990af076af | ||
|
|
b1f0342921 | ||
|
|
63f9e4c8df | ||
|
|
6b43e67c40 | ||
|
|
9a870506ab | ||
|
|
008ae978dd | ||
|
|
20b1d8c7e5 | ||
|
|
1e011ba56d | ||
|
|
a73e48c3e2 | ||
|
|
e9fd9f03fd | ||
|
|
4913da0a1d | ||
|
|
18ef4b0767 | ||
|
|
d0e368fe2a | ||
|
|
5185f0c12a | ||
|
|
f5f4925d4e | ||
|
|
bd3fd20630 | ||
|
|
6797c85480 | ||
|
|
2c9ff2bb52 | ||
|
|
cc2b5c246d | ||
|
|
c337bfdf88 | ||
|
|
cb5603008a | ||
|
|
9d147b5e6c | ||
|
|
aabc82ee6c | ||
|
|
40aff270cd | ||
|
|
851a21a3c1 | ||
|
|
d5b7dd165d | ||
|
|
beb7a86f2a | ||
|
|
a6327afac4 | ||
|
|
30305d78dc | ||
|
|
bb1fd4d3ab | ||
|
|
a75e00f9e0 | ||
|
|
ad67fca323 | ||
|
|
614dce643c | ||
|
|
c0cd45cc18 | ||
|
|
f3e7dbbb43 | ||
|
|
5247359e39 | ||
|
|
4ed4938cf1 | ||
|
|
158d9040d2 | ||
|
|
aebfc70b10 | ||
|
|
69ca119b10 | ||
|
|
be15f890c9 | ||
|
|
bc71241846 | ||
|
|
4bcce2696c | ||
|
|
7083bb0899 | ||
|
|
c7b1d0ee96 | ||
|
|
ba52e4ab6f | ||
|
|
e47156ede6 | ||
|
|
36ef8e6447 | ||
|
|
eb154efa24 | ||
|
|
9bf15fdf32 | ||
|
|
353a0d9409 | ||
|
|
0535b6d26a | ||
|
|
1fe4684537 | ||
|
|
0803de998b | ||
|
|
273983c87c | ||
|
|
94cc7639a9 | ||
|
|
84009dc16c | ||
|
|
82c12f6d98 | ||
|
|
6beff3a333 | ||
|
|
d49200c99e | ||
|
|
faed6ac09a | ||
|
|
9256a5618b | ||
|
|
a52858fc6d | ||
|
|
2ccc407397 | ||
|
|
d5bd57cdfa | ||
|
|
3bbbe96319 | ||
|
|
78169b372c | ||
|
|
a79a926221 | ||
|
|
f72ea8774e | ||
|
|
3c9b72d17a | ||
|
|
8821583e8f | ||
|
|
6e90622328 | ||
|
|
d5aca5ab93 | ||
|
|
7110ccc12f | ||
|
|
330e656544 | ||
|
|
18fc8ec6d1 | ||
|
|
01a31bb18f | ||
|
|
2705b9312c | ||
|
|
9fd14cfc17 | ||
|
|
a6a2183c7d | ||
|
|
4b9369599c | ||
|
|
b477c2e720 | ||
|
|
7ef2029a31 | ||
|
|
1cd8d590b2 | ||
|
|
82a55c96a5 | ||
|
|
489c859d3e | ||
|
|
d5db75a4c9 | ||
|
|
db2ef39126 | ||
|
|
87adbf0f8d | ||
|
|
244b8ae819 | ||
|
|
7ea9d2e1d2 | ||
|
|
7dc293a147 | ||
|
|
097903d0ce | ||
|
|
37b0fa5788 | ||
|
|
ad78efcdaa | ||
|
|
352deb6133 | ||
|
|
1355c7ef57 | ||
|
|
3fa9aec9f2 | ||
|
|
4c083b6471 | ||
|
|
916cd86330 | ||
|
|
5a37e8243d | ||
|
|
e891791f86 | ||
|
|
59468d1312 | ||
|
|
43fae4ed50 | ||
|
|
fdc93c1c2d | ||
|
|
79d7a690f4 | ||
|
|
0742c5f81b | ||
|
|
d5e6a07dda | ||
|
|
e84a1c8c98 | ||
|
|
2579323ddf | ||
|
|
2658dde159 | ||
|
|
d9b8d31225 | ||
|
|
4d8500be02 | ||
|
|
288da7f9e1 | ||
|
|
41aac91146 | ||
|
|
a949c32b4c | ||
|
|
dc06aed164 | ||
|
|
6518b22854 | ||
|
|
c8a69b054e | ||
|
|
cd50ef5d48 | ||
|
|
7983affa68 | ||
|
|
0243dabe20 |
@@ -17,3 +17,4 @@ naver*.html
|
||||
initests01/
|
||||
SIRsoft000/
|
||||
config.php
|
||||
pma/
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Gnuboard5 Security Policy
|
||||
|
||||
Please ask [https://sir.kr/security/.](https://sir.kr/co_qa)
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
define('G5_IS_ADMIN', true);
|
||||
include_once ('../common.php');
|
||||
include_once(G5_ADMIN_PATH.'/admin.lib.php');
|
||||
require_once '../common.php';
|
||||
require_once G5_ADMIN_PATH . '/admin.lib.php';
|
||||
|
||||
if (isset($token)) {
|
||||
$token = @htmlspecialchars(strip_tags($token), ENT_QUOTES);
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$is_use_apache = (stripos($_SERVER['SERVER_SOFTWARE'], 'apache') !== false);
|
||||
|
||||
|
||||
+21
-14
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$g5_debug['php']['begin_time'] = $begin_time = get_microtime();
|
||||
|
||||
@@ -10,14 +12,16 @@ if (is_array($files)) {
|
||||
$fileinfo = pathinfo($css_file);
|
||||
$ext = $fileinfo['extension'];
|
||||
|
||||
if( $ext !== 'css' ) continue;
|
||||
if ($ext !== 'css') {
|
||||
continue;
|
||||
}
|
||||
|
||||
$css_file = str_replace(G5_ADMIN_PATH, G5_ADMIN_URL, $css_file);
|
||||
add_stylesheet('<link rel="stylesheet" href="' . $css_file . '">', $k);
|
||||
}
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
require_once G5_PATH . '/head.sub.php';
|
||||
|
||||
function print_menu1($key, $no = '')
|
||||
{
|
||||
@@ -33,21 +37,25 @@ function print_menu2($key, $no='')
|
||||
global $menu, $auth_menu, $is_admin, $auth, $g5, $sub_menu;
|
||||
|
||||
$str = "<ul>";
|
||||
for($i=1; $i<count($menu[$key]); $i++)
|
||||
{
|
||||
for ($i = 1; $i < count($menu[$key]); $i++) {
|
||||
if (!isset($menu[$key][$i])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0],$auth) || !strstr($auth[$menu[$key][$i][0]], 'r')))
|
||||
if ($is_admin != 'super' && (!array_key_exists($menu[$key][$i][0], $auth) || !strstr($auth[$menu[$key][$i][0]], 'r'))) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$gnb_grp_div = $gnb_grp_style = '';
|
||||
|
||||
if (isset($menu[$key][$i][4])) {
|
||||
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) $gnb_grp_div = 'gnb_grp_div';
|
||||
if (($menu[$key][$i][4] == 1 && $gnb_grp_style == false) || ($menu[$key][$i][4] != 1 && $gnb_grp_style == true)) {
|
||||
$gnb_grp_div = 'gnb_grp_div';
|
||||
}
|
||||
|
||||
if ($menu[$key][$i][4] == 1) $gnb_grp_style = 'gnb_grp_style';
|
||||
if ($menu[$key][$i][4] == 1) {
|
||||
$gnb_grp_style = 'gnb_grp_style';
|
||||
}
|
||||
}
|
||||
|
||||
$current_class = '';
|
||||
@@ -79,11 +87,11 @@ if( ! empty($_COOKIE['g5_admin_btn_gnb']) ){
|
||||
?>
|
||||
|
||||
<script>
|
||||
var g5_admin_csrf_token_key = "<?php echo (function_exists('admin_csrf_token_key')) ? admin_csrf_token_key() : ''; ?>";
|
||||
var tempX = 0;
|
||||
var tempY = 0;
|
||||
|
||||
function imageview(id, w, h)
|
||||
{
|
||||
function imageview(id, w, h) {
|
||||
|
||||
menu(id);
|
||||
|
||||
@@ -141,8 +149,9 @@ function imageview(id, w, h)
|
||||
}
|
||||
|
||||
$current_class = "";
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 3) == substr($menu['menu'.$key][0][0], 0, 3)))
|
||||
if (isset($sub_menu) && (substr($sub_menu, 0, 3) == substr($menu['menu' . $key][0][0], 0, 3))) {
|
||||
$current_class = " on";
|
||||
}
|
||||
|
||||
$button_title = $menu['menu' . $key][0][1];
|
||||
?>
|
||||
@@ -182,9 +191,7 @@ jQuery(function($){
|
||||
} else {
|
||||
delete_cookie(menu_cookie_key);
|
||||
}
|
||||
}
|
||||
catch(err) {
|
||||
}
|
||||
} catch (err) {}
|
||||
|
||||
$("#container").toggleClass("container-small");
|
||||
$("#gnb").toggleClass("gnb_small");
|
||||
|
||||
+3
-1
@@ -83,11 +83,13 @@ function delete_confirm2(msg)
|
||||
|
||||
function get_ajax_token()
|
||||
{
|
||||
var token = "";
|
||||
var token = "",
|
||||
admin_csrf_token_key = (typeof g5_admin_csrf_token_key !== "undefined") ? g5_admin_csrf_token_key : "";
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: g5_admin_url+"/ajax.token.php",
|
||||
data : {admin_csrf_token_key:admin_csrf_token_key},
|
||||
cache: false,
|
||||
async: false,
|
||||
dataType: "json",
|
||||
|
||||
+154
-74
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/*
|
||||
// 081022 : CSRF 방지를 위해 코드를 작성했으나 효과가 없어 주석처리 함
|
||||
@@ -29,11 +31,14 @@ function get_skin_select($skin_gubun, $id, $name, $selected='', $event='')
|
||||
|
||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||
for ($i = 0; $i < count($skins); $i++) {
|
||||
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||
if(preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||
if ($i == 0) {
|
||||
$str .= "<option value=\"\">선택</option>";
|
||||
}
|
||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
|
||||
$text = '(테마) ' . $match[1];
|
||||
else
|
||||
} else {
|
||||
$text = $skins[$i];
|
||||
}
|
||||
|
||||
$str .= option_selected($skins[$i], $selected, $text);
|
||||
}
|
||||
@@ -61,11 +66,14 @@ function get_mobile_skin_select($skin_gubun, $id, $name, $selected='', $event=''
|
||||
|
||||
$str = "<select id=\"$id\" name=\"$name\" $event>\n";
|
||||
for ($i = 0; $i < count($skins); $i++) {
|
||||
if ($i == 0) $str .= "<option value=\"\">선택</option>";
|
||||
if(preg_match('#^theme/(.+)$#', $skins[$i], $match))
|
||||
if ($i == 0) {
|
||||
$str .= "<option value=\"\">선택</option>";
|
||||
}
|
||||
if (preg_match('#^theme/(.+)$#', $skins[$i], $match)) {
|
||||
$text = '(테마) ' . $match[1];
|
||||
else
|
||||
} else {
|
||||
$text = $skins[$i];
|
||||
}
|
||||
|
||||
$str .= option_selected($skins[$i], $selected, $text);
|
||||
}
|
||||
@@ -82,14 +90,19 @@ function get_skin_dir($skin, $skin_path=G5_SKIN_PATH)
|
||||
$result_array = array();
|
||||
|
||||
$dirname = $skin_path . '/' . $skin . '/';
|
||||
if(!is_dir($dirname))
|
||||
if (!is_dir($dirname)) {
|
||||
return array();
|
||||
}
|
||||
|
||||
$handle = opendir($dirname);
|
||||
while ($file = readdir($handle)) {
|
||||
if($file == '.'||$file == '..') continue;
|
||||
if ($file == '.' || $file == '..') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_dir($dirname.$file)) $result_array[] = $file;
|
||||
if (is_dir($dirname . $file)) {
|
||||
$result_array[] = $file;
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
sort($result_array);
|
||||
@@ -106,14 +119,17 @@ function get_theme_dir()
|
||||
$dirname = G5_PATH . '/' . G5_THEME_DIR . '/';
|
||||
$handle = opendir($dirname);
|
||||
while ($file = readdir($handle)) {
|
||||
if($file == '.'||$file == '..') continue;
|
||||
if ($file == '.' || $file == '..') {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_dir($dirname . $file)) {
|
||||
$theme_path = $dirname . $file;
|
||||
if(is_file($theme_path.'/index.php') && is_file($theme_path.'/head.php') && is_file($theme_path.'/tail.php'))
|
||||
if (is_file($theme_path . '/index.php') && is_file($theme_path . '/head.php') && is_file($theme_path . '/tail.php')) {
|
||||
$result_array[] = $file;
|
||||
}
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
natsort($result_array);
|
||||
|
||||
@@ -129,12 +145,14 @@ function get_theme_info($dir)
|
||||
|
||||
if (is_dir($path)) {
|
||||
$screenshot = $path . '/screenshot.png';
|
||||
$screenshot_url = '';
|
||||
if (is_file($screenshot)) {
|
||||
$size = @getimagesize($screenshot);
|
||||
|
||||
if($size[2] == 3)
|
||||
if ($size[2] == 3) {
|
||||
$screenshot_url = str_replace(G5_PATH, G5_URL, $screenshot);
|
||||
}
|
||||
}
|
||||
|
||||
$info['screenshot'] = $screenshot_url;
|
||||
|
||||
@@ -162,9 +180,10 @@ function get_theme_info($dir)
|
||||
$info['license_uri'] = trim($m7[1]);
|
||||
}
|
||||
|
||||
if(!$info['theme_name'])
|
||||
if (!$info['theme_name']) {
|
||||
$info['theme_name'] = $dir;
|
||||
}
|
||||
}
|
||||
|
||||
return $info;
|
||||
}
|
||||
@@ -177,8 +196,8 @@ function get_theme_config_value($dir, $key='*')
|
||||
|
||||
$theme_config_file = G5_PATH . '/' . G5_THEME_DIR . '/' . $dir . '/theme.config.php';
|
||||
if (is_file($theme_config_file)) {
|
||||
include($theme_config_file);
|
||||
|
||||
include $theme_config_file;
|
||||
// 22.05.26 Undefined Variable $theme_config;
|
||||
if ($key == '*') {
|
||||
$tconfig = $theme_config;
|
||||
} else {
|
||||
@@ -199,12 +218,15 @@ function get_member_level_select($name, $start_id=0, $end_id=10, $selected="", $
|
||||
global $g5;
|
||||
|
||||
$str = "\n<select id=\"{$name}\" name=\"{$name}\"";
|
||||
if ($event) $str .= " $event";
|
||||
if ($event) {
|
||||
$str .= " $event";
|
||||
}
|
||||
$str .= ">\n";
|
||||
for ($i = $start_id; $i <= $end_id; $i++) {
|
||||
$str .= '<option value="' . $i . '"';
|
||||
if ($i == $selected)
|
||||
if ($i == $selected) {
|
||||
$str .= ' selected="selected"';
|
||||
}
|
||||
$str .= ">{$i}</option>\n";
|
||||
}
|
||||
$str .= "</select>\n";
|
||||
@@ -220,10 +242,11 @@ function get_member_id_select($name, $level, $selected="", $event="")
|
||||
$sql = " select mb_id from {$g5['member_table']} where mb_level >= '{$level}' ";
|
||||
$result = sql_query($sql);
|
||||
$str = '<select id="' . $name . '" name="' . $name . '" ' . $event . '><option value="">선택안함</option>';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$str .= '<option value="' . $row['mb_id'] . '"';
|
||||
if ($row['mb_id'] == $selected) $str .= ' selected';
|
||||
if ($row['mb_id'] == $selected) {
|
||||
$str .= ' selected';
|
||||
}
|
||||
$str .= '>' . $row['mb_id'] . '</option>';
|
||||
}
|
||||
$str .= '</select>';
|
||||
@@ -231,11 +254,11 @@ function get_member_id_select($name, $level, $selected="", $event="")
|
||||
}
|
||||
|
||||
// php8 버전 호환 권한 검사 함수
|
||||
function auth_check_menu($auth, $sub_menu, $attr, $return=false) {
|
||||
function auth_check_menu($auth, $sub_menu, $attr, $return = false)
|
||||
{
|
||||
|
||||
$check_auth = isset($auth[$sub_menu]) ? $auth[$sub_menu] : '';
|
||||
return auth_check($check_auth, $attr, $return);
|
||||
|
||||
}
|
||||
|
||||
// 권한 검사
|
||||
@@ -243,46 +266,53 @@ function auth_check($auth, $attr, $return=false)
|
||||
{
|
||||
global $is_admin;
|
||||
|
||||
if ($is_admin == 'super') return;
|
||||
if ($is_admin == 'super') {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!trim($auth)) {
|
||||
$msg = '이 메뉴에는 접근 권한이 없습니다.\\n\\n접근 권한은 최고관리자만 부여할 수 있습니다.';
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg);
|
||||
}
|
||||
}
|
||||
|
||||
$attr = strtolower($attr);
|
||||
|
||||
if (!strstr($auth, $attr)) {
|
||||
if ($attr == 'r') {
|
||||
$msg = '읽을 권한이 없습니다.';
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg);
|
||||
}
|
||||
} else if ($attr == 'w') {
|
||||
$msg = '입력, 추가, 생성, 수정 권한이 없습니다.';
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg);
|
||||
}
|
||||
} else if ($attr == 'd') {
|
||||
$msg = '삭제 권한이 없습니다.';
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg);
|
||||
}
|
||||
} else {
|
||||
$msg = '속성이 잘못 되었습니다.';
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// 작업아이콘 출력
|
||||
@@ -292,10 +322,11 @@ function icon($act, $link='', $target='_parent')
|
||||
|
||||
$img = array('입력' => 'insert', '추가' => 'insert', '생성' => 'insert', '수정' => 'modify', '삭제' => 'delete', '이동' => 'move', '그룹' => 'move', '보기' => 'view', '미리보기' => 'view', '복사' => 'copy');
|
||||
$icon = '<img src="' . G5_ADMIN_PATH . '/img/icon_' . $img[$act] . '.gif" title="' . $act . '">';
|
||||
if ($link)
|
||||
if ($link) {
|
||||
$s = '<a href="' . $link . '">' . $icon . '</a>';
|
||||
else
|
||||
} else {
|
||||
$s = $icon;
|
||||
}
|
||||
return $s;
|
||||
}
|
||||
|
||||
@@ -308,9 +339,10 @@ function rm_rf($file)
|
||||
if (is_dir($file)) {
|
||||
$handle = opendir($file);
|
||||
while ($filename = readdir($handle)) {
|
||||
if ($filename != '.' && $filename != '..')
|
||||
if ($filename != '.' && $filename != '..') {
|
||||
rm_rf($file . '/' . $filename);
|
||||
}
|
||||
}
|
||||
closedir($handle);
|
||||
|
||||
@chmod($file, G5_DIR_PERMISSION);
|
||||
@@ -364,7 +396,8 @@ function get_admin_token()
|
||||
}
|
||||
|
||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||
function get_admin_captcha_by($type='get'){
|
||||
function get_admin_captcha_by($type = 'get')
|
||||
{
|
||||
|
||||
$captcha_name = 'ss_admin_use_captcha';
|
||||
|
||||
@@ -376,7 +409,8 @@ function get_admin_captcha_by($type='get'){
|
||||
}
|
||||
|
||||
//input value 에서 xss 공격 filter 역할을 함 ( 반드시 input value='' 타입에만 사용할것 )
|
||||
function get_sanitize_input($s, $is_html=false){
|
||||
function get_sanitize_input($s, $is_html = false)
|
||||
{
|
||||
|
||||
if (!$is_html) {
|
||||
$s = strip_tags($s);
|
||||
@@ -387,7 +421,18 @@ function get_sanitize_input($s, $is_html=false){
|
||||
return $s;
|
||||
}
|
||||
|
||||
function check_log_folder($log_path, $is_delete=true){
|
||||
function domain_mail_host($is_at=true){
|
||||
list($domain_host,) = explode(':', $_SERVER['HTTP_HOST']);
|
||||
|
||||
if ('www.' === substr($domain_host, 0, 4)) {
|
||||
$domain_host = substr($domain_host, 4);
|
||||
}
|
||||
|
||||
return $is_at ? '@'.$domain_host : $domain_host;
|
||||
}
|
||||
|
||||
function check_log_folder($log_path, $is_delete = true)
|
||||
{
|
||||
|
||||
if (is_writable($log_path)) {
|
||||
|
||||
@@ -439,12 +484,25 @@ function check_admin_token()
|
||||
$token = get_session('ss_admin_token');
|
||||
set_session('ss_admin_token', '');
|
||||
|
||||
if(!$token || !$_REQUEST['token'] || $token != $_REQUEST['token'])
|
||||
if (!$token || !$_REQUEST['token'] || $token != $_REQUEST['token']) {
|
||||
alert('올바른 방법으로 이용해 주십시오.', G5_URL);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
function admin_csrf_token_key($is_must=0){
|
||||
global $member;
|
||||
|
||||
$key = '';
|
||||
|
||||
if($is_must || !((isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'))){
|
||||
$key = md5((isset($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : '').(defined('G5_TOKEN_ENCRYPTION_KEY') ? G5_TOKEN_ENCRYPTION_KEY : '').$member['mb_id'].$_SERVER['DOCUMENT_ROOT']);
|
||||
}
|
||||
|
||||
return run_replace('admin_csrf_token_key', $key, $is_must);
|
||||
}
|
||||
|
||||
// 관리자 페이지 referer 체크
|
||||
function admin_referer_check($return = false)
|
||||
{
|
||||
@@ -452,11 +510,12 @@ function admin_referer_check($return=false)
|
||||
if (!$referer) {
|
||||
$msg = '정보가 올바르지 않습니다.';
|
||||
|
||||
if($return)
|
||||
if ($return) {
|
||||
return $msg;
|
||||
else
|
||||
} else {
|
||||
alert($msg, G5_URL);
|
||||
}
|
||||
}
|
||||
|
||||
$p = @parse_url($referer);
|
||||
|
||||
@@ -480,17 +539,22 @@ function admin_referer_check($return=false)
|
||||
}
|
||||
}
|
||||
|
||||
function admin_check_xss_params($params){
|
||||
function admin_check_xss_params($params)
|
||||
{
|
||||
|
||||
if( ! $params ) return;
|
||||
if (!$params) {
|
||||
return;
|
||||
}
|
||||
|
||||
foreach ($params as $key => $value) {
|
||||
|
||||
if ( empty($value) ) continue;
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (is_array($value)) {
|
||||
admin_check_xss_params($value);
|
||||
} else if ( (preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/[onload|onerror]=.*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) || (preg_match('/[onload|onerror|focus]=.*/ius', $value) && preg_match('/(eval|expression|exec|prompt)(\s*)\((.*)\)/ius', $value)) ){
|
||||
} else if ((preg_match('/<\s?[^\>]*\/?\s?>/i', $value) && (preg_match('/script.*?\/script/ius', $value) || preg_match('/(onload|onerror)=.*/ius', $value))) || preg_match('/^(?=.*token\()(?=.*xmlhttprequest\()(?=.*send\().*$/im', $value) || (preg_match('/(onload|onerror|focus)=.*/ius', $value) && preg_match('/(eval|expression|exec|prompt)(\s*)\((.*)\)/ius', $value))) {
|
||||
alert('요청 쿼리에 잘못된 스크립트문장이 있습니다.\\nXSS 공격일수도 있습니다.', G5_URL);
|
||||
die();
|
||||
}
|
||||
@@ -499,7 +563,8 @@ function admin_check_xss_params($params){
|
||||
return;
|
||||
}
|
||||
|
||||
function admin_menu_find_by($call, $search_key){
|
||||
function admin_menu_find_by($call, $search_key)
|
||||
{
|
||||
global $menu;
|
||||
|
||||
static $cache_menu = array();
|
||||
@@ -507,12 +572,18 @@ function admin_menu_find_by($call, $search_key){
|
||||
if (empty($cache_menu)) {
|
||||
foreach ($menu as $k1 => $arr1) {
|
||||
|
||||
if (empty($arr1) ) continue;
|
||||
if (empty($arr1)) {
|
||||
continue;
|
||||
}
|
||||
foreach ($arr1 as $k2 => $arr2) {
|
||||
if (empty($arr2) ) continue;
|
||||
if (empty($arr2)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$menu_key = isset($arr2[3]) ? $arr2[3] : '';
|
||||
if (empty($menu_key) ) continue;
|
||||
if (empty($menu_key)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$cache_menu[$menu_key] = array(
|
||||
'sub_menu' => $arr2[0],
|
||||
@@ -531,33 +602,27 @@ function admin_menu_find_by($call, $search_key){
|
||||
}
|
||||
|
||||
// 접근 권한 검사
|
||||
if (!$member['mb_id'])
|
||||
{
|
||||
if (!$member['mb_id']) {
|
||||
alert('로그인 하십시오.', G5_BBS_URL . '/login.php?url=' . urlencode(correct_goto_url(G5_ADMIN_URL)));
|
||||
}
|
||||
else if ($is_admin != 'super')
|
||||
{
|
||||
} else if ($is_admin != 'super') {
|
||||
$auth = array();
|
||||
$sql = " select au_menu, au_auth from {$g5['auth_table']} where mb_id = '{$member['mb_id']}' ";
|
||||
$result = sql_query($sql);
|
||||
for($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$auth[$row['au_menu']] = $row['au_auth'];
|
||||
}
|
||||
|
||||
if (!$i)
|
||||
{
|
||||
if (!$i) {
|
||||
alert('최고관리자 또는 관리권한이 있는 회원만 접근 가능합니다.', G5_URL);
|
||||
}
|
||||
}
|
||||
|
||||
// 관리자의 아이피, 브라우저와 다르다면 세션을 끊고 관리자에게 메일을 보낸다.
|
||||
$admin_key = md5($member['mb_datetime'] . get_real_client_ip() . $_SERVER['HTTP_USER_AGENT']);
|
||||
if (get_session('ss_mb_key') !== $admin_key) {
|
||||
|
||||
// 관리자의 클라이언트를 검증하여 일치하지 않으면 세션을 끊고 관리자에게 메일을 보낸다.
|
||||
if (!verify_mb_key($member)) {
|
||||
session_destroy();
|
||||
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
include_once G5_LIB_PATH . '/mailer.lib.php';
|
||||
|
||||
// 메일 알림
|
||||
mailer($member['mb_nick'], $member['mb_email'], $member['mb_email'], 'XSS 공격 알림', $_SERVER['REMOTE_ADDR'] . ' 아이피로 XSS 공격이 있었습니다.<br><br>관리자 권한을 탈취하려는 접근이므로 주의하시기 바랍니다.<br><br>해당 아이피는 차단하시고 의심되는 게시물이 있는지 확인하시기 바랍니다.' . G5_URL, 0);
|
||||
|
||||
@@ -577,15 +642,16 @@ unset($amenu);
|
||||
$tmp = dir(G5_ADMIN_PATH);
|
||||
$menu_files = array();
|
||||
while ($entry = $tmp->read()) {
|
||||
if (!preg_match('/^admin.menu([0-9]{3}).*\.php$/', $entry, $m))
|
||||
if (!preg_match('/^admin.menu([0-9]{3}).*\.php$/', $entry, $m)) {
|
||||
continue; // 파일명이 menu 으로 시작하지 않으면 무시한다.
|
||||
}
|
||||
|
||||
$amenu[$m[1]] = $entry;
|
||||
$menu_files[] = G5_ADMIN_PATH . '/' . $entry;
|
||||
}
|
||||
@asort($menu_files);
|
||||
foreach ($menu_files as $file) {
|
||||
include_once($file);
|
||||
include_once $file;
|
||||
}
|
||||
@ksort($amenu);
|
||||
|
||||
@@ -595,11 +661,21 @@ if( isset($menu) && $menu ){
|
||||
}
|
||||
|
||||
$arr_query = array();
|
||||
if (isset($sst)) $arr_query[] = 'sst='.$sst;
|
||||
if (isset($sod)) $arr_query[] = 'sod='.$sod;
|
||||
if (isset($sfl)) $arr_query[] = 'sfl='.$sfl;
|
||||
if (isset($stx)) $arr_query[] = 'stx='.$stx;
|
||||
if (isset($page)) $arr_query[] = 'page='.$page;
|
||||
if (isset($sst)) {
|
||||
$arr_query[] = 'sst=' . $sst;
|
||||
}
|
||||
if (isset($sod)) {
|
||||
$arr_query[] = 'sod=' . $sod;
|
||||
}
|
||||
if (isset($sfl)) {
|
||||
$arr_query[] = 'sfl=' . $sfl;
|
||||
}
|
||||
if (isset($stx)) {
|
||||
$arr_query[] = 'stx=' . $stx;
|
||||
}
|
||||
if (isset($page)) {
|
||||
$arr_query[] = 'page=' . $page;
|
||||
}
|
||||
$qstr = implode("&", $arr_query);
|
||||
|
||||
if (isset($_REQUEST) && $_REQUEST) {
|
||||
@@ -608,5 +684,9 @@ if ( isset($_REQUEST) && $_REQUEST ){
|
||||
}
|
||||
}
|
||||
|
||||
// 관리자에서는 추가 스크립트는 사용하지 않는다.
|
||||
//$config['cf_add_script'] = '';
|
||||
// 관리자에서는 추가 스크립트와 추가 매타태그, 방문자분석 스크립트가 실행되지 않게 빈값으로 합니다.
|
||||
if (run_replace('safe_admin_add_script_boolean', false) === false) {
|
||||
$config['cf_analytics'] = '';
|
||||
$config['cf_add_script'] = '';
|
||||
$config['cf_add_meta'] = '';
|
||||
}
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) return;
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) {
|
||||
return;
|
||||
}
|
||||
|
||||
$menu['menu400'] = array(
|
||||
array('400000', '쇼핑몰관리', G5_ADMIN_URL . '/shop_admin/', 'shop_config'),
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) return;
|
||||
if (!defined('G5_USE_SHOP') || !G5_USE_SHOP) {
|
||||
return;
|
||||
}
|
||||
|
||||
$menu['menu500'] = array(
|
||||
array('500000', '쇼핑몰현황/기타', G5_ADMIN_URL . '/shop_admin/itemsellrank.php', 'shop_stats'),
|
||||
|
||||
+9
-7
@@ -1,9 +1,11 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// 그누보드5.4.5.5 버전과 영카트5.4.5.5.1 버전이 통합됨에 따라 그누보드 버전만 표시
|
||||
// $print_version = defined('G5_YOUNGCART_VER') ? 'YoungCart Version '.G5_YOUNGCART_VER : 'Version '.G5_GNUBOARD_VER;
|
||||
$print_version = 'Version '.G5_GNUBOARD_VER;
|
||||
$print_version = ($is_admin == 'super') ? 'Version ' . G5_GNUBOARD_VER : '';
|
||||
?>
|
||||
|
||||
<noscript>
|
||||
@@ -26,7 +28,9 @@ $print_version = 'Version '.G5_GNUBOARD_VER;
|
||||
|
||||
<script>
|
||||
$(".scroll_top").click(function() {
|
||||
$("body,html").animate({scrollTop:0},400);
|
||||
$("body,html").animate({
|
||||
scrollTop: 0
|
||||
}, 400);
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -131,8 +135,7 @@ function submenu_hide() {
|
||||
$(".gnb_1dli").removeClass("gnb_1dli_over gnb_1dli_over2 gnb_1dli_on");
|
||||
}
|
||||
|
||||
function menu_rearrange(el)
|
||||
{
|
||||
function menu_rearrange(el) {
|
||||
var width = $("#gnb_1dul").width();
|
||||
var left = w1 = w2 = 0;
|
||||
var idx = $(".gnb_1dli").index(el);
|
||||
@@ -148,8 +151,7 @@ function menu_rearrange(el)
|
||||
left += w1;
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
require_once G5_PATH . '/tail.sub.php';
|
||||
|
||||
+9
-3
@@ -1,12 +1,18 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/json.lib.php');
|
||||
require_once './_common.php';
|
||||
|
||||
set_session('ss_admin_token', '');
|
||||
|
||||
$admin_csrf_token_key = isset($_POST['admin_csrf_token_key']) ? $_POST['admin_csrf_token_key'] : '';
|
||||
|
||||
if(function_exists('admin_csrf_token_key') && $admin_csrf_token_key !== admin_csrf_token_key(1)){
|
||||
die(json_encode(array('error' => '토큰키 에러!', 'url' => G5_URL)));
|
||||
}
|
||||
|
||||
$error = admin_referer_check(true);
|
||||
if($error)
|
||||
if ($error) {
|
||||
die(json_encode(array('error' => $error, 'url' => G5_URL)));
|
||||
}
|
||||
|
||||
$token = get_admin_token();
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if (isset($_POST['admin_use_captcha'])) {
|
||||
set_session('ss_admin_use_captcha', true);
|
||||
|
||||
+22
-19
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
$sub_menu = "100200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$sql_common = " from {$g5['auth_table']} a left join {$g5['member_table']} b on (a.mb_id=b.mb_id) ";
|
||||
|
||||
@@ -33,7 +34,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
@@ -46,7 +49,7 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall btn_ov02">전체목록</a>';
|
||||
|
||||
$g5['title'] = "관리권한설정";
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 5;
|
||||
?>
|
||||
@@ -91,8 +94,7 @@ $colspan = 5;
|
||||
<tbody>
|
||||
<?php
|
||||
$count = 0;
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$is_continue = false;
|
||||
// 회원아이디가 없는 메뉴는 삭제함
|
||||
if ($row['mb_id'] == '' && $row['mb_nick'] == '') {
|
||||
@@ -101,14 +103,14 @@ $colspan = 5;
|
||||
}
|
||||
|
||||
// 메뉴번호가 바뀌는 경우에 현재 없는 저장된 메뉴는 삭제함
|
||||
if (!isset($auth_menu[$row['au_menu']]))
|
||||
{
|
||||
if (!isset($auth_menu[$row['au_menu']])) {
|
||||
sql_query(" delete from {$g5['auth_table']} where au_menu = '{$row['au_menu']}' ");
|
||||
$is_continue = true;
|
||||
}
|
||||
|
||||
if($is_continue)
|
||||
if ($is_continue) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
@@ -133,8 +135,9 @@ $colspan = 5;
|
||||
$count++;
|
||||
}
|
||||
|
||||
if ($count == 0)
|
||||
if ($count == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -148,10 +151,11 @@ $colspan = 5;
|
||||
//if (isset($stx))
|
||||
// echo '<script>document.fsearch.sfl.value = "'.$sfl.'";</script>'."\n";
|
||||
|
||||
if (strstr($sfl, 'mb_id'))
|
||||
if (strstr($sfl, 'mb_id')) {
|
||||
$mb_id = $stx;
|
||||
else
|
||||
} else {
|
||||
$mb_id = '';
|
||||
}
|
||||
?>
|
||||
</form>
|
||||
|
||||
@@ -198,11 +202,11 @@ echo $pagelist;
|
||||
<select id="au_menu" name="au_menu" required class="required">
|
||||
<option value=''>선택하세요</option>
|
||||
<?php
|
||||
foreach($auth_menu as $key=>$value)
|
||||
{
|
||||
if (!(substr($key, -3) == '000' || $key == '-' || !$key))
|
||||
foreach ($auth_menu as $key => $value) {
|
||||
if (!(substr($key, -3) == '000' || $key == '-' || !$key)) {
|
||||
echo '<option value="' . $key . '">' . $key . ' ' . $value . '</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
@@ -222,7 +226,7 @@ echo $pagelist;
|
||||
<th scope="row">자동등록방지</th>
|
||||
<td>
|
||||
<?php
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
echo $captcha_html;
|
||||
@@ -248,8 +252,7 @@ function fauth_add_submit(f){
|
||||
return true;
|
||||
}
|
||||
|
||||
function fauthlist_submit(f)
|
||||
{
|
||||
function fauthlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -266,4 +269,4 @@ function fauthlist_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,26 +1,27 @@
|
||||
<?php
|
||||
$sub_menu = "100200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
$post_act_button = isset($_POST['act_button']) ? clean_xss_tags($_POST['act_button'], 1, 1) : '';
|
||||
|
||||
if (!$count)
|
||||
if (!$count) {
|
||||
alert($_POST['act_button'] . " 하실 항목을 하나 이상 체크하세요.");
|
||||
}
|
||||
|
||||
if ((isset($_POST['mb_id']) && !is_array($_POST['mb_id'])) || (isset($_POST['au_menu']) && !is_array($_POST['au_menu']))) {
|
||||
alert("잘못된 요청입니다.");
|
||||
}
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
|
||||
+8
-6
@@ -1,23 +1,25 @@
|
||||
<?php
|
||||
$sub_menu = "100200";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
require_once './_common.php';
|
||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
||||
|
||||
$au_menu = isset($_POST['au_menu']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['au_menu']) : '';
|
||||
$post_r = isset($_POST['r']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['r']) : '';
|
||||
$post_w = isset($_POST['w']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['w']) : '';
|
||||
$post_d = isset($_POST['d']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['d']) : '';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id'])
|
||||
if (!$mb['mb_id']) {
|
||||
alert('존재하는 회원아이디가 아닙니다.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
|
||||
if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
@@ -27,7 +29,7 @@ $sql = " insert into {$g5['auth_table']}
|
||||
set mb_id = '$mb_id',
|
||||
au_menu = '$au_menu',
|
||||
au_auth = '{$post_r},{$post_w},{$post_d}' ";
|
||||
$result = sql_query($sql, FALSE);
|
||||
$result = sql_query($sql, false);
|
||||
if (!$result) {
|
||||
$sql = " update {$g5['auth_table']}
|
||||
set au_auth = '{$post_r},{$post_w},{$post_d}'
|
||||
|
||||
+12
-6
@@ -1,13 +1,19 @@
|
||||
<?php
|
||||
$sub_menu = "300100";
|
||||
include_once("./_common.php");
|
||||
require_once "./_common.php";
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$g5['title'] = '게시판 복사';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
?>
|
||||
require_once G5_PATH . '/head.sub.php';
|
||||
|
||||
if (empty($bo_table)) {
|
||||
alert_close("정상적인 방법으로 이용해주세요.");
|
||||
}
|
||||
?>
|
||||
<script>
|
||||
var g5_admin_csrf_token_key = "<?php echo (function_exists('admin_csrf_token_key')) ? admin_csrf_token_key() : ''; ?>";
|
||||
</script>
|
||||
<script src="<?php echo G5_ADMIN_URL ?>/admin.js?ver=<?php echo G5_JS_VER; ?>"></script>
|
||||
|
||||
<div class="new_win">
|
||||
@@ -56,9 +62,9 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fboardcopy_check(f)
|
||||
{
|
||||
function fboardcopy_check(f) {
|
||||
<?php
|
||||
|
||||
if (!$w) {
|
||||
$js_array = get_bo_table_banned_word();
|
||||
echo "var banned_array = " . json_encode($js_array) . ";\n";
|
||||
@@ -82,4 +88,4 @@ function fboardcopy_check(f)
|
||||
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
require_once G5_PATH . '/tail.sub.php';
|
||||
|
||||
+25
-15
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '300100';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -8,31 +8,39 @@ auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$bo_table = isset($_POST['bo_table']) ? substr(preg_replace('/[^a-z0-9_]/i', '', $_POST['bo_table']), 0, 20) : null;
|
||||
$target_table = isset($_POST['target_table']) ? trim($_POST['target_table']) : '';
|
||||
$target_subject = isset($_POST['target_subject']) ? trim($_POST['target_subject']) : '';
|
||||
|
||||
$target_subject = strip_tags(clean_xss_attributes($target_subject));
|
||||
|
||||
$file_copy = array();
|
||||
|
||||
if (empty($bo_table)) {
|
||||
alert("원본 테이블 정보가 없습니다.");
|
||||
}
|
||||
|
||||
if (!preg_match('/[A-Za-z0-9_]{1,20}/', $target_table)) {
|
||||
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
|
||||
}
|
||||
|
||||
$target_table = substr(preg_replace('/[^a-z0-9_]/i', '', $target_table), 0, 20);
|
||||
|
||||
// 게시판명이 금지된 단어로 되어 있으면
|
||||
if ($w == '' && in_array($target_table, get_bo_table_banned_word())) {
|
||||
alert('입력한 게시판 TABLE명을 사용할수 없습니다. 다른 이름으로 입력해 주세요.');
|
||||
}
|
||||
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '$target_table' ");
|
||||
if ($row['cnt'])
|
||||
if ($row['cnt']) {
|
||||
alert($target_table . '은(는) 이미 존재하는 게시판 테이블명 입니다.\\n복사할 테이블명으로 사용할 수 없습니다.');
|
||||
}
|
||||
|
||||
// 게시판 테이블 생성
|
||||
$sql = get_table_define($g5['write_prefix'] . $bo_table);
|
||||
$sql = str_replace($g5['write_prefix'] . $bo_table, $g5['write_prefix'] . $target_table, $sql);
|
||||
sql_query($sql, false);
|
||||
|
||||
$file_copy = array();
|
||||
|
||||
// 구조만 복사시에는 공지사항 번호는 복사하지 않는다.
|
||||
if ($copy_case == 'schema_only') {
|
||||
$board['bo_notice'] = '';
|
||||
@@ -83,10 +91,10 @@ $sql = " insert into {$g5['board_table']}
|
||||
bo_new = '{$board['bo_new']}',
|
||||
bo_hot = '{$board['bo_hot']}',
|
||||
bo_image_width = '{$board['bo_image_width']}',
|
||||
bo_skin = '{$board['bo_skin']}',
|
||||
bo_mobile_skin = '{$board['bo_mobile_skin']}',
|
||||
bo_include_head = '{$board['bo_include_head']}',
|
||||
bo_include_tail = '{$board['bo_include_tail']}',
|
||||
bo_skin = '" . sql_real_escape_string($board['bo_skin']). "',
|
||||
bo_mobile_skin = '" . sql_real_escape_string($board['bo_mobile_skin']). "',
|
||||
bo_include_head = '" . sql_real_escape_string($board['bo_include_head']). "',
|
||||
bo_include_tail = '" . sql_real_escape_string($board['bo_include_tail']). "',
|
||||
bo_content_head = '" . addslashes($board['bo_content_head']) . "',
|
||||
bo_content_tail = '" . addslashes($board['bo_content_tail']) . "',
|
||||
bo_mobile_content_head = '" . addslashes($board['bo_mobile_content_head']) . "',
|
||||
@@ -146,7 +154,9 @@ $copy_file = 0;
|
||||
if ($copy_case == 'schema_data_both') {
|
||||
$d = dir(G5_DATA_PATH . '/file/' . $bo_table);
|
||||
while ($entry = $d->read()) {
|
||||
if ($entry == '.' || $entry == '..') continue;
|
||||
if ($entry == '.' || $entry == '..') {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 김선용 201007 :
|
||||
if (is_dir(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry)) {
|
||||
@@ -154,14 +164,15 @@ if ($copy_case == 'schema_data_both') {
|
||||
@mkdir(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
while ($entry2 = $dd->read()) {
|
||||
if ($entry2 == '.' || $entry2 == '..') continue;
|
||||
if ($entry2 == '.' || $entry2 == '..') {
|
||||
continue;
|
||||
}
|
||||
@copy(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry . '/' . $entry2, G5_DATA_PATH . '/file/' . $target_table . '/' . $entry . '/' . $entry2);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry . '/' . $entry2, G5_DIR_PERMISSION);
|
||||
$copy_file++;
|
||||
}
|
||||
$dd->close();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
@copy(G5_DATA_PATH . '/file/' . $bo_table . '/' . $entry, G5_DATA_PATH . '/file/' . $target_table . '/' . $entry);
|
||||
@chmod(G5_DATA_PATH . '/file/' . $target_table . '/' . $entry, G5_DIR_PERMISSION);
|
||||
$copy_file++;
|
||||
@@ -182,16 +193,15 @@ if ($copy_case == 'schema_data_both') {
|
||||
sql_query($sql, false);
|
||||
|
||||
// 4.00.01
|
||||
// 위의 코드는 같은 테이블명을 사용하였다는 오류가 발생함. (희한하네 ㅡㅡ;)
|
||||
$sql = " select * from {$g5['board_file_table']} where bo_table = '$bo_table' ";
|
||||
$result = sql_query($sql, false);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$file_copy[$i] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
if (count($file_copy)) {
|
||||
for ($i = 0; $i < count($file_copy); $i++) {
|
||||
|
||||
$file_copy[$i] = run_replace('admin_copy_update_file', $file_copy[$i], $file_copy[$i]['bf_file'], $bo_table, $target_table);
|
||||
|
||||
$sql = " insert into {$g5['board_file_table']}
|
||||
|
||||
@@ -1,11 +1,18 @@
|
||||
<?php
|
||||
// board_delete.php , boardgroup_delete.php 에서 include 하는 파일
|
||||
|
||||
if (!defined('_GNUBOARD_')) exit;
|
||||
if (!defined('_BOARD_DELETE_')) exit; // 개별 페이지 접근 불가
|
||||
// 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit;
|
||||
}
|
||||
if (!defined('_BOARD_DELETE_')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
// $tmp_bo_table 에는 $bo_table 값을 넘겨주어야 함
|
||||
if (!$tmp_bo_table) { return; }
|
||||
if (!$tmp_bo_table) {
|
||||
return;
|
||||
}
|
||||
|
||||
// 게시판 1개는 삭제 불가 (게시판 복사를 위해서)
|
||||
//$row = sql_fetch(" select count(*) as cnt from $g5['board_table'] ");
|
||||
@@ -24,7 +31,7 @@ sql_query(" delete from {$g5['scrap_table']} where bo_table = '{$tmp_bo_table}'
|
||||
sql_query(" delete from {$g5['board_file_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
// 게시판 테이블 DROP
|
||||
sql_query(" drop table {$g5['write_prefix']}{$tmp_bo_table} ", FALSE);
|
||||
sql_query(" drop table {$g5['write_prefix']}{$tmp_bo_table} ", false);
|
||||
|
||||
// 좋아요 테이블에서 기록 삭제
|
||||
sql_query(" delete from {$g5['board_good_table']} where bo_table = '{$tmp_bo_table}' ");
|
||||
|
||||
+30
-23
@@ -1,14 +1,15 @@
|
||||
<?php
|
||||
$sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$sql = " select count(*) as cnt from {$g5['group_table']} ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
if (!$row['cnt']) {
|
||||
alert('게시판그룹이 한개 이상 생성되어야 합니다.', './boardgroup_form.php');
|
||||
}
|
||||
|
||||
$html_title = '게시판';
|
||||
|
||||
@@ -50,9 +51,11 @@ if (!isset($board['bo_use_sns'])) {
|
||||
|
||||
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
sql_query(" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||
ADD `wr_facebook_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_ip`,
|
||||
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false);
|
||||
ADD `wr_twitter_user` VARCHAR(255) NOT NULL DEFAULT '' AFTER `wr_facebook_user` ", false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,8 +70,10 @@ if (!isset($board['bo_use_list_file'])) {
|
||||
|
||||
$result = sql_query(" select bo_table from `{$g5['board_table']}` ");
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
sql_query(" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||
ADD `wr_file` TINYINT NOT NULL DEFAULT '0' AFTER `wr_datetime` ", false);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['write_prefix']}{$row['bo_table']}`
|
||||
ADD `wr_file` TINYINT NOT NULL DEFAULT '0' AFTER `wr_datetime` ", false
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -142,7 +147,6 @@ $readonly = "";
|
||||
$sound_only = "";
|
||||
$required_valid = "";
|
||||
if ($w == '') {
|
||||
|
||||
$html_title .= ' 생성';
|
||||
|
||||
$required = 'required';
|
||||
@@ -179,21 +183,20 @@ if ($w == '') {
|
||||
$board['bo_use_secret'] = 0;
|
||||
$board['bo_include_head'] = '_head.php';
|
||||
$board['bo_include_tail'] = '_tail.php';
|
||||
|
||||
} elseif ($w == 'u') {
|
||||
|
||||
$html_title .= ' 수정';
|
||||
|
||||
if (!$board['bo_table'])
|
||||
if (!$board['bo_table']) {
|
||||
alert('존재하지 않은 게시판 입니다.');
|
||||
}
|
||||
|
||||
if ($is_admin == 'group') {
|
||||
if ($member['mb_id'] != $group['gr_admin'])
|
||||
if ($member['mb_id'] != $group['gr_admin']) {
|
||||
alert('그룹이 틀립니다.');
|
||||
}
|
||||
}
|
||||
|
||||
$readonly = 'readonly';
|
||||
|
||||
}
|
||||
|
||||
if ($is_admin != 'super') {
|
||||
@@ -202,7 +205,7 @@ if ($is_admin != 'super') {
|
||||
}
|
||||
|
||||
$g5['title'] = $html_title;
|
||||
include_once ('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$pg_anchor = '<ul class="anchor">
|
||||
<li><a href="#anc_bo_basic">기본 설정</a></li>
|
||||
@@ -253,7 +256,9 @@ $pg_anchor = '<ul class="anchor">
|
||||
<th scope="row"><label for="gr_id">그룹<strong class="sound_only">필수</strong></label></th>
|
||||
<td colspan="2">
|
||||
<?php echo get_group_select('gr_id', $board['gr_id'], 'required'); ?>
|
||||
<?php if ($w=='u') { ?><a href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">동일그룹 게시판목록</a><?php } ?>
|
||||
<?php if ($w=='u') { ?>
|
||||
<a href="javascript:document.location.href='./board_list.php?sfl=a.gr_id&stx='+document.fboardform.gr_id.value;" class="btn_frmline">동일그룹 게시판목록</a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -548,7 +553,9 @@ $pg_anchor = '<ul class="anchor">
|
||||
<?php
|
||||
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
||||
for ($i=0; $i<count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">기본환경설정의 에디터 사용</option>";
|
||||
if ($i == 0) {
|
||||
echo "<option value=\"\">기본환경설정의 에디터 사용</option>";
|
||||
}
|
||||
echo "<option value=\"".$arr[$i]."\"".get_selected($board['bo_select_editor'], $arr[$i]).">".$arr[$i]."</option>\n";
|
||||
}
|
||||
?>
|
||||
@@ -907,7 +914,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_include_head">상단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="bo_include_head" value="<?php echo $board['bo_include_head'] ?>" id="bo_include_head" class="frm_input" size="50">
|
||||
<input type="text" name="bo_include_head" value="<?php echo get_sanitize_input($board['bo_include_head']); ?>" id="bo_include_head" class="frm_input" size="50">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_include_head" value="1" id="chk_grp_include_head">
|
||||
@@ -919,7 +926,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<tr>
|
||||
<th scope="row"><label for="bo_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="bo_include_tail" value="<?php echo $board['bo_include_tail'] ?>" id="bo_include_tail" class="frm_input" size="50">
|
||||
<input type="text" name="bo_include_tail" value="<?php echo get_sanitize_input($board['bo_include_tail']); ?>" id="bo_include_tail" class="frm_input" size="50">
|
||||
</td>
|
||||
<td class="td_grpset">
|
||||
<input type="checkbox" name="chk_grp_include_tail" value="1" id="chk_grp_include_tail">
|
||||
@@ -934,7 +941,7 @@ $pg_anchor = '<ul class="anchor">
|
||||
<?php
|
||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
include_once G5_CAPTCHA_PATH.'/captcha.lib.php';
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
echo $captcha_html;
|
||||
@@ -1193,7 +1200,6 @@ $pg_anchor = '<ul class="anchor">
|
||||
<?php echo help('리스트에서 기본으로 정렬에 사용할 필드를 선택합니다. "기본"으로 사용하지 않으시는 경우 속도가 느려질 수 있습니다.') ?>
|
||||
<select id="bo_sort_field" name="bo_sort_field">
|
||||
<?php foreach (get_board_sort_fields($board) as $v) {
|
||||
|
||||
$option_value = $order_by_str = $v[0];
|
||||
if ($v[0] === 'wr_num, wr_reply') {
|
||||
$selected = (! $board['bo_sort_field']) ? 'selected="selected"' : '';
|
||||
@@ -1417,9 +1423,10 @@ function use_captcha_check(){
|
||||
});
|
||||
}
|
||||
|
||||
var bo_include_head = jQuery.trim(jQuery("#bo_include_head").val()),
|
||||
bo_include_tail = jQuery.trim(jQuery("#bo_include_tail").val());
|
||||
|
||||
function frm_check_file(){
|
||||
var bo_include_head = "<?php echo $board['bo_include_head']; ?>";
|
||||
var bo_include_tail = "<?php echo $board['bo_include_tail']; ?>";
|
||||
var head = jQuery.trim(jQuery("#bo_include_head").val());
|
||||
var tail = jQuery.trim(jQuery("#bo_include_tail").val());
|
||||
|
||||
@@ -1489,4 +1496,4 @@ function fboardform_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
+27
-17
@@ -2,22 +2,31 @@
|
||||
$sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
|
||||
if ($w == 'u')
|
||||
if ($w == 'u') {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$gr_id = isset($_POST['gr_id']) ? preg_replace('/[^a-z0-9_]/i', '', $_POST['gr_id']) : '';
|
||||
$gr_id = isset($_POST['gr_id']) ? preg_replace('/[^a-z0-9_]/i', '', (string)$_POST['gr_id']) : '';
|
||||
$bo_admin = isset($_POST['bo_admin']) ? preg_replace('/[^a-z0-9_\, \|\#]/i', '', $_POST['bo_admin']) : '';
|
||||
$bo_subject = isset($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'])) : '';
|
||||
$bo_mobile_subject = isset($_POST['bo_mobile_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_mobile_subject'])) : '';
|
||||
|
||||
if (!$gr_id) { alert('그룹 ID는 반드시 선택하세요.'); }
|
||||
if (!$bo_table) { alert('게시판 TABLE명은 반드시 입력하세요.'); }
|
||||
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) { alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)'); }
|
||||
if (!$bo_subject) { alert('게시판 제목을 입력하세요.'); }
|
||||
if (!$gr_id) {
|
||||
alert('그룹 ID는 반드시 선택하세요.');
|
||||
}
|
||||
if (!$bo_table) {
|
||||
alert('게시판 TABLE명은 반드시 입력하세요.');
|
||||
}
|
||||
if (!preg_match("/^([A-Za-z0-9_]{1,20})$/", $bo_table)) {
|
||||
alert('게시판 TABLE명은 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (20자 이내)');
|
||||
}
|
||||
if (!$bo_subject) {
|
||||
alert('게시판 제목을 입력하세요.');
|
||||
}
|
||||
|
||||
// 게시판명이 금지된 단어로 되어 있으면
|
||||
if ($w == '' && in_array($bo_table, get_bo_table_banned_word())) {
|
||||
@@ -28,7 +37,7 @@ $bo_include_head = isset($_POST['bo_include_head']) ? preg_replace(array("#[\\\]
|
||||
$bo_include_tail = isset($_POST['bo_include_tail']) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($_POST['bo_include_tail'], 0, 255)) : '';
|
||||
|
||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||
if ($board && ($board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()){
|
||||
if ($board && (isset($board['bo_include_head']) && $board['bo_include_head'] !== $bo_include_head || $board['bo_include_tail'] !== $bo_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
||||
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
||||
|
||||
if (!chk_captcha()) {
|
||||
@@ -84,7 +93,7 @@ $src_char = array('&', '=');
|
||||
$dst_char = array('&', '〓');
|
||||
$bo_category_list = isset($_POST['bo_category_list']) ? str_replace($src_char, $dst_char, $_POST['bo_category_list']) : '';
|
||||
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
||||
$str_bo_category_list = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", $bo_category_list);
|
||||
$str_bo_category_list = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", (string)$bo_category_list);
|
||||
|
||||
$bo_use_category = isset($_POST['bo_use_category']) ? (int) $_POST['bo_use_category'] : 0;
|
||||
$bo_use_sideview = isset($_POST['bo_use_sideview']) ? (int) $_POST['bo_use_sideview'] : 0;
|
||||
@@ -152,6 +161,10 @@ $bo_comment_min = isset($_POST['bo_comment_min']) ? (int) $_POST['bo_comment_min
|
||||
$bo_comment_max = isset($_POST['bo_comment_max']) ? (int) $_POST['bo_comment_max'] : 0;
|
||||
$bo_sort_field = isset($_POST['bo_sort_field']) ? clean_xss_tags($_POST['bo_sort_field'], 1, 1) : '';
|
||||
|
||||
if (strpbrk($bo_skin.$bo_mobile_skin, "?%*:|\"<>") !== false) {
|
||||
alert('스킨 디렉토리명 오류!');
|
||||
}
|
||||
|
||||
$etcs = array();
|
||||
|
||||
for ($i = 1; $i <= 10; $i++) {
|
||||
@@ -260,10 +273,10 @@ $sql_common .= " bo_insert_content = '{$bo_insert_content}',
|
||||
bo_10 = '{$bo_10}' ";
|
||||
|
||||
if ($w == '') {
|
||||
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where bo_table = '{$bo_table}' ");
|
||||
if ($row['cnt'])
|
||||
if ($row['cnt']) {
|
||||
alert($bo_table . ' 은(는) 이미 존재하는 TABLE 입니다.');
|
||||
}
|
||||
|
||||
$sql = " insert into {$g5['board_table']}
|
||||
set bo_table = '{$bo_table}',
|
||||
@@ -284,10 +297,8 @@ if ($w == '') {
|
||||
$source = array('/__TABLE_NAME__/', '/;/');
|
||||
$target = array($create_table, '');
|
||||
$sql = preg_replace($source, $target, $sql);
|
||||
sql_query($sql, FALSE);
|
||||
|
||||
sql_query($sql, false);
|
||||
} elseif ($w == 'u') {
|
||||
|
||||
// 게시판의 글 수
|
||||
$sql = " select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_is_comment = 0 ";
|
||||
$row = sql_fetch($sql);
|
||||
@@ -327,8 +338,7 @@ if ($w == '') {
|
||||
for ($i = 0; $i < count($tmp_array); $i++) {
|
||||
$tmp_wr_id = trim($tmp_array[$i]);
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g5['write_prefix']}{$bo_table} where wr_id = '{$tmp_wr_id}' ");
|
||||
if ($row['cnt'])
|
||||
{
|
||||
if ($row['cnt']) {
|
||||
$bo_notice .= $lf . $tmp_wr_id;
|
||||
$lf = ",";
|
||||
}
|
||||
@@ -342,7 +352,6 @@ if ($w == '') {
|
||||
{$sql_common}
|
||||
where bo_table = '{$bo_table}' ";
|
||||
sql_query($sql);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -527,8 +536,9 @@ if ($all_fields) {
|
||||
|
||||
delete_cache_latest($bo_table);
|
||||
|
||||
if(function_exists('get_admin_captcha_by'))
|
||||
if (function_exists('get_admin_captcha_by')) {
|
||||
get_admin_captcha_by('remove');
|
||||
}
|
||||
|
||||
run_event('admin_board_form_update', $bo_table, $w);
|
||||
|
||||
|
||||
+9
-13
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -40,7 +40,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
@@ -49,7 +51,7 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$g5['title'] = '게시판관리';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 15;
|
||||
?>
|
||||
@@ -60,7 +62,6 @@ $colspan = 15;
|
||||
</div>
|
||||
|
||||
<form name="fsearch" id="fsearch" class="local_sch01 local_sch" method="get">
|
||||
|
||||
<label for="sfl" class="sound_only">검색대상</label>
|
||||
<select name="sfl" id="sfl">
|
||||
<option value="bo_table" <?php echo get_selected($sfl, "bo_table", true); ?>>TABLE</option>
|
||||
@@ -70,11 +71,8 @@ $colspan = 15;
|
||||
<label for="stx" class="sound_only">검색어<strong class="sound_only"> 필수</strong></label>
|
||||
<input type="text" name="stx" value="<?php echo $stx ?>" id="stx" required class="required frm_input">
|
||||
<input type="submit" value="검색" class="btn_submit">
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
|
||||
<form name="fboardlist" id="fboardlist" action="./board_list_update.php" onsubmit="return fboardlist_submit(this);" method="post">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod ?>">
|
||||
@@ -188,8 +186,9 @@ $colspan = 15;
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -199,8 +198,6 @@ $colspan = 15;
|
||||
<input type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value" class="btn_02 btn">
|
||||
<?php if ($is_admin == 'super') { ?>
|
||||
<input type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="btn_02 btn">
|
||||
<?php } ?>
|
||||
<?php if ($is_admin == 'super') { ?>
|
||||
<a href="./board_form.php" id="bo_add" class="btn_01 btn">게시판 추가</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -210,8 +207,7 @@ $colspan = 15;
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, $_SERVER['SCRIPT_NAME'] . '?' . $qstr . '&page='); ?>
|
||||
|
||||
<script>
|
||||
function fboardlist_submit(f)
|
||||
{
|
||||
function fboardlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -235,4 +231,4 @@ $(function(){
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -16,11 +16,9 @@ if (! $post_count_chk) {
|
||||
check_admin_token();
|
||||
|
||||
if ($act_button === "선택수정") {
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
for ($i = 0; $i < $post_count_chk; $i++) {
|
||||
|
||||
// 실제 번호를 넘김
|
||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
@@ -43,9 +41,10 @@ if ($act_button === "선택수정") {
|
||||
and a.gr_id = b.gr_id
|
||||
and b.gr_admin = '{$member['mb_id']}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (!$row['cnt'])
|
||||
if (!$row['cnt']) {
|
||||
alert('최고관리자가 아닌 경우 다른 관리자의 게시판(' . $board_table[$k] . ')은 수정이 불가합니다.');
|
||||
}
|
||||
}
|
||||
|
||||
$p_bo_subject = is_array($_POST['bo_subject']) ? strip_tags(clean_xss_attributes($_POST['bo_subject'][$k])) : '';
|
||||
|
||||
@@ -66,15 +65,17 @@ if ($act_button === "선택수정") {
|
||||
|
||||
sql_query($sql);
|
||||
}
|
||||
|
||||
} elseif ($act_button === "선택삭제") {
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('게시판 삭제는 최고관리자만 가능합니다.');
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'd');
|
||||
|
||||
// _BOARD_DELETE_ 상수를 선언해야 board_delete.inc.php 가 정상 작동함
|
||||
/* 확인필요 22.05.27
|
||||
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects,
|
||||
or it should execute logic with side effects, but should not do both.*/
|
||||
define('_BOARD_DELETE_', true);
|
||||
|
||||
for ($i = 0; $i < $post_count_chk; $i++) {
|
||||
@@ -85,11 +86,9 @@ if ($act_button === "선택수정") {
|
||||
$tmp_bo_table = isset($_POST['board_table'][$k]) ? trim(clean_xss_tags($_POST['board_table'][$k], 1, 1)) : '';
|
||||
|
||||
if (preg_match("/^[A-Za-z0-9_]+$/", $tmp_bo_table)) {
|
||||
include ('./board_delete.inc.php');
|
||||
include './board_delete.inc.php';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
run_event('admin_board_list_update', $act_button, $chk, $board_table, $qstr);
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
<?php
|
||||
$sub_menu = '300100';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
if(!$board['bo_table'])
|
||||
if (!$board['bo_table']) {
|
||||
alert('존재하지 않는 게시판입니다.');
|
||||
}
|
||||
|
||||
$g5['title'] = $board['bo_subject'] . ' 게시판 썸네일 삭제';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div class="local_desc02 local_desc">
|
||||
@@ -33,10 +34,11 @@ if(is_dir($dir)) {
|
||||
|
||||
flush();
|
||||
|
||||
if ($cnt%10==0)
|
||||
if (($cnt % 10) == 0) {
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '<li>완료됨</li></ul>' . PHP_EOL;
|
||||
echo '<div class="local_desc01 local_desc"><p><strong>썸네일 ' . $cnt . '건의 삭제 완료됐습니다.</strong></p></div>' . PHP_EOL;
|
||||
@@ -48,4 +50,4 @@ if(is_dir($dir)) {
|
||||
<div class="btn_confirm01 btn_confirm"><a href="./board_form.php?w=u&bo_table=<?php echo $bo_table; ?>&<?php echo $qstr; ?>">게시판 수정으로 돌아가기</a></div>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+32
-19
@@ -1,10 +1,12 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||
if ($is_admin != 'super' && $w == '') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$html_title = '게시판그룹';
|
||||
$gr_id_attr = '';
|
||||
@@ -16,26 +18,30 @@ if( ! isset($group['gr_id']) ){
|
||||
$group['gr_device'] = '';
|
||||
}
|
||||
|
||||
$gr = array('gr_use_access' => 0, 'gr_admin' => '');
|
||||
if ($w == '') {
|
||||
$gr_id_attr = 'required';
|
||||
$sound_only = '<strong class="sound_only"> 필수</strong>';
|
||||
$gr = array('gr_use_access' => 0, 'gr_admin'=>'');
|
||||
$html_title .= ' 생성';
|
||||
} elseif ($w == 'u') {
|
||||
$gr_id_attr = 'readonly';
|
||||
$gr = sql_fetch(" select * from {$g5['group_table']} where gr_id = '$gr_id' ");
|
||||
$html_title .= ' 수정';
|
||||
}
|
||||
else
|
||||
} else {
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
if (!isset($group['gr_device'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['group_table']}` ADD `gr_device` ENUM('both','pc','mobile') NOT NULL DEFAULT 'both' AFTER `gr_subject` ", false);
|
||||
}
|
||||
|
||||
// 접근회원수
|
||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$gr_id}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
$group_member_count = $row1['cnt'];
|
||||
|
||||
$g5['title'] = $html_title;
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="fboardgroup" id="fboardgroup" action="./boardgroup_form_update.php" onsubmit="return fboardgroup_check(this);" method="post" autocomplete="off">
|
||||
@@ -59,10 +65,11 @@ include_once('./admin.head.php');
|
||||
<th scope="row"><label for="gr_id">그룹 ID<?php echo $sound_only ?></label></th>
|
||||
<td><input type="text" name="gr_id" value="<?php echo $group['gr_id'] ?>" id="gr_id" <?php echo $gr_id_attr; ?> class="<?php echo $gr_id_attr; ?> alnum_ frm_input" maxlength="10">
|
||||
<?php
|
||||
if ($w=='')
|
||||
if ($w == '') {
|
||||
echo '영문자, 숫자, _ 만 가능 (공백없이)';
|
||||
else
|
||||
} else {
|
||||
echo '<a href="' . G5_BBS_URL . '/group.php?gr_id=' . $group['gr_id'] . '" class="btn_frmline">게시판그룹 바로가기</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -71,8 +78,9 @@ include_once('./admin.head.php');
|
||||
<td>
|
||||
<input type="text" name="gr_subject" value="<?php echo get_text($group['gr_subject']) ?>" id="gr_subject" required class="required frm_input" size="80">
|
||||
<?php
|
||||
if ($w == 'u')
|
||||
if ($w == 'u') {
|
||||
echo '<a href="./board_form.php?gr_id=' . $gr_id . '" class="btn_frmline">게시판생성</a>';
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -88,13 +96,22 @@ include_once('./admin.head.php');
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><?php if ($is_admin == 'super') { ?><label for="gr_admin"><?php } ?>그룹 관리자<?php if ($is_admin == 'super') { ?></label><?php } ?></th>
|
||||
<th scope="row">
|
||||
<?php
|
||||
if ($is_admin == 'super') {
|
||||
echo '<label for="gr_admin">그룹 관리자</label>';
|
||||
} else {
|
||||
echo '그룹 관리자';
|
||||
}
|
||||
?>
|
||||
</th>
|
||||
<td>
|
||||
<?php
|
||||
if ($is_admin == 'super')
|
||||
if ($is_admin == 'super') {
|
||||
echo '<input type="text" id="gr_admin" name="gr_admin" class="frm_input" value="' . $gr['gr_admin'] . '" maxlength="20">';
|
||||
else
|
||||
} else {
|
||||
echo '<input type="hidden" id="gr_admin" name="gr_admin" value="' . $gr['gr_admin'] . '">' . $gr['gr_admin'];
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -110,10 +127,7 @@ include_once('./admin.head.php');
|
||||
<th scope="row">접근회원수</th>
|
||||
<td>
|
||||
<?php
|
||||
// 접근회원수
|
||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$gr_id}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
echo '<a href="./boardgroupmember_list.php?gr_id='.$gr_id.'">'.$row1['cnt'].'</a>';
|
||||
echo '<a href="./boardgroupmember_list.php?gr_id=' . $gr_id . '">' . $group_member_count . '</a>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -147,12 +161,11 @@ include_once('./admin.head.php');
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function fboardgroup_check(f)
|
||||
{
|
||||
function fboardgroup_check(f) {
|
||||
f.action = './boardgroup_form_update.php';
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,22 +1,28 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($w == 'u')
|
||||
if ($w == 'u') {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
if ($is_admin != 'super' && $w == '') alert('최고관리자만 접근 가능합니다.');
|
||||
if ($is_admin != 'super' && $w == '') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$gr_id = isset($_POST['gr_id']) ? $_POST['gr_id'] : '';
|
||||
|
||||
if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $gr_id))
|
||||
if (!preg_match("/^([A-Za-z0-9_]{1,10})$/", $gr_id)) {
|
||||
alert('그룹 ID는 공백없이 영문자, 숫자, _ 만 사용 가능합니다. (10자 이내)');
|
||||
}
|
||||
|
||||
if (!$gr_subject) alert('그룹 제목을 입력하세요.');
|
||||
if (empty($gr_subject)) {
|
||||
alert('그룹 제목을 입력하세요.');
|
||||
}
|
||||
|
||||
$posts = array();
|
||||
|
||||
@@ -62,30 +68,28 @@ $sql_common = " gr_subject = '{$posts['gr_subject']}',
|
||||
gr_8 = '{$posts['gr_8']}',
|
||||
gr_9 = '{$posts['gr_9']}',
|
||||
gr_10 = '{$posts['gr_10']}' ";
|
||||
if (isset($_POST['gr_use_access']))
|
||||
if (isset($_POST['gr_use_access'])) {
|
||||
$sql_common .= ", gr_use_access = '{$_POST['gr_use_access']}' ";
|
||||
else
|
||||
} else {
|
||||
$sql_common .= ", gr_use_access = '' ";
|
||||
}
|
||||
|
||||
if ($w == '') {
|
||||
|
||||
$sql = " select count(*) as cnt from {$g5['group_table']} where gr_id = '{$gr_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt'])
|
||||
if ($row['cnt']) {
|
||||
alert('이미 존재하는 그룹 ID 입니다.');
|
||||
}
|
||||
|
||||
$sql = " insert into {$g5['group_table']}
|
||||
set gr_id = '{$gr_id}',
|
||||
{$sql_common} ";
|
||||
sql_query($sql);
|
||||
|
||||
} elseif ($w == "u") {
|
||||
|
||||
$sql = " update {$g5['group_table']}
|
||||
set {$sql_common}
|
||||
where gr_id = '{$gr_id}' ";
|
||||
sql_query($sql);
|
||||
|
||||
} else {
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
+15
-13
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -16,8 +16,9 @@ if (!isset($group['gr_device'])) {
|
||||
$sql_common = " from {$g5['group_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql_search .= " and (gr_admin = '{$member['mb_id']}') ";
|
||||
}
|
||||
|
||||
if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
@@ -33,10 +34,11 @@ if ($stx) {
|
||||
$sql_search .= " ) ";
|
||||
}
|
||||
|
||||
if ($sst)
|
||||
if ($sst) {
|
||||
$sql_order = " order by {$sst} {$sod} ";
|
||||
else
|
||||
} else {
|
||||
$sql_order = " order by gr_id asc ";
|
||||
}
|
||||
|
||||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
@@ -44,7 +46,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
@@ -53,7 +57,7 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">처음</a>';
|
||||
|
||||
$g5['title'] = '게시판그룹설정';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 10;
|
||||
?>
|
||||
@@ -106,8 +110,7 @@ $colspan = 10;
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
// 접근회원수
|
||||
$sql1 = " select count(*) as cnt from {$g5['group_member_table']} where gr_id = '{$row['gr_id']}' ";
|
||||
$row1 = sql_fetch($sql1);
|
||||
@@ -160,11 +163,11 @@ $colspan = 10;
|
||||
</td>
|
||||
<td class="td_mng td_mng_s"><?php echo $s_upd ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
@@ -189,8 +192,7 @@ echo $pagelist;
|
||||
?>
|
||||
|
||||
<script>
|
||||
function fboardgrouplist_submit(f)
|
||||
{
|
||||
function fboardgrouplist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -207,4 +209,4 @@ function fboardgrouplist_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
|
||||
//print_r2($_POST); exit;
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -14,13 +12,13 @@ $post_chk = isset($_POST['chk']) ? (array) $_POST['chk'] : array();
|
||||
$post_group_id = isset($_POST['group_id']) ? (array) $_POST['group_id'] : array();
|
||||
$act_button = isset($_POST['act_button']) ? $_POST['act_button'] : '';
|
||||
|
||||
$count = count($post_chk);
|
||||
$chk_count = count($post_chk);
|
||||
|
||||
if(!$count)
|
||||
if (!$chk_count) {
|
||||
alert($act_button . '할 게시판그룹을 1개이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
for ($i = 0; $i < $chk_count; $i++) {
|
||||
$k = isset($post_chk[$i]) ? (int) $post_chk[$i] : 0;
|
||||
$gr_id = preg_replace('/[^a-z0-9_]/i', '', $post_group_id[$k]);
|
||||
$gr_subject = isset($_POST['gr_subject'][$k]) ? strip_tags(clean_xss_attributes($_POST['gr_subject'][$k])) : '';
|
||||
@@ -37,13 +35,15 @@ for ($i=0; $i<$count; $i++)
|
||||
gr_use_access = '" . $gr_use_access . "',
|
||||
gr_order = '" . $gr_order . "'
|
||||
where gr_id = '{$gr_id}' ";
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql .= " and gr_admin = '{$gr_admin}' ";
|
||||
}
|
||||
sql_query($sql);
|
||||
} elseif ($act_button == '선택삭제') {
|
||||
$row = sql_fetch(" select count(*) as cnt from {$g5['board_table']} where gr_id = '$gr_id' ");
|
||||
if ($row['cnt'])
|
||||
if ($row['cnt']) {
|
||||
alert("이 그룹에 속한 게시판이 존재하여 게시판 그룹을 삭제할 수 없습니다.\\n\\n이 그룹에 속한 게시판을 먼저 삭제하여 주십시오.", './board_list.php?sfl=gr_id&stx=' . $gr_id);
|
||||
}
|
||||
|
||||
// 그룹 삭제
|
||||
sql_query(" delete from {$g5['group_table']} where gr_id = '$gr_id' ");
|
||||
@@ -53,6 +53,6 @@ for ($i=0; $i<$count; $i++)
|
||||
}
|
||||
}
|
||||
|
||||
run_event('admin_boardgroup_list_update', $act_button, $chk, $post_group_id, $qstr);
|
||||
run_event('admin_boardgroup_list_update', $act_button, $post_chk, $post_group_id, $qstr);
|
||||
|
||||
goto_url('./boardgroup_list.php?' . $qstr);
|
||||
@@ -1,17 +1,18 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$mb = get_member($mb_id);
|
||||
$token = isset($token) ? $token : '';
|
||||
|
||||
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
||||
alert('존재하지 않는 회원입니다.');
|
||||
}
|
||||
|
||||
$g5['title'] = '접근가능그룹';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 4;
|
||||
?>
|
||||
@@ -19,13 +20,14 @@ $colspan = 4;
|
||||
<form name="fboardgroupmember_form" id="fboardgroupmember_form" action="./boardgroupmember_update.php" onsubmit="return boardgroupmember_form_check(this)" method="post">
|
||||
<input type="hidden" name="mb_id" value="<?php echo $mb['mb_id'] ?>" id="mb_id">
|
||||
<input type="hidden" name="token" value="" id="token">
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<span class="btn_ov01"><span class="ov_txt"> 아이디</span><span class="ov_num"><?php echo $mb['mb_id'] ?></span></span>
|
||||
<span class="btn_ov01"><span class="ov_txt"> 이름</span><span class="ov_num"><?php echo get_text($mb['mb_name']); ?></span></span>
|
||||
<span class="btn_ov01"><span class="ov_txt"> 닉네임</span><span class="ov_num"><?php echo $mb['mb_nick'] ?></span></span>
|
||||
</div>
|
||||
<div class="local_cmd01 local_cmd">
|
||||
|
||||
<div class="local_cmd01 local_cmd">
|
||||
<label for="gr_id">그룹지정</label>
|
||||
<select name="gr_id" id="gr_id">
|
||||
<option value="">접근가능 그룹을 선택하세요.</option>
|
||||
@@ -33,9 +35,9 @@ $colspan = 4;
|
||||
$sql = " select *
|
||||
from {$g5['group_table']}
|
||||
where gr_use_access = 1 ";
|
||||
//if ($is_admin == 'group') {
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql .= " and gr_admin = '{$member['mb_id']}' ";
|
||||
}
|
||||
$sql .= " order by gr_id ";
|
||||
$result = sql_query($sql);
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
@@ -76,8 +78,9 @@ $colspan = 4;
|
||||
$sql = " select * from {$g5['group_member_table']} a, {$g5['group_table']} b
|
||||
where a.mb_id = '{$mb['mb_id']}'
|
||||
and a.gr_id = b.gr_id ";
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql .= " and b.gr_admin = '{$member['mb_id']}' ";
|
||||
}
|
||||
$sql .= " order by a.gr_id desc ";
|
||||
$result = sql_query($sql);
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
@@ -108,8 +111,7 @@ $colspan = 4;
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fboardgroupmember_submit(f)
|
||||
{
|
||||
function fboardgroupmember_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -118,8 +120,7 @@ function fboardgroupmember_submit(f)
|
||||
return true;
|
||||
}
|
||||
|
||||
function boardgroupmember_form_check(f)
|
||||
{
|
||||
function boardgroupmember_form_check(f) {
|
||||
if (f.gr_id.value == '') {
|
||||
alert('접근가능 그룹을 선택하세요.');
|
||||
return false;
|
||||
@@ -130,4 +131,4 @@ function boardgroupmember_form_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -11,8 +11,8 @@ if (!$gr['gr_id']) {
|
||||
|
||||
$sql_common = " from {$g5['group_member_table']} a
|
||||
left outer join {$g5['member_table']} b on (a.mb_id = b.mb_id) ";
|
||||
|
||||
$sql_search = " where gr_id = '{$gr_id}' ";
|
||||
|
||||
// 회원아이디로 검색되지 않던 오류를 수정
|
||||
if (isset($stx) && $stx) {
|
||||
$sql_search .= " and ( ";
|
||||
@@ -39,7 +39,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
@@ -50,7 +52,7 @@ $sql = " select *
|
||||
$result = sql_query($sql);
|
||||
|
||||
$g5['title'] = $gr['gr_subject'] . ' 그룹 접근가능회원 (그룹아이디:' . $gr['gr_id'] . ')';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 7;
|
||||
?>
|
||||
@@ -95,14 +97,14 @@ $colspan = 7;
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
// 접근가능한 그룹수
|
||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$group = "";
|
||||
if ($row2['cnt'])
|
||||
if ($row2['cnt']) {
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id=' . $row['mb_id'] . '">' . $row2['cnt'] . '</a>';
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
@@ -123,8 +125,7 @@ $colspan = 7;
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
{
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
@@ -137,11 +138,12 @@ $colspan = 7;
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&gr_id=$gr_id&page="); ?>
|
||||
<?php
|
||||
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&gr_id=$gr_id&page=");
|
||||
?>
|
||||
|
||||
<script>
|
||||
function fboardgroupmember_submit(f)
|
||||
{
|
||||
function fboardgroupmember_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert("선택삭제 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -152,4 +154,4 @@ function fboardgroupmember_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,20 +1,19 @@
|
||||
<?php
|
||||
$sub_menu = "300200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
sql_query(" ALTER TABLE {$g5['group_member_table']} CHANGE `gm_id` `gm_id` INT( 11 ) DEFAULT '0' NOT NULL AUTO_INCREMENT ", false);
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id']) {
|
||||
if (empty($mb['mb_id'])) {
|
||||
alert('존재하지 않는 회원입니다.');
|
||||
}
|
||||
|
||||
$gr = get_group($gr_id);
|
||||
if (!$gr['gr_id']) {
|
||||
if (empty($gr['gr_id'])) {
|
||||
alert('존재하지 않는 그룹입니다.');
|
||||
}
|
||||
|
||||
@@ -25,9 +24,7 @@ if ($w == '')
|
||||
$row = sql_fetch($sql);
|
||||
if ($row['cnt']) {
|
||||
alert('이미 등록되어 있는 자료입니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
check_admin_token();
|
||||
|
||||
$sql = " insert into {$g5['group_member_table']}
|
||||
@@ -36,14 +33,13 @@ if ($w == '')
|
||||
gm_datetime = '" . G5_TIME_YMDHIS . "' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
else if ($w == 'd' || $w == 'ld')
|
||||
{
|
||||
} elseif ($w == 'd' || $w == 'ld') {
|
||||
auth_check_menu($auth, $sub_menu, 'd');
|
||||
|
||||
$count = count($_POST['chk']);
|
||||
if(!$count)
|
||||
if (!$count) {
|
||||
alert('삭제할 목록을 하나이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
@@ -52,18 +48,20 @@ else if ($w == 'd' || $w == 'ld')
|
||||
$sql = " select * from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
||||
$gm = sql_fetch($sql);
|
||||
if (!$gm['gm_id']) {
|
||||
if($count == 1)
|
||||
if ($count == 1) {
|
||||
alert('존재하지 않는 자료입니다.');
|
||||
else
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
$sql = " delete from {$g5['group_member_table']} where gm_id = '$gm_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
if ($w == 'ld')
|
||||
if ($w == 'ld') {
|
||||
goto_url('./boardgroupmember_list.php?gr_id=' . $gr_id);
|
||||
else
|
||||
} else {
|
||||
goto_url('./boardgroupmember_form.php?mb_id=' . $mb_id);
|
||||
}
|
||||
|
||||
+7
-5
@@ -1,15 +1,17 @@
|
||||
<?php
|
||||
$sub_menu = "100510";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
||||
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||
}
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$g5['title'] = 'Browscap 업데이트';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div id="processing">
|
||||
@@ -41,4 +43,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
<?php
|
||||
$sub_menu = "100520";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
||||
alert('사용할 수 없는 기능입니다.', correct_goto_url(G5_ADMIN_URL));
|
||||
}
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
|
||||
if(!$rows)
|
||||
if (!$rows) {
|
||||
$rows = 100;
|
||||
}
|
||||
|
||||
$g5['title'] = '접속로그 변환';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div id="processing">
|
||||
@@ -29,7 +32,9 @@ $(function() {
|
||||
$.ajax({
|
||||
method: "GET",
|
||||
url: "./browscap_converter.php",
|
||||
data: { rows: "<?php echo $rows; ?>" },
|
||||
data: {
|
||||
rows: "<?php echo strval($rows); ?>"
|
||||
},
|
||||
async: true,
|
||||
cache: false,
|
||||
dataType: "html",
|
||||
@@ -42,4 +47,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+19
-12
@@ -1,15 +1,17 @@
|
||||
<?php
|
||||
ini_set('memory_limit', '-1');
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
// clean the output buffer
|
||||
ob_end_clean();
|
||||
|
||||
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
||||
die('사용할 수 없는 기능입니다.');
|
||||
}
|
||||
|
||||
if($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
die('최고관리자로 로그인 후 실행해 주세요.');
|
||||
}
|
||||
|
||||
// browscap cache 파일 체크
|
||||
if (!is_file(G5_DATA_PATH . '/cache/browscap_cache.php')) {
|
||||
@@ -18,19 +20,20 @@ if(!is_file(G5_DATA_PATH.'/cache/browscap_cache.php')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
include_once(G5_PLUGIN_PATH.'/browscap/Browscap.php');
|
||||
require_once G5_PLUGIN_PATH . '/browscap/Browscap.php';
|
||||
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache');
|
||||
$browscap->doAutoUpdate = false;
|
||||
$browscap->cacheFilename = 'browscap_cache.php';
|
||||
|
||||
// 데이터 변환
|
||||
$rows = preg_replace('#[^0-9]#', '', $_GET['rows']);
|
||||
if(!$rows)
|
||||
$rows = isset($_GET['rows']) ? preg_replace('#[^0-9]#', '', $_GET['rows']) : 0;
|
||||
if (!$rows) {
|
||||
$rows = 100;
|
||||
}
|
||||
|
||||
$sql_common = " from {$g5['visit_table']} where vi_agent <> '' and ( vi_browser = '' or vi_os = '' or vi_device = '' ) ";
|
||||
$sql_order = " order by vi_id desc ";
|
||||
$sql_limit = " limit 0, $rows ";
|
||||
$sql_limit = " limit 0, " . strval($rows) . " ";
|
||||
|
||||
$sql = " select count(vi_id) as cnt $sql_common ";
|
||||
$row = sql_fetch($sql);
|
||||
@@ -47,16 +50,19 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$info = $browscap->getBrowser($row['vi_agent']);
|
||||
|
||||
$brow = $row['vi_browser'];
|
||||
if(!$brow)
|
||||
if (!$brow) {
|
||||
$brow = $info->Comment;
|
||||
}
|
||||
|
||||
$os = $row['vi_os'];
|
||||
if(!$os)
|
||||
if (!$os) {
|
||||
$os = $info->Platform;
|
||||
}
|
||||
|
||||
$device = $row['vi_device'];
|
||||
if(!$device)
|
||||
if (!$device) {
|
||||
$device = $info->Device_Type;
|
||||
}
|
||||
|
||||
$sql2 = " update {$g5['visit_table']}
|
||||
set vi_browser = '$brow',
|
||||
@@ -68,7 +74,8 @@ for($i=0; $row=sql_fetch_array($result); $i++) {
|
||||
$cnt++;
|
||||
}
|
||||
|
||||
if(($total_count - $cnt) == 0 || $total_count == 0)
|
||||
if (($total_count - $cnt) == 0 || $total_count == 0) {
|
||||
echo '<div class="check_processing"></div><p>변환완료</p>';
|
||||
else
|
||||
} else {
|
||||
echo '<p>총 ' . number_format($total_count) . '건 중 ' . number_format($cnt) . '건 변환완료<br><br>접속로그를 추가로 변환하시려면 아래 업데이트 버튼을 클릭해 주세요.</p><button type="button" id="run_update">업데이트</button>';
|
||||
}
|
||||
|
||||
@@ -2,18 +2,20 @@
|
||||
ini_set('memory_limit', '-1');
|
||||
|
||||
$sub_menu = "100510";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
// clean the output buffer
|
||||
ob_end_clean();
|
||||
|
||||
if(!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE))
|
||||
if (!(version_compare(phpversion(), '5.3.0', '>=') && defined('G5_BROWSCAP_USE') && G5_BROWSCAP_USE)) {
|
||||
die('사용할 수 없는 기능입니다.');
|
||||
}
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
die('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
include_once(G5_PLUGIN_PATH.'/browscap/Browscap.php');
|
||||
require_once G5_PLUGIN_PATH . '/browscap/Browscap.php';
|
||||
|
||||
$browscap = new phpbrowscap\Browscap(G5_DATA_PATH . '/cache');
|
||||
$browscap->updateMethod = 'cURL';
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
$sub_menu = '100900';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
||||
}
|
||||
|
||||
@include_once('./safe_check.php');
|
||||
@require_once './safe_check.php';
|
||||
if (function_exists('social_log_file_delete')) {
|
||||
social_log_file_delete();
|
||||
}
|
||||
@@ -13,7 +14,7 @@ if(function_exists('social_log_file_delete')){
|
||||
run_event('adm_cache_file_delete_before');
|
||||
|
||||
$g5['title'] = '캐시파일 일괄삭제';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div class="local_desc02 local_desc">
|
||||
@@ -44,10 +45,11 @@ if (is_array($files)) {
|
||||
|
||||
flush();
|
||||
|
||||
if ($cnt%10==0)
|
||||
if ($cnt % 10 == 0) {
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
run_event('adm_cache_file_delete');
|
||||
|
||||
@@ -56,4 +58,4 @@ echo '<div class="local_desc01 local_desc"><p><strong>최신글 캐시파일 '.$
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<?php
|
||||
$sub_menu = '100910';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.', G5_URL);
|
||||
}
|
||||
|
||||
$g5['title'] = '캡챠파일 일괄삭제';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div class="local_desc02 local_desc">
|
||||
@@ -31,7 +32,9 @@ if (is_array($files)) {
|
||||
foreach ($files as $gcaptcha_file) {
|
||||
$modification_time = filemtime($gcaptcha_file); // 파일접근시간
|
||||
|
||||
if ($modification_time > $before_time) continue;
|
||||
if ($modification_time > $before_time) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$cnt++;
|
||||
unlink($gcaptcha_file);
|
||||
@@ -39,14 +42,15 @@ if (is_array($files)) {
|
||||
|
||||
flush();
|
||||
|
||||
if ($cnt%10==0)
|
||||
if ($cnt % 10 == 0) {
|
||||
echo PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
echo '<li>완료됨</li></ul>' . PHP_EOL;
|
||||
echo '<div class="local_desc01 local_desc"><p><strong>캡챠파일 ' . $cnt . '건의 삭제 완료됐습니다.</strong><br>프로그램의 실행을 끝마치셔도 좋습니다.</p></div>' . PHP_EOL;
|
||||
?>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+289
-136
@@ -1,64 +1,96 @@
|
||||
<?php
|
||||
$sub_menu = "100100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
// https://github.com/gnuboard/gnuboard5/issues/296 이슈처리
|
||||
$sql = " select * from {$g5['config_table']} limit 1";
|
||||
$config = sql_fetch($sql);
|
||||
|
||||
if (!isset($config['cf_add_script'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_add_script` TEXT NOT NULL AFTER `cf_admin_email_name` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_add_script` TEXT NOT NULL AFTER `cf_admin_email_name` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_mobile_new_skin'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_mobile_new_skin` VARCHAR(255) NOT NULL AFTER `cf_memo_send_point`,
|
||||
ADD `cf_mobile_search_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_new_skin`,
|
||||
ADD `cf_mobile_connect_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_search_skin`,
|
||||
ADD `cf_mobile_member_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_connect_skin` ", true);
|
||||
ADD `cf_mobile_member_skin` VARCHAR(255) NOT NULL AFTER `cf_mobile_connect_skin` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (isset($config['cf_gcaptcha_mp3'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
CHANGE `cf_gcaptcha_mp3` `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
CHANGE `cf_gcaptcha_mp3` `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' ",
|
||||
true
|
||||
);
|
||||
} elseif (!isset($config['cf_captcha_mp3'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_captcha_mp3` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_mobile_member_skin` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_editor'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_editor` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_googl_shorturl_apikey'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_googl_shorturl_apikey` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_googl_shorturl_apikey` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_captcha_mp3` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_mobile_pages'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_mobile_pages` INT(11) NOT NULL DEFAULT '0' AFTER `cf_write_pages` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_mobile_pages` INT(11) NOT NULL DEFAULT '0' AFTER `cf_write_pages` ",
|
||||
true
|
||||
);
|
||||
sql_query(" UPDATE `{$g5['config_table']}` SET cf_mobile_pages = '5' ", true);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_facebook_appid'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_facebook_appid` VARCHAR(255) NOT NULL AFTER `cf_googl_shorturl_apikey`,
|
||||
ADD `cf_facebook_secret` VARCHAR(255) NOT NULL AFTER `cf_facebook_appid`,
|
||||
ADD `cf_twitter_key` VARCHAR(255) NOT NULL AFTER `cf_facebook_secret`,
|
||||
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key` ", true);
|
||||
ADD `cf_twitter_secret` VARCHAR(255) NOT NULL AFTER `cf_twitter_key` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// uniqid 테이블이 없을 경우 생성
|
||||
if (!sql_query(" DESC {$g5['uniqid_table']} ", false)) {
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['uniqid_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['uniqid_table']}` (
|
||||
`uq_id` bigint(20) unsigned NOT NULL,
|
||||
`uq_ip` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`uq_id`)
|
||||
) ", false);
|
||||
) ",
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
if (!sql_query(" SELECT uq_ip from {$g5['uniqid_table']} limit 1 ", false)) {
|
||||
@@ -67,7 +99,8 @@ if(!sql_query(" SELECT uq_ip from {$g5['uniqid_table']} limit 1 ", false)) {
|
||||
|
||||
// 임시저장 테이블이 없을 경우 생성
|
||||
if (!sql_query(" DESC {$g5['autosave_table']} ", false)) {
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['autosave_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['autosave_table']}` (
|
||||
`as_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`mb_id` varchar(20) NOT NULL,
|
||||
`as_uid` bigint(20) unsigned NOT NULL,
|
||||
@@ -77,32 +110,47 @@ if(!sql_query(" DESC {$g5['autosave_table']} ", false)) {
|
||||
PRIMARY KEY (`as_id`),
|
||||
UNIQUE KEY `as_uid` (`as_uid`),
|
||||
KEY `mb_id` (`mb_id`)
|
||||
) ", false);
|
||||
) ",
|
||||
false
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_admin_email'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_admin_email` VARCHAR(255) NOT NULL AFTER `cf_admin` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_admin_email` VARCHAR(255) NOT NULL AFTER `cf_admin` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_admin_email_name'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_admin_email_name` VARCHAR(255) NOT NULL AFTER `cf_admin_email` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_admin_email_name` VARCHAR(255) NOT NULL AFTER `cf_admin_email` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_cert_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_cert_use` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_editor`,
|
||||
ADD `cf_cert_ipin` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_use`,
|
||||
ADD `cf_cert_hp` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_ipin`,
|
||||
ADD `cf_cert_kcb_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`,
|
||||
ADD `cf_cert_kcp_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcb_cd`,
|
||||
ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ", true);
|
||||
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||
CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ", true);
|
||||
ADD `cf_cert_limit` INT(11) NOT NULL DEFAULT '0' AFTER `cf_cert_kcp_cd` ",
|
||||
true
|
||||
);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['member_table']}`
|
||||
CHANGE `mb_hp_certify` `mb_certify` VARCHAR(20) NOT NULL DEFAULT '' ",
|
||||
true
|
||||
);
|
||||
sql_query(" update {$g5['member_table']} set mb_certify = 'hp' where mb_certify = '1' ");
|
||||
sql_query(" update {$g5['member_table']} set mb_certify = '' where mb_certify = '0' ");
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['cert_history_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['cert_history_table']}` (
|
||||
`cr_id` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`cr_company` varchar(255) NOT NULL DEFAULT '',
|
||||
@@ -112,89 +160,131 @@ if(!isset($config['cf_cert_use'])) {
|
||||
`cr_time` time NOT NULL DEFAULT '00:00:00',
|
||||
PRIMARY KEY (`cr_id`),
|
||||
KEY `mb_id` (`mb_id`)
|
||||
)", true);
|
||||
)",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_analytics'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_analytics` TEXT NOT NULL AFTER `cf_intercept_ip` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_analytics` TEXT NOT NULL AFTER `cf_intercept_ip` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_add_meta'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_add_meta` TEXT NOT NULL AFTER `cf_analytics` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_add_meta` TEXT NOT NULL AFTER `cf_analytics` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_syndi_token'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_syndi_token` VARCHAR(255) NOT NULL AFTER `cf_add_meta` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_syndi_token` VARCHAR(255) NOT NULL AFTER `cf_add_meta` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_syndi_except'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_syndi_except` TEXT NOT NULL AFTER `cf_syndi_token` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_syndi_except` TEXT NOT NULL AFTER `cf_syndi_token` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_sms_use'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_sms_use` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_limit`,
|
||||
ADD `cf_icode_id` varchar(255) NOT NULL DEFAULT '' AFTER `cf_sms_use`,
|
||||
ADD `cf_icode_pw` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_id`,
|
||||
ADD `cf_icode_server_ip` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_pw`,
|
||||
ADD `cf_icode_server_port` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_server_ip` ", true);
|
||||
ADD `cf_icode_server_port` varchar(255) NOT NULL DEFAULT '' AFTER `cf_icode_server_ip` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_mobile_page_rows'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_mobile_page_rows` int(11) NOT NULL DEFAULT '0' AFTER `cf_page_rows` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_mobile_page_rows` int(11) NOT NULL DEFAULT '0' AFTER `cf_page_rows` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_cert_req'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_cert_req` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_cert_limit` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_cert_req` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_cert_limit` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_faq_skin'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_connect_skin`,
|
||||
ADD `cf_mobile_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_mobile_connect_skin` ", true);
|
||||
ADD `cf_mobile_faq_skin` varchar(255) NOT NULL DEFAULT '' AFTER `cf_mobile_connect_skin` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// LG유플러스 본인확인 필드 추가
|
||||
if (!isset($config['cf_lg_mid'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_lg_mid` varchar(255) NOT NULL DEFAULT '' AFTER `cf_cert_kcp_cd`,
|
||||
ADD `cf_lg_mert_key` varchar(255) NOT NULL DEFAULT '' AFTER `cf_lg_mid` ", true);
|
||||
ADD `cf_lg_mert_key` varchar(255) NOT NULL DEFAULT '' AFTER `cf_lg_mid` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
if (!isset($config['cf_optimize_date'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_optimize_date` date NOT NULL default '0000-00-00' AFTER `cf_popular_del` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_optimize_date` date NOT NULL default '0000-00-00' AFTER `cf_popular_del` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 카카오톡링크 api 키
|
||||
if (!isset($config['cf_kakao_js_apikey'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_kakao_js_apikey` varchar(255) NOT NULL DEFAULT '' AFTER `cf_googl_shorturl_apikey` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_kakao_js_apikey` varchar(255) NOT NULL DEFAULT '' AFTER `cf_googl_shorturl_apikey` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// SMS 전송유형 필드 추가
|
||||
if (!isset($config['cf_sms_type'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_sms_type` varchar(10) NOT NULL DEFAULT '' AFTER `cf_sms_use` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_sms_type` varchar(10) NOT NULL DEFAULT '' AFTER `cf_sms_use` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 접속자 정보 필드 추가
|
||||
if (!sql_query(" select vi_browser from {$g5['visit_table']} limit 1 ")) {
|
||||
sql_query(" ALTER TABLE `{$g5['visit_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['visit_table']}`
|
||||
ADD `vi_browser` varchar(255) NOT NULL DEFAULT '' AFTER `vi_agent`,
|
||||
ADD `vi_os` varchar(255) NOT NULL DEFAULT '' AFTER `vi_browser`,
|
||||
ADD `vi_device` varchar(255) NOT NULL DEFAULT '' AFTER `vi_os` ", true);
|
||||
ADD `vi_device` varchar(255) NOT NULL DEFAULT '' AFTER `vi_os` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
//소셜 로그인 관련 필드 및 구글 리챕챠 필드 추가
|
||||
if (!isset($config['cf_social_login_use'])) {
|
||||
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
"ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_social_login_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_googl_shorturl_apikey`,
|
||||
ADD `cf_google_clientid` varchar(100) NOT NULL DEFAULT '' AFTER `cf_twitter_secret`,
|
||||
ADD `cf_google_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_google_clientid`,
|
||||
@@ -207,23 +297,31 @@ if(!isset($config['cf_social_login_use'])) {
|
||||
ADD `cf_captcha` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_js_apikey`,
|
||||
ADD `cf_recaptcha_site_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_captcha`,
|
||||
ADD `cf_recaptcha_secret_key` varchar(100) NOT NULL DEFAULT '' AFTER `cf_recaptcha_site_key`
|
||||
", true);
|
||||
",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
//소셜 로그인 관련 필드 카카오 클라이언트 시크릿 추가
|
||||
if (!isset($config['cf_kakao_client_secret'])) {
|
||||
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
"ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_kakao_client_secret` varchar(100) NOT NULL DEFAULT '' AFTER `cf_kakao_rest_key`
|
||||
", true);
|
||||
",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 회원 이미지 관련 필드 추가
|
||||
if (!isset($config['cf_member_img_size'])) {
|
||||
sql_query("ALTER TABLE `{$g5['config_table']}`
|
||||
sql_query(
|
||||
"ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_member_img_size` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_icon_height`,
|
||||
ADD `cf_member_img_width` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_size`,
|
||||
ADD `cf_member_img_height` int(11) NOT NULL DEFAULT '0' AFTER `cf_member_img_width`
|
||||
", true);
|
||||
",
|
||||
true
|
||||
);
|
||||
|
||||
$sql = " update {$g5['config_table']} set cf_member_img_size = 50000, cf_member_img_width = 60, cf_member_img_height = 60 ";
|
||||
sql_query($sql, false);
|
||||
@@ -235,7 +333,8 @@ if(!isset($config['cf_member_img_size'])) {
|
||||
|
||||
// 소셜 로그인 관리 테이블 없을 경우 생성
|
||||
if (!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['social_profile_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['social_profile_table']}` (
|
||||
`mp_no` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`mb_id` varchar(255) NOT NULL DEFAULT '',
|
||||
`provider` varchar(50) NOT NULL DEFAULT '',
|
||||
@@ -250,25 +349,36 @@ if(!sql_query(" DESC {$g5['social_profile_table']} ", false)) {
|
||||
UNIQUE KEY `mp_no` (`mp_no`),
|
||||
KEY `mb_id` (`mb_id`),
|
||||
KEY `provider` (`provider`)
|
||||
) ", true);
|
||||
) ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 짧은 URL 주소를 사용 여부 필드 추가
|
||||
if (!isset($config['cf_bbs_rewrite'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD `cf_bbs_rewrite` tinyint(4) NOT NULL DEFAULT '0' AFTER `cf_link_target` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 읽지 않은 메모 수 칼럼 추가
|
||||
if (!isset($member['mb_memo_cnt'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['member_table']}`
|
||||
ADD `mb_memo_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_call`",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 스크랩 읽은 수 추가
|
||||
if (!isset($member['mb_scrap_cnt'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['member_table']}`
|
||||
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['member_table']}`
|
||||
ADD `mb_scrap_cnt` int(11) NOT NULL DEFAULT '0' AFTER `mb_memo_cnt`",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 아이코드 토큰키 추가
|
||||
@@ -283,19 +393,44 @@ if(!isset($config['cf_cert_find']) ){
|
||||
ADD COLUMN `cf_cert_find` TINYINT(4) NOT NULL DEFAULT '0' AFTER `cf_cert_use`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
// 통합인증 필드 추가
|
||||
if(!isset($config['cf_cert_sa']) ){
|
||||
// 간편인증 필드 추가
|
||||
if (!isset($config['cf_cert_simple'])) {
|
||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_cert_simple` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
if (!isset($config['cf_cert_kg_cd'])) {
|
||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_cert_kg_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_simple`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
if (!isset($config['cf_cert_kg_mid'])) {
|
||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_cert_sa` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_hp`,
|
||||
ADD COLUMN `cf_cert_kg_cd` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_sa`,
|
||||
ADD COLUMN `cf_cert_kg_mid` VARCHAR(255) NOT NULL DEFAULT '' AFTER `cf_cert_kg_cd`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
if(!$config['cf_faq_skin']) $config['cf_faq_skin'] = "basic";
|
||||
if(!$config['cf_mobile_faq_skin']) $config['cf_mobile_faq_skin'] = "basic";
|
||||
if (!isset($config['cf_cert_use_seed'])) {
|
||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_cert_use_seed` TINYINT(4) NOT NULL DEFAULT '1' AFTER `cf_cert_kg_mid`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
if (!isset($config['cf_cert_kcp_enckey'])) {
|
||||
$sql = "ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_cert_kcp_enckey` VARCHAR(100) NOT NULL DEFAULT '' AFTER `cf_cert_kcp_cd`; ";
|
||||
sql_query($sql, false);
|
||||
|
||||
$config['cf_cert_kcp_enckey'] = '';
|
||||
}
|
||||
|
||||
if (!$config['cf_faq_skin']) {
|
||||
$config['cf_faq_skin'] = "basic";
|
||||
}
|
||||
if (!$config['cf_mobile_faq_skin']) {
|
||||
$config['cf_mobile_faq_skin'] = "basic";
|
||||
}
|
||||
|
||||
$g5['title'] = '환경설정';
|
||||
include_once ('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$pg_anchor = '<ul class="anchor">
|
||||
<li><a href="#anc_cf_basic">기본환경</a></li>
|
||||
@@ -314,8 +449,12 @@ $pg_anchor = '<ul class="anchor">
|
||||
</ul>';
|
||||
|
||||
|
||||
if (!$config['cf_icode_server_ip']) $config['cf_icode_server_ip'] = '211.172.232.124';
|
||||
if (!$config['cf_icode_server_port']) $config['cf_icode_server_port'] = '7295';
|
||||
if (!$config['cf_icode_server_ip']) {
|
||||
$config['cf_icode_server_ip'] = '211.172.232.124';
|
||||
}
|
||||
if (!$config['cf_icode_server_port']) {
|
||||
$config['cf_icode_server_port'] = '7295';
|
||||
}
|
||||
|
||||
$userinfo = array('payment' => '');
|
||||
if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
@@ -353,6 +492,9 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<td colspan="3">
|
||||
<?php echo help('관리자가 보내고 받는 용도로 사용하는 메일 주소를 입력합니다. (회원가입, 인증메일, 테스트, 회원메일발송 등에서 사용)') ?>
|
||||
<input type="text" name="cf_admin_email" value="<?php echo get_sanitize_input($config['cf_admin_email']); ?>" id="cf_admin_email" required class="required email frm_input" size="40">
|
||||
<?php if (function_exists('domain_mail_host') && $config['cf_admin_email'] && stripos($config['cf_admin_email'], domain_mail_host()) === false) { ?>
|
||||
<?php echo help('외부메일설정이나 기타 설정을 하지 않았다면, 도메인과 다른 헤더로 여겨 스팸이나 차단될 가능성이 있습니다.<br>name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.') ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -492,7 +634,9 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<?php
|
||||
$arr = get_skin_dir('', G5_EDITOR_PATH);
|
||||
for ($i = 0; $i < count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">사용안함</option>";
|
||||
if ($i == 0) {
|
||||
echo "<option value=\"\">사용안함</option>";
|
||||
}
|
||||
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($config['cf_editor'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
|
||||
}
|
||||
?>
|
||||
@@ -518,7 +662,9 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<?php
|
||||
$arr = get_skin_dir('mp3', str_replace(array('recaptcha_inv', 'recaptcha'), 'kcaptcha', G5_CAPTCHA_PATH));
|
||||
for ($i = 0; $i < count($arr); $i++) {
|
||||
if ($i == 0) echo "<option value=\"\">선택</option>";
|
||||
if ($i == 0) {
|
||||
echo "<option value=\"\">선택</option>";
|
||||
}
|
||||
echo "<option value=\"" . $arr[$i] . "\"" . get_selected($config['cf_captcha_mp3'], $arr[$i]) . ">" . $arr[$i] . "</option>\n";
|
||||
}
|
||||
?>
|
||||
@@ -567,21 +713,23 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_analytics">방문자분석 스크립트</label></th>
|
||||
<td colspan="3">
|
||||
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리틱스'); ?>
|
||||
<?php echo help('방문자분석 스크립트 코드를 입력합니다. 예) 구글 애널리틱스<br>관리자 페이지에서는 이 코드를 사용하지 않습니다.'); ?>
|
||||
<textarea name="cf_analytics" id="cf_analytics"><?php echo get_text($config['cf_analytics']); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_add_meta">추가 메타태그</label></th>
|
||||
<td colspan="3">
|
||||
<?php echo help('추가로 사용하실 meta 태그를 입력합니다.'); ?>
|
||||
<?php echo help('추가로 사용하실 meta 태그를 입력합니다.<br>관리자 페이지에서는 이 코드를 사용하지 않습니다.'); ?>
|
||||
<textarea name="cf_add_meta" id="cf_add_meta"><?php echo get_text($config['cf_add_meta']); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="cf_syndi_token">네이버 신디케이션 연동키</label></th>
|
||||
<td colspan="3">
|
||||
<?php if (!function_exists('curl_init')) echo help('<b>경고) curl이 지원되지 않아 네이버 신디케이션을 사용할수 없습니다.</b>'); ?>
|
||||
<?php if (!function_exists('curl_init')) {
|
||||
echo help('<b>경고) curl이 지원되지 않아 네이버 신디케이션을 사용할수 없습니다.</b>');
|
||||
} ?>
|
||||
<?php echo help('네이버 신디케이션 연동키(token)을 입력하면 네이버 신디케이션을 사용할 수 있습니다.<br>연동키는 <a href="http://webmastertool.naver.com/" target="_blank"><u>네이버 웹마스터도구</u></a> -> 네이버 신디케이션에서 발급할 수 있습니다.') ?>
|
||||
<input type="text" name="cf_syndi_token" value="<?php echo isset($config['cf_syndi_token']) ? get_sanitize_input($config['cf_syndi_token']) : ''; ?>" id="cf_syndi_token" class="frm_input" size="70">
|
||||
</td>
|
||||
@@ -854,15 +1002,27 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_find">회원정보찾기</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<input type="checkbox" name="cf_cert_find" id="cf_cert_find" value="1" <?php if($config['cf_cert_find'] == 1) { ?> checked <?php } ?>><label for="cf_cert_find">아이디/비밀번호 찾기에 사용하기</label>
|
||||
<?php echo help('휴대폰/아이핀 본인확인을 이용하시다가 간편인증을 이용하시는 경우, 기존 회원은 아이디/비밀번호 찾기에 사용할 수 없을 수 있습니다.') ?>
|
||||
<input type="checkbox" name="cf_cert_find" id="cf_cert_find" value="1" <?php if (isset($config['cf_cert_find']) && $config['cf_cert_find'] == 1) { echo "checked"; } ?>><label for="cf_cert_find"> 아이디/비밀번호 찾기에 사용하기</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_sa">통합인증</label></th>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_simple">통합인증(간편인증)</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<select name="cf_cert_sa" id="cf_cert_sa">
|
||||
<?php echo option_selected("", $config['cf_cert_sa'], "사용안함"); ?>
|
||||
<?php echo option_selected("sa", $config['cf_cert_sa'], "KG이니시스 통합인증"); ?>
|
||||
<?php echo help('KG이니시스의 통합인증(간편인증+전자서명) 서비스에서 전자서명을 제외한 간편인증 서비스 입니다. <a href="https://www.inicis.com/all-auth-service" target="_blank"><u>KG이니시스 통합인증 안내</u></a>') ?>
|
||||
<select name="cf_cert_simple" id="cf_cert_simple">
|
||||
<?php echo option_selected("", $config['cf_cert_simple'], "사용안함"); ?>
|
||||
<?php echo option_selected("inicis", $config['cf_cert_simple'], "KG이니시스 통합인증(간편인증)"); ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_use_seed">통합인증 암호화 적용</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<?php echo help('KG이니시스 통합인증서비스에 암호화를 적용합니다. 만일 글자가 깨지는 문제가 발생하면 사용안함으로 적용해 주세요.') ?>
|
||||
<select name="cf_cert_use_seed" id="cf_cert_use_seed">
|
||||
<?php echo option_selected("0", $config['cf_cert_use_seed'], "사용안함"); ?>
|
||||
<?php echo option_selected("1", $config['cf_cert_use_seed'], "사용함"); ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -873,7 +1033,6 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
<?php echo option_selected("", $config['cf_cert_hp'], "사용안함"); ?>
|
||||
<?php echo option_selected("kcb", $config['cf_cert_hp'], "코리아크레딧뷰로(KCB) 휴대폰 본인확인"); ?>
|
||||
<?php echo option_selected("kcp", $config['cf_cert_hp'], "NHN KCP 휴대폰 본인확인"); ?>
|
||||
<?php echo option_selected("lg", $config['cf_cert_hp'], "LG유플러스 휴대폰 본인확인"); ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -887,22 +1046,24 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kg_cd">KG이니시스 통합인증</label></th>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kg_cd">KG이니시스 간편인증 MID</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<span class="sitecode title">MID</span>
|
||||
<span class="sitecode">SRA</span>
|
||||
<input type="text" name="cf_cert_kg_mid" value="<?php echo get_sanitize_input($config['cf_cert_kg_mid']); ?>" id="cf_cert_kg_mid" class="frm_input" size="20" minlength="7" maxlength="7"><br>
|
||||
<br>
|
||||
<span class="sitecode title">API Key</span>
|
||||
<input type="text" name="cf_cert_kg_cd" value="<?php echo get_sanitize_input($config['cf_cert_kg_cd']); ?>" id="cf_cert_kg_cd" class="frm_input" size="40">
|
||||
<input type="text" name="cf_cert_kg_mid" value="<?php echo get_sanitize_input($config['cf_cert_kg_mid']); ?>" id="cf_cert_kg_mid" class="frm_input" size="10" minlength="7" maxlength="7">
|
||||
<a href="http://sir.kr/main/service/inicis_cert_form.php" target="_blank" class="btn_frmline">KG이니시스 통합인증(간편인증) 신청페이지</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kg_cd">KG이니시스 간편인증 API KEY</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<input type="text" name="cf_cert_kg_cd" value="<?php echo get_sanitize_input($config['cf_cert_kg_cd']); ?>" id="cf_cert_kg_cd" class="frm_input" size="40" minlength="32" maxlength="32">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kcb_cd">코리아크레딧뷰로<br>KCB 회원사ID</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<?php echo help('KCB 회원사ID를 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, KCB와 계약체결 후 회원사ID를 발급 받으실 수 있습니다.<br>이용하시려는 서비스에 대한 계약을 아이핀, 휴대폰 본인확인 각각 체결해주셔야 합니다.<br>아이핀 본인확인 테스트의 경우에는 KCB 회원사ID가 필요 없으나,<br>휴대폰 본인확인 테스트의 경우 KCB 에서 따로 발급 받으셔야 합니다.') ?>
|
||||
<input type="text" name="cf_cert_kcb_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcb_cd']); ?>" id="cf_cert_kcb_cd" class="frm_input" size="20"> <a href="http://sir.kr/main/service/b_ipin.php" target="_blank" class="btn_frmline">KCB 아이핀 서비스 신청페이지</a>
|
||||
<a href="http://sir.kr/main/service/b_cert.php" target="_blank" class="btn_frmline">KCB 휴대폰 본인확인 서비스 신청페이지</a>
|
||||
<input type="text" name="cf_cert_kcb_cd" value="<?php echo get_sanitize_input($config['cf_cert_kcb_cd']); ?>" id="cf_cert_kcb_cd" class="frm_input" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -914,24 +1075,16 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_lg_mid">LG유플러스 상점아이디</label></th>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_kcp_enckey">NHN KCP 가맹점 인증키</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<?php echo help('LG유플러스 상점아이디 중 si_를 제외한 나머지 아이디만 입력해 주십시오.<br>서비스에 가입되어 있지 않다면, 본인확인 서비스 신청페이지에서 서비스 신청 후 상점아이디를 발급 받으실 수 있습니다.<br><strong>LG유플러스 휴대폰본인확인은 ActiveX 설치가 필요하므로 Internet Explorer 에서만 사용할 수 있습니다.</strong>') ?>
|
||||
<span class="sitecode">si_</span>
|
||||
<input type="text" name="cf_lg_mid" value="<?php echo get_sanitize_input($config['cf_lg_mid']); ?>" id="cf_lg_mid" class="frm_input" size="20"> <a href="http://sir.kr/main/service/lg_cert.php" target="_blank" class="btn_frmline">LG유플러스 본인확인 서비스 신청페이지</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_lg_mert_key">LG유플러스 MERT KEY</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<?php echo help('LG유플러스 상점MertKey는 상점관리자 -> 계약정보 -> 상점정보관리에서 확인하실 수 있습니다.') ?>
|
||||
<input type="text" name="cf_lg_mert_key" value="<?php echo get_sanitize_input($config['cf_lg_mert_key']); ?>" id="cf_lg_mert_key" class="frm_input" size="40">
|
||||
<?php echo help('(선택사항, 추후 NHN_KCP 상점관리자에서 인증키 발급 메뉴 오픈일정 이후부터 적용되는 내용입니다.)<br>NHN_KCP 상점관리자 > 기술관리센터 > 인증센터 > 가맹점 인증키관리 에서 인증키 발급 후에 인증키 정보를 입력') ?>
|
||||
<input type="text" name="cf_cert_kcp_enckey" value="<?php echo get_sanitize_input($config['cf_cert_kcp_enckey']); ?>" id="cf_cert_kcp_enckey" class="frm_input" maxlength="100" size="40"> <a href="https://partner.kcp.co.kr" target="_blank" class="btn_frmline">NHN KCP 상점관리자</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" class="cf_cert_service"><label for="cf_cert_limit">본인확인 이용제한</label></th>
|
||||
<td class="cf_cert_service">
|
||||
<?php echo help('1일 단위 본인인증을 시도할 수 있는 최대횟수를 지정합니다. (0으로 설정 시 무한으로 인증시도 가능)<br>아이핀/휴대폰/통합인증에서 개별 적용됩니다.)'); ?>
|
||||
<?php echo help('1일 단위 본인인증을 시도할 수 있는 최대횟수를 지정합니다. (0으로 설정 시 무한으로 인증시도 가능)<br>아이핀/휴대폰/간편인증에서 개별 적용됩니다.)'); ?>
|
||||
<input type="text" name="cf_cert_limit" value="<?php echo (int) $config['cf_cert_limit']; ?>" id="cf_cert_limit" class="frm_input" size="3"> 회
|
||||
</td>
|
||||
</tr>
|
||||
@@ -948,7 +1101,7 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
</section>
|
||||
|
||||
<?php
|
||||
include_once('_rewrite_config_form.php');
|
||||
require_once '_rewrite_config_form.php';
|
||||
?>
|
||||
|
||||
<section id="anc_cf_mail">
|
||||
@@ -1414,8 +1567,9 @@ include_once('_rewrite_config_form.php');
|
||||
<script>
|
||||
$(function() {
|
||||
<?php
|
||||
if(!$config['cf_cert_use'])
|
||||
if (!$config['cf_cert_use']) {
|
||||
echo '$(".cf_cert_service").addClass("cf_cert_hide");';
|
||||
}
|
||||
?>
|
||||
$("#cf_cert_use").change(function() {
|
||||
switch ($(this).val()) {
|
||||
@@ -1428,13 +1582,6 @@ $(function(){
|
||||
}
|
||||
});
|
||||
|
||||
$("#cf_cert_find").on("click", function() {
|
||||
if($(this).attr("checked")) {
|
||||
let flag = confirm("휴대폰/아이핀 본인확인을 이용하시다가 통합인증을 이용하시는 경우, 기존 회원은 아이디/비밀번호 찾기에 사용할 수 없을 수 있습니다.\n\n그래도 사용하시겠습니까?");
|
||||
$(this).attr("checked", flag);
|
||||
};
|
||||
});
|
||||
|
||||
$("#cf_captcha").on("change", function() {
|
||||
if ($(this).val() == 'recaptcha' || $(this).val() == 'recaptcha_inv') {
|
||||
$("[class^='kcaptcha_']").hide();
|
||||
@@ -1457,7 +1604,9 @@ $(function(){
|
||||
url: "./theme_config_load.php",
|
||||
cache: false,
|
||||
async: false,
|
||||
data: { type: type },
|
||||
data: {
|
||||
type: type
|
||||
},
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
if (data.error) {
|
||||
@@ -1480,8 +1629,7 @@ $(function(){
|
||||
});
|
||||
});
|
||||
|
||||
function fconfigform_submit(f)
|
||||
{
|
||||
function fconfigform_submit(f) {
|
||||
var current_user_ip = "<?php echo $_SERVER['REMOTE_ADDR']; ?>";
|
||||
var cf_intercept_ip_val = f.cf_intercept_ip.value;
|
||||
|
||||
@@ -1514,16 +1662,18 @@ if($config['cf_cert_use']) {
|
||||
if ($config['cf_cert_ipin'] == 'kcb' || $config['cf_cert_hp'] == 'kcb') {
|
||||
// 실행모듈
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
||||
$exe = G5_OKNAME_PATH . '/bin/okname';
|
||||
else
|
||||
$exe = G5_OKNAME_PATH.'/bin/okname_x64';
|
||||
} else {
|
||||
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||
$exe = G5_OKNAME_PATH . '/bin/okname_x64';
|
||||
}
|
||||
} else {
|
||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
||||
$exe = G5_OKNAME_PATH . '/bin/okname.exe';
|
||||
else
|
||||
} else {
|
||||
$exe = G5_OKNAME_PATH . '/bin/oknamex64.exe';
|
||||
}
|
||||
}
|
||||
|
||||
echo module_exec_check($exe, 'okname');
|
||||
|
||||
@@ -1534,13 +1684,17 @@ if($config['cf_cert_use']) {
|
||||
|
||||
// kcp일 때
|
||||
if ($config['cf_cert_hp'] == 'kcp') {
|
||||
|
||||
$bin_path = ((int)$config['cf_cert_use'] === 2 && !$config['cf_cert_kcp_enckey']) ? 'bin_old' : 'bin';
|
||||
|
||||
if (strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') {
|
||||
if(PHP_INT_MAX == 2147483647) // 32-bit
|
||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli';
|
||||
else
|
||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_x64';
|
||||
if (PHP_INT_MAX == 2147483647) { // 32-bit
|
||||
$exe = G5_KCPCERT_PATH . '/'.$bin_path.'/ct_cli';
|
||||
} else {
|
||||
$exe = G5_KCPCERT_PATH . '/bin/ct_cli_exe.exe';
|
||||
$exe = G5_KCPCERT_PATH . '/'.$bin_path.'/ct_cli_x64';
|
||||
}
|
||||
} else {
|
||||
$exe = G5_KCPCERT_PATH . '/'.$bin_path.'/ct_cli_exe.exe';
|
||||
}
|
||||
|
||||
echo module_exec_check($exe, 'ct_cli');
|
||||
@@ -1551,7 +1705,6 @@ if($config['cf_cert_use']) {
|
||||
$log_path = G5_LGXPAY_PATH . '/lgdacom/log';
|
||||
|
||||
if (!is_dir($log_path)) {
|
||||
|
||||
if (is_writable(G5_LGXPAY_PATH . '/lgdacom/')) {
|
||||
// 디렉토리가 없다면 생성합니다. (퍼미션도 변경하구요.)
|
||||
@mkdir($log_path, G5_DIR_PERMISSION);
|
||||
@@ -1586,4 +1739,4 @@ if (stripos($config['cf_image_extension'], "webp") !== false) {
|
||||
}
|
||||
}
|
||||
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+24
-21
@@ -1,44 +1,45 @@
|
||||
<?php
|
||||
$sub_menu = "100100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$cf_title = isset($_POST['cf_title']) ? strip_tags(clean_xss_attributes($_POST['cf_title'])) : '';
|
||||
$cf_admin = isset($_POST['cf_admin']) ? clean_xss_tags($_POST['cf_admin'], 1, 1) : '';
|
||||
$posts = array();
|
||||
|
||||
$mb = get_member($cf_admin);
|
||||
|
||||
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
||||
alert('최고관리자 회원아이디가 존재하지 않습니다.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$cf_social_servicelist = !empty($_POST['cf_social_servicelist']) ? implode(',', $_POST['cf_social_servicelist']) : '';
|
||||
|
||||
$check_keys = array('cf_lg_mid', 'cf_lg_mert_key', 'cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret','cf_cert_kg_cd','cf_cert_kg_mid');
|
||||
$check_keys = array('cf_cert_kcb_cd', 'cf_cert_kcp_cd', 'cf_cert_kcp_enckey', 'cf_editor', 'cf_recaptcha_site_key', 'cf_recaptcha_secret_key', 'cf_naver_clientid', 'cf_naver_secret', 'cf_facebook_appid', 'cf_facebook_secret', 'cf_twitter_key', 'cf_twitter_secret', 'cf_google_clientid', 'cf_google_secret', 'cf_googl_shorturl_apikey', 'cf_kakao_rest_key', 'cf_kakao_client_secret', 'cf_kakao_js_apikey', 'cf_payco_clientid', 'cf_payco_secret', 'cf_cert_kg_cd', 'cf_cert_kg_mid');
|
||||
|
||||
foreach ($check_keys as $key) {
|
||||
if (isset($_POST[$key]) && $_POST[$key]) {
|
||||
$posts[$key] = $_POST[$key] = preg_replace('/[^a-z0-9_\-\.]/i', '', $_POST[$key]);
|
||||
$_POST[$key] = preg_replace('/[^a-z0-9_\-\.]/i', '', $_POST[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$posts['cf_icode_server_port'] = $_POST['cf_icode_server_port'] = isset($_POST['cf_icode_server_port']) ? preg_replace('/[^0-9]/', '', $_POST['cf_icode_server_port']) : '7295';
|
||||
$_POST['cf_icode_server_port'] = isset($_POST['cf_icode_server_port']) ? preg_replace('/[^0-9]/', '', $_POST['cf_icode_server_port']) : '7295';
|
||||
|
||||
if (isset($_POST['cf_intercept_ip']) && $_POST['cf_intercept_ip']) {
|
||||
|
||||
$pattern = explode("\n", trim($_POST['cf_intercept_ip']));
|
||||
for ($i = 0; $i < count($pattern); $i++) {
|
||||
$pattern[$i] = trim($pattern[$i]);
|
||||
if (empty($pattern[$i]))
|
||||
if (empty($pattern[$i])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$pattern[$i] = str_replace(".", "\.", $pattern[$i]);
|
||||
$pattern[$i] = str_replace("+", "[0-9\.]+", $pattern[$i]);
|
||||
@@ -102,7 +103,8 @@ $check_keys = array(
|
||||
'cf_cert_find' => 'int',
|
||||
'cf_cert_ipin' => 'char',
|
||||
'cf_cert_hp' => 'char',
|
||||
'cf_cert_sa' => 'char',
|
||||
'cf_cert_simple' => 'char',
|
||||
'cf_cert_use_seed' => 'int',
|
||||
'cf_admin_email' => 'char',
|
||||
'cf_admin_email_name' => 'char',
|
||||
'cf_add_script' => 'text',
|
||||
@@ -162,24 +164,25 @@ for($i=1;$i<=10;$i++){
|
||||
|
||||
foreach ($check_keys as $k => $v) {
|
||||
if ($v === 'int') {
|
||||
$posts[$key] = $_POST[$k] = isset($_POST[$k]) ? (int) $_POST[$k] : 0;
|
||||
$_POST[$k] = isset($_POST[$k]) ? (int) $_POST[$k] : 0;
|
||||
} else {
|
||||
if (in_array($k, array('cf_analytics', 'cf_add_meta', 'cf_add_script', 'cf_stipulation', 'cf_privacy'))) {
|
||||
$posts[$key] = $_POST[$k] = isset($_POST[$k]) ? $_POST[$k] : '';
|
||||
$_POST[$k] = isset($_POST[$k]) ? $_POST[$k] : '';
|
||||
} else {
|
||||
$posts[$key] = $_POST[$k] = isset($_POST[$k]) ? strip_tags(clean_xss_attributes($_POST[$k])) : '';
|
||||
$_POST[$k] = isset($_POST[$k]) ? strip_tags(clean_xss_attributes($_POST[$k])) : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 본인확인을 사용할 경우 아이핀, 휴대폰인증 중 하나는 선택되어야 함
|
||||
if($_POST['cf_cert_use'] && !$_POST['cf_cert_ipin'] && !$_POST['cf_cert_hp'] && !$_POST['cf_cert_sa'])
|
||||
alert('본인확인을 위해 아이핀, 휴대폰 본인확인, KG이니시스 통합인증 서비스 중 하나이상 선택해 주십시오');
|
||||
if ($_POST['cf_cert_use'] && !$_POST['cf_cert_ipin'] && !$_POST['cf_cert_hp'] && !$_POST['cf_cert_simple']) {
|
||||
alert('본인확인을 위해 아이핀, 휴대폰 본인확인, KG이니시스 간편인증 서비스 중 하나 이상 선택해 주십시오.');
|
||||
}
|
||||
|
||||
if (!$_POST['cf_cert_use']) {
|
||||
$posts[$key] = $_POST['cf_cert_ipin'] = '';
|
||||
$posts[$key] = $_POST['cf_cert_hp'] = '';
|
||||
$posts[$key] = $_POST['cf_cert_sa'] = '';
|
||||
$_POST['cf_cert_ipin'] = '';
|
||||
$_POST['cf_cert_hp'] = '';
|
||||
$_POST['cf_cert_simple'] = '';
|
||||
}
|
||||
|
||||
$sql = " update {$g5['config_table']}
|
||||
@@ -280,13 +283,13 @@ $sql = " update {$g5['config_table']}
|
||||
cf_cert_find = '{$_POST['cf_cert_find']}',
|
||||
cf_cert_ipin = '{$_POST['cf_cert_ipin']}',
|
||||
cf_cert_hp = '{$_POST['cf_cert_hp']}',
|
||||
cf_cert_sa = '{$_POST['cf_cert_sa']}',
|
||||
cf_cert_simple = '{$_POST['cf_cert_simple']}',
|
||||
cf_cert_use_seed = '".(int)$_POST['cf_cert_use_seed']."',
|
||||
cf_cert_kg_cd = '{$_POST['cf_cert_kg_cd']}',
|
||||
cf_cert_kg_mid = '" . trim($_POST['cf_cert_kg_mid']) . "',
|
||||
cf_cert_kcb_cd = '{$_POST['cf_cert_kcb_cd']}',
|
||||
cf_cert_kcp_cd = '{$_POST['cf_cert_kcp_cd']}',
|
||||
cf_lg_mid = '{$_POST['cf_lg_mid']}',
|
||||
cf_lg_mert_key = '{$_POST['cf_lg_mert_key']}',
|
||||
cf_cert_kcp_enckey = '{$_POST['cf_cert_kcp_enckey']}',
|
||||
cf_cert_limit = '{$_POST['cf_cert_limit']}',
|
||||
cf_cert_req = '{$_POST['cf_cert_req']}',
|
||||
cf_sms_use = '{$_POST['cf_sms_use']}',
|
||||
|
||||
+39
-27
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$sub_menu = '300600';
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
|
||||
@@ -16,22 +16,31 @@ if(!sql_query(" select co_include_head from {$g5['content_table']} limit 1 ", fa
|
||||
|
||||
// html purifier 사용여부 필드
|
||||
if (!sql_query(" select co_tag_filter_use from {$g5['content_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||
ADD `co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `co_content` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['content_table']}`
|
||||
ADD `co_tag_filter_use` tinyint(4) NOT NULL DEFAULT '0' AFTER `co_content` ",
|
||||
true
|
||||
);
|
||||
sql_query(" update {$g5['content_table']} set co_tag_filter_use = '1' ");
|
||||
}
|
||||
|
||||
// 모바일 내용 추가
|
||||
if (!sql_query(" select co_mobile_content from {$g5['content_table']} limit 1", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||
ADD `co_mobile_content` longtext NOT NULL AFTER `co_content` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['content_table']}`
|
||||
ADD `co_mobile_content` longtext NOT NULL AFTER `co_content` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 스킨 설정 추가
|
||||
if (!sql_query(" select co_skin from {$g5['content_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['content_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['content_table']}`
|
||||
ADD `co_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_mobile_content`,
|
||||
ADD `co_mobile_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_skin` ", true);
|
||||
ADD `co_mobile_skin` varchar(255) NOT NULL DEFAULT '' AFTER `co_skin` ",
|
||||
true
|
||||
);
|
||||
sql_query(" update {$g5['content_table']} set co_skin = 'basic', co_mobile_skin = 'basic' ");
|
||||
}
|
||||
|
||||
@@ -39,18 +48,19 @@ $html_title = "내용";
|
||||
$g5['title'] = $html_title . ' 관리';
|
||||
$readonly = '';
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
if ($w == "u") {
|
||||
$html_title .= " 수정";
|
||||
$readonly = " readonly";
|
||||
|
||||
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
||||
$co = sql_fetch($sql);
|
||||
if (!$co['co_id'])
|
||||
if (!$co['co_id']) {
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
if (function_exists('check_case_exist_title')) check_case_exist_title($co, G5_CONTENT_DIR, false);
|
||||
|
||||
} else {
|
||||
$html_title .= ' 입력';
|
||||
$co = array(
|
||||
'co_id' => '',
|
||||
@@ -66,7 +76,7 @@ else
|
||||
);
|
||||
}
|
||||
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="frmcontentform" action="./contentformupdate.php" onsubmit="return frmcontentform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
|
||||
@@ -130,14 +140,14 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<th scope="row"><label for="co_include_head">상단 파일 경로</label></th>
|
||||
<td>
|
||||
<?php echo help("설정값이 없으면 기본 상단 파일을 사용합니다."); ?>
|
||||
<input type="text" name="co_include_head" value="<?php echo $co['co_include_head']; ?>" id="co_include_head" class="frm_input" size="60">
|
||||
<input type="text" name="co_include_head" value="<?php echo get_sanitize_input($co['co_include_head']); ?>" id="co_include_head" class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="co_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<?php echo help("설정값이 없으면 기본 하단 파일을 사용합니다."); ?>
|
||||
<input type="text" name="co_include_tail" value="<?php echo $co['co_include_tail']; ?>" id="co_include_tail" class="frm_input" size="60">
|
||||
<input type="text" name="co_include_tail" value="<?php echo get_sanitize_input($co['co_include_tail']); ?>" id="co_include_tail" class="frm_input" size="60">
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="admin_captcha_box" style="display:none;">
|
||||
@@ -146,7 +156,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<?php
|
||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
echo $captcha_html;
|
||||
@@ -165,10 +175,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
$himg_str = '';
|
||||
if (file_exists($himg)) {
|
||||
$size = @getimagesize($himg);
|
||||
if($size[0] && $size[0] > 750)
|
||||
if ($size[0] && $size[0] > 750) {
|
||||
$width = 750;
|
||||
else
|
||||
} else {
|
||||
$width = $size[0];
|
||||
}
|
||||
|
||||
echo '<input type="checkbox" name="co_himg_del" value="1" id="co_himg_del"> <label for="co_himg_del">삭제</label>';
|
||||
$himg_str = '<img src="' . G5_DATA_URL . '/content/' . $co['co_id'] . '_h" width="' . $width . '" alt="">';
|
||||
@@ -190,10 +201,11 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
$timg_str = '';
|
||||
if (file_exists($timg)) {
|
||||
$size = @getimagesize($timg);
|
||||
if($size[0] && $size[0] > 750)
|
||||
if ($size[0] && $size[0] > 750) {
|
||||
$width = 750;
|
||||
else
|
||||
} else {
|
||||
$width = $size[0];
|
||||
}
|
||||
|
||||
echo '<input type="checkbox" name="co_timg_del" value="1" id="co_timg_del"> <label for="co_timg_del">삭제</label>';
|
||||
$timg_str = '<img src="' . G5_DATA_URL . '/content/' . $co['co_id'] . '_t" width="' . $width . '" alt="">';
|
||||
@@ -227,12 +239,13 @@ function use_captcha_check(){
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: g5_admin_url + "/ajax.use_captcha.php",
|
||||
data: { admin_use_captcha: "1" },
|
||||
data: {
|
||||
admin_use_captcha: "1"
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
}
|
||||
success: function(data) {}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -267,8 +280,7 @@ jQuery(function($){
|
||||
}
|
||||
});
|
||||
|
||||
function frmcontentform_check(f)
|
||||
{
|
||||
function frmcontentform_check(f) {
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
@@ -295,4 +307,4 @@ function frmcontentform_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+31
-31
@@ -1,22 +1,25 @@
|
||||
<?php
|
||||
$sub_menu = '300600';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($w == "u" || $w == "d")
|
||||
if ($w == "u" || $w == "d") {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
if ($w == 'd')
|
||||
if ($w == 'd') {
|
||||
auth_check_menu($auth, $sub_menu, "d");
|
||||
else
|
||||
} else {
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$co_row = array('co_id' => '', 'co_include_head' => '', 'co_include_tail' => '');
|
||||
|
||||
if ($w == "" || $w == "u")
|
||||
{
|
||||
if(isset($_REQUEST['co_id']) && preg_match("/[^a-z0-9_]/i", $_REQUEST['co_id'])) alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
if ($w == "" || $w == "u") {
|
||||
if (isset($_REQUEST['co_id']) && preg_match("/[^a-z0-9_]/i", $_REQUEST['co_id'])) {
|
||||
alert("ID 는 영문자, 숫자, _ 만 가능합니다.");
|
||||
}
|
||||
|
||||
$sql = " select * from {$g5['content_table']} where co_id = '$co_id' ";
|
||||
$co_row = sql_fetch($sql);
|
||||
@@ -37,7 +40,7 @@ $co_mobile_skin = isset($_POST['co_mobile_skin']) ? clean_xss_tags($_POST['co_mo
|
||||
|
||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||
if (((isset($co_row['co_include_head']) && $co_row['co_include_head'] !== $co_include_head) || (isset($co_row['co_include_tail']) && $co_row['co_include_tail'] !== $co_include_tail)) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
include_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
|
||||
if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
@@ -47,13 +50,16 @@ if ((( isset($co_row['co_include_head']) && $co_row['co_include_head'] !== $co_i
|
||||
@mkdir(G5_DATA_PATH . "/content", G5_DIR_PERMISSION);
|
||||
@chmod(G5_DATA_PATH . "/content", G5_DIR_PERMISSION);
|
||||
|
||||
if ($co_himg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_h");
|
||||
if ($co_timg_del) @unlink(G5_DATA_PATH."/content/{$co_id}_t");
|
||||
if ($co_himg_del) {
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_h");
|
||||
}
|
||||
if ($co_timg_del) {
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_t");
|
||||
}
|
||||
|
||||
$error_msg = '';
|
||||
|
||||
if ($co_include_head) {
|
||||
|
||||
$file_ext = pathinfo($co_include_head, PATHINFO_EXTENSION);
|
||||
|
||||
if (!$file_ext || !in_array($file_ext, array('php', 'htm', 'html')) || !preg_match('/^.*\.(php|htm|html)$/i', $co_include_head)) {
|
||||
@@ -62,7 +68,6 @@ if( $co_include_head ){
|
||||
}
|
||||
|
||||
if ($co_include_tail) {
|
||||
|
||||
$file_ext = pathinfo($co_include_tail, PATHINFO_EXTENSION);
|
||||
|
||||
if (!$file_ext || !in_array($file_ext, array('php', 'htm', 'html')) || !preg_match('/^.*\.(php|htm|html)$/i', $co_include_tail)) {
|
||||
@@ -98,48 +103,45 @@ $sql_common = " co_include_head = '$co_include_head',
|
||||
co_skin = '$co_skin',
|
||||
co_mobile_skin = '$co_mobile_skin' ";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
if ($w == "") {
|
||||
$row = $co_row;
|
||||
if (isset($row['co_id']) && $row['co_id'])
|
||||
if (isset($row['co_id']) && $row['co_id']) {
|
||||
alert("이미 같은 ID로 등록된 내용이 있습니다.");
|
||||
}
|
||||
|
||||
$sql = " insert {$g5['content_table']}
|
||||
set co_id = '$co_id',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
run_event('admin_content_created', $co_id);
|
||||
} elseif ($w == "u") {
|
||||
$sql = " update {$g5['content_table']}
|
||||
set $sql_common
|
||||
where co_id = '$co_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
run_event('admin_content_updated', $co_id);
|
||||
} elseif ($w == "d") {
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_h");
|
||||
@unlink(G5_DATA_PATH . "/content/{$co_id}_t");
|
||||
|
||||
$sql = " delete from {$g5['content_table']} where co_id = '$co_id' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_content_deleted', $co_id);
|
||||
}
|
||||
|
||||
if(function_exists('get_admin_captcha_by'))
|
||||
if (function_exists('get_admin_captcha_by')) {
|
||||
get_admin_captcha_by('remove');
|
||||
}
|
||||
|
||||
g5_delete_cache_by_prefix('content-' . $co_id . '-');
|
||||
|
||||
if ($w == "" || $w == "u")
|
||||
{
|
||||
if ($_FILES['co_himg']['name'])
|
||||
{
|
||||
if ($w == "" || $w == "u") {
|
||||
if ($_FILES['co_himg']['name']) {
|
||||
$dest_path = G5_DATA_PATH . "/content/" . $co_id . "_h";
|
||||
@move_uploaded_file($_FILES['co_himg']['tmp_name'], $dest_path);
|
||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||
}
|
||||
if ($_FILES['co_timg']['name'])
|
||||
{
|
||||
if ($_FILES['co_timg']['name']) {
|
||||
$dest_path = G5_DATA_PATH . "/content/" . $co_id . "_t";
|
||||
@move_uploaded_file($_FILES['co_timg']['tmp_name'], $dest_path);
|
||||
@chmod($dest_path, G5_FILE_PERMISSION);
|
||||
@@ -150,8 +152,6 @@ if ($w == "" || $w == "u")
|
||||
} else {
|
||||
goto_url("./contentform.php?w=u&co_id=$co_id");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
goto_url("./contentlist.php");
|
||||
}
|
||||
+11
-6
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '300600';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "r");
|
||||
|
||||
@@ -12,7 +12,8 @@ if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
||||
if (sql_query(" DESCRIBE {$g5['g5_shop_content_table']} ", false)) {
|
||||
sql_query(" ALTER TABLE {$g5['g5_shop_content_table']} RENAME TO `{$g5['content_table']}` ;", false);
|
||||
} else {
|
||||
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` (
|
||||
$query_cp = sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['content_table']}` (
|
||||
`co_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`co_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`co_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
@@ -21,7 +22,9 @@ if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
||||
`co_include_head` varchar(255) NOT NULL,
|
||||
`co_include_tail` varchar(255) NOT NULL,
|
||||
PRIMARY KEY (`co_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
||||
true
|
||||
);
|
||||
|
||||
// 내용관리 생성
|
||||
sql_query(" insert into `{$g5['content_table']}` set co_id = 'company', co_html = '1', co_subject = '회사소개', co_content= '<p align=center><b>회사소개에 대한 내용을 입력하십시오.</b></p>' ", false);
|
||||
@@ -31,7 +34,7 @@ if(!sql_query(" DESCRIBE {$g5['content_table']} ", false)) {
|
||||
}
|
||||
|
||||
$g5['title'] = '내용관리';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
|
||||
$sql_common = " from {$g5['content_table']} ";
|
||||
|
||||
@@ -42,7 +45,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = "select * $sql_common order by co_id limit $from_record, {$config['cf_page_rows']} ";
|
||||
@@ -94,4 +99,4 @@ $result = sql_query($sql);
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+8
-20
@@ -178,7 +178,7 @@ a.btn_submit{background:#ff4081;color:#fff}
|
||||
|
||||
.btn_add01 {text-align:right}
|
||||
.btn_add01 a, .btn_add01 button {padding:10px;border:1px solid #ccc;background:#f0f0f0;text-decoration:none;cursor:pointer}
|
||||
.btn_add01 a {display:inline-block;vertical-align:middle}btn_confirm
|
||||
.btn_add01 a {display:inline-block;vertical-align:middle}
|
||||
.btn_add01 button {margin:0}
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ a.btn_ov02:hover,a.ov_listall:hover{background:#3f51b5}
|
||||
|
||||
/*form*/
|
||||
.sound_only {display:inline-block !important;position:absolute;top:0;left:0;margin:0 !important;padding:0 !important;width:1px !important;height:1px !important;font-size:0;line-height:0;border:0 !important;overflow:hidden !important}
|
||||
.frm_input{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||
.frm_input{padding:0 5px;height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||
.frm_input_full{width:100%}
|
||||
.required{background:url('../img/wrest.gif') top right no-repeat #fff !important}
|
||||
select{height:35px;line-height:32px;border:1px solid #d5d5d5;}
|
||||
@@ -447,6 +447,7 @@ tfoot th {}
|
||||
.td_delino {width:130px}
|
||||
.td_device {width:70px;text-align:center}
|
||||
.td_etc {width:80px;text-align:center}
|
||||
.td_use {width:80px;text-align:center}
|
||||
.td_extra label {display:inline-block;width:100px}
|
||||
.td_extra input {margin-right:5px;width:130px}
|
||||
.td_grid {width:60px;text-align:center}
|
||||
@@ -623,6 +624,7 @@ a.lg_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#ED008C
|
||||
a.kg_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#4A2C7C;color:#fff;font-weight:normal;text-decoration:none}
|
||||
a.kakao_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#FDDC2F;color:#3B1E1E;font-weight:normal;text-decoration:none}
|
||||
a.naver_btn {display:inline-block;margin:5px 0 0;padding:5px 10px;background:#00C73C;color:#fff;font-weight:normal;text-decoration:none}
|
||||
a.nicepay_btn{display:inline-block;margin:5px 0 0;padding:5px 10px;background:#0057bf;color:#fff;font-weight:normal;text-decoration:none}
|
||||
|
||||
.scf_cardtest {margin:5px 0 0}
|
||||
.scf_cardtest_btn {margin-left:5px;vertical-align:middle}
|
||||
@@ -665,6 +667,7 @@ ul.de_pg_tab li.tab-current a{background:#2CC185;color:#fff}
|
||||
.inicis_info_fld th{background-color:#F6F1FF}
|
||||
.kakao_info_fld th{background-color:#FFFCED}
|
||||
.naver_info_fld th{background-color:#F3FFF3}
|
||||
.nicepay_info_fld th{background-color:#d1e6ff}
|
||||
|
||||
/* 주문내역 */
|
||||
#sodr_list td {text-align:center}
|
||||
@@ -876,20 +879,6 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
.sbn_img {text-align:center}
|
||||
.sbn_image {display:none;margin:0 0 10px;text-align:left}
|
||||
|
||||
/* SMS문자전송 */
|
||||
#sms_send {padding-bottom:100px;zoom:1}
|
||||
#sms_send:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
|
||||
#sms_frm {float:left;width:650px}
|
||||
#sms_frm table {margin:0 0 30px}
|
||||
#sms_frm textarea {height:70px}
|
||||
|
||||
#sms_sm {position:relative;float:left;width:229px;height:418px;background:url('../shop_admin/img/mobilebg.jpg') no-repeat}
|
||||
#sms_sm_text {position:absolute;top:75px;left:27px;width:180px;color:#fff;font-size:2em;word-break:break-all}
|
||||
#sms_sm p {position:absolute;bottom:-70px;left:0;font-size:0.95em;letter-spacing:-0.1em}
|
||||
|
||||
#sms_send .local_desc01 {min-width:320px}
|
||||
|
||||
/* 가격비교사이트 */
|
||||
#anc_pricecompare_info li {margin:5px 0 5px -1px}
|
||||
|
||||
@@ -905,10 +894,8 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
.new_win_ul {margin:-20px 0 20px 0;padding:0 0 0 20px;border-bottom:1px solid #515151;background:#484848;list-style:none;zoom:1}
|
||||
.new_win_ul:after {display:block;visibility:hidden;clear:both;content:""}
|
||||
.new_win_ul li {float:left;margin-left:-1px}
|
||||
|
||||
.new_win_ul a {display:block;padding:10px 10px 8px;border-right:1px solid #595959;border-left:1px solid #595959;color:#fff;font-family:dotum;font-weight:bold;text-decoration:none}
|
||||
|
||||
|
||||
.new_win_desc {margin:0 }
|
||||
.new_win .anchor {margin:0 0 5px}
|
||||
|
||||
@@ -918,12 +905,13 @@ strong.sodr_nonpay {display:block;padding:5px 0;text-align:right}
|
||||
.new_win .win_btn a {display:inline-block;padding:0 10px;height:30px;background:#4b545e;color:#fff;vertical-align:middle;line-height:2.4em}
|
||||
.new_win .win_btn a:focus, .new_win .win_btn a:hover {text-decoration:none}
|
||||
|
||||
|
||||
.new_win .local_sch, .new_win .local_cmd, .new_win .local_desc01, .new_win .local_desc02, .new_win .local_ov {margin:10px}
|
||||
|
||||
.new_win_con{margin: 10px; background:#fff;padding:20px}
|
||||
.new_win_con .table_form table th{width:120px}
|
||||
|
||||
.new_win .btn_confirm {text-align:center;}
|
||||
|
||||
/* 자바스크립트 alert 대안 */
|
||||
#validation_check {margin:100px auto;width:500px}
|
||||
#validation_check h1 {margin-bottom:20px;font-size:1.3em}
|
||||
@@ -1076,7 +1064,7 @@ box-shadow: 1px 2px 5px rgba(150,150,150,0.5);z-index:1000}
|
||||
#theme_detail:after{display:block;visibility:hidden;clear:both;content:""}
|
||||
#theme_detail h2{font-size:1.25em;background:#fff;padding:0 15px;line-height:40px;border-bottom:1px solid #d8d8d8;margin:0}
|
||||
.theme_dt_img{float:left;padding:20px}
|
||||
.theme_dt_img img{border:1px solid #aaa;}
|
||||
.theme_dt_img img{border:1px solid #aaa;max-width:600px;max-height:460px}
|
||||
.theme_dt_if{float:left;width:235px;padding:20px 0}
|
||||
.theme_dt_if table{width:100%;border-collapse:collapse;margin:15px 0 0 ;font-size:0.92em}
|
||||
.theme_dt_if table th{padding:5px;background:#fff;border-bottom:1px solid #f3f3f3;vertical-align:top;color:#3f51b5}
|
||||
|
||||
+63
-1
@@ -197,7 +197,7 @@ if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
|
||||
|
||||
$result = sql_query("describe `{$g5['g5_shop_post_log_table']}`");
|
||||
while ($row = sql_fetch_array($result)){
|
||||
if( $row['Field'] === 'ol_msg' && $row['Type'] === 'varchar(255)' ){
|
||||
if( isset($row['Field']) && $row['Field'] === 'ol_msg' && $row['Type'] === 'varchar(255)' ){
|
||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` MODIFY ol_msg TEXT NOT NULL;", false);
|
||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` DROP PRIMARY KEY;", false);
|
||||
sql_query("ALTER TABLE `{$g5['g5_shop_post_log_table']}` ADD `log_id` int(11) NOT NULL AUTO_INCREMENT, ADD PRIMARY KEY (`log_id`);", false);
|
||||
@@ -205,6 +205,68 @@ if (defined('G5_USE_SHOP') && G5_USE_SHOP) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($default['de_id'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD COLUMN `de_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
||||
ADD PRIMARY KEY (`de_id`); ", true);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
}
|
||||
|
||||
// auth.au_menu 컬럼 크기 조정
|
||||
$sql = " SHOW COLUMNS FROM `{$g5['auth_table']}` LIKE 'au_menu' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (
|
||||
stripos($row['Type'], 'varchar') !== false
|
||||
&& (int) preg_replace('/[^0-9]/', '', $row['Type']) < 50
|
||||
) {
|
||||
sql_query(" ALTER TABLE `{$g5['auth_table']}` CHANGE `au_menu` `au_menu` VARCHAR(50) NOT NULL; ", true);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
|
||||
// qa config 테이블 auto id key 추가
|
||||
$row = sql_fetch("select * from `{$g5['qa_config_table']}` limit 1");
|
||||
if (!isset($row['qa_id'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['qa_config_table']}` ADD COLUMN `qa_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
||||
ADD PRIMARY KEY (`qa_id`); ", true);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
|
||||
// config 기본 테이블 auto id key 추가
|
||||
if (!isset($config['cf_id'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['config_table']}`
|
||||
ADD COLUMN `cf_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
||||
ADD PRIMARY KEY (`cf_id`); ", true);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
|
||||
// login 테이블 auto id key 추가
|
||||
$row = sql_fetch("select * from `{$g5['login_table']}` limit 1");
|
||||
if (!isset($row['lo_id'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['login_table']}`
|
||||
ADD COLUMN `lo_id` INT(11) NOT NULL AUTO_INCREMENT FIRST,
|
||||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`lo_id`),
|
||||
ADD UNIQUE KEY `lo_ip_unique` (`lo_ip`) ", true);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
|
||||
// visit 테이블 auto id key 로 변경
|
||||
$result = sql_query("describe `{$g5['visit_table']}`");
|
||||
while ($row = sql_fetch_array($result)){
|
||||
if (isset($row['Field']) && $row['Field'] === 'vi_id' && (isset($row['Default']) && $row['Default'] == 0)){
|
||||
sql_query("ALTER TABLE `{$g5['visit_table']}`
|
||||
CHANGE COLUMN `vi_id` `vi_id` INT(11) NOT NULL AUTO_INCREMENT;
|
||||
", false);
|
||||
|
||||
$is_check = true;
|
||||
}
|
||||
}
|
||||
|
||||
$is_check = run_replace('admin_dbupgrade', $is_check);
|
||||
|
||||
@@ -30,6 +30,7 @@ if ($w == "")
|
||||
sql_query($sql);
|
||||
|
||||
$fa_id = sql_insert_id();
|
||||
run_event('admin_faq_item_created', $fa_id, $fm_id);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
@@ -37,11 +38,14 @@ else if ($w == "u")
|
||||
set $sql_common
|
||||
where fa_id = '$fa_id' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_faq_item_updated', $fa_id, $fm_id);
|
||||
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
$sql = " delete from {$g5['faq_table']} where fa_id = '$fa_id' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_faq_item_deleted', $fa_id, $fm_id);
|
||||
}
|
||||
|
||||
if ($w == 'd')
|
||||
|
||||
+5
-7
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '300700';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "r");
|
||||
|
||||
@@ -10,9 +10,9 @@ if (isset($_REQUEST['fm_subject'])){
|
||||
$g5['title'] .= ' : ' . $fm_subject;
|
||||
}
|
||||
|
||||
$fm_id = (int) $fm_id;
|
||||
$fm_id = isset($fm_id) ? (int) $fm_id : 0;
|
||||
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
|
||||
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
@@ -57,8 +57,7 @@ $result = sql_query($sql);
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$row1 = sql_fetch(" select COUNT(*) as cnt from {$g5['faq_table']} where fm_id = '{$row['fm_id']}' ");
|
||||
$cnt = $row1['cnt'];
|
||||
|
||||
@@ -81,7 +80,6 @@ $result = sql_query($sql);
|
||||
<a href="./faqformupdate.php?w=d&fm_id=<?php echo $row['fm_id']; ?>&fa_id=<?php echo $row['fa_id']; ?>" onclick="return delete_confirm(this);" class="btn btn_02"><span class="sound_only"><?php echo $fa_subject; ?> </span>삭제</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
@@ -96,4 +94,4 @@ $result = sql_query($sql);
|
||||
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+27
-19
@@ -1,25 +1,24 @@
|
||||
<?php
|
||||
$sub_menu = '300700';
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
|
||||
$html_title = 'FAQ';
|
||||
|
||||
$fm_id = isset($_GET['fm_id']) ? preg_replace('/[^0-9]/', '', $_GET['fm_id']) : 0;
|
||||
$fm_id = isset($_GET['fm_id']) ? strval(preg_replace('/[^0-9]/', '', $_GET['fm_id'])) : 0;
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
if ($w == "u") {
|
||||
$html_title .= ' 수정';
|
||||
$readonly = ' readonly';
|
||||
|
||||
$sql = " select * from {$g5['faq_master_table']} where fm_id = '$fm_id' ";
|
||||
$fm = sql_fetch($sql);
|
||||
if (!$fm['fm_id']) alert('등록된 자료가 없습니다.');
|
||||
if (!$fm['fm_id']) {
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$html_title .= ' 입력';
|
||||
$fm = array('fm_order' => '', 'fm_subject' => '', 'fm_id' => 0, 'fm_head_html' => '', 'fm_tail_html' => '', 'fm_mobile_head_html' => '', 'fm_mobile_tail_html' => '');
|
||||
}
|
||||
@@ -28,12 +27,15 @@ $g5['title'] = $html_title.' 관리';
|
||||
|
||||
// 모바일 상하단 내용 필드추가
|
||||
if (!sql_query(" select fm_mobile_head_html from {$g5['faq_master_table']} limit 1 ", false)) {
|
||||
sql_query(" ALTER TABLE `{$g5['faq_master_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['faq_master_table']}`
|
||||
ADD `fm_mobile_head_html` text NOT NULL AFTER `fm_tail_html`,
|
||||
ADD `fm_mobile_tail_html` text NOT NULL AFTER `fm_mobile_head_html` ", true);
|
||||
ADD `fm_mobile_tail_html` text NOT NULL AFTER `fm_mobile_head_html` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="frmfaqmasterform" action="./faqmasterformupdate.php" onsubmit="return frmfaqmasterform_check(this);" method="post" enctype="MULTIPART/FORM-DATA">
|
||||
@@ -73,13 +75,16 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<?php
|
||||
$himg = G5_DATA_PATH . '/faq/' . $fm['fm_id'] . '_h';
|
||||
$himg_str = '';
|
||||
$width = 0;
|
||||
if (file_exists($himg)) {
|
||||
$size = @getimagesize($himg);
|
||||
if($size[0] && $size[0] > 750)
|
||||
if ($size) {
|
||||
if ($size[0] && $size[0] > 750) {
|
||||
$width = 750;
|
||||
else
|
||||
} else {
|
||||
$width = $size[0];
|
||||
|
||||
}
|
||||
}
|
||||
echo '<input type="checkbox" name="fm_himg_del" value="1" id="fm_himg_del"> <label for="fm_himg_del">삭제</label>';
|
||||
$himg_str = '<img src="' . G5_DATA_URL . '/faq/' . $fm['fm_id'] . '_h" width="' . $width . '" alt="">';
|
||||
}
|
||||
@@ -98,12 +103,16 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
<?php
|
||||
$timg = G5_DATA_PATH . '/faq/' . $fm['fm_id'] . '_t';
|
||||
$timg_str = '';
|
||||
$width = 0;
|
||||
if (file_exists($timg)) {
|
||||
$size = @getimagesize($timg);
|
||||
if($size[0] && $size[0] > 750)
|
||||
if ($size) {
|
||||
if ($size[0] && $size[0] > 750) {
|
||||
$width = 750;
|
||||
else
|
||||
} else {
|
||||
$width = $size[0];
|
||||
}
|
||||
}
|
||||
|
||||
echo '<input type="checkbox" name="fm_timg_del" value="1" id="fm_timg_del"><label for="fm_timg_del">삭제</label>';
|
||||
$timg_str = '<img src="' . G5_DATA_URL . '/faq/' . $fm['fm_id'] . '_t" width="' . $width . '" alt="">';
|
||||
@@ -152,8 +161,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function frmfaqmasterform_check(f)
|
||||
{
|
||||
function frmfaqmasterform_check(f) {
|
||||
<?php echo get_editor_js('fm_head_html'); ?>
|
||||
<?php echo get_editor_js('fm_tail_html'); ?>
|
||||
<?php echo get_editor_js('fm_mobile_head_html'); ?>
|
||||
@@ -164,4 +172,4 @@ function frmfaqmasterform_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+24
-18
@@ -1,14 +1,16 @@
|
||||
<?php
|
||||
$sub_menu = '300700';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($w == "u" || $w == "d")
|
||||
if ($w == "u" || $w == "d") {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
if ($w == 'd')
|
||||
if ($w == 'd') {
|
||||
auth_check_menu($auth, $sub_menu, "d");
|
||||
else
|
||||
} else {
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
@@ -25,8 +27,12 @@ $fm_mobile_head_html = isset($_POST['fm_mobile_head_html']) ? $_POST['fm_mobile_
|
||||
$fm_mobile_tail_html = isset($_POST['fm_mobile_tail_html']) ? $_POST['fm_mobile_tail_html'] : '';
|
||||
$fm_order = isset($_POST['fm_order']) ? (int) $_POST['fm_order'] : 0;
|
||||
|
||||
if ($fm_himg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_h");
|
||||
if ($fm_timg_del) @unlink(G5_DATA_PATH."/faq/{$fm_id}_t");
|
||||
if ($fm_himg_del) {
|
||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_h");
|
||||
}
|
||||
if ($fm_timg_del) {
|
||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_t");
|
||||
}
|
||||
|
||||
$sql_common = " set fm_subject = '$fm_subject',
|
||||
fm_head_html = '$fm_head_html',
|
||||
@@ -35,8 +41,7 @@ $sql_common = " set fm_subject = '$fm_subject',
|
||||
fm_mobile_tail_html = '$fm_mobile_tail_html',
|
||||
fm_order = '$fm_order' ";
|
||||
|
||||
if ($w == "")
|
||||
{
|
||||
if ($w == "") {
|
||||
$sql = " alter table {$g5['faq_master_table']} auto_increment=1 ";
|
||||
sql_query($sql);
|
||||
|
||||
@@ -44,14 +49,14 @@ if ($w == "")
|
||||
sql_query($sql);
|
||||
|
||||
$fm_id = sql_insert_id();
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
run_event('admin_faq_master_created', $fm_id);
|
||||
|
||||
} elseif ($w == "u") {
|
||||
$sql = " update {$g5['faq_master_table']} $sql_common where fm_id = '$fm_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
run_event('admin_faq_master_updated', $fm_id);
|
||||
|
||||
} elseif ($w == "d") {
|
||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_h");
|
||||
@unlink(G5_DATA_PATH . "/faq/{$fm_id}_t");
|
||||
|
||||
@@ -62,10 +67,11 @@ else if ($w == "d")
|
||||
// FAQ상세삭제
|
||||
$sql = " delete from {$g5['faq_table']} where fm_id = '$fm_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
run_event('admin_faq_master_deleted', $fm_id);
|
||||
}
|
||||
|
||||
if ($w == "" || $w == "u")
|
||||
{
|
||||
if ($w == "" || $w == "u") {
|
||||
if ($_FILES['fm_himg']['name']) {
|
||||
$dest_path = G5_DATA_PATH . "/faq/" . $fm_id . "_h";
|
||||
@move_uploaded_file($_FILES['fm_himg']['tmp_name'], $dest_path);
|
||||
@@ -78,6 +84,6 @@ if ($w == "" || $w == "u")
|
||||
}
|
||||
|
||||
goto_url("./faqmasterform.php?w=u&fm_id=$fm_id");
|
||||
}
|
||||
else
|
||||
} else {
|
||||
goto_url("./faqmasterlist.php");
|
||||
}
|
||||
|
||||
+19
-9
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '300700';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "r");
|
||||
|
||||
@@ -14,14 +14,17 @@ if(!sql_query(" DESCRIBE {$g5['faq_master_table']} ", false)) {
|
||||
if (sql_query(" DESCRIBE {$g5['g5_shop_faq_master_table']} ", false)) {
|
||||
sql_query(" ALTER TABLE {$g5['g5_shop_faq_master_table']} RENAME TO `{$g5['faq_master_table']}` ;", false);
|
||||
} else {
|
||||
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` (
|
||||
$query_cp = sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['faq_master_table']}` (
|
||||
`fm_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`fm_subject` varchar(255) NOT NULL DEFAULT '',
|
||||
`fm_head_html` text NOT NULL,
|
||||
`fm_tail_html` text NOT NULL,
|
||||
`fm_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`fm_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
||||
true
|
||||
);
|
||||
}
|
||||
// FAQ Master
|
||||
sql_query(" insert into `{$g5['faq_master_table']}` set fm_id = '1', fm_subject = '자주하시는 질문' ", false);
|
||||
@@ -32,7 +35,8 @@ if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) {
|
||||
if (sql_query(" DESCRIBE {$g5['g5_shop_faq_table']} ", false)) {
|
||||
sql_query(" ALTER TABLE {$g5['g5_shop_faq_table']} RENAME TO `{$g5['faq_table']}` ;", false);
|
||||
} else {
|
||||
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` (
|
||||
$query_cp = sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['faq_table']}` (
|
||||
`fa_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`fm_id` int(11) NOT NULL DEFAULT '0',
|
||||
`fa_subject` text NOT NULL,
|
||||
@@ -40,12 +44,14 @@ if(!sql_query(" DESCRIBE {$g5['faq_table']} ", false)) {
|
||||
`fa_order` int(11) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`fa_id`),
|
||||
KEY `fm_id` (`fm_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$g5['title'] = 'FAQ관리';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
|
||||
$sql_common = " from {$g5['faq_master_table']} ";
|
||||
|
||||
@@ -56,7 +62,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = "select * $sql_common order by fm_order, fm_id limit $from_record, {$config['cf_page_rows']} ";
|
||||
@@ -64,7 +72,9 @@ $result = sql_query($sql);
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
<?php if ($page > 1) {?><a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">처음으로</a><?php } ?>
|
||||
<?php if ($page > 1) { ?>
|
||||
<a href="<?php echo $_SERVER['SCRIPT_NAME']; ?>">처음으로</a>
|
||||
<?php } ?>
|
||||
<span class="btn_ov01"><span class="ov_txt"> 전체 FAQ </span><span class="ov_num"> <?php echo $total_count; ?>건</span></span>
|
||||
</div>
|
||||
|
||||
@@ -124,4 +134,4 @@ $result = sql_query($sql);
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page="); ?>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+80
-54
@@ -1,25 +1,34 @@
|
||||
<?php
|
||||
$sub_menu = '100000';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
@require_once './safe_check.php';
|
||||
|
||||
@include_once('./safe_check.php');
|
||||
if (function_exists('social_log_file_delete')) {
|
||||
social_log_file_delete(86400); //소셜로그인 디버그 파일 24시간 지난것은 삭제
|
||||
//소셜로그인 디버그 파일 24시간 지난것은 삭제
|
||||
social_log_file_delete(86400);
|
||||
}
|
||||
|
||||
$g5['title'] = '관리자메인';
|
||||
include_once ('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$new_member_rows = 5;
|
||||
$new_point_rows = 5;
|
||||
$new_write_rows = 5;
|
||||
|
||||
$addtional_content_before = run_replace('adm_index_addtional_content_before', '', $is_admin, $auth, $member);
|
||||
if ($addtional_content_before) {
|
||||
echo $addtional_content_before;
|
||||
}
|
||||
|
||||
if (!auth_check_menu($auth, '200100', 'r', true)) {
|
||||
$sql_common = " from {$g5['member_table']} ";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||
}
|
||||
|
||||
if (!$sst) {
|
||||
$sst = "mb_datetime";
|
||||
@@ -28,7 +37,7 @@ if (!$sst) {
|
||||
|
||||
$sql_order = " order by {$sst} {$sod} ";
|
||||
|
||||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
@@ -38,11 +47,11 @@ $row = sql_fetch($sql);
|
||||
$leave_count = $row['cnt'];
|
||||
|
||||
// 차단회원수
|
||||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} ";
|
||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} and mb_intercept_date <> '' {$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
$intercept_count = $row['cnt'];
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} ";
|
||||
$sql = " SELECT * {$sql_common} {$sql_search} {$sql_order} limit {$new_member_rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$colspan = 12;
|
||||
@@ -73,22 +82,19 @@ $colspan = 12;
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
// 접근가능한 그룹수
|
||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$sql2 = " SELECT count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$group = "";
|
||||
if ($row2['cnt'])
|
||||
if ($row2['cnt']) {
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id=' . $row['mb_id'] . '">' . $row2['cnt'] . '</a>';
|
||||
}
|
||||
|
||||
if ($is_admin == 'group')
|
||||
{
|
||||
if ($is_admin == 'group') {
|
||||
$s_mod = '';
|
||||
$s_del = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$s_mod = '<a href="./member_form.php?$qstr&w=u&mb_id=' . $row['mb_id'] . '">수정</a>';
|
||||
$s_del = '<a href="./member_delete.php?' . $qstr . '&w=d&mb_id=' . $row['mb_id'] . '&url=' . $_SERVER['SCRIPT_NAME'] . '" onclick="return delete_confirm(this);">삭제</a>';
|
||||
}
|
||||
@@ -104,7 +110,9 @@ $colspan = 12;
|
||||
<tr>
|
||||
<td class="td_mbid"><?php echo $mb_id ?></td>
|
||||
<td class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
||||
<td class="td_mbname sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||
<td class="td_mbname sv_use">
|
||||
<div><?php echo $mb_nick ?></div>
|
||||
</td>
|
||||
<td class="td_num"><?php echo $row['mb_level'] ?></td>
|
||||
<td><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo number_format($row['mb_point']) ?></a></td>
|
||||
<td class="td_boolean"><?php echo $row['mb_mailling'] ? '예' : '아니오'; ?></td>
|
||||
@@ -115,8 +123,9 @@ $colspan = 12;
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -125,23 +134,28 @@ $colspan = 12;
|
||||
<div class="btn_list03 btn_list">
|
||||
<a href="./member_list.php">회원 전체보기</a>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<?php
|
||||
} //endif 최신 회원
|
||||
|
||||
if (!auth_check_menu($auth, '300100', 'r', true)) {
|
||||
|
||||
$sql_common = " from {$g5['board_new_table']} a, {$g5['board_table']} b, {$g5['group_table']} c where a.bo_table = b.bo_table and b.gr_id = c.gr_id ";
|
||||
|
||||
if ($gr_id)
|
||||
$sql_common .= " and b.gr_id = '$gr_id' ";
|
||||
if ($gr_id) {
|
||||
$sql_common .= " and b.gr_id = '{$gr_id}' ";
|
||||
}
|
||||
if (isset($view) && $view) {
|
||||
if ($view == 'w')
|
||||
if ($view == 'w') {
|
||||
$sql_common .= " and a.wr_id = a.wr_parent ";
|
||||
else if ($view == 'c')
|
||||
} elseif ($view == 'c') {
|
||||
$sql_common .= " and a.wr_id <> a.wr_parent ";
|
||||
}
|
||||
}
|
||||
$sql_order = " order by a.bn_id desc ";
|
||||
|
||||
$sql = " select count(*) as cnt {$sql_common} ";
|
||||
$sql = " SELECT count(*) as cnt {$sql_common} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
@@ -165,58 +179,60 @@ $colspan = 5;
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$sql = " select a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
||||
$sql = " SELECT a.*, b.bo_subject, c.gr_subject, c.gr_id {$sql_common} {$sql_order} limit {$new_write_rows} ";
|
||||
$result = sql_query($sql);
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$tmp_write_table = $g5['write_prefix'] . $row['bo_table'];
|
||||
|
||||
if ($row['wr_id'] == $row['wr_parent']) // 원글
|
||||
{
|
||||
if ($row['wr_id'] == $row['wr_parent']) {
|
||||
// 원글
|
||||
$comment = "";
|
||||
$comment_link = "";
|
||||
$row2 = sql_fetch(" select * from $tmp_write_table where wr_id = '{$row['wr_id']}' ");
|
||||
$row2 = sql_fetch(" SELECT * from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$name = get_sideview($row2['mb_id'], get_text(cut_str($row2['wr_name'], $config['cf_cut_name'])), $row2['wr_email'], $row2['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row2['wr_datetime'], 0, 10);
|
||||
$datetime2 = $row2['wr_datetime'];
|
||||
if ($datetime == G5_TIME_YMD)
|
||||
if ($datetime == G5_TIME_YMD) {
|
||||
$datetime2 = substr($datetime2, 11, 5);
|
||||
else
|
||||
} else {
|
||||
$datetime2 = substr($datetime2, 5, 5);
|
||||
|
||||
}
|
||||
else // 코멘트
|
||||
{
|
||||
} else {
|
||||
// 코멘트
|
||||
$comment = '댓글. ';
|
||||
$comment_link = '#c_' . $row['wr_id'];
|
||||
$row2 = sql_fetch(" select * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||
$row3 = sql_fetch(" select mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||
$row2 = sql_fetch(" SELECT * from {$tmp_write_table} where wr_id = '{$row['wr_parent']}' ");
|
||||
$row3 = sql_fetch(" SELECT mb_id, wr_name, wr_email, wr_homepage, wr_datetime from {$tmp_write_table} where wr_id = '{$row['wr_id']}' ");
|
||||
|
||||
$name = get_sideview($row3['mb_id'], get_text(cut_str($row3['wr_name'], $config['cf_cut_name'])), $row3['wr_email'], $row3['wr_homepage']);
|
||||
// 당일인 경우 시간으로 표시함
|
||||
$datetime = substr($row3['wr_datetime'], 0, 10);
|
||||
$datetime2 = $row3['wr_datetime'];
|
||||
if ($datetime == G5_TIME_YMD)
|
||||
if ($datetime == G5_TIME_YMD) {
|
||||
$datetime2 = substr($datetime2, 11, 5);
|
||||
else
|
||||
} else {
|
||||
$datetime2 = substr($datetime2, 5, 5);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_category"><a href="<?php echo G5_BBS_URL ?>/new.php?gr_id=<?php echo $row['gr_id'] ?>"><?php echo cut_str($row['gr_subject'], 10) ?></a></td>
|
||||
<td class="td_category"><a href="<?php echo get_pretty_url($row['bo_table']) ?>"><?php echo cut_str($row['bo_subject'], 20) ?></a></td>
|
||||
<td><a href="<?php echo get_pretty_url($row['bo_table'], $row2['wr_id']); ?><?php echo $comment_link ?>"><?php echo $comment ?><?php echo conv_subject($row2['wr_subject'], 100) ?></a></td>
|
||||
<td class="td_mbname"><div><?php echo $name ?></div></td>
|
||||
<td class="td_mbname">
|
||||
<div><?php echo $name ?></div>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo $datetime ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -228,15 +244,19 @@ $colspan = 5;
|
||||
</section>
|
||||
|
||||
<?php
|
||||
} //endif 최근게시물
|
||||
|
||||
if (!auth_check_menu($auth, '200200', 'r', true)) {
|
||||
|
||||
$sql_common = " from {$g5['point_table']} ";
|
||||
$sql_search = " where (1) ";
|
||||
$sql_order = " order by po_id desc ";
|
||||
|
||||
$sql = " select count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||
$sql = " SELECT count(*) as cnt {$sql_common} {$sql_search} {$sql_order} ";
|
||||
$row = sql_fetch($sql);
|
||||
$total_count = $row['cnt'];
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$new_point_rows} ";
|
||||
$sql = " SELECT * {$sql_common} {$sql_search} {$sql_order} limit {$new_point_rows} ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$colspan = 7;
|
||||
@@ -265,19 +285,16 @@ $colspan = 7;
|
||||
<tbody>
|
||||
<?php
|
||||
$row2['mb_id'] = '';
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
if ($row2['mb_id'] != $row['mb_id'])
|
||||
{
|
||||
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
if ($row2['mb_id'] != $row['mb_id']) {
|
||||
$sql2 = " SELECT mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
|
||||
$link1 = $link2 = "";
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table'])
|
||||
{
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
||||
$link1 = '<a href="' . get_pretty_url($row['po_rel_table'], $row['po_rel_id']) . '" target="_blank">';
|
||||
$link2 = '</a>';
|
||||
}
|
||||
@@ -286,7 +303,9 @@ $colspan = 7;
|
||||
<tr>
|
||||
<td class="td_mbid"><a href="./point_list.php?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
||||
<td class="td_mbname"><?php echo get_text($row2['mb_name']); ?></td>
|
||||
<td class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||
<td class="td_name sv_use">
|
||||
<div><?php echo $mb_nick ?></div>
|
||||
</td>
|
||||
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
||||
<td><?php echo $link1 . $row['po_content'] . $link2 ?></td>
|
||||
<td class="td_numbig"><?php echo number_format($row['po_point']) ?></td>
|
||||
@@ -296,8 +315,9 @@ $colspan = 7;
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -309,4 +329,10 @@ $colspan = 7;
|
||||
</section>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
} //endif
|
||||
|
||||
$addtional_content_after = run_replace('adm_index_addtional_content_after', '', $is_admin, $auth, $member);
|
||||
if ($addtional_content_after) {
|
||||
echo $addtional_content_after;
|
||||
}
|
||||
require_once './admin.tail.php';
|
||||
+4
-2
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '200300';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -10,14 +10,16 @@ check_admin_token();
|
||||
|
||||
$post_count_chk = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
|
||||
if(! $post_count_chk)
|
||||
if (!$post_count_chk) {
|
||||
alert('삭제할 메일목록을 1개이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $post_count_chk; $i++) {
|
||||
$ma_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
$sql = " delete from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_mail_deleted', $ma_id);
|
||||
}
|
||||
|
||||
goto_url('./mail_list.php');
|
||||
+10
-8
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -16,17 +16,20 @@ if ($w == 'u') {
|
||||
|
||||
$sql = " select * from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
||||
$ma = sql_fetch($sql);
|
||||
if (!$ma['ma_id'])
|
||||
if (!$ma['ma_id']) {
|
||||
alert('등록된 자료가 없습니다.');
|
||||
}
|
||||
} else {
|
||||
$html_title .= '입력';
|
||||
}
|
||||
|
||||
$g5['title'] = $html_title;
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div class="local_desc"><p>메일 내용에 {이름} , {닉네임} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일을 발송합니다.</p></div>
|
||||
<div class="local_desc">
|
||||
<p>메일 내용에 {이름} , {닉네임} , {회원아이디} , {이메일} 처럼 내용에 삽입하면 해당 내용에 맞게 변환하여 메일을 발송합니다.</p>
|
||||
</div>
|
||||
|
||||
<form name="fmailform" id="fmailform" action="./mail_update.php" onsubmit="return fmailform_check(this);" method="post">
|
||||
<input type="hidden" name="w" value="<?php echo $w ?>" id="w">
|
||||
@@ -59,8 +62,7 @@ include_once('./admin.head.php');
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fmailform_check(f)
|
||||
{
|
||||
function fmailform_check(f) {
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
@@ -83,4 +85,4 @@ document.fmailform.ma_subject.focus();
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+5
-4
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '200300';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -17,7 +17,7 @@ $sql = " select * {$sql_common} order by ma_id desc ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$g5['title'] = '회원메일발송';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 7;
|
||||
?>
|
||||
@@ -71,8 +71,9 @@ $colspan = 7;
|
||||
|
||||
<?php
|
||||
}
|
||||
if (!$i)
|
||||
if (!$i) {
|
||||
echo "<tr><td colspan=\"" . $colspan . "\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -101,4 +102,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
require_once './_common.php';
|
||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -15,22 +15,18 @@ $content = conv_content($se['ma_content'], 1) . "<hr size=0><p><span style='font
|
||||
|
||||
<!doctype html>
|
||||
<html lang="ko">
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo G5_VERSION ?> 메일발송 테스트</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<h1><?php echo $subject; ?></h1>
|
||||
|
||||
<p>
|
||||
<?php echo $content; ?>
|
||||
</p>
|
||||
|
||||
<p><?php echo $content; ?></p>
|
||||
<p>
|
||||
<strong>주의!</strong> 이 화면에 보여지는 디자인은 실제 내용이 발송되었을 때 디자인과 다를 수 있습니다.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
+22
-10
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if (!$config['cf_email_use'])
|
||||
if (!$config['cf_email_use']) {
|
||||
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -11,8 +12,9 @@ $ma_id = isset($_GET['ma_id']) ? (int) $_GET['ma_id'] : 0;
|
||||
|
||||
$sql = " select * from {$g5['mail_table']} where ma_id = '$ma_id' ";
|
||||
$ma = sql_fetch($sql);
|
||||
if (!$ma['ma_id'])
|
||||
if (!$ma['ma_id']) {
|
||||
alert('보내실 내용을 선택하여 주십시오.');
|
||||
}
|
||||
|
||||
// 전체회원수
|
||||
$sql = " select COUNT(*) as cnt from {$g5['member_table']} ";
|
||||
@@ -29,20 +31,30 @@ for ($i=0; $i<count($last_option); $i++) {
|
||||
$option = explode('=', $last_option[$i]);
|
||||
// 동적변수
|
||||
$var = isset($option[0]) ? $option[0] : '';
|
||||
if( isset($option[1]) ) $$var = $option[1];
|
||||
if (isset($option[1])) {
|
||||
$$var = $option[1];
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($mb_id1)) $mb_id1 = 1;
|
||||
if (!isset($mb_level_from)) $mb_level_from = 1;
|
||||
if (!isset($mb_level_to)) $mb_level_to = 10;
|
||||
if (!isset($mb_mailling)) $mb_mailling = 1;
|
||||
if (!isset($mb_id1)) {
|
||||
$mb_id1 = 1;
|
||||
}
|
||||
if (!isset($mb_level_from)) {
|
||||
$mb_level_from = 1;
|
||||
}
|
||||
if (!isset($mb_level_to)) {
|
||||
$mb_level_to = 10;
|
||||
}
|
||||
if (!isset($mb_mailling)) {
|
||||
$mb_mailling = 1;
|
||||
}
|
||||
|
||||
$mb_id1_from = isset($mb_id1_from) ? clean_xss_tags($mb_id1_from, 1, 1, 30) : '';
|
||||
$mb_id1_to = isset($mb_id1_to) ? clean_xss_tags($mb_id1_to, 1, 1, 30) : '';
|
||||
$mb_email = isset($mb_email) ? clean_xss_tags($mb_email, 1, 1, 100) : '';
|
||||
|
||||
$g5['title'] = '회원메일발송';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
@@ -124,4 +136,4 @@ include_once('./admin.head.php');
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+25
-10
@@ -1,25 +1,38 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$ma_id = isset($_REQUEST['ma_id']) ? (int) $_REQUEST['ma_id'] : 0;
|
||||
|
||||
$ma_last_option = "";
|
||||
|
||||
$sql_common = " from {$g5['member_table']} ";
|
||||
$sql_where = " where (1) ";
|
||||
|
||||
$mb_id1 = isset($_POST['mb_id1']) ? (int) $_POST['mb_id1'] : 1;
|
||||
$mb_id1_from = isset($_POST['mb_id1_from']) ? clean_xss_tags($_POST['mb_id1_from'], 1, 1, 30) : '';
|
||||
$mb_id1_to = isset($_POST['mb_id1_to']) ? clean_xss_tags($_POST['mb_id1_to'], 1, 1, 30) : '';
|
||||
$mb_email = isset($_POST['mb_email']) ? clean_xss_tags($_POST['mb_email'], 1, 1, 100) : '';
|
||||
$mb_mailling = isset($_POST['mb_mailling']) ? clean_xss_tags($_POST['mb_mailling'], 1, 1, 100) : '';
|
||||
$mb_level_from = isset($_POST['mb_level_from'])? (int) $_POST['mb_level_from'] : 1;
|
||||
$mb_level_to = isset($_POST['mb_level_to']) ? (int) $_POST['mb_level_to'] : 10;
|
||||
|
||||
// 회원ID ..에서 ..까지
|
||||
if ($mb_id1 != 1)
|
||||
if ($mb_id1 != 1) {
|
||||
$sql_where .= " and mb_id between '{$mb_id1_from}' and '{$mb_id1_to}' ";
|
||||
}
|
||||
|
||||
// E-mail에 특정 단어 포함
|
||||
if ($mb_email != "")
|
||||
if ($mb_email != "") {
|
||||
$sql_where .= " and mb_email like '%{$mb_email}%' ";
|
||||
}
|
||||
|
||||
// 메일링
|
||||
if ($mb_mailling != "")
|
||||
if ($mb_mailling != "") {
|
||||
$sql_where .= " and mb_mailling = '{$mb_mailling}' ";
|
||||
}
|
||||
|
||||
// 권한
|
||||
$sql_where .= " and mb_level between '{$mb_level_from}' and '{$mb_level_to}' ";
|
||||
@@ -35,8 +48,9 @@ if ($gr_id) {
|
||||
$comma = ",";
|
||||
}
|
||||
|
||||
if (!$group_member)
|
||||
if (!$group_member) {
|
||||
alert('선택하신 게시판 그룹회원이 한명도 없습니다.');
|
||||
}
|
||||
|
||||
$sql_where .= " and mb_id in ($group_member) ";
|
||||
}
|
||||
@@ -47,8 +61,9 @@ $sql_where .= " and mb_leave_date = '' and mb_intercept_date = '' ";
|
||||
$sql = " select COUNT(*) as cnt {$sql_common} {$sql_where} ";
|
||||
$row = sql_fetch($sql);
|
||||
$cnt = $row['cnt'];
|
||||
if ($cnt == 0)
|
||||
if ($cnt == 0) {
|
||||
alert('선택하신 내용으로는 해당되는 회원자료가 없습니다.');
|
||||
}
|
||||
|
||||
// 마지막 옵션을 저장합니다.
|
||||
$ma_last_option .= "mb_id1={$mb_id1}";
|
||||
@@ -63,12 +78,12 @@ $ma_last_option .= "||gr_id={$gr_id}";
|
||||
sql_query(" update {$g5['mail_table']} set ma_last_option = '{$ma_last_option}' where ma_id = '{$ma_id}' ");
|
||||
|
||||
$g5['title'] = "메일발송 대상 회원";
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="fmailselectlist" id="fmailselectlist" method="post" action="./mail_select_update.php">
|
||||
<input type="hidden" name="token" value="">
|
||||
<input type="hidden" name="ma_id" value="<?php echo $ma_id ?>">
|
||||
<input type="hidden" name="ma_id" value="<?php echo get_text($ma_id); ?>">
|
||||
|
||||
<div class="tbl_head01 tbl_wrap">
|
||||
<table>
|
||||
@@ -106,7 +121,7 @@ include_once('./admin.head.php');
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<textarea name="ma_list" style="display:none"><?php echo $ma_list?></textarea>
|
||||
<textarea name="ma_list" style="display:none"><?php echo html_purifier($ma_list); ?></textarea>
|
||||
</div>
|
||||
|
||||
<div class="btn_confirm01 btn_confirm">
|
||||
@@ -117,4 +132,4 @@ include_once('./admin.head.php');
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+17
-16
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -10,8 +10,8 @@ check_demo();
|
||||
|
||||
check_admin_token();
|
||||
|
||||
include_once('./admin.head.php');
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
require_once './admin.head.php';
|
||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
||||
|
||||
$countgap = 10; // 몇건씩 보낼지 설정
|
||||
$maxscreen = 500; // 몇건씩 화면에 보여줄건지?
|
||||
@@ -25,7 +25,7 @@ echo "</span>";
|
||||
<span id="cont"></span>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
flush();
|
||||
ob_flush();
|
||||
@@ -43,23 +43,21 @@ $ma = sql_fetch($sql);
|
||||
$subject = $ma['ma_subject'];
|
||||
|
||||
$cnt = 0;
|
||||
for ($i=0; $i<count($member_list); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($member_list); $i++) {
|
||||
list($to_email, $mb_id, $name, $nick, $datetime) = explode("||", trim($member_list[$i]));
|
||||
|
||||
$sw = preg_match("/[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*@[0-9a-zA-Z_]+(\.[0-9a-zA-Z_]+)*/", $to_email);
|
||||
// 올바른 메일 주소만
|
||||
if ($sw == true)
|
||||
{
|
||||
if ($sw == true) {
|
||||
$cnt++;
|
||||
|
||||
$mb_md5 = md5($mb_id . $to_email . $datetime);
|
||||
|
||||
$content = $ma['ma_content'];
|
||||
$content = preg_replace("/{이름}/", $name, $content);
|
||||
$content = preg_replace("/{닉네임}/", $nick, $content);
|
||||
$content = preg_replace("/{회원아이디}/", $mb_id, $content);
|
||||
$content = preg_replace("/{이메일}/", $to_email, $content);
|
||||
$content = preg_replace("/{이름}/", $name, (string)$content);
|
||||
$content = preg_replace("/{닉네임}/", $nick, (string)$content);
|
||||
$content = preg_replace("/{회원아이디}/", $mb_id, (string)$content);
|
||||
$content = preg_replace("/{이메일}/", $to_email, (string)$content);
|
||||
|
||||
$content = $content . "<hr size=0><p><span style='font-size:9pt; font-family:굴림'>▶ 더 이상 정보 수신을 원치 않으시면 [<a href='" . G5_BBS_URL . "/email_stop.php?mb_id={$mb_id}&mb_md5={$mb_md5}' target='_blank'>수신거부</a>] 해 주십시오.</span></p>";
|
||||
|
||||
@@ -71,15 +69,18 @@ for ($i=0; $i<count($member_list); $i++)
|
||||
ob_flush();
|
||||
ob_end_flush();
|
||||
usleep($sleepsec);
|
||||
if ($cnt % $countgap == 0)
|
||||
{
|
||||
if ($cnt % $countgap == 0) {
|
||||
echo "<script> document.all.cont.innerHTML += '<br>'; document.body.scrollTop += 1000; </script>\n";
|
||||
}
|
||||
|
||||
// 화면을 지운다... 부하를 줄임
|
||||
if ($cnt % $maxscreen == 0)
|
||||
if ($cnt % $maxscreen == 0) {
|
||||
echo "<script> document.all.cont.innerHTML = ''; document.body.scrollTop += 1000; </script>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<script> document.all.cont.innerHTML += "<br><br>총 <?php echo number_format($cnt) ?>건 발송<br><br><font color=crimson><b>[끝]</b></font>"; document.body.scrollTop += 1000; </script>
|
||||
<script>
|
||||
document.all.cont.innerHTML += "<br><br>총 <?php echo number_format($cnt) ?>건 발송<br><br><font color=crimson><b>[끝]</b></font>";
|
||||
document.body.scrollTop += 1000;
|
||||
</script>
|
||||
+8
-7
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if (!$config['cf_email_use'])
|
||||
if (!$config['cf_email_use']) {
|
||||
alert('환경설정에서 \'메일발송 사용\'에 체크하셔야 메일을 발송할 수 있습니다.');
|
||||
}
|
||||
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
require_once G5_LIB_PATH . '/mailer.lib.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -25,10 +26,10 @@ $ma = sql_fetch($sql);
|
||||
$subject = $ma['ma_subject'];
|
||||
|
||||
$content = $ma['ma_content'];
|
||||
$content = preg_replace("/{이름}/", $name, $content);
|
||||
$content = preg_replace("/{닉네임}/", $nick, $content);
|
||||
$content = preg_replace("/{회원아이디}/", $mb_id, $content);
|
||||
$content = preg_replace("/{이메일}/", $email, $content);
|
||||
$content = preg_replace("/{이름}/", $name, (string)$content);
|
||||
$content = preg_replace("/{닉네임}/", $nick, (string)$content);
|
||||
$content = preg_replace("/{회원아이디}/", $mb_id, (string)$content);
|
||||
$content = preg_replace("/{이메일}/", $email, (string)$content);
|
||||
|
||||
$mb_md5 = md5($member['mb_id'] . $member['mb_email'] . $member['mb_datetime']);
|
||||
|
||||
|
||||
+13
-10
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
$sub_menu = "200300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($w == 'u' || $w == 'd')
|
||||
if ($w == 'u' || $w == 'd') {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -13,17 +14,18 @@ $ma_id = isset($_POST['ma_id']) ? (int) $_POST['ma_id'] : 0;
|
||||
$ma_subject = isset($_POST['ma_subject']) ? strip_tags(clean_xss_attributes($_POST['ma_subject'])) : '';
|
||||
$ma_content = isset($_POST['ma_content']) ? $_POST['ma_content'] : '';
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
$sql = " insert {$g5['mail_table']}
|
||||
set ma_subject = '{$ma_subject}',
|
||||
ma_content = '{$ma_content}',
|
||||
ma_time = '" . G5_TIME_YMDHIS . "',
|
||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
|
||||
$ma_id = sql_insert_id();
|
||||
run_event('admin_mail_created', $ma_id);
|
||||
|
||||
} elseif ($w == 'u') {
|
||||
$sql = " update {$g5['mail_table']}
|
||||
set ma_subject = '{$ma_subject}',
|
||||
ma_content = '{$ma_content}',
|
||||
@@ -31,11 +33,12 @@ else if ($w == 'u')
|
||||
ma_ip = '{$_SERVER['REMOTE_ADDR']}'
|
||||
where ma_id = '{$ma_id}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == 'd')
|
||||
{
|
||||
run_event('admin_mail_updated', $ma_id);
|
||||
|
||||
} elseif ($w == 'd') {
|
||||
$sql = " delete from {$g5['mail_table']} where ma_id = '{$ma_id}' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_mail_deleted', $ma_id);
|
||||
}
|
||||
|
||||
goto_url('./mail_list.php');
|
||||
+10
-8
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once("./_common.php");
|
||||
require_once "./_common.php";
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -8,21 +8,23 @@ auth_check_menu($auth, $sub_menu, "d");
|
||||
|
||||
$mb = isset($_POST['mb_id']) ? get_member($_POST['mb_id']) : array();
|
||||
|
||||
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
||||
alert("회원자료가 존재하지 않습니다.");
|
||||
else if ($member['mb_id'] == $mb['mb_id'])
|
||||
} elseif ($member['mb_id'] == $mb['mb_id']) {
|
||||
alert("로그인 중인 관리자는 삭제 할 수 없습니다.");
|
||||
else if (is_admin($mb['mb_id']) == "super")
|
||||
} elseif (is_admin($mb['mb_id']) == "super") {
|
||||
alert("최고 관리자는 삭제할 수 없습니다.");
|
||||
else if ($mb['mb_level'] >= $member['mb_level'])
|
||||
} elseif ($mb['mb_level'] >= $member['mb_level']) {
|
||||
alert("자신보다 권한이 높거나 같은 회원은 삭제할 수 없습니다.");
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
// 회원자료 삭제
|
||||
member_delete($mb['mb_id']);
|
||||
|
||||
if ($url)
|
||||
goto_url("{$url}?$qstr&w=u&mb_id=$mb_id");
|
||||
else
|
||||
if (isset($url)) {
|
||||
goto_url("{$url}?$qstr&w=u&mb_id=" . $mb['mb_id']);
|
||||
} else {
|
||||
goto_url("./member_list.php?$qstr");
|
||||
}
|
||||
|
||||
+138
-36
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -40,11 +40,12 @@ $mb = array(
|
||||
);
|
||||
|
||||
$sound_only = '';
|
||||
$required_mb_id = '';
|
||||
$required_mb_id_class = '';
|
||||
$required_mb_password = '';
|
||||
$html_title = '';
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
$required_mb_id = 'required';
|
||||
$required_mb_id_class = 'required alnum_';
|
||||
$required_mb_password = 'required';
|
||||
@@ -54,15 +55,15 @@ if ($w == '')
|
||||
$mb['mb_open'] = 1;
|
||||
$mb['mb_level'] = $config['cf_register_level'];
|
||||
$html_title = '추가';
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
} elseif ($w == 'u') {
|
||||
$mb = get_member($mb_id);
|
||||
if (!$mb['mb_id'])
|
||||
if (!$mb['mb_id']) {
|
||||
alert('존재하지 않는 회원자료입니다.');
|
||||
}
|
||||
|
||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level'])
|
||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level']) {
|
||||
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
||||
}
|
||||
|
||||
$required_mb_id = 'readonly';
|
||||
$html_title = '수정';
|
||||
@@ -90,15 +91,15 @@ else if ($w == 'u')
|
||||
$mb['mb_8'] = get_text($mb['mb_8']);
|
||||
$mb['mb_9'] = get_text($mb['mb_9']);
|
||||
$mb['mb_10'] = get_text($mb['mb_10']);
|
||||
}
|
||||
else
|
||||
} else {
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
// 본인확인방법
|
||||
switch ($mb['mb_certify']) {
|
||||
case 'sa':
|
||||
$mb_certify_case = '통합인증';
|
||||
$mb_certify_val = 'sa';
|
||||
case 'simple':
|
||||
$mb_certify_case = '간편인증';
|
||||
$mb_certify_val = 'simple';
|
||||
break;
|
||||
case 'hp':
|
||||
$mb_certify_case = '휴대폰';
|
||||
@@ -173,10 +174,41 @@ if(!isset($mb['mb_email_certify2'])) {
|
||||
sql_query(" ALTER TABLE {$g5['member_table']} ADD `mb_email_certify2` varchar(255) NOT NULL DEFAULT '' AFTER `mb_email_certify` ", false);
|
||||
}
|
||||
|
||||
if ($mb['mb_intercept_date']) $g5['title'] = "차단된 ";
|
||||
else $g5['title'] .= "";
|
||||
// 본인인증 내역 테이블 정보가 dbconfig에 없으면 소셜 테이블 정의
|
||||
if (!isset($g5['member_cert_history'])) {
|
||||
$g5['member_cert_history_table'] = G5_TABLE_PREFIX . 'member_cert_history';
|
||||
}
|
||||
// 멤버 본인인증 정보 변경 내역 테이블 없을 경우 생성
|
||||
if (isset($g5['member_cert_history_table']) && !sql_query(" DESC {$g5['member_cert_history_table']} ", false)) {
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['member_cert_history_table']}` (
|
||||
`ch_id` int(11) NOT NULL auto_increment,
|
||||
`mb_id` varchar(20) NOT NULL DEFAULT '',
|
||||
`ch_name` varchar(255) NOT NULL DEFAULT '',
|
||||
`ch_hp` varchar(255) NOT NULL DEFAULT '',
|
||||
`ch_birth` varchar(255) NOT NULL DEFAULT '',
|
||||
`ch_type` varchar(20) NOT NULL DEFAULT '',
|
||||
`ch_datetime` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (`ch_id`),
|
||||
KEY `mb_id` (`mb_id`)
|
||||
) ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
$mb_cert_history = '';
|
||||
if (isset($mb_id) && $mb_id) {
|
||||
$sql = "select * from {$g5['member_cert_history_table']} where mb_id = '{$mb_id}' order by ch_id asc";
|
||||
$mb_cert_history = sql_query($sql);
|
||||
}
|
||||
|
||||
if ($mb['mb_intercept_date']) {
|
||||
$g5['title'] = "차단된 ";
|
||||
} else {
|
||||
$g5['title'] = "";
|
||||
}
|
||||
$g5['title'] .= '회원 ' . $html_title;
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
// add_javascript('js 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
||||
add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
@@ -208,7 +240,19 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
<?php if ($w == 'u') { ?><a href="./boardgroupmember_form.php?mb_id=<?php echo $mb['mb_id'] ?>" class="btn_frmline">접근가능그룹보기</a><?php } ?>
|
||||
</td>
|
||||
<th scope="row"><label for="mb_password">비밀번호<?php echo $sound_only ?></label></th>
|
||||
<td><input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?> class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20"></td>
|
||||
<td>
|
||||
<div>
|
||||
<input type="password" name="mb_password" id="mb_password" <?php echo $required_mb_password ?> class="frm_input <?php echo $required_mb_password ?>" size="15" maxlength="20">
|
||||
</div>
|
||||
<div id="mb_password_captcha_wrap" style="display:none">
|
||||
<?php
|
||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
echo $captcha_html;
|
||||
?>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_name">이름(실명)<strong class="sound_only">필수</strong></label></th>
|
||||
@@ -237,11 +281,11 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
<tr>
|
||||
<th scope="row">본인확인방법</th>
|
||||
<td colspan="3">
|
||||
<input type="radio" name="mb_certify_case" value="sa" id="mb_certify_sa" <?php if($mb['mb_certify'] == 'sa') echo 'checked="checked"'; ?>>
|
||||
<label for="mb_certify_sa">통합인증</label>
|
||||
<input type="radio" name="mb_certify_case" value="hp" id="mb_certify_hp" <?php if($mb['mb_certify'] == 'hp') echo 'checked="checked"'; ?>>
|
||||
<input type="radio" name="mb_certify_case" value="simple" id="mb_certify_sa" <?php if ($mb['mb_certify'] == 'simple') { echo 'checked="checked"'; } ?>>
|
||||
<label for="mb_certify_sa">간편인증</label>
|
||||
<input type="radio" name="mb_certify_case" value="hp" id="mb_certify_hp" <?php if ($mb['mb_certify'] == 'hp') { echo 'checked="checked"'; } ?>>
|
||||
<label for="mb_certify_hp">휴대폰</label>
|
||||
<input type="radio" name="mb_certify_case" value="ipin" id="mb_certify_ipin" <?php if($mb['mb_certify'] == 'ipin') echo 'checked="checked"'; ?>>
|
||||
<input type="radio" name="mb_certify_case" value="ipin" id="mb_certify_ipin" <?php if ($mb['mb_certify'] == 'ipin') { echo 'checked="checked"'; } ?>>
|
||||
<label for="mb_certify_ipin">아이핀</label>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -250,7 +294,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
<td>
|
||||
<input type="radio" name="mb_certify" value="1" id="mb_certify_yes" <?php echo $mb_certify_yes; ?>>
|
||||
<label for="mb_certify_yes">예</label>
|
||||
<input type="radio" name="mb_certify" value="" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
|
||||
<input type="radio" name="mb_certify" value="0" id="mb_certify_no" <?php echo $mb_certify_no; ?>>
|
||||
<label for="mb_certify_no">아니오</label>
|
||||
</td>
|
||||
<th scope="row">성인인증</th>
|
||||
@@ -336,15 +380,49 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_signature">서명</label></th>
|
||||
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo $mb['mb_signature'] ?></textarea></td>
|
||||
<td colspan="3"><textarea name="mb_signature" id="mb_signature"><?php echo html_purifier($mb['mb_signature']); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_profile">자기 소개</label></th>
|
||||
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo $mb['mb_profile'] ?></textarea></td>
|
||||
<td colspan="3"><textarea name="mb_profile" id="mb_profile"><?php echo html_purifier($mb['mb_profile']); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_memo">메모</label></th>
|
||||
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo $mb['mb_memo'] ?></textarea></td>
|
||||
<td colspan="3"><textarea name="mb_memo" id="mb_memo"><?php echo html_purifier($mb['mb_memo']); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_cert_history">본인인증 내역</label></th>
|
||||
<td colspan="3">
|
||||
<?php
|
||||
$cnt = 0;
|
||||
while ($row = sql_fetch_array($mb_cert_history)) {
|
||||
$cnt++;
|
||||
$cert_type = '';
|
||||
switch ($row['ch_type']) {
|
||||
case 'simple':
|
||||
$cert_type = '간편인증';
|
||||
break;
|
||||
case 'hp':
|
||||
$cert_type = '휴대폰';
|
||||
break;
|
||||
case 'ipin':
|
||||
$cert_type = '아이핀';
|
||||
break;
|
||||
}
|
||||
?>
|
||||
<div>
|
||||
[<?php echo $row['ch_datetime']; ?>]
|
||||
<?php echo $row['mb_id']; ?> /
|
||||
<?php echo $row['ch_name']; ?> /
|
||||
<?php echo $row['ch_hp']; ?> /
|
||||
<?php echo $cert_type; ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($cnt == 0) { ?>
|
||||
본인인증 내역이 없습니다.
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if ($w == 'u') { ?>
|
||||
@@ -377,7 +455,7 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
<?php if ($config['cf_use_recommend']) { // 추천인 사용 ?>
|
||||
<tr>
|
||||
<th scope="row">추천인</th>
|
||||
<td colspan="3"><?php echo ($mb['mb_recommend'] ? get_text($mb['mb_recommend']) : '없음'); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?></td>
|
||||
<td colspan="3"><?php echo ((isset($mb['mb_recommend']) && $mb['mb_recommend']) ? get_text($mb['mb_recommend']) : '없음'); // 081022 : CSRF 보안 결함으로 인한 코드 수정 ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
|
||||
@@ -385,16 +463,13 @@ add_javascript(G5_POSTCODE_JS, 0); //다음 주소 js
|
||||
<th scope="row"><label for="mb_leave_date">탈퇴일자</label></th>
|
||||
<td>
|
||||
<input type="text" name="mb_leave_date" value="<?php echo $mb['mb_leave_date'] ?>" id="mb_leave_date" class="frm_input" maxlength="8">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today" onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) {
|
||||
this.form.mb_leave_date.value=this.value; } else { this.form.mb_leave_date.value=this.form.mb_leave_date.defaultValue; }">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_leave_date_set_today" onclick="if (this.form.mb_leave_date.value==this.form.mb_leave_date.defaultValue) { this.form.mb_leave_date.value=this.value; } else { this.form.mb_leave_date.value=this.form.mb_leave_date.defaultValue; }">
|
||||
<label for="mb_leave_date_set_today">탈퇴일을 오늘로 지정</label>
|
||||
</td>
|
||||
<th scope="row">접근차단일자</th>
|
||||
<td>
|
||||
<input type="text" name="mb_intercept_date" value="<?php echo $mb['mb_intercept_date'] ?>" id="mb_intercept_date" class="frm_input" maxlength="8">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_intercept_date_set_today" onclick="if
|
||||
(this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else {
|
||||
this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
<input type="checkbox" value="<?php echo date("Ymd"); ?>" id="mb_intercept_date_set_today" onclick="if (this.form.mb_intercept_date.value==this.form.mb_intercept_date.defaultValue) { this.form.mb_intercept_date.value=this.value; } else { this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
<label for="mb_intercept_date_set_today">접근차단일을 오늘로 지정</label>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -403,7 +478,6 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
//소셜계정이 있다면
|
||||
if (function_exists('social_login_link_account') && $mb['mb_id']) {
|
||||
if ($my_social_accounts = social_login_link_account($mb['mb_id'], false, 'get_data')) { ?>
|
||||
|
||||
<tr>
|
||||
<th>소셜계정목록</th>
|
||||
<td colspan="3">
|
||||
@@ -411,7 +485,9 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
<li class="social_login_container">
|
||||
<h4>연결된 소셜 계정 목록</h4>
|
||||
<?php foreach ($my_social_accounts as $account) { //반복문
|
||||
if( empty($account) ) continue;
|
||||
if (empty($account)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$provider = strtolower($account['provider']);
|
||||
$provider_name = social_get_provider_service_name($provider);
|
||||
@@ -507,8 +583,7 @@ this.form.mb_intercept_date.value=this.form.mb_intercept_date.defaultValue; }">
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function fmember_submit(f)
|
||||
{
|
||||
function fmember_submit(f) {
|
||||
if (!f.mb_icon.value.match(/\.(gif|jpe?g|png)$/i) && f.mb_icon.value) {
|
||||
alert('아이콘은 이미지 파일만 가능합니다.');
|
||||
return false;
|
||||
@@ -519,10 +594,37 @@ function fmember_submit(f)
|
||||
return false;
|
||||
}
|
||||
|
||||
if( jQuery("#mb_password").val() ){
|
||||
<?php echo $captcha_js; // 캡챠 사용시 자바스크립트에서 입력된 캡챠를 검사함 ?>
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
jQuery(function($){
|
||||
$("#captcha_key").prop('required', false).removeAttr("required").removeClass("required");
|
||||
|
||||
$("#mb_password").on("keyup", function(e) {
|
||||
var $warp = $("#mb_password_captcha_wrap"),
|
||||
tooptipid = "mp_captcha_tooltip",
|
||||
$span_text = $("<span>", {id:tooptipid, style:"font-size:0.95em;letter-spacing:-0.1em"}).html("비밀번호를 수정할 경우 캡챠를 입력해야 합니다."),
|
||||
$parent = $(this).parent(),
|
||||
is_invisible_recaptcha = $("#captcha").hasClass("invisible_recaptcha");
|
||||
|
||||
if($(this).val()){
|
||||
$warp.show();
|
||||
if(! is_invisible_recaptcha) {
|
||||
$warp.css("margin-top","1em");
|
||||
if(! $("#"+tooptipid).length){ $parent.append($span_text) }
|
||||
}
|
||||
} else {
|
||||
$warp.hide();
|
||||
if($("#"+tooptipid).length && ! is_invisible_recaptcha){ $parent.find("#"+tooptipid).remove(); }
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<?php
|
||||
run_event('admin_member_form_after', $mb, $w);
|
||||
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+70
-30
@@ -1,33 +1,45 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once("./_common.php");
|
||||
include_once(G5_LIB_PATH."/register.lib.php");
|
||||
include_once(G5_LIB_PATH.'/thumbnail.lib.php');
|
||||
require_once "./_common.php";
|
||||
require_once G5_LIB_PATH . "/register.lib.php";
|
||||
require_once G5_LIB_PATH . '/thumbnail.lib.php';
|
||||
|
||||
if ($w == 'u')
|
||||
if ($w == 'u') {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$mb_id = isset($_POST['mb_id']) ? trim($_POST['mb_id']) : '';
|
||||
$mb_password = isset($_POST['mb_password']) ? trim($_POST['mb_password']) : '';
|
||||
$mb_certify_case = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify_case']) : '';
|
||||
$mb_certify = isset($_POST['mb_certify']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify']) : '';
|
||||
$mb_zip = isset($_POST['mb_zip']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_zip']) : '';
|
||||
|
||||
// 관리자가 자동등록방지를 사용해야 할 경우 ( 회원의 비밀번호 변경시 캡챠를 체크한다 )
|
||||
if ($mb_password && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
||||
include_once(G5_CAPTCHA_PATH . '/captcha.lib.php');
|
||||
|
||||
if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
}
|
||||
}
|
||||
|
||||
// 휴대폰번호 체크
|
||||
$mb_hp = hyphen_hp_number($_POST['mb_hp']);
|
||||
if ($mb_hp) {
|
||||
$result = exist_mb_hp($mb_hp, $mb_id);
|
||||
if ($result)
|
||||
if ($result) {
|
||||
alert($result);
|
||||
}
|
||||
}
|
||||
|
||||
// 인증정보처리
|
||||
if ($mb_certify_case && $mb_certify) {
|
||||
$mb_certify = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_certify_case']) : '';
|
||||
$mb_adult = isset($_POST['mb_adult']) ? preg_replace('/[^0-9a-z_]/i', '', $_POST['mb_adult']) : '';
|
||||
$mb_certify = isset($_POST['mb_certify_case']) ? preg_replace('/[^0-9a-z_]/i', '', (string)$_POST['mb_certify_case']) : '';
|
||||
$mb_adult = isset($_POST['mb_adult']) ? preg_replace('/[^0-9a-z_]/i', '', (string)$_POST['mb_adult']) : '';
|
||||
} else {
|
||||
$mb_certify = '';
|
||||
$mb_adult = 0;
|
||||
@@ -39,7 +51,9 @@ $mb_zip2 = substr($mb_zip, 3);
|
||||
$mb_email = isset($_POST['mb_email']) ? get_email_address(trim($_POST['mb_email'])) : '';
|
||||
$mb_nick = isset($_POST['mb_nick']) ? trim(strip_tags($_POST['mb_nick'])) : '';
|
||||
|
||||
if ($msg = valid_mb_nick($mb_nick)) alert($msg, "", true, true);
|
||||
if ($msg = valid_mb_nick($mb_nick)) {
|
||||
alert($msg, "", true, true);
|
||||
}
|
||||
|
||||
$posts = array();
|
||||
$check_keys = array(
|
||||
@@ -65,8 +79,12 @@ for($i=1;$i<=10;$i++){
|
||||
}
|
||||
|
||||
foreach ($check_keys as $key) {
|
||||
if( in_array($key, array('mb_signature', 'mb_profile')) ){
|
||||
$posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1, 0, 0) : '';
|
||||
} else {
|
||||
$posts[$key] = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : '';
|
||||
}
|
||||
}
|
||||
|
||||
$mb_memo = isset($_POST['mb_memo']) ? $_POST['mb_memo'] : '';
|
||||
|
||||
@@ -104,63 +122,76 @@ $sql_common = " mb_name = '{$posts['mb_name']}',
|
||||
mb_9 = '{$posts['mb_9']}',
|
||||
mb_10 = '{$posts['mb_10']}' ";
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
if ($w == '') {
|
||||
$mb = get_member($mb_id);
|
||||
if (isset($mb['mb_id']) && $mb['mb_id'])
|
||||
if (isset($mb['mb_id']) && $mb['mb_id']) {
|
||||
alert('이미 존재하는 회원아이디입니다.\\nID : ' . $mb['mb_id'] . '\\n이름 : ' . $mb['mb_name'] . '\\n닉네임 : ' . $mb['mb_nick'] . '\\n메일 : ' . $mb['mb_email']);
|
||||
}
|
||||
|
||||
// 닉네임중복체크
|
||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (isset($row['mb_id']) && $row['mb_id'])
|
||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
||||
alert('이미 존재하는 닉네임입니다.\\nID : ' . $row['mb_id'] . '\\n이름 : ' . $row['mb_name'] . '\\n닉네임 : ' . $row['mb_nick'] . '\\n메일 : ' . $row['mb_email']);
|
||||
}
|
||||
|
||||
// 이메일중복체크
|
||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (isset($row['mb_id']) && $row['mb_id'])
|
||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
||||
alert('이미 존재하는 이메일입니다.\\nID : ' . $row['mb_id'] . '\\n이름 : ' . $row['mb_name'] . '\\n닉네임 : ' . $row['mb_nick'] . '\\n메일 : ' . $row['mb_email']);
|
||||
}
|
||||
|
||||
sql_query(" insert into {$g5['member_table']} set mb_id = '{$mb_id}', mb_password = '" . get_encrypt_string($mb_password) . "', mb_datetime = '" . G5_TIME_YMDHIS . "', mb_ip = '{$_SERVER['REMOTE_ADDR']}', mb_email_certify = '" . G5_TIME_YMDHIS . "', {$sql_common} ");
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
} elseif ($w == 'u') {
|
||||
$mb = get_member($mb_id);
|
||||
if (! (isset($mb['mb_id']) && $mb['mb_id']))
|
||||
if (!(isset($mb['mb_id']) && $mb['mb_id'])) {
|
||||
alert('존재하지 않는 회원자료입니다.');
|
||||
}
|
||||
|
||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level'])
|
||||
if ($is_admin != 'super' && $mb['mb_level'] >= $member['mb_level']) {
|
||||
alert('자신보다 권한이 높거나 같은 회원은 수정할 수 없습니다.');
|
||||
}
|
||||
|
||||
if ($is_admin !== 'super' && is_admin($mb['mb_id']) === 'super') {
|
||||
alert('최고관리자의 비밀번호를 수정할수 없습니다.');
|
||||
}
|
||||
|
||||
if ($mb_id === $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level'])
|
||||
if ($mb_id === $member['mb_id'] && $_POST['mb_level'] != $mb['mb_level']) {
|
||||
alert($mb['mb_id'] . ' : 로그인 중인 관리자 레벨은 수정할 수 없습니다.');
|
||||
}
|
||||
|
||||
if ($posts['mb_leave_date'] || $posts['mb_intercept_date']){
|
||||
if ($member['mb_id'] === $mb['mb_id'] || is_admin($mb['mb_id']) === 'super'){
|
||||
alert('해당 관리자의 탈퇴 일자 또는 접근 차단 일자를 수정할 수 없습니다.');
|
||||
}
|
||||
}
|
||||
|
||||
// 닉네임중복체크
|
||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_nick = '{$mb_nick}' and mb_id <> '$mb_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (isset($row['mb_id']) && $row['mb_id'])
|
||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
||||
alert('이미 존재하는 닉네임입니다.\\nID : ' . $row['mb_id'] . '\\n이름 : ' . $row['mb_name'] . '\\n닉네임 : ' . $row['mb_nick'] . '\\n메일 : ' . $row['mb_email']);
|
||||
}
|
||||
|
||||
// 이메일중복체크
|
||||
$sql = " select mb_id, mb_name, mb_nick, mb_email from {$g5['member_table']} where mb_email = '{$mb_email}' and mb_id <> '$mb_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
if (isset($row['mb_id']) && $row['mb_id'])
|
||||
if (isset($row['mb_id']) && $row['mb_id']) {
|
||||
alert('이미 존재하는 이메일입니다.\\nID : ' . $row['mb_id'] . '\\n이름 : ' . $row['mb_name'] . '\\n닉네임 : ' . $row['mb_nick'] . '\\n메일 : ' . $row['mb_email']);
|
||||
}
|
||||
|
||||
if ($mb_password)
|
||||
if ($mb_password) {
|
||||
$sql_password = " , mb_password = '" . get_encrypt_string($mb_password) . "' ";
|
||||
else
|
||||
} else {
|
||||
$sql_password = "";
|
||||
}
|
||||
|
||||
if (isset($passive_certify) && $passive_certify)
|
||||
if (isset($passive_certify) && $passive_certify) {
|
||||
$sql_certify = " , mb_email_certify = '" . G5_TIME_YMDHIS . "' ";
|
||||
else
|
||||
} else {
|
||||
$sql_certify = "";
|
||||
}
|
||||
|
||||
$sql = " update {$g5['member_table']}
|
||||
set {$sql_common}
|
||||
@@ -168,18 +199,18 @@ else if ($w == 'u')
|
||||
{$sql_certify}
|
||||
where mb_id = '{$mb_id}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else
|
||||
} else {
|
||||
alert('제대로 된 값이 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
if ($w == '' || $w == 'u') {
|
||||
|
||||
$mb_dir = substr($mb_id, 0, 2);
|
||||
$mb_icon_img = get_mb_icon_name($mb_id) . '.gif';
|
||||
|
||||
// 회원 아이콘 삭제
|
||||
if (isset($del_mb_icon) && $del_mb_icon)
|
||||
if (isset($del_mb_icon) && $del_mb_icon) {
|
||||
@unlink(G5_DATA_PATH . '/member/' . $mb_dir . '/' . $mb_icon_img);
|
||||
}
|
||||
|
||||
$image_regex = "/(\.(gif|jpe?g|png))$/i";
|
||||
|
||||
@@ -201,6 +232,7 @@ if( $w == '' || $w == 'u' ){
|
||||
|
||||
if (file_exists($dest_path)) {
|
||||
$size = @getimagesize($dest_path);
|
||||
if ($size) {
|
||||
if ($size[0] > $config['cf_member_icon_width'] || $size[1] > $config['cf_member_icon_height']) {
|
||||
$thumb = null;
|
||||
if ($size[2] === 2 || $size[2] === 3) {
|
||||
@@ -219,6 +251,7 @@ if( $w == '' || $w == 'u' ){
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$mb_img_dir = G5_DATA_PATH . '/member_image/';
|
||||
if (!is_dir($mb_img_dir)) {
|
||||
@@ -228,8 +261,9 @@ if( $w == '' || $w == 'u' ){
|
||||
$mb_img_dir .= substr($mb_id, 0, 2);
|
||||
|
||||
// 회원 이미지 삭제
|
||||
if (isset($del_mb_img) && $del_mb_img)
|
||||
if (isset($del_mb_img) && $del_mb_img) {
|
||||
@unlink($mb_img_dir . '/' . $mb_icon_img);
|
||||
}
|
||||
|
||||
// 아이콘 업로드
|
||||
if (isset($_FILES['mb_img']) && is_uploaded_file($_FILES['mb_img']['tmp_name'])) {
|
||||
@@ -248,6 +282,7 @@ if( $w == '' || $w == 'u' ){
|
||||
|
||||
if (file_exists($dest_path)) {
|
||||
$size = @getimagesize($dest_path);
|
||||
if ($size) {
|
||||
if ($size[0] > $config['cf_member_img_width'] || $size[1] > $config['cf_member_img_height']) {
|
||||
$thumb = null;
|
||||
if ($size[2] === 2 || $size[2] === 3) {
|
||||
@@ -267,6 +302,11 @@ if( $w == '' || $w == 'u' ){
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (function_exists('get_admin_captcha_by')) {
|
||||
get_admin_captcha_by('remove');
|
||||
}
|
||||
|
||||
run_event('admin_member_form_update', $w, $mb_id);
|
||||
|
||||
|
||||
+31
-21
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -27,8 +27,9 @@ if ($stx) {
|
||||
$sql_search .= " ) ";
|
||||
}
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
$sql_search .= " and mb_level <= '{$member['mb_level']}' ";
|
||||
}
|
||||
|
||||
if (!$sst) {
|
||||
$sst = "mb_datetime";
|
||||
@@ -43,7 +44,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
// 탈퇴회원수
|
||||
@@ -59,7 +62,7 @@ $intercept_count = $row['cnt'];
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$g5['title'] = '회원관리';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$sql = " select * {$sql_common} {$sql_search} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
$result = sql_query($sql);
|
||||
@@ -150,8 +153,9 @@ $colspan = 16;
|
||||
$sql2 = " select count(*) as cnt from {$g5['group_member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$group = '';
|
||||
if ($row2['cnt'])
|
||||
if ($row2['cnt']) {
|
||||
$group = '<a href="./boardgroupmember_form.php?mb_id=' . $row['mb_id'] . '">' . $row2['cnt'] . '</a>';
|
||||
}
|
||||
|
||||
if ($is_admin == 'group') {
|
||||
$s_mod = '';
|
||||
@@ -172,14 +176,14 @@ $colspan = 16;
|
||||
if ($row['mb_leave_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$leave_msg = '<span class="mb_leave_msg">탈퇴함</span>';
|
||||
}
|
||||
else if ($row['mb_intercept_date']) {
|
||||
} elseif ($row['mb_intercept_date']) {
|
||||
$mb_id = $mb_id;
|
||||
$intercept_msg = '<span class="mb_intercept_msg">차단됨</span>';
|
||||
$intercept_title = '차단해제';
|
||||
}
|
||||
if ($intercept_title == '')
|
||||
if ($intercept_title == '') {
|
||||
$intercept_title = '차단하기';
|
||||
}
|
||||
|
||||
$address = $row['mb_zip1'] ? print_address($row['mb_addr1'], $row['mb_addr2'], $row['mb_addr3'], $row['mb_addr_jibeon']) : '';
|
||||
|
||||
@@ -194,8 +198,8 @@ $colspan = 16;
|
||||
$mb_certify_case = '아이핀';
|
||||
$mb_certify_val = '';
|
||||
break;
|
||||
case 'sa':
|
||||
$mb_certify_case = '통합인증';
|
||||
case 'simple':
|
||||
$mb_certify_case = '간편인증';
|
||||
$mb_certify_val = '';
|
||||
break;
|
||||
case 'admin':
|
||||
@@ -221,10 +225,11 @@ $colspan = 16;
|
||||
//소셜계정이 있다면
|
||||
if (function_exists('social_login_link_account')) {
|
||||
if ($my_social_accounts = social_login_link_account($row['mb_id'], false, 'get_data')) {
|
||||
|
||||
echo '<div class="member_social_provider sns-wrap-over sns-wrap-32">';
|
||||
foreach ((array) $my_social_accounts as $account) { //반복문
|
||||
if( empty($account) || empty($account['provider']) ) continue;
|
||||
if (empty($account) || empty($account['provider'])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$provider = strtolower($account['provider']);
|
||||
$provider_name = social_get_provider_service_name($provider);
|
||||
@@ -240,8 +245,8 @@ $colspan = 16;
|
||||
?>
|
||||
</td>
|
||||
<td headers="mb_list_cert" rowspan="2" class="td_mbcert">
|
||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="sa" id="mb_certify_sa_<?php echo $i; ?>" <?php echo $row['mb_certify']=='sa'?'checked':''; ?>>
|
||||
<label for="mb_certify_sa_<?php echo $i; ?>">통합인증</label><br>
|
||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="simple" id="mb_certify_sa_<?php echo $i; ?>" <?php echo $row['mb_certify'] == 'simple' ? 'checked' : ''; ?>>
|
||||
<label for="mb_certify_sa_<?php echo $i; ?>">간편인증</label><br>
|
||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="hp" id="mb_certify_hp_<?php echo $i; ?>" <?php echo $row['mb_certify'] == 'hp' ? 'checked' : ''; ?>>
|
||||
<label for="mb_certify_hp_<?php echo $i; ?>">휴대폰</label><br>
|
||||
<input type="radio" name="mb_certify[<?php echo $i; ?>]" value="ipin" id="mb_certify_ipin_<?php echo $i; ?>" <?php echo $row['mb_certify'] == 'ipin' ? 'checked' : ''; ?>>
|
||||
@@ -258,8 +263,11 @@ $colspan = 16;
|
||||
</td>
|
||||
<td headers="mb_list_auth" class="td_mbstat">
|
||||
<?php
|
||||
if ($leave_msg || $intercept_msg) echo $leave_msg.' '.$intercept_msg;
|
||||
else echo "정상";
|
||||
if ($leave_msg || $intercept_msg) {
|
||||
echo $leave_msg . ' ' . $intercept_msg;
|
||||
} else {
|
||||
echo "정상";
|
||||
}
|
||||
?>
|
||||
</td>
|
||||
<td headers="mb_list_mobile" class="td_tel"><?php echo get_text($row['mb_hp']); ?></td>
|
||||
@@ -269,7 +277,9 @@ $colspan = 16;
|
||||
</tr>
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td headers="mb_list_name" class="td_mbname"><?php echo get_text($row['mb_name']); ?></td>
|
||||
<td headers="mb_list_nick" class="td_name sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||
<td headers="mb_list_nick" class="td_name sv_use">
|
||||
<div><?php echo $mb_nick ?></div>
|
||||
</td>
|
||||
|
||||
<td headers="mb_list_sms">
|
||||
<label for="mb_sms_<?php echo $i; ?>" class="sound_only">SMS수신</label>
|
||||
@@ -296,8 +306,9 @@ $colspan = 16;
|
||||
|
||||
<?php
|
||||
}
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo "<tr><td colspan=\"" . $colspan . "\" class=\"empty_table\">자료가 없습니다.</td></tr>";
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -318,8 +329,7 @@ $colspan = 16;
|
||||
<?php echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, '?' . $qstr . '&page='); ?>
|
||||
|
||||
<script>
|
||||
function fmemberlist_submit(f)
|
||||
{
|
||||
function fmemberlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -336,4 +346,4 @@ function fmemberlist_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once("./_common.php");
|
||||
require_once "./_common.php";
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -9,8 +9,7 @@ auth_check_menu($auth, $sub_menu, "d");
|
||||
check_admin_token();
|
||||
|
||||
$msg = "";
|
||||
for ($i=0; $i<count($chk); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($chk); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
|
||||
@@ -30,7 +29,8 @@ for ($i=0; $i<count($chk); $i++)
|
||||
}
|
||||
}
|
||||
|
||||
if ($msg)
|
||||
if ($msg) {
|
||||
echo "<script type='text/javascript'> alert('$msg'); </script>";
|
||||
}
|
||||
|
||||
goto_url("./member_list.php?$qstr");
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200100";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -16,9 +16,7 @@ $mb_datas = array();
|
||||
$msg = '';
|
||||
|
||||
if ($_POST['act_button'] == "선택수정") {
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
@@ -38,10 +36,11 @@ if ($_POST['act_button'] == "선택수정") {
|
||||
} elseif ($member['mb_id'] == $mb['mb_id']) {
|
||||
$msg .= $mb['mb_id'] . ' : 로그인 중인 관리자는 수정 할 수 없습니다.\\n';
|
||||
} else {
|
||||
if($post_mb_certify)
|
||||
if ($post_mb_certify) {
|
||||
$mb_adult = isset($_POST['mb_adult'][$k]) ? (int) $_POST['mb_adult'][$k] : 0;
|
||||
else
|
||||
} else {
|
||||
$mb_adult = 0;
|
||||
}
|
||||
|
||||
$sql = " update {$g5['member_table']}
|
||||
set mb_level = '" . $post_mb_level . "',
|
||||
@@ -55,11 +54,8 @@ if ($_POST['act_button'] == "선택수정") {
|
||||
sql_query($sql);
|
||||
}
|
||||
}
|
||||
|
||||
} elseif ($_POST['act_button'] == "선택삭제") {
|
||||
|
||||
for ($i=0; $i<count($_POST['chk']); $i++)
|
||||
{
|
||||
for ($i = 0; $i < count($_POST['chk']); $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
@@ -80,9 +76,10 @@ if ($_POST['act_button'] == "선택수정") {
|
||||
}
|
||||
}
|
||||
|
||||
if ($msg)
|
||||
if ($msg) {
|
||||
//echo '<script> alert("'.$msg.'"); </script>';
|
||||
alert($msg);
|
||||
}
|
||||
|
||||
run_event('admin_member_list_update', $_POST['act_button'], $mb_datas);
|
||||
|
||||
|
||||
+13
-11
@@ -1,22 +1,24 @@
|
||||
<?php
|
||||
$sub_menu = "100290";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert_close('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$g5['title'] = '메뉴 추가';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
require_once G5_PATH . '/head.sub.php';
|
||||
|
||||
$new = isset($_GET['new']) ? clean_xss_tags($_GET['new'], 1, 1) : '';
|
||||
$code = isset($_GET['code']) ? preg_replace('/[^0-9a-zA-Z]/', '', $_GET['code']) : '';
|
||||
$code = isset($_GET['code']) ? (string)preg_replace('/[^0-9a-zA-Z]/', '', $_GET['code']) : '';
|
||||
|
||||
// 코드
|
||||
if ($new == 'new' || !$code) {
|
||||
$code = base_convert(substr($code,0, 2), 36, 10);
|
||||
$code = (int)base_convert(substr($code, 0, 2), 36, 10);
|
||||
$code += 36;
|
||||
$code = base_convert($code, 10, 36);
|
||||
$code = base_convert((string)$code, 10, 36);
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<div id="menu_frm" class="new_win">
|
||||
@@ -78,8 +80,9 @@ $(function() {
|
||||
var dfd = new $.Deferred();
|
||||
|
||||
$("#menu_result").empty().load(
|
||||
"./menu_form_search.php",
|
||||
{ type : type },
|
||||
"./menu_form_search.php", {
|
||||
type: type
|
||||
},
|
||||
function() {
|
||||
dfd.resolve('Finished');
|
||||
}
|
||||
@@ -114,8 +117,7 @@ $(function() {
|
||||
});
|
||||
});
|
||||
|
||||
function add_menu_list(name, link, code)
|
||||
{
|
||||
function add_menu_list(name, link, code) {
|
||||
var $menulist = $("#menulist", opener.document);
|
||||
var ms = new Date().getTime();
|
||||
var sub_menu_class;
|
||||
@@ -194,4 +196,4 @@ function add_menu_list(name, link, code)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
require_once G5_PATH . '/tail.sub.php';
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
die('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
$type = isset($_REQUEST['type']) ? preg_replace('/[^0-9a-z_]/i', '', $_REQUEST['type']) : '';
|
||||
|
||||
@@ -32,7 +33,6 @@ if($sql) {
|
||||
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
if ($i == 0) {
|
||||
|
||||
$bbs_subject_title = ($type == 'board') ? '게시판제목' : '제목';
|
||||
?>
|
||||
|
||||
@@ -96,7 +96,6 @@ if($sql) {
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="tbl_frm01 tbl_wrap">
|
||||
<table>
|
||||
<colgroup>
|
||||
|
||||
+17
-16
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
$sub_menu = "100290";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
// 메뉴테이블 생성
|
||||
if (!isset($g5['menu_table'])) {
|
||||
@@ -11,7 +12,8 @@ if( !isset($g5['menu_table']) ){
|
||||
}
|
||||
|
||||
if (!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) {
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['menu_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['menu_table']}` (
|
||||
`me_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`me_code` varchar(255) NOT NULL DEFAULT '',
|
||||
`me_name` varchar(255) NOT NULL DEFAULT '',
|
||||
@@ -21,14 +23,16 @@ if(!sql_query(" DESCRIBE {$g5['menu_table']} ", false)) {
|
||||
`me_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`me_mobile_use` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`me_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
$sql = " select * from {$g5['menu_table']} order by me_id ";
|
||||
$result = sql_query($sql);
|
||||
|
||||
$g5['title'] = "메뉴설정";
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 7;
|
||||
$sub_menu_info = '';
|
||||
@@ -59,8 +63,7 @@ $sub_menu_info = '';
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i=0; $row=sql_fetch_array($result); $i++)
|
||||
{
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
$bg = 'bg' . ($i % 2);
|
||||
$sub_menu_class = '';
|
||||
if (strlen($row['me_code']) == 4) {
|
||||
@@ -118,8 +121,9 @@ $sub_menu_info = '';
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
if ($i == 0) {
|
||||
echo '<tr id="empty_menu_list"><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -140,7 +144,7 @@ $(function() {
|
||||
});
|
||||
|
||||
$(document).on("click", ".btn_del_menu", function() {
|
||||
if(!confirm("메뉴를 삭제하시겠습니까?"))
|
||||
if (!confirm("메뉴를 삭제하시겠습니까?\n메뉴 삭제후 메뉴설정의 확인 버튼을 눌러 메뉴를 저장해 주세요."))
|
||||
return false;
|
||||
|
||||
var $tr = $(this).closest("tr");
|
||||
@@ -163,8 +167,7 @@ $(function() {
|
||||
});
|
||||
});
|
||||
|
||||
function add_menu()
|
||||
{
|
||||
function add_menu() {
|
||||
var max_code = base_convert(0, 10, 36);
|
||||
$("#menulist tr.menu_list").each(function() {
|
||||
var me_code = $(this).find("input[name='code[]']").val().substr(0, 2);
|
||||
@@ -177,8 +180,7 @@ function add_menu()
|
||||
return false;
|
||||
}
|
||||
|
||||
function add_submenu(code)
|
||||
{
|
||||
function add_submenu(code) {
|
||||
var url = "./menu_form.php?code=" + code;
|
||||
window.open(url, "add_menu", "left=100,top=100,width=550,height=650,scrollbars=yes,resizable=yes");
|
||||
return false;
|
||||
@@ -195,8 +197,7 @@ function base_convert(number, frombase, tobase) {
|
||||
.toString(tobase | 0);
|
||||
}
|
||||
|
||||
function fmenulist_submit(f)
|
||||
{
|
||||
function fmenulist_submit(f) {
|
||||
|
||||
var me_links = document.getElementsByName('me_link[]');
|
||||
var reg = /^javascript/;
|
||||
@@ -216,4 +217,4 @@ function fmenulist_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+12
-10
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
$sub_menu = "100290";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
if ($is_admin != 'super')
|
||||
if ($is_admin != 'super') {
|
||||
alert('최고관리자만 접근 가능합니다.');
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
@@ -15,10 +16,9 @@ sql_query($sql);
|
||||
|
||||
$group_code = null;
|
||||
$primary_code = null;
|
||||
$count = count($_POST['code']);
|
||||
$count = isset($_POST['code']) ? count($_POST['code']) : 0;
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$_POST = array_map_deep('trim', $_POST);
|
||||
|
||||
if (preg_match('/^javascript/i', preg_replace('/[ ]{1,}|[\t]/', '', $_POST['me_link'][$i]))) {
|
||||
@@ -26,13 +26,15 @@ for ($i=0; $i<$count; $i++)
|
||||
}
|
||||
|
||||
$_POST['me_link'][$i] = is_array($_POST['me_link']) ? clean_xss_tags(clean_xss_attributes(preg_replace('/[ ]{2,}|[\t]/', '', $_POST['me_link'][$i]), 1)) : '';
|
||||
$_POST['me_link'][$i] = html_purifier($_POST['me_link'][$i]);
|
||||
|
||||
$code = is_array($_POST['code']) ? strip_tags($_POST['code'][$i]) : '';
|
||||
$me_name = is_array($_POST['me_name']) ? strip_tags($_POST['me_name'][$i]) : '';
|
||||
$me_link = (preg_match('/^javascript/i', $_POST['me_link'][$i]) || preg_match('/script:/i', $_POST['me_link'][$i])) ? G5_URL : strip_tags(clean_xss_attributes($_POST['me_link'][$i]));
|
||||
|
||||
if(!$code || !$me_name || !$me_link)
|
||||
if (!$code || !$me_name || !$me_link) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$sub_code = '';
|
||||
if ($group_code == $code) {
|
||||
@@ -41,9 +43,9 @@ for ($i=0; $i<$count; $i++)
|
||||
where SUBSTRING(me_code,1,2) = '$primary_code' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$sub_code = base_convert($row['max_me_code'], 36, 10);
|
||||
$sub_code = (int)base_convert($row['max_me_code'], 36, 10);
|
||||
$sub_code += 36;
|
||||
$sub_code = base_convert($sub_code, 10, 36);
|
||||
$sub_code = base_convert((string)$sub_code, 10, 36);
|
||||
|
||||
$me_code = $primary_code . $sub_code;
|
||||
} else {
|
||||
@@ -52,9 +54,9 @@ for ($i=0; $i<$count; $i++)
|
||||
where LENGTH(me_code) = '2' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$me_code = base_convert($row['max_me_code'], 36, 10);
|
||||
$me_code = (int)base_convert($row['max_me_code'], 36, 10);
|
||||
$me_code += 36;
|
||||
$me_code = base_convert($me_code, 10, 36);
|
||||
$me_code = base_convert((string)$me_code, 10, 36);
|
||||
|
||||
$group_code = $code;
|
||||
$primary_code = $me_code;
|
||||
|
||||
+10
-12
@@ -1,11 +1,11 @@
|
||||
<?php
|
||||
$sub_menu = '100310';
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
|
||||
$nw_id = isset($_REQUEST['nw_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||
$nw_id = isset($_REQUEST['nw_id']) ? (string)preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||
$nw = array(
|
||||
'nw_begin_time' => '',
|
||||
'nw_end_time' => '',
|
||||
@@ -20,15 +20,14 @@ $html_title = "팝업레이어";
|
||||
$sql = " ALTER TABLE `{$g5['new_win_table']}` ADD `nw_division` VARCHAR(10) NOT NULL DEFAULT 'both' ";
|
||||
sql_query($sql, false);
|
||||
|
||||
if ($w == "u")
|
||||
{
|
||||
if ($w == "u") {
|
||||
$html_title .= " 수정";
|
||||
$sql = " select * from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
||||
$nw = sql_fetch($sql);
|
||||
if (! (isset($nw['nw_id']) && $nw['nw_id'])) alert("등록된 자료가 없습니다.");
|
||||
if (!(isset($nw['nw_id']) && $nw['nw_id'])) {
|
||||
alert("등록된 자료가 없습니다.");
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
$html_title .= " 입력";
|
||||
$nw['nw_device'] = 'both';
|
||||
$nw['nw_disable_hours'] = 24;
|
||||
@@ -40,7 +39,7 @@ else
|
||||
}
|
||||
|
||||
$g5['title'] = $html_title;
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="frmnewwin" action="./newwinformupdate.php" onsubmit="return frmnewwin_check(this);" method="post">
|
||||
@@ -152,8 +151,7 @@ include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
</form>
|
||||
|
||||
<script>
|
||||
function frmnewwin_check(f)
|
||||
{
|
||||
function frmnewwin_check(f) {
|
||||
errmsg = "";
|
||||
errfld = "";
|
||||
|
||||
@@ -171,4 +169,4 @@ function frmnewwin_check(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+15
-19
@@ -1,16 +1,18 @@
|
||||
<?php
|
||||
$sub_menu = '100310';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
$nw_id = isset($_REQUEST['nw_id']) ? preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||
$nw_id = isset($_REQUEST['nw_id']) ? (string)preg_replace('/[^0-9]/', '', $_REQUEST['nw_id']) : 0;
|
||||
|
||||
if ($w == "u" || $w == "d")
|
||||
if ($w == "u" || $w == "d") {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
if ($w == 'd')
|
||||
if ($w == 'd') {
|
||||
auth_check_menu($auth, $sub_menu, "d");
|
||||
else
|
||||
} else {
|
||||
auth_check_menu($auth, $sub_menu, "w");
|
||||
}
|
||||
|
||||
check_admin_token();
|
||||
|
||||
@@ -54,29 +56,23 @@ $sql_common = " nw_device = '{$posts['nw_device']}',
|
||||
nw_content = '{$posts['nw_content']}',
|
||||
nw_content_html = '{$posts['nw_content_html']}' ";
|
||||
|
||||
if($w == "")
|
||||
{
|
||||
if ($w == "") {
|
||||
$sql = " insert {$g5['new_win_table']} set $sql_common ";
|
||||
sql_query($sql);
|
||||
|
||||
$nw_id = sql_insert_id();
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
run_event('admin_newwin_created', $nw_id);
|
||||
} elseif ($w == "u") {
|
||||
$sql = " update {$g5['new_win_table']} set $sql_common where nw_id = '$nw_id' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
run_event('admin_newwin_updated', $nw_id);
|
||||
} elseif ($w == "d") {
|
||||
$sql = " delete from {$g5['new_win_table']} where nw_id = '$nw_id' ";
|
||||
sql_query($sql);
|
||||
run_event('admin_newwin_deleted', $nw_id);
|
||||
}
|
||||
|
||||
if ($w == "d")
|
||||
{
|
||||
if ($w == "d") {
|
||||
goto_url('./newwinlist.php');
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
goto_url("./newwinform.php?w=u&nw_id=$nw_id");
|
||||
}
|
||||
+8
-5
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '100310';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, "r");
|
||||
|
||||
@@ -12,7 +12,8 @@ if(!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) {
|
||||
if (sql_query(" DESCRIBE {$g5['g5_shop_new_win_table']} ", false)) {
|
||||
sql_query(" ALTER TABLE {$g5['g5_shop_new_win_table']} RENAME TO `{$g5['new_win_table']}` ;", false);
|
||||
} else {
|
||||
$query_cp = sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` (
|
||||
$query_cp = sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['new_win_table']}` (
|
||||
`nw_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`nw_division` varchar(10) NOT NULL DEFAULT 'both',
|
||||
`nw_device` varchar(10) NOT NULL DEFAULT 'both',
|
||||
@@ -27,12 +28,14 @@ if(!sql_query(" DESCRIBE {$g5['new_win_table']} ", false)) {
|
||||
`nw_content` text NOT NULL,
|
||||
`nw_content_html` tinyint(4) NOT NULL DEFAULT '0',
|
||||
PRIMARY KEY (`nw_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ",
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$g5['title'] = '팝업레이어 관리';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.head.php';
|
||||
|
||||
$sql_common = " from {$g5['new_win_table']} ";
|
||||
|
||||
@@ -115,4 +118,4 @@ $result = sql_query($sql);
|
||||
|
||||
|
||||
<?php
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
require_once G5_ADMIN_PATH . '/admin.tail.php';
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "100500";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
|
||||
+28
-23
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
$sub_menu = "200200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$sql_common = " from {$g5['point_table']} ";
|
||||
$sql_common = " from {$g5['point_table']} po";
|
||||
|
||||
$sql_search = " where (1) ";
|
||||
|
||||
@@ -12,7 +12,7 @@ if ($stx) {
|
||||
$sql_search .= " and ( ";
|
||||
switch ($sfl) {
|
||||
case 'mb_id':
|
||||
$sql_search .= " ({$sfl} = '{$stx}') ";
|
||||
$sql_search .= " (po.{$sfl} = '{$stx}') ";
|
||||
break;
|
||||
default:
|
||||
$sql_search .= " ({$sfl} like '%{$stx}%') ";
|
||||
@@ -36,11 +36,14 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
$sql = " select po.*, mb.mb_name, mb.mb_nick, mb.mb_email, mb.mb_homepage, mb.mb_point
|
||||
{$sql_common}
|
||||
LEFT JOIN {$g5['member_table']} mb ON po.mb_id = mb.mb_id
|
||||
{$sql_search}
|
||||
{$sql_order}
|
||||
limit {$from_record}, {$rows} ";
|
||||
@@ -49,11 +52,12 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$mb = array();
|
||||
if ($sfl == 'mb_id' && $stx)
|
||||
if ($sfl == 'mb_id' && $stx) {
|
||||
$mb = get_member($stx);
|
||||
}
|
||||
|
||||
$g5['title'] = '포인트관리';
|
||||
include_once ('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 9;
|
||||
|
||||
@@ -62,10 +66,11 @@ if($config['cf_point_term'] > 0) {
|
||||
$po_expire_term = $config['cf_point_term'];
|
||||
}
|
||||
|
||||
if (strstr($sfl, "mb_id"))
|
||||
if (strstr($sfl, "mb_id")) {
|
||||
$mb_id = $stx;
|
||||
else
|
||||
} else {
|
||||
$mb_id = "";
|
||||
}
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
@@ -122,12 +127,7 @@ else
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
if ($i==0 || ($row2['mb_id'] != $row['mb_id'])) {
|
||||
$sql2 = " select mb_id, mb_name, mb_nick, mb_email, mb_homepage, mb_point from {$g5['member_table']} where mb_id = '{$row['mb_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
}
|
||||
|
||||
$mb_nick = get_sideview($row['mb_id'], $row2['mb_nick'], $row2['mb_email'], $row2['mb_homepage']);
|
||||
$mb_nick = get_sideview($row['mb_id'], $row['mb_nick'], $row['mb_email'], $row['mb_homepage']);
|
||||
|
||||
$link1 = $link2 = '';
|
||||
if (!preg_match("/^\@/", $row['po_rel_table']) && $row['po_rel_table']) {
|
||||
@@ -136,8 +136,9 @@ else
|
||||
}
|
||||
|
||||
$expr = '';
|
||||
if($row['po_expired'] == 1)
|
||||
if ($row['po_expired'] == 1) {
|
||||
$expr = ' txt_expired';
|
||||
}
|
||||
|
||||
$bg = 'bg' . ($i % 2);
|
||||
?>
|
||||
@@ -150,15 +151,19 @@ else
|
||||
<input type="checkbox" name="chk[]" value="<?php echo $i ?>" id="chk_<?php echo $i ?>">
|
||||
</td>
|
||||
<td class="td_left"><a href="?sfl=mb_id&stx=<?php echo $row['mb_id'] ?>"><?php echo $row['mb_id'] ?></a></td>
|
||||
<td class="td_left"><?php echo get_text($row2['mb_name']); ?></td>
|
||||
<td class="td_left sv_use"><div><?php echo $mb_nick ?></div></td>
|
||||
<td class="td_left"><?php echo get_text($row['mb_name']); ?></td>
|
||||
<td class="td_left sv_use">
|
||||
<div><?php echo $mb_nick ?></div>
|
||||
</td>
|
||||
<td class="td_left"><?php echo $link1 ?><?php echo $row['po_content'] ?><?php echo $link2 ?></td>
|
||||
<td class="td_num td_pt"><?php echo number_format($row['po_point']) ?></td>
|
||||
<td class="td_datetime"><?php echo $row['po_datetime'] ?></td>
|
||||
<td class="td_datetime2<?php echo $expr; ?>">
|
||||
<?php if ($row['po_expired'] == 1) { ?>
|
||||
만료<?php echo substr(str_replace('-', '', $row['po_expire_date']), 2); ?>
|
||||
<?php } else echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date']; ?>
|
||||
<?php } else {
|
||||
echo $row['po_expire_date'] == '9999-12-31' ? ' ' : $row['po_expire_date'];
|
||||
} ?>
|
||||
</td>
|
||||
<td class="td_num td_pt"><?php echo number_format($row['po_mb_point']) ?></td>
|
||||
</tr>
|
||||
@@ -166,8 +171,9 @@ else
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -230,8 +236,7 @@ else
|
||||
</section>
|
||||
|
||||
<script>
|
||||
function fpointlist_submit(f)
|
||||
{
|
||||
function fpointlist_submit(f) {
|
||||
if (!is_checked("chk[]")) {
|
||||
alert(document.pressed + " 하실 항목을 하나 이상 선택하세요.");
|
||||
return false;
|
||||
@@ -248,4 +253,4 @@ function fpointlist_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = '200200';
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -9,11 +9,11 @@ auth_check_menu($auth, $sub_menu, 'd');
|
||||
check_admin_token();
|
||||
|
||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
if(!$count)
|
||||
if (!$count) {
|
||||
alert($_POST['act_button'] . ' 하실 항목을 하나 이상 체크하세요.');
|
||||
}
|
||||
|
||||
for ($i=0; $i<$count; $i++)
|
||||
{
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
// 실제 번호를 넘김
|
||||
$k = $_POST['chk'][$i];
|
||||
$po_id = (int) $_POST['po_id'][$k];
|
||||
@@ -23,17 +23,19 @@ for ($i=0; $i<$count; $i++)
|
||||
$sql = " select * from {$g5['point_table']} where po_id = '{$po_id}' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
if(!$row['po_id'])
|
||||
if (!$row['po_id']) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($row['po_point'] < 0) {
|
||||
$mb_id = $row['mb_id'];
|
||||
$po_point = abs($row['po_point']);
|
||||
|
||||
if($row['po_rel_table'] == '@expire')
|
||||
if ($row['po_rel_table'] == '@expire') {
|
||||
delete_expire_point($mb_id, $po_point);
|
||||
else
|
||||
} else {
|
||||
delete_use_point($mb_id, $po_point);
|
||||
}
|
||||
} else {
|
||||
if ($row['po_use_point'] > 0) {
|
||||
insert_use_point($row['mb_id'], $row['po_use_point'], $row['po_id']);
|
||||
|
||||
@@ -1,23 +1,25 @@
|
||||
<?php
|
||||
$sub_menu = "200200";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
check_admin_token();
|
||||
|
||||
$mb_id = isset($_POST['mb_id']) ? strip_tags(clean_xss_attributes($_POST['mb_id'])) : '';
|
||||
$po_point = isset($_POST['po_point']) ? strip_tags(clean_xss_attributes($_POST['po_point'])) : 0;
|
||||
$po_point = isset($_POST['po_point']) ? (int)strip_tags(clean_xss_attributes($_POST['po_point'])) : 0;
|
||||
$po_content = isset($_POST['po_content']) ? strip_tags(clean_xss_attributes($_POST['po_content'])) : '';
|
||||
$expire = isset($_POST['po_expire_term']) ? preg_replace('/[^0-9]/', '', $_POST['po_expire_term']) : '';
|
||||
|
||||
$mb = get_member($mb_id);
|
||||
|
||||
if (!$mb['mb_id'])
|
||||
if (!$mb['mb_id']) {
|
||||
alert('존재하는 회원아이디가 아닙니다.', './point_list.php?' . $qstr);
|
||||
}
|
||||
|
||||
if (($po_point < 0) && ($po_point * (-1) > $mb['mb_point']))
|
||||
if (($po_point < 0) && ($po_point * (-1) > $mb['mb_point'])) {
|
||||
alert('포인트를 깎는 경우 현재 포인트보다 작으면 안됩니다.', './point_list.php?' . $qstr);
|
||||
}
|
||||
|
||||
insert_point($mb_id, $po_point, $po_content, '@passive', $mb_id, $member['mb_id'] . '-' . uniqid(''), $expire);
|
||||
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200900";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -10,8 +10,9 @@ check_admin_token();
|
||||
|
||||
$count = (isset($_POST['chk']) && is_array($_POST['chk'])) ? count($_POST['chk']) : 0;
|
||||
|
||||
if(!$count)
|
||||
if (!$count) {
|
||||
alert('삭제할 투표목록을 1개이상 선택해 주세요.');
|
||||
}
|
||||
|
||||
for ($i = 0; $i < $count; $i++) {
|
||||
$po_id = isset($_POST['chk'][$i]) ? (int) $_POST['chk'][$i] : 0;
|
||||
|
||||
+18
-8
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200900";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -13,17 +13,22 @@ $po = array(
|
||||
);
|
||||
|
||||
$html_title = '투표';
|
||||
if ($w == '')
|
||||
if ($w == '') {
|
||||
$html_title .= ' 생성';
|
||||
else if ($w == 'u') {
|
||||
} elseif ($w == 'u') {
|
||||
$html_title .= ' 수정';
|
||||
$sql = " select * from {$g5['poll_table']} where po_id = '{$po_id}' ";
|
||||
$po = sql_fetch($sql);
|
||||
} else
|
||||
} else {
|
||||
alert('w 값이 제대로 넘어오지 않았습니다.');
|
||||
}
|
||||
|
||||
if (!isset($po['po_use'])) {
|
||||
sql_query(" alter table `{$g5['poll_table']}` add `po_use` tinyint not null default '0' after `mb_ids` ", false);
|
||||
}
|
||||
|
||||
$g5['title'] = $html_title;
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
?>
|
||||
|
||||
<form name="fpoll" id="fpoll" action="./poll_form_update.php" method="post" enctype="multipart/form-data">
|
||||
@@ -49,6 +54,7 @@ include_once('./admin.head.php');
|
||||
<?php
|
||||
for ($i = 1; $i <= 9; $i++) {
|
||||
$required = '';
|
||||
$sound_only = '';
|
||||
if ($i == 1 || $i == 2) {
|
||||
$required = 'required';
|
||||
$sound_only = '<strong class="sound_only">필수</strong>';
|
||||
@@ -92,17 +98,21 @@ include_once('./admin.head.php');
|
||||
</tr>
|
||||
|
||||
<?php if ($w == 'u') { ?>
|
||||
<tr>
|
||||
<th scope="row">투표사용</th>
|
||||
<td><input type="checkbox" name="po_use" id="po_use" value="1" <?php if ($po['po_use']) { echo 'checked="checked"'; } ?>> <label for="po_use">사용</label></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">투표등록일</th>
|
||||
<td><?php echo $po['po_date']; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="po_ips">투표참가 IP</label></th>
|
||||
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['po_ips']) ?></textarea></td>
|
||||
<td><textarea name="po_ips" id="po_ips" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['po_ips'])); ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="mb_ids">투표참가 회원</label></th>
|
||||
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo preg_replace("/\n/", " / ", $po['mb_ids']) ?></textarea></td>
|
||||
<td><textarea name="mb_ids" id="mb_ids" readonly rows="10"><?php echo html_purifier(preg_replace("/\n/", " / ", $po['mb_ids'])); ?></textarea></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@@ -118,4 +128,4 @@ include_once('./admin.head.php');
|
||||
</form>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+18
-16
@@ -1,10 +1,11 @@
|
||||
<?php
|
||||
$sub_menu = "200900";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
$w = $_POST['w'];
|
||||
if ($w == 'u' || $w == 'd')
|
||||
if ($w == 'u' || $w == 'd') {
|
||||
check_demo();
|
||||
}
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'w');
|
||||
|
||||
@@ -37,24 +38,25 @@ $check_keys = array(
|
||||
);
|
||||
|
||||
foreach ($_POST as $key => $value) {
|
||||
if( empty($value) ) continue;
|
||||
if (empty($value)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (in_array($key, $check_keys)) {
|
||||
$_POST[$key] = strip_tags(clean_xss_attributes($value));
|
||||
}
|
||||
}
|
||||
|
||||
if ($w == '')
|
||||
{
|
||||
$po_id = isset($_POST['po_id']) ? $_POST['po_id'] : '';
|
||||
|
||||
if ($w == '') {
|
||||
$sql = " insert {$g5['poll_table']}
|
||||
( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date )
|
||||
values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '".G5_TIME_YMD."' ) ";
|
||||
( po_subject, po_poll1, po_poll2, po_poll3, po_poll4, po_poll5, po_poll6, po_poll7, po_poll8, po_poll9, po_cnt1, po_cnt2, po_cnt3, po_cnt4, po_cnt5, po_cnt6, po_cnt7, po_cnt8, po_cnt9, po_etc, po_level, po_point, po_date, po_use )
|
||||
values ( '{$_POST['po_subject']}', '{$_POST['po_poll1']}', '{$_POST['po_poll2']}', '{$_POST['po_poll3']}', '{$_POST['po_poll4']}', '{$_POST['po_poll5']}', '{$_POST['po_poll6']}', '{$_POST['po_poll7']}', '{$_POST['po_poll8']}', '{$_POST['po_poll9']}', '{$_POST['po_cnt1']}', '{$_POST['po_cnt2']}', '{$_POST['po_cnt3']}', '{$_POST['po_cnt4']}', '{$_POST['po_cnt5']}', '{$_POST['po_cnt6']}', '{$_POST['po_cnt7']}', '{$_POST['po_cnt8']}', '{$_POST['po_cnt9']}', '{$_POST['po_etc']}', '{$_POST['po_level']}', '{$_POST['po_point']}', '" . G5_TIME_YMD . "', 1 ) ";
|
||||
sql_query($sql);
|
||||
|
||||
$po_id = sql_insert_id();
|
||||
}
|
||||
else if ($w == 'u')
|
||||
{
|
||||
} elseif ($w == 'u') {
|
||||
$sql = " update {$g5['poll_table']}
|
||||
set po_subject = '{$_POST['po_subject']}',
|
||||
po_poll1 = '{$_POST['po_poll1']}',
|
||||
@@ -77,12 +79,11 @@ else if ($w == 'u')
|
||||
po_cnt9 = '{$_POST['po_cnt9']}',
|
||||
po_etc = '{$_POST['po_etc']}',
|
||||
po_level = '{$_POST['po_level']}',
|
||||
po_point = '{$_POST['po_point']}'
|
||||
po_point = '{$_POST['po_point']}',
|
||||
po_use = '{$_POST['po_use']}'
|
||||
where po_id = '{$_POST['po_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
else if ($w == 'd')
|
||||
{
|
||||
} elseif ($w == 'd') {
|
||||
$sql = " delete from {$g5['poll_table']} where po_id = '{$_POST['po_id']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
@@ -96,7 +97,8 @@ else if ($w == 'd')
|
||||
$row = sql_fetch(" select max(po_id) as max_po_id from {$g5['poll_table']} ");
|
||||
sql_query(" update {$g5['config_table']} set cf_max_po_id = '{$row['max_po_id']}' ");
|
||||
|
||||
if ($w == 'd')
|
||||
if ($w == 'd') {
|
||||
goto_url('./poll_list.php?' . $qstr);
|
||||
else
|
||||
} else {
|
||||
goto_url('./poll_form.php?w=u&po_id=' . $po_id . '&' . $qstr);
|
||||
}
|
||||
|
||||
+12
-6
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "200900";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -32,7 +32,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) $page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1; // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
}
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
@@ -45,9 +47,9 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$g5['title'] = '투표관리';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 7;
|
||||
$colspan = 8;
|
||||
?>
|
||||
|
||||
<div class="local_ov01 local_ov">
|
||||
@@ -90,6 +92,7 @@ $colspan = 7;
|
||||
<th scope="col">투표권한</th>
|
||||
<th scope="col">투표수</th>
|
||||
<th scope="col">기타의견</th>
|
||||
<th scope="col">사용</th>
|
||||
<th scope="col">관리</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -99,6 +102,7 @@ $colspan = 7;
|
||||
$sql2 = " select sum(po_cnt1+po_cnt2+po_cnt3+po_cnt4+po_cnt5+po_cnt6+po_cnt7+po_cnt8+po_cnt9) as sum_po_cnt from {$g5['poll_table']} where po_id = '{$row['po_id']}' ";
|
||||
$row2 = sql_fetch($sql2);
|
||||
$po_etc = ($row['po_etc']) ? "사용" : "미사용";
|
||||
$po_use = ($row['po_use']) ? "사용" : "미사용";
|
||||
|
||||
$s_mod = '<a href="./poll_form.php?' . $qstr . '&w=u&po_id=' . $row['po_id'] . '" class="btn btn_03">수정</a>';
|
||||
|
||||
@@ -115,14 +119,16 @@ $colspan = 7;
|
||||
<td class="td_num"><?php echo $row['po_level'] ?></td>
|
||||
<td class="td_num"><?php echo $row2['sum_po_cnt'] ?></td>
|
||||
<td class="td_etc"><?php echo $po_etc ?></td>
|
||||
<td class="td_use"><?php echo $po_use ?></td>
|
||||
<td class="td_mng td_mng_s"><?php echo $s_mod ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i==0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -154,4 +160,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300300";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
@@ -47,7 +47,9 @@ $total_count = $row['cnt'];
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select *
|
||||
@@ -60,7 +62,7 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$g5['title'] = '인기검색어관리';
|
||||
include_once('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
$colspan = 4;
|
||||
?>
|
||||
@@ -113,11 +115,9 @@ var list_delete_php = 'popular_list.php';
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
|
||||
$word = get_text($row['pp_word']);
|
||||
$bg = 'bg' . ($i % 2);
|
||||
?>
|
||||
|
||||
<tr class="<?php echo $bg; ?>">
|
||||
<td class="td_chk">
|
||||
<label for="chk_<?php echo $i; ?>" class="sound_only"><?php echo $word ?></label>
|
||||
@@ -127,12 +127,12 @@ var list_delete_php = 'popular_list.php';
|
||||
<td><?php echo $row['pp_date'] ?></td>
|
||||
<td><?php echo $row['pp_ip'] ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -167,4 +167,4 @@ $(function() {
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+23
-13
@@ -1,14 +1,18 @@
|
||||
<?php
|
||||
$sub_menu = "300400";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$fr_date = isset($_REQUEST['fr_date']) ? $_REQUEST['fr_date'] : '';
|
||||
$to_date = isset($_REQUEST['to_date']) ? $_REQUEST['to_date'] : '';
|
||||
|
||||
if (empty($fr_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date) ) $fr_date = G5_TIME_YMD;
|
||||
if (empty($to_date) || ! preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date) ) $to_date = G5_TIME_YMD;
|
||||
if (empty($fr_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $fr_date)) {
|
||||
$fr_date = G5_TIME_YMD;
|
||||
}
|
||||
if (empty($to_date) || !preg_match("/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/", $to_date)) {
|
||||
$to_date = G5_TIME_YMD;
|
||||
}
|
||||
|
||||
$qstr = "fr_date={$fr_date}&to_date={$to_date}";
|
||||
|
||||
@@ -23,7 +27,9 @@ $total_count = sql_num_rows($result);
|
||||
|
||||
$rows = $config['cf_page_rows'];
|
||||
$total_page = ceil($total_count / $rows); // 전체 페이지 계산
|
||||
if ($page < 1) { $page = 1; } // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
if ($page < 1) {
|
||||
$page = 1;
|
||||
} // 페이지가 없으면 첫 페이지 (1 페이지)
|
||||
$from_record = ($page - 1) * $rows; // 시작 열을 구함
|
||||
|
||||
$sql = " select pp_word, count(*) as cnt {$sql_common} {$sql_search} {$sql_group} {$sql_order} limit {$from_record}, {$rows} ";
|
||||
@@ -32,15 +38,22 @@ $result = sql_query($sql);
|
||||
$listall = '<a href="' . $_SERVER['SCRIPT_NAME'] . '" class="ov_listall">전체목록</a>';
|
||||
|
||||
$g5['title'] = '인기검색어순위';
|
||||
include_once('./admin.head.php');
|
||||
include_once(G5_PLUGIN_PATH.'/jquery-ui/datepicker.php');
|
||||
require_once './admin.head.php';
|
||||
require_once G5_PLUGIN_PATH . '/jquery-ui/datepicker.php';
|
||||
|
||||
$colspan = 3;
|
||||
?>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$("#fr_date, #to_date").datepicker({ changeMonth: true, changeYear: true, dateFormat: "yy-mm-dd", showButtonPanel: true, yearRange: "c-99:c+99", maxDate: "+0d" });
|
||||
$("#fr_date, #to_date").datepicker({
|
||||
changeMonth: true,
|
||||
changeYear: true,
|
||||
dateFormat: "yy-mm-dd",
|
||||
showButtonPanel: true,
|
||||
yearRange: "c-99:c+99",
|
||||
maxDate: "+0d"
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -82,23 +95,20 @@ $(function(){
|
||||
<tbody>
|
||||
<?php
|
||||
for ($i = 0; $row = sql_fetch_array($result); $i++) {
|
||||
|
||||
$word = get_text($row['pp_word']);
|
||||
$rank = ($i + 1 + ($rows * ($page - 1)));
|
||||
|
||||
?>
|
||||
|
||||
<tr>
|
||||
<td class="td_num"><?php echo $rank ?></td>
|
||||
<td class="td_left"><?php echo $word ?></td>
|
||||
<td class="td_num"><?php echo $row['cnt'] ?></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
if ($i == 0) {
|
||||
echo '<tr><td colspan="' . $colspan . '" class="empty_table">자료가 없습니다.</td></tr>';
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -109,4 +119,4 @@ $(function(){
|
||||
<?php
|
||||
echo get_paging(G5_IS_MOBILE ? $config['cf_mobile_pages'] : $config['cf_write_pages'], $page, $total_page, "{$_SERVER['SCRIPT_NAME']}?$qstr&page=");
|
||||
|
||||
include_once('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
+38
-25
@@ -1,16 +1,18 @@
|
||||
<?php
|
||||
$sub_menu = "300500";
|
||||
include_once('./_common.php');
|
||||
include_once(G5_EDITOR_LIB);
|
||||
require_once './_common.php';
|
||||
require_once G5_EDITOR_LIB;
|
||||
|
||||
auth_check_menu($auth, $sub_menu, 'r');
|
||||
|
||||
$g5['title'] = '1:1문의 설정';
|
||||
include_once ('./admin.head.php');
|
||||
require_once './admin.head.php';
|
||||
|
||||
// DB 테이블 생성
|
||||
if (!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['qa_config_table']}` (
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['qa_config_table']}` (
|
||||
`qa_id` int(11) NOT NULL auto_increment,
|
||||
`qa_title` varchar(255) NOT NULL DEFAULT'',
|
||||
`qa_category` varchar(255) NOT NULL DEFAULT'',
|
||||
`qa_skin` varchar(255) NOT NULL DEFAULT '',
|
||||
@@ -45,9 +47,13 @@ if(!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
||||
`qa_2` varchar(255) NOT NULL DEFAULT '',
|
||||
`qa_3` varchar(255) NOT NULL DEFAULT '',
|
||||
`qa_4` varchar(255) NOT NULL DEFAULT '',
|
||||
`qa_5` varchar(255) NOT NULL DEFAULT ''
|
||||
)", true);
|
||||
sql_query(" CREATE TABLE IF NOT EXISTS `{$g5['qa_content_table']}` (
|
||||
`qa_5` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`qa_id`)
|
||||
)",
|
||||
true
|
||||
);
|
||||
sql_query(
|
||||
" CREATE TABLE IF NOT EXISTS `{$g5['qa_content_table']}` (
|
||||
`qa_id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`qa_num` int(11) NOT NULL DEFAULT '0',
|
||||
`qa_parent` int(11) NOT NULL DEFAULT '0',
|
||||
@@ -77,7 +83,9 @@ if(!sql_query(" DESCRIBE `{$g5['qa_config_table']}` ", false)) {
|
||||
`qa_5` varchar(255) NOT NULL DEFAULT '',
|
||||
PRIMARY KEY (`qa_id`),
|
||||
KEY `qa_num_parent` (`qa_num`,`qa_parent`)
|
||||
)", true);
|
||||
)",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
$sql = " SHOW COLUMNS FROM `{$g5['qa_content_table']}` LIKE 'qa_content' ";
|
||||
@@ -100,19 +108,25 @@ if(empty($qaconfig)) {
|
||||
|
||||
// 관리자 이메일필드 추가
|
||||
if (!isset($qaconfig['qa_admin_email'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['qa_config_table']}`
|
||||
ADD `qa_admin_email` varchar(255) NOT NULL DEFAULT '' AFTER `qa_admin_hp` ", true);
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['qa_config_table']}`
|
||||
ADD `qa_admin_email` varchar(255) NOT NULL DEFAULT '' AFTER `qa_admin_hp` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
|
||||
// 상단 하단 설정 필드 추가
|
||||
if (!isset($qaconfig['qa_include_head'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['qa_config_table']}`
|
||||
sql_query(
|
||||
" ALTER TABLE `{$g5['qa_config_table']}`
|
||||
ADD `qa_include_head` varchar(255) NOT NULL DEFAULT '' AFTER `qa_insert_content`,
|
||||
ADD `qa_include_tail` varchar(255) NOT NULL DEFAULT '' AFTER `qa_include_head`,
|
||||
ADD `qa_content_head` text NOT NULL AFTER `qa_include_tail`,
|
||||
ADD `qa_content_tail` text NOT NULL AFTER `qa_content_head`,
|
||||
ADD `qa_mobile_content_head` text NOT NULL AFTER `qa_content_tail`,
|
||||
ADD `qa_mobile_content_tail` text NOT NULL AFTER `qa_mobile_content_head` ", true);
|
||||
ADD `qa_mobile_content_tail` text NOT NULL AFTER `qa_mobile_content_head` ",
|
||||
true
|
||||
);
|
||||
}
|
||||
?>
|
||||
|
||||
@@ -254,13 +268,13 @@ if(!isset($qaconfig['qa_include_head'])) {
|
||||
<tr>
|
||||
<th scope="row"><label for="qa_include_head">상단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="qa_include_head" value="<?php echo $qaconfig['qa_include_head'] ?>" id="qa_include_head" class="frm_input" size="50">
|
||||
<input type="text" name="qa_include_head" value="<?php echo get_sanitize_input($qaconfig['qa_include_head']); ?>" id="qa_include_head" class="frm_input" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="qa_include_tail">하단 파일 경로</label></th>
|
||||
<td>
|
||||
<input type="text" name="qa_include_tail" value="<?php echo $qaconfig['qa_include_tail'] ?>" id="qa_include_tail" class="frm_input" size="50">
|
||||
<input type="text" name="qa_include_tail" value="<?php echo get_sanitize_input($qaconfig['qa_include_tail']); ?>" id="qa_include_tail" class="frm_input" size="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="admin_captcha_box" style="display:none;">
|
||||
@@ -269,7 +283,7 @@ if(!isset($qaconfig['qa_include_head'])) {
|
||||
<?php
|
||||
echo help("파일 경로를 입력 또는 수정시 캡챠를 반드시 입력해야 합니다.");
|
||||
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
require_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
$captcha_html = captcha_html();
|
||||
$captcha_js = chk_captcha_js();
|
||||
echo $captcha_html;
|
||||
@@ -332,25 +346,25 @@ if(!isset($qaconfig['qa_include_head'])) {
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
||||
var captcha_chk = false;
|
||||
var captcha_chk = false,
|
||||
qa_include_head = jQuery.trim(jQuery("#qa_include_head").val()),
|
||||
qa_include_tail = jQuery.trim(jQuery("#qa_include_tail").val());
|
||||
|
||||
function use_captcha_check() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: g5_admin_url + "/ajax.use_captcha.php",
|
||||
data: { admin_use_captcha: "1" },
|
||||
data: {
|
||||
admin_use_captcha: "1"
|
||||
},
|
||||
cache: false,
|
||||
async: false,
|
||||
dataType: "json",
|
||||
success: function(data) {
|
||||
}
|
||||
success: function(data) {}
|
||||
});
|
||||
}
|
||||
|
||||
function frm_check_file() {
|
||||
var qa_include_head = "<?php echo $qaconfig['qa_include_head']; ?>";
|
||||
var qa_include_tail = "<?php echo $qaconfig['qa_include_tail']; ?>";
|
||||
var head = jQuery.trim(jQuery("#qa_include_head").val());
|
||||
var tail = jQuery.trim(jQuery("#qa_include_tail").val());
|
||||
|
||||
@@ -379,8 +393,7 @@ jQuery(function($){
|
||||
}
|
||||
});
|
||||
|
||||
function fqaconfigform_submit(f)
|
||||
{
|
||||
function fqaconfigform_submit(f) {
|
||||
<?php echo get_editor_js("qa_content_head"); ?>
|
||||
<?php echo get_editor_js("qa_content_tail"); ?>
|
||||
<?php echo get_editor_js("qa_mobile_content_head"); ?>
|
||||
@@ -396,4 +409,4 @@ function fqaconfigform_submit(f)
|
||||
</script>
|
||||
|
||||
<?php
|
||||
include_once ('./admin.tail.php');
|
||||
require_once './admin.tail.php';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
$sub_menu = "300500";
|
||||
include_once('./_common.php');
|
||||
require_once './_common.php';
|
||||
|
||||
check_demo();
|
||||
|
||||
@@ -18,12 +18,12 @@ foreach($check_keys as $key){
|
||||
$$key = $_POST[$key] = isset($_POST[$key]) ? strip_tags(clean_xss_attributes($_POST[$key])) : '';
|
||||
}
|
||||
|
||||
$qa_include_head = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_head, 0, 255));
|
||||
$qa_include_tail = preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_tail, 0, 255));
|
||||
$qa_include_head = isset($qa_include_head) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_head, 0, 255)) : '';
|
||||
$qa_include_tail = isset($qa_include_tail) ? preg_replace(array("#[\\\]+$#", "#(<\?php|<\?)#i"), "", substr($qa_include_tail, 0, 255)) : '';
|
||||
|
||||
// 관리자가 자동등록방지를 사용해야 할 경우
|
||||
if ($board && ($qaconfig['qa_include_head'] !== $qa_include_head || $qaconfig['qa_include_tail'] !== $qa_include_tail) && function_exists('get_admin_captcha_by') && get_admin_captcha_by()) {
|
||||
include_once(G5_CAPTCHA_PATH.'/captcha.lib.php');
|
||||
include_once G5_CAPTCHA_PATH . '/captcha.lib.php';
|
||||
|
||||
if (!chk_captcha()) {
|
||||
alert('자동등록방지 숫자가 틀렸습니다.');
|
||||
@@ -67,7 +67,7 @@ $dst_char = array('&', '〓');
|
||||
$qa_category = str_replace($src_char, $dst_char, $_POST['qa_category']);
|
||||
|
||||
//https://github.com/gnuboard/gnuboard5/commit/f5f4925d4eb28ba1af728e1065fc2bdd9ce1da58 에 따른 조치
|
||||
$qa_category = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", $qa_category);
|
||||
$qa_category = preg_replace("/[\<\>\'\"\\\'\\\"\%\=\(\)\/\^\*]/", "", (string)$qa_category);
|
||||
|
||||
$sql = " update {$g5['qa_config_table']}
|
||||
set qa_title = '{$_POST['qa_title']}',
|
||||
@@ -108,8 +108,11 @@ $sql = " update {$g5['qa_config_table']}
|
||||
qa_5 = '{$_POST['qa_5']}' ";
|
||||
sql_query($sql);
|
||||
|
||||
if(function_exists('get_admin_captcha_by'))
|
||||
run_event('admin_qa_config_updated');
|
||||
|
||||
if (function_exists('get_admin_captcha_by')) {
|
||||
get_admin_captcha_by('remove');
|
||||
}
|
||||
|
||||
if ($error_msg) {
|
||||
alert($error_msg, './qa_config.php');
|
||||
|
||||
+9
-4
@@ -1,14 +1,19 @@
|
||||
<?php
|
||||
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
||||
if (!defined('_GNUBOARD_')) {
|
||||
exit; // 개별 페이지 접근 불가
|
||||
}
|
||||
|
||||
function social_log_file_delete($second=0){
|
||||
function social_log_file_delete($second = 0)
|
||||
{
|
||||
$files = glob(G5_DATA_PATH . '/tmp/social_*');
|
||||
if (is_array($files)) {
|
||||
$before_time = $second ? G5_SERVER_TIME - $second : 0;
|
||||
foreach ($files as $social_log_file) {
|
||||
$modification_time = filemtime($log_file); // 파일접근시간
|
||||
$modification_time = filemtime($social_log_file); // 파일접근시간
|
||||
|
||||
if ($before_time && $modification_time > $before_time) continue;
|
||||
if ($before_time && $modification_time > $before_time) {
|
||||
continue;
|
||||
}
|
||||
|
||||
unlink($social_log_file);
|
||||
}
|
||||
|
||||
@@ -41,6 +41,7 @@ if (isset($_POST['email'])) {
|
||||
echo '해당 주소로 테스트 메일이 도착했는지 확인해 주십시오.<br>';
|
||||
echo '만약, 테스트 메일이 오지 않는다면 더 다양한 계정의 메일 주소로 메일을 보내 보십시오.<br>';
|
||||
echo '그래도 메일이 하나도 도착하지 않는다면 메일 서버(sendmail server)의 오류일 가능성이 높으니, 웹 서버관리자에게 문의하여 주십시오.<br>';
|
||||
echo '도메인을 소유하고 있을시 SPF, DKIM 설정이 필요할수 있습니다.<br>';
|
||||
echo '</p></div>';
|
||||
echo '</section>';
|
||||
}
|
||||
@@ -53,6 +54,10 @@ if (isset($_POST['email'])) {
|
||||
<p>
|
||||
메일서버가 정상적으로 동작 중인지 확인할 수 있습니다.<br>
|
||||
아래 입력칸에 테스트 메일을 발송하실 메일 주소를 입력하시면, [메일검사] 라는 제목으로 테스트 메일을 발송합니다.<br>
|
||||
보내는 메일주소 : <?php echo get_sanitize_input($config['cf_admin_email']); ?><br>
|
||||
<?php if (function_exists('domain_mail_host') && $config['cf_admin_email'] && stripos($config['cf_admin_email'], domain_mail_host()) === false) { ?>
|
||||
<?php echo '외부메일설정이나 기타 설정을 하지 않았다면, 도메인과 다른 헤더로 여겨 스팸이나 차단될 가능성이 있습니다.<br>기본환경설정에서 관리자 메일 주소를 name'.domain_mail_host().' 과 같은 도메인 형식으로 설정할것을 권장합니다.'; ?>
|
||||
<?php } ?>
|
||||
</p>
|
||||
</div>
|
||||
<form name="fsendmailtest" method="post">
|
||||
|
||||
@@ -9,4 +9,6 @@ if (!defined('G5_USE_SHOP') || !G5_USE_SHOP)
|
||||
include_once(G5_ADMIN_PATH.'/admin.lib.php');
|
||||
include_once('./admin.shop.lib.php');
|
||||
|
||||
run_event('admin_common');
|
||||
|
||||
check_order_inicis_tmps();
|
||||
@@ -72,7 +72,7 @@ function order_update_delivery($od_id, $mb_id, $change_status, $delivery)
|
||||
if($change_status != '배송')
|
||||
return;
|
||||
|
||||
$sql = " update {$g5['g5_shop_order_table']} set od_delivery_company = '{$delivery['delivery_company']}', od_invoice = '{$delivery['invoice']}', od_invoice_time = '{$delivery['invoice_time']}' where od_id = '$od_id' and od_status = '준비' ";
|
||||
$sql = " update {$g5['g5_shop_order_table']} set od_delivery_company = '".sql_real_escape_string($delivery['delivery_company'])."', od_invoice = '".sql_real_escape_string($delivery['invoice'])."', od_invoice_time = '".sql_real_escape_string($delivery['invoice_time'])."' where od_id = '$od_id' and od_status = '준비' ";
|
||||
sql_query($sql);
|
||||
|
||||
$sql = " select * from {$g5['g5_shop_cart_table']} where od_id = '$od_id' ";
|
||||
@@ -133,6 +133,8 @@ function pg_setting_check($is_print=false){
|
||||
$pg_msg = 'LG유플러스';
|
||||
} else if ( $default['de_pg_service'] === 'inicis' && $default['de_inicis_mid'] && $default['de_inicis_sign_key'] ){
|
||||
$pg_msg = 'KG이니시스';
|
||||
} else if ( $default['de_pg_service'] === 'nicepay' && $default['de_nicepay_mid'] && $default['de_nicepay_key'] ){
|
||||
$pg_msg = 'NICEPAY';
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,6 +158,21 @@ function pg_setting_check($is_print=false){
|
||||
}
|
||||
}
|
||||
|
||||
function is_cancel_shop_pg_order($od){
|
||||
|
||||
$is_od_pg_cancel = false;
|
||||
|
||||
if (($od['od_settle_case'] == '신용카드' || $od['od_settle_case'] == '간편결제' || $od['od_settle_case'] == 'KAKAOPAY') || ($od['od_pg'] == 'inicis' && is_inicis_order_pay($od['od_settle_case']))) {
|
||||
$is_od_pg_cancel = true;
|
||||
}
|
||||
|
||||
if ($od['od_pg'] === 'nicepay' && in_array($od['od_settle_case'], array('계좌이체', '휴대폰'))) {
|
||||
$is_od_pg_cancel = true;
|
||||
}
|
||||
|
||||
return $is_od_pg_cancel;
|
||||
}
|
||||
|
||||
function check_order_inicis_tmps(){
|
||||
global $g5, $config, $default, $member;
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ $ca = array(
|
||||
'ca_name'=>'',
|
||||
'ca_order'=>'',
|
||||
'ca_mb_id'=>'',
|
||||
'ca_skin_dir'=>'',
|
||||
'ca_cert_use'=>0,
|
||||
'ca_adult_use'=>0,
|
||||
'ca_sell_email'=>'',
|
||||
@@ -49,7 +48,7 @@ if ($w == "")
|
||||
where SUBSTRING(ca_id,1,$len) = '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
|
||||
$subid = base_convert($row['max_subid'], 36, 10);
|
||||
$subid = base_convert((string)$row['max_subid'], 36, 10);
|
||||
$subid += 36;
|
||||
if ($subid >= 36 * 36)
|
||||
{
|
||||
@@ -157,7 +156,6 @@ else {
|
||||
|
||||
<form name="fcategoryform" action="./categoryformupdate.php" onsubmit="return fcategoryformcheck(this);" method="post" enctype="multipart/form-data">
|
||||
|
||||
<input type="hidden" name="codedup" value="<?php echo $default['de_code_dup_use']; ?>">
|
||||
<input type="hidden" name="w" value="<?php echo $w; ?>">
|
||||
<input type="hidden" name="sst" value="<?php echo $sst; ?>">
|
||||
<input type="hidden" name="sod" value="<?php echo $sod; ?>">
|
||||
@@ -184,7 +182,6 @@ else {
|
||||
<?php if ($w == "") { ?>
|
||||
<?php echo help("자동으로 보여지는 분류코드를 사용하시길 권해드리지만 직접 입력한 값으로도 사용할 수 있습니다.\n분류코드는 나중에 수정이 되지 않으므로 신중하게 결정하여 사용하십시오.\n\n분류코드는 2자리씩 10자리를 사용하여 5단계를 표현할 수 있습니다.\n0~z까지 입력이 가능하며 한 분류당 최대 1296가지를 표현할 수 있습니다.\n그러므로 총 3656158440062976가지의 분류를 사용할 수 있습니다."); ?>
|
||||
<input type="text" name="ca_id" value="<?php echo $subid; ?>" id="ca_id" required class="required frm_input" size="<?php echo $sublen; ?>" maxlength="<?php echo $sublen; ?>">
|
||||
<!-- <?php if ($default['de_code_dup_use']) { ?><a href="javascript:;" onclick="codedupcheck(document.getElementById('ca_id').value)">코드 중복검사</a><?php } ?> -->
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="ca_id" value="<?php echo $ca['ca_id']; ?>">
|
||||
<span class="frm_ca_id"><?php echo $ca['ca_id']; ?></span>
|
||||
|
||||
@@ -193,6 +193,7 @@ if ($w == "")
|
||||
ca_name = '$ca_name',
|
||||
$sql_common ";
|
||||
sql_query($sql);
|
||||
run_event('shop_admin_category_created', $ca_id);
|
||||
}
|
||||
else if ($w == "u")
|
||||
{
|
||||
@@ -212,6 +213,7 @@ else if ($w == "u")
|
||||
$sql .= " and ca_mb_id = '{$member['mb_id']}' ";
|
||||
sql_query($sql);
|
||||
}
|
||||
run_event('shop_admin_category_updated', $ca_id);
|
||||
}
|
||||
else if ($w == "d")
|
||||
{
|
||||
@@ -243,6 +245,7 @@ else if ($w == "d")
|
||||
// 분류 삭제
|
||||
$sql = " delete from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
||||
sql_query($sql);
|
||||
run_event('shop_admin_category_deleted', $ca_id);
|
||||
}
|
||||
|
||||
if(function_exists('get_admin_captcha_by'))
|
||||
|
||||
@@ -17,7 +17,7 @@ if ($stx != "") {
|
||||
$sql_search .= " $where $sfl like '%$stx%' ";
|
||||
$where = " and ";
|
||||
}
|
||||
if ($save_stx && ($save_stx != $stx))
|
||||
if (isset($save_stx) && $save_stx && ($save_stx != $stx))
|
||||
$page = 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
include_once('./_common.php');
|
||||
|
||||
$name = '';
|
||||
|
||||
if ($it_id)
|
||||
{
|
||||
$row = get_shop_item($it_id, true);
|
||||
$code = $it_id;
|
||||
$name = $row['it_name'];
|
||||
}
|
||||
else if ($ca_id)
|
||||
{
|
||||
$sql = " select ca_name from {$g5['g5_shop_category_table']} where ca_id = '$ca_id' ";
|
||||
$row = sql_fetch($sql);
|
||||
$code = $ca_id;
|
||||
$name = $row['ca_name'];
|
||||
}
|
||||
|
||||
echo '{ "code": "' . $code . '", "name": "' . $name . '" }';
|
||||
@@ -13,8 +13,6 @@ if ($config['cf_sms_use'] && $config['cf_icode_id'] && $config['cf_icode_pw']) {
|
||||
$userinfo = get_icode_userinfo($config['cf_icode_id'], $config['cf_icode_pw']);
|
||||
}
|
||||
|
||||
check_log_folder(G5_SHOP_PATH.'/inicis/key', false);
|
||||
|
||||
$g5['title'] = '쇼핑몰설정';
|
||||
include_once (G5_ADMIN_PATH.'/admin.head.php');
|
||||
|
||||
@@ -68,8 +66,7 @@ if(!isset($default['de_pg_service'])) {
|
||||
// inicis 필드 추가
|
||||
if(!isset($default['de_inicis_mid'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_inicis_mid` varchar(255) NOT NULL DEFAULT '' AFTER `de_kcp_site_key`,
|
||||
ADD `de_inicis_admin_key` varchar(255) NOT NULL DEFAULT '' AFTER `de_inicis_mid` ", true);
|
||||
ADD `de_inicis_mid` varchar(255) NOT NULL DEFAULT '' AFTER `de_kcp_site_key` ", true);
|
||||
}
|
||||
|
||||
// 모바일 초기화면 이미지 줄 수 필드 추가
|
||||
@@ -137,7 +134,7 @@ if(!isset($default['de_kakaopay_mid'])) {
|
||||
// 이니시스 웹결제 사인키 필드 추가
|
||||
if(!isset($default['de_inicis_sign_key'])) {
|
||||
sql_query(" ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD `de_inicis_sign_key` varchar(255) NOT NULL DEFAULT '' AFTER `de_inicis_admin_key` ", true);
|
||||
ADD `de_inicis_sign_key` varchar(255) NOT NULL DEFAULT '' ", true);
|
||||
}
|
||||
|
||||
// 네이버페이 필드추가
|
||||
@@ -202,6 +199,22 @@ if( ! isset($default['de_easy_pay_services']) ){
|
||||
sql_query($sql, false);
|
||||
}
|
||||
|
||||
// KG 이니시스 iniapi_key 추가
|
||||
if( ! isset($default['de_inicis_iniapi_key']) ){
|
||||
$sql = "ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD COLUMN `de_inicis_iniapi_key` VARCHAR(30) NOT NULL DEFAULT '' AFTER `de_inicis_sign_key`,
|
||||
ADD COLUMN `de_inicis_iniapi_iv` VARCHAR(30) NOT NULL DEFAULT '' AFTER `de_inicis_iniapi_key`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
|
||||
// NICEPAY mid, key 추가
|
||||
if (! isset($default['de_nicepay_mid'])) {
|
||||
$sql = "ALTER TABLE `{$g5['g5_shop_default_table']}`
|
||||
ADD COLUMN `de_nicepay_mid` VARCHAR(20) NOT NULL DEFAULT '' AFTER `de_inicis_cartpoint_use`,
|
||||
ADD COLUMN `de_nicepay_key` VARCHAR(150) NOT NULL DEFAULT '' AFTER `de_nicepay_mid`; ";
|
||||
sql_query($sql, false);
|
||||
}
|
||||
|
||||
if( function_exists('pg_setting_check') ){
|
||||
pg_setting_check(true);
|
||||
}
|
||||
@@ -593,7 +606,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<tr>
|
||||
<th scope="row"><label for="de_bank_account">은행계좌번호</label></th>
|
||||
<td>
|
||||
<textarea name="de_bank_account" id="de_bank_account"><?php echo $default['de_bank_account']; ?></textarea>
|
||||
<textarea name="de_bank_account" id="de_bank_account"><?php echo html_purifier($default['de_bank_account']); ?></textarea>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -625,9 +638,15 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<tr id="inicis_vbank_url" class="pg_vbank_url">
|
||||
<th scope="row">KG이니시스 가상계좌 입금통보 URL</th>
|
||||
<td>
|
||||
<?php echo help("KG이니시스 가상계좌 사용시 다음 주소를 <strong><a href=\"https://iniweb.inicis.com/\" target=\"_blank\">KG이니시스 관리자</a> > 거래조회 > 가상계좌 > 입금통보방식선택 > URL 수신 설정</strong>에 넣으셔야 상점에 자동으로 입금 통보됩니다."); ?>
|
||||
<?php echo help("KG이니시스 가상계좌 사용시 다음 주소를 <strong><a href=\"https://iniweb.inicis.com/\" target=\"_blank\">KG이니시스 관리자</a> > 거래내역 > 가상계좌 > 입금통보방식선택 > URL 수신 설정</strong>에 넣으셔야 상점에 자동으로 입금 통보됩니다."); ?>
|
||||
<?php echo G5_SHOP_URL; ?>/settle_inicis_common.php</td>
|
||||
</tr>
|
||||
<tr id="nicepay_vbank_url" class="pg_vbank_url">
|
||||
<th scope="row">NICEPAY 가상계좌 입금통보 URL</th>
|
||||
<td>
|
||||
<?php echo help("NICEPAY 가상계좌 사용시 다음 주소를 <strong><a href=\"https://npg.nicepay.co.kr/\" target=\"_blank\">NICEPAY 관리자</a> > 가맹점관리자페이지 설정 (메인화면 → 가맹점정보 클릭)</strong>에 넣으셔야 상점에 자동으로 입금 통보됩니다."); ?>
|
||||
<?php echo G5_SHOP_URL; ?>/settle_nicepay_common.php</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_hp_use">휴대폰결제사용</label></th>
|
||||
<td>
|
||||
@@ -758,6 +777,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<li class="<?php if($default['de_pg_service'] == 'kcp') echo 'tab-current'; ?>"><a href="#kcp_info_anchor" data-value="kcp" title="NHN KCP 선택하기" >NHN KCP</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'lg') echo 'tab-current'; ?>"><a href="#lg_info_anchor" data-value="lg" title="토스페이먼츠 선택하기">토스페이먼츠</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'inicis') echo 'tab-current'; ?>"><a href="#inicis_info_anchor" data-value="inicis" title="KG이니시스 선택하기">KG이니시스</a></li>
|
||||
<li class="<?php if($default['de_pg_service'] == 'nicepay') echo 'tab-current'; ?>"><a href="#nicepay_info_anchor" data-value="nicepay" title="NICEPAY 선택하기">NICEPAY</a></li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -781,10 +801,11 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<tr class="pg_info_fld kcp_info_fld">
|
||||
<th scope="row"><label for="de_kcp_easy_pays">NHN KCP 간편결제</label></th>
|
||||
<td>
|
||||
<?php echo help("체크시 NHN KCP 간편결제들을 활성화 합니다.\nNHN_KCP > 네이버페이, 카카오페이는 테스트결제가 되지 않습니다."); ?>
|
||||
<?php echo help("체크시 NHN KCP 간편결제들을 활성화 합니다.\nNHN_KCP > 네이버페이, 카카오페이는 테스트결제가 되지 않습니다.\n애플페이는 IOS 기기에 모바일결제만 가능합니다."); ?>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_payco" name="de_easy_pays[]" value="nhnkcp_payco" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_payco') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_payco" disabled>PAYCO (페이코)</label><br>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_naverpay" name="de_easy_pays[]" value="nhnkcp_naverpay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_naverpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_naverpay">NAVERPAY (네이버페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_kakaopay" name="de_easy_pays[]" value="nhnkcp_kakaopay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_kakaopay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_kakaopay">KAKAOPAY (카카오페이)</label>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_kakaopay" name="de_easy_pays[]" value="nhnkcp_kakaopay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_kakaopay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_kakaopay">KAKAOPAY (카카오페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nhnkcp_applepay" name="de_easy_pays[]" value="nhnkcp_applepay" <?php if(stripos($default['de_easy_pay_services'], 'nhnkcp_applepay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nhnkcp_applepay">APPLEPAY (애플페이)</label>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld kcp_info_fld">
|
||||
@@ -829,17 +850,24 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld inicis_info_fld">
|
||||
<th scope="row"><label for="de_inicis_admin_key">KG이니시스 키패스워드</label></th>
|
||||
<th scope="row"><label for="de_inicis_sign_key">KG이니시스 웹결제 사인키</label></th>
|
||||
<td>
|
||||
<?php echo help("KG이니시스에서 발급받은 4자리 상점 키패스워드를 입력합니다.\nKG이니시스 상점관리자 패스워드와 관련이 없습니다.\n키패스워드 값을 확인하시려면 상점측에 발급된 키파일 안의 readme.txt 파일을 참조해 주십시오"); ?>
|
||||
<input type="text" name="de_inicis_admin_key" value="<?php echo get_sanitize_input($default['de_inicis_admin_key']); ?>" id="de_inicis_admin_key" class="frm_input" size="5" maxlength="4">
|
||||
<?php echo help("KG이니시스에서 발급받은 웹결제 사인키를 입력합니다.\n<a href='https://iniweb.inicis.com/' target='_blank'>KG이니시스 가맹점관리자</a> > 상점정보 > 계약정보 > 부가정보의 웹결제 signkey생성 조회 버튼 클릭, 팝업창에서 생성 버튼 클릭 후 해당 값을 입력합니다."); ?>
|
||||
<input type="text" name="de_inicis_sign_key" value="<?php echo get_sanitize_input($default['de_inicis_sign_key']); ?>" id="de_inicis_sign_key" class="frm_input" size="40" maxlength="50">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld inicis_info_fld">
|
||||
<th scope="row"><label for="de_inicis_sign_key">KG이니시스 웹결제 사인키</label></th>
|
||||
<th scope="row"><label for="de_inicis_iniapi_key">KG이니시스 INIAPI KEY</label></th>
|
||||
<td>
|
||||
<?php echo help("KG이니시스에서 발급받은 웹결제 사인키를 입력합니다.\nKG이니시스 상점관리자 > 상점정보 > 계약정보 > 부가정보의 웹결제 signkey생성 조회 버튼 클릭, 팝업창에서 생성 버튼 클릭 후 해당 값을 입력합니다."); ?>
|
||||
<input type="text" name="de_inicis_sign_key" value="<?php echo get_sanitize_input($default['de_inicis_sign_key']); ?>" id="de_inicis_sign_key" class="frm_input" size="40" maxlength="50">
|
||||
<?php echo help("<a href='https://iniweb.inicis.com/' target='_blank'>KG이니시스 가맹점관리자</a> > 상점정보 > 계약정보 > 부가정보 > INIAPI key 생성 조회 하여 KEY를 여기에 입력합니다.\n이 항목은 영카트 주문에서 kg이니시스 PG 결제 취소, 부분취소, 에스크로 배송등록, 현금영수증 발급에 필요합니다."); ?>
|
||||
<input type="text" name="de_inicis_iniapi_key" value="<?php echo get_sanitize_input($default['de_inicis_iniapi_key']); ?>" id="de_inicis_iniapi_key" class="frm_input" size="30" maxlength="30">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld inicis_info_fld">
|
||||
<th scope="row"><label for="de_inicis_iniapi_iv">KG이니시스 INIAPI IV</label></th>
|
||||
<td>
|
||||
<?php echo help("<a href='https://iniweb.inicis.com/' target='_blank'>KG이니시스 가맹점관리자</a> > 상점정보 > 계약정보 > 부가정보 > INIAPI IV 생성 조회 하여 KEY를 여기에 입력합니다.\n이 항목은 영카트 주문에서 kg이니시스 현금영수증 발급에 필요합니다."); ?>
|
||||
<input type="text" name="de_inicis_iniapi_iv" value="<?php echo get_sanitize_input($default['de_inicis_iniapi_iv']); ?>" id="de_inicis_iniapi_iv" class="frm_input" size="30" maxlength="30">
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld inicis_info_fld">
|
||||
@@ -848,7 +876,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<a href="http://sir.kr/main/service/samsungpay.php" target="_blank" class="kg_btn">삼성페이 서비스신청하기</a>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("KG이니시스와 별도로 <strong>삼성페이 사용 계약을 하신 경우</strong>에만 체크해주세요. (모바일 주문서 결제수단에 삼성페이가 노출됩니다.) <br >실결제시 반드시 결제대행사 KG이니시스 항목에 상점 아이디와 키패스워드를 입력해 주세요.", 50); ?>
|
||||
<?php echo help("KG이니시스와 별도로 <strong>삼성페이 사용 계약을 하신 경우</strong>에만 체크해주세요. (모바일 주문서 결제수단에 삼성페이가 노출됩니다.) <br >실결제시 반드시 결제대행사 KG이니시스 항목에 상점 아이디와 웹결제 사인키를 입력해 주세요.", 50); ?>
|
||||
<input type="checkbox" name="de_samsung_pay_use" value="1" id="de_samsung_pay_use"<?php echo $default['de_samsung_pay_use']?' checked':''; ?>> <label for="de_samsung_pay_use">사용</label>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -857,7 +885,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<label for="de_inicis_lpay_use">KG이니시스 L.pay 사용</label>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("체크시 KG이니시스 L.pay를 사용합니다. <br >실결제시 반드시 결제대행사 KG이니시스 항목의 상점 정보( 아이디, 키패스워드, 웹결제 사인키 )를 입력해 주세요.", 50); ?>
|
||||
<?php echo help("체크시 KG이니시스 L.pay를 사용합니다. <br >실결제시 반드시 결제대행사 KG이니시스 항목의 상점 정보( 아이디, 웹결제 사인키 )를 입력해 주세요.", 50); ?>
|
||||
<input type="checkbox" name="de_inicis_lpay_use" value="1" id="de_inicis_lpay_use"<?php echo $default['de_inicis_lpay_use']?' checked':''; ?>> <label for="de_inicis_lpay_use">사용</label>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -866,7 +894,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<label for="de_inicis_kakaopay_use">KG이니시스 카카오페이 사용</label>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("체크시 KG이니시스 결제의 카카오페이를 사용합니다. 주문서 결제수단에 카카오페이가 노출됩니다. <br>실결제시 반드시 결제대행사 KG이니시스 항목의 상점 정보( 아이디, 키패스워드, 웹결제 사인키 )를 입력해 주세요.", 50); ?>
|
||||
<?php echo help("체크시 KG이니시스 결제의 카카오페이를 사용합니다. 주문서 결제수단에 카카오페이가 노출됩니다. <br>실결제시 반드시 결제대행사 KG이니시스 항목의 상점 정보( 아이디, 웹결제 사인키 )를 입력해 주세요.", 50); ?>
|
||||
<input type="checkbox" name="de_inicis_kakaopay_use" value="1" id="de_inicis_kakaopay_use"<?php echo $default['de_inicis_kakaopay_use']?' checked':''; ?>> <label for="de_inicis_kakaopay_use">사용</label>
|
||||
</td>
|
||||
</tr>
|
||||
@@ -905,7 +933,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
</tr>
|
||||
<tr class="kakao_info_fld">
|
||||
<th scope="row">
|
||||
<label for="de_kakaopay_enckey">카카오페이 사용</label>
|
||||
<label for="de_kakaopay_enckey">KG이니시스<br>카카오페이 사용</label>
|
||||
</th>
|
||||
<td>
|
||||
<?php echo help("체크시 카카오페이 (KG 이니시스)를 사용합니다. <br >KG 이니시스의 SIRK****** 아이디를 받은 상점만 해당됩니다.", 50); ?>
|
||||
@@ -919,6 +947,39 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<input type="text" name="de_kakaopay_hashkey" value="<?php echo get_sanitize_input($default['de_kakaopay_hashkey']); ?>" id="de_kakaopay_hashkey" class="frm_input" size="20">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="pg_info_fld nicepay_info_fld" id="nicepay_info_anchor">
|
||||
<th scope="row"><label for="de_nicepay_mid">NICEPAY MID</label><br><a href="http://sir.kr/main/service/inicis_pg.php" target="_blank" id="scf_nicepay_reg" class="nicepay_btn">NICEPAY 신청하기</a></th>
|
||||
<td>
|
||||
<span class="frm_info">NICEPAY로 부터 발급 받으신 상점MID를 SR 을 제외한 나머지 자리를 입력 합니다.<br>NICEPAY 상점관리자 > 가맹점정보 > KEY관리에서 확인 할수 있습니다.<br>만약, 상점아이디가 SR로 시작하지 않는다면 계약담당자에게 변경 요청을 해주시기 바랍니다. 예) SRpaytestm</span>
|
||||
<span class="sitecode">SR</span>
|
||||
<input type="text" name="de_nicepay_mid" value="<?php echo get_sanitize_input($default['de_nicepay_mid']); ?>" id="de_nicepay_mid" class="frm_input" size="12" maxlength="12">
|
||||
영문소문자(숫자포함 가능)
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pg_info_fld nicepay_info_fld">
|
||||
<th scope="row"><label for="de_nicepay_key">NICEPAY KEY</label></th>
|
||||
<td>
|
||||
<input type="text" name="de_nicepay_key" value="<?php echo get_sanitize_input($default['de_nicepay_key']); ?>" id="de_nicepay_key" class="frm_input" size="100" maxlength="100">
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="pg_info_fld nicepay_info_fld">
|
||||
<th scope="row"><label for="de_nicepay_easy_pays">NICEPAY 간편결제</label></th>
|
||||
<td>
|
||||
<?php echo help("체크시 NICEPAY 간편결제들을 활성화 합니다.\nNICEPAY > 간편결제는 테스트결제가 되지 않습니다. 실결제에만 정상작동 합니다.\n애플페이는 IOS 기기에 모바일결제만 가능합니다."); ?>
|
||||
<input type="checkbox" id="de_easy_nicepay_samsungpay" name="de_easy_pays[]" value="nicepay_samsungpay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_samsungpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_samsungpay" disabled>삼성페이</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_naverpay" name="de_easy_pays[]" value="nicepay_naverpay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_naverpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_naverpay">NAVERPAY (네이버페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_kakaopay" name="de_easy_pays[]" value="nicepay_kakaopay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_kakaopay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_kakaopay">KAKAOPAY (카카오페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_applepay" name="de_easy_pays[]" value="nicepay_applepay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_applepay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_applepay">APPLEPAY (애플페이)</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_paycopay" name="de_easy_pays[]" value="nicepay_paycopay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_paycopay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_paycopay">페이코</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_skpay" name="de_easy_pays[]" value="nicepay_skpay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_skpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_skpay">SK페이</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_ssgpay" name="de_easy_pays[]" value="nicepay_ssgpay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_ssgpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_ssgpay">SSG페이</label><br>
|
||||
<input type="checkbox" id="de_easy_nicepay_lpay" name="de_easy_pays[]" value="nicepay_lpay" <?php if(stripos($default['de_easy_pay_services'], 'nicepay_lpay') !== false){ echo 'checked="checked"'; } ?> > <label for="de_easy_nicepay_lpay">LPAY</label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (defined('G5_SHOP_DIRECT_NAVERPAY') && G5_SHOP_DIRECT_NAVERPAY) { ?>
|
||||
<tr class="naver_info_fld">
|
||||
<th scope="row">
|
||||
<label for="de_naverpay_mid">네이버페이 가맹점 아이디</label>
|
||||
@@ -982,6 +1043,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<input type="text" name="de_naverpay_sendcost" value="<?php echo get_sanitize_input($default['de_naverpay_sendcost']); ?>" id="de_naverpay_sendcost" class="frm_input" size="70">
|
||||
</td>
|
||||
</tr>
|
||||
<?php } // defined('G5_SHOP_DIRECT_NAVERPAY') ?>
|
||||
<tr>
|
||||
<th scope="row">에스크로 사용</th>
|
||||
<td>
|
||||
@@ -1005,8 +1067,8 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<a href="http://testadmin8.kcp.co.kr/" target="_blank" class="btn_frmline">테스트 관리자</a>
|
||||
</div>
|
||||
<div class="scf_cardtest lg_cardtest">
|
||||
<a href="https://pgweb.uplus.co.kr/" target="_blank" class="btn_frmline">실결제 관리자</a>
|
||||
<a href="https://pgweb.uplus.co.kr/tmert" target="_blank" class="btn_frmline">테스트 관리자</a>
|
||||
<a href="https://app.tosspayments.com/" target="_blank" class="btn_frmline">실결제 관리자</a>
|
||||
<a href="https://pgweb.tosspayments.com/tmert" target="_blank" class="btn_frmline">테스트 관리자</a>
|
||||
</div>
|
||||
<div class="scf_cardtest inicis_cardtest">
|
||||
<a href="https://iniweb.inicis.com/" target="_blank" class="btn_frmline">상점 관리자</a>
|
||||
@@ -1031,7 +1093,7 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<li><b>일반결제</b>의 테스트 사이트코드는 <b>T0000</b> 이며, <b>에스크로 결제</b>의 테스트 사이트코드는 <b>T0007</b> 입니다.</li>
|
||||
</ul>
|
||||
<ul id="lg_cardtest_tip" class="scf_cardtest_tip_adm scf_cardtest_tip_adm_hide">
|
||||
<li>테스트결제의 <a href="http://pgweb.dacom.net:7085/" target="_blank">상점관리자</a> 로그인 정보는 토스페이먼츠 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus</li>
|
||||
<li>테스트결제의 <a href="https://pgweb.tosspayments.com/tmert" target="_blank">상점관리자</a> 로그인 정보는 토스페이먼츠 상점아이디 첫 글자에 t를 추가해서 로그인하시기 바랍니다. 예) tsi_lguplus</li>
|
||||
</ul>
|
||||
<ul id="inicis_cardtest_tip" class="scf_cardtest_tip_adm scf_cardtest_tip_adm_hide">
|
||||
<li><b>일반결제</b>의 테스트 사이트 mid는 <b>INIpayTest</b> 이며, <b>에스크로 결제</b>의 테스트 사이트 mid는 <b>iniescrow0</b> 입니다.</li>
|
||||
@@ -1396,13 +1458,6 @@ if(!$default['de_kakaopay_cancelpwd']){
|
||||
<?php echo get_member_level_select('de_level_sell', 1, 10, $default['de_level_sell']); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_code_dup_use">코드 중복검사</label></th>
|
||||
<td>
|
||||
<?php echo help("분류, 상품 등을 추가할 때 자동으로 코드 중복검사를 하려면 체크하십시오."); ?>
|
||||
<input type="checkbox" name="de_code_dup_use" value="1" id="de_code_dup_use"<?php echo $default['de_code_dup_use']?' checked':''; ?>> 사용
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row"><label for="de_cart_keep_term">장바구니 보관기간</label></th>
|
||||
<td>
|
||||
@@ -1720,6 +1775,10 @@ function fconfig_check(f)
|
||||
if( f.de_inicis_mid.value && f.de_inicis_sign_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "KG이니시스";
|
||||
}
|
||||
} else if ( f.de_pg_service.value == "nicepay" ) {
|
||||
if( f.de_nicepay_mid.value && f.de_nicepay_key.value && parseInt(f.de_card_test.value) > 0 ){
|
||||
pg_msg = "NICEPAY";
|
||||
}
|
||||
}
|
||||
|
||||
if( pg_msg ){
|
||||
@@ -2016,22 +2075,10 @@ if($default['de_iche_use'] || $default['de_vbank_use'] || $default['de_hp_use']
|
||||
} catch(Exception $e) {
|
||||
}
|
||||
|
||||
if(!is_dir($log_path)) {
|
||||
echo '<script>'.PHP_EOL;
|
||||
echo 'alert("'.str_replace(G5_PATH.'/', '', G5_SHOP_PATH).'/inicis 폴더 안에 log 폴더를 생성하신 후 쓰기권한을 부여해 주십시오.\n> mkdir log\n> chmod 707 log");'.PHP_EOL;
|
||||
echo '</script>'.PHP_EOL;
|
||||
} else {
|
||||
if(!is_writable($log_path)) {
|
||||
echo '<script>'.PHP_EOL;
|
||||
echo 'alert("'.str_replace(G5_PATH.'/', '',$log_path).' 폴더에 쓰기권한을 부여해 주십시오.\n> chmod 707 log");'.PHP_EOL;
|
||||
echo '</script>'.PHP_EOL;
|
||||
} else {
|
||||
if( function_exists('check_log_folder') && is_writable($log_path) ){
|
||||
check_log_folder($log_path);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 카카오페이의 경우 log 디렉토리 체크
|
||||
if($default['de_kakaopay_mid'] && $default['de_kakaopay_key'] && $default['de_kakaopay_enckey'] && $default['de_kakaopay_hashkey'] && $default['de_kakaopay_cancelpwd']) {
|
||||
|
||||
@@ -28,8 +28,8 @@ if ($_FILES['mobile_logo_img2']['name']) upload_file($_FILES['mobile_logo_img2']
|
||||
$de_kcp_mid = isset($_POST['de_kcp_mid']) ? substr($_POST['de_kcp_mid'], 0, 3) : '';
|
||||
$cf_icode_server_port = isset($cf_icode_server_port) ? preg_replace('/[^0-9]/', '', $cf_icode_server_port) : '7295';
|
||||
|
||||
$de_shop_skin = isset($_POST['de_shop_skin']) ? preg_replace('#\.+(\/|\\\)#', '', $_POST['de_shop_skin']) : 'basic';
|
||||
$de_shop_mobile_skin = isset($_POST['de_shop_mobile_skin']) ? preg_replace('#\.+(\/|\\\)#', '', $_POST['de_shop_mobile_skin']) : 'basic';
|
||||
$de_shop_skin = isset($_POST['de_shop_skin']) ? preg_replace(array('#\.+(\/|\\\)#', '#[\'\"]#'), array('', ''), $_POST['de_shop_skin']) : 'basic';
|
||||
$de_shop_mobile_skin = isset($_POST['de_shop_mobile_skin']) ? preg_replace(array('#\.+(\/|\\\)#', '#[\'\"]#'), array('', ''), $_POST['de_shop_mobile_skin']) : 'basic';
|
||||
|
||||
$skins = get_skin_dir('shop');
|
||||
|
||||
@@ -59,7 +59,7 @@ $de_shop_mobile_skin = in_array($de_shop_mobile_skin, $mobile_skins) ? $de_shop_
|
||||
$check_skin_keys = array('de_type1_list_skin', 'de_type2_list_skin', 'de_type3_list_skin', 'de_type4_list_skin', 'de_type5_list_skin', 'de_mobile_type1_list_skin', 'de_mobile_type2_list_skin', 'de_mobile_type3_list_skin', 'de_mobile_type4_list_skin', 'de_mobile_type5_list_skin', 'de_rel_list_skin', 'de_mobile_rel_list_skin', 'de_search_list_skin', 'de_mobile_search_list_skin', 'de_listtype_list_skin', 'de_mobile_listtype_list_skin');
|
||||
|
||||
foreach($check_skin_keys as $key){
|
||||
$$key = $_POST[$key] = isset($_POST[$key]) ? preg_replace('#\.+(\/|\\\)#', '', strip_tags($_POST[$key])) : '';
|
||||
$$key = $_POST[$key] = isset($_POST[$key]) ? preg_replace(array('#\.+(\/|\\\)#', '#[\'\"]#'), array('', ''), strip_tags($_POST[$key])) : '';
|
||||
|
||||
if( isset($_POST[$key]) && preg_match('#\.+(\/|\\\)#', $_POST[$key]) ){
|
||||
alert('스킨설정에 유효하지 문자가 포함되어 있습니다.');
|
||||
@@ -160,12 +160,15 @@ $check_sanitize_keys = array(
|
||||
'cf_lg_mid', //LG유플러스 상점아이디
|
||||
'cf_lg_mert_key', //LG유플러스 MERT KEY
|
||||
'de_inicis_mid', //KG이니시스 상점아이디
|
||||
'de_inicis_admin_key', //KG이니시스 키패스워드
|
||||
'de_inicis_iniapi_key', //KG이니시스 INIAPI KEY
|
||||
'de_inicis_iniapi_iv', //KG이니시스 INIAPI IV
|
||||
'de_inicis_sign_key', //KG이니시스 웹결제 사인키
|
||||
'de_samsung_pay_use', //KG이니시스 삼성페이 사용
|
||||
'de_inicis_lpay_use', //KG이니시스 Lpay 사용
|
||||
'de_inicis_kakaopay_use', //KG이니시스 카카오페이 사용
|
||||
'de_inicis_cartpoint_use', //KG이니시스 신용카드 포인트 결제
|
||||
'de_nicepay_mid', //NICEPAY 상점아이디
|
||||
'de_nicepay_key', //NICEPAY 상점키
|
||||
'de_kakaopay_mid', //카카오페이 상점MID
|
||||
'de_kakaopay_key', //카카오페이 상점키
|
||||
'de_kakaopay_enckey', //카카오페이 상점 EncKey
|
||||
@@ -239,8 +242,12 @@ $check_sanitize_keys = array(
|
||||
);
|
||||
|
||||
foreach( $check_sanitize_keys as $key ){
|
||||
if( in_array($key, array('de_bank_account')) ){
|
||||
$$key = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1, 0, 0) : '';
|
||||
} else {
|
||||
$$key = isset($_POST[$key]) ? clean_xss_tags($_POST[$key], 1, 1) : '';
|
||||
}
|
||||
}
|
||||
|
||||
$warning_msg = '';
|
||||
|
||||
@@ -372,6 +379,8 @@ $sql = " update {$g5['g5_shop_default_table']}
|
||||
de_inicis_lpay_use = '{$de_inicis_lpay_use}',
|
||||
de_inicis_kakaopay_use = '{$de_inicis_kakaopay_use}',
|
||||
de_inicis_cartpoint_use = '{$de_inicis_cartpoint_use}',
|
||||
de_nicepay_mid = '{$de_nicepay_mid}',
|
||||
de_nicepay_key = '{$de_nicepay_key}',
|
||||
de_card_noint_use = '{$de_card_noint_use}',
|
||||
de_card_point = '{$de_card_point}',
|
||||
de_settle_min_point = '{$de_settle_min_point}',
|
||||
@@ -395,7 +404,8 @@ $sql = " update {$g5['g5_shop_default_table']}
|
||||
de_kcp_mid = '{$de_kcp_mid}',
|
||||
de_kcp_site_key = '{$de_kcp_site_key}',
|
||||
de_inicis_mid = '{$de_inicis_mid}',
|
||||
de_inicis_admin_key = '{$de_inicis_admin_key}',
|
||||
de_inicis_iniapi_key = '{$de_inicis_iniapi_key}',
|
||||
de_inicis_iniapi_iv = '{$de_inicis_iniapi_iv}',
|
||||
de_inicis_sign_key = '{$de_inicis_sign_key}',
|
||||
de_iche_use = '{$de_iche_use}',
|
||||
de_sms_cont1 = '{$_POST['de_sms_cont1']}',
|
||||
@@ -427,17 +437,19 @@ $sql = " update {$g5['g5_shop_default_table']}
|
||||
de_kakaopay_enckey = '{$de_kakaopay_enckey}',
|
||||
de_kakaopay_hashkey = '{$de_kakaopay_hashkey}',
|
||||
de_kakaopay_cancelpwd = '{$de_kakaopay_cancelpwd}',
|
||||
de_naverpay_mid = '{$de_naverpay_mid}',
|
||||
de_naverpay_cert_key = '{$de_naverpay_cert_key}',
|
||||
de_naverpay_button_key = '{$de_naverpay_button_key}',
|
||||
de_naverpay_test = '{$de_naverpay_test}',
|
||||
de_naverpay_mb_id = '{$de_naverpay_mb_id}',
|
||||
de_naverpay_sendcost = '{$de_naverpay_sendcost}',
|
||||
de_member_reg_coupon_use = '{$de_member_reg_coupon_use}',
|
||||
de_member_reg_coupon_term = '{$de_member_reg_coupon_term}',
|
||||
de_member_reg_coupon_price = '{$de_member_reg_coupon_price}',
|
||||
de_member_reg_coupon_minimum = '{$de_member_reg_coupon_minimum}'
|
||||
";
|
||||
if (defined('G5_SHOP_DIRECT_NAVERPAY') && G5_SHOP_DIRECT_NAVERPAY) {
|
||||
$sql .= " ,de_naverpay_mid = '{$de_naverpay_mid}',
|
||||
de_naverpay_cert_key = '{$de_naverpay_cert_key}',
|
||||
de_naverpay_button_key = '{$de_naverpay_button_key}',
|
||||
de_naverpay_test = '{$de_naverpay_test}',
|
||||
de_naverpay_mb_id = '{$de_naverpay_mb_id}',
|
||||
de_naverpay_sendcost = '{$de_naverpay_sendcost}' ";
|
||||
}
|
||||
sql_query($sql);
|
||||
|
||||
// 환경설정 > 포인트 사용
|
||||
@@ -456,6 +468,8 @@ $sql = " update {$g5['config_table']}
|
||||
cf_lg_mert_key = '{$cf_lg_mert_key}' ";
|
||||
sql_query($sql);
|
||||
|
||||
run_event('shop_admin_configformupdate');
|
||||
|
||||
if( $warning_msg ){
|
||||
alert($warning_msg, "./configform.php");
|
||||
} else {
|
||||
|
||||
@@ -139,7 +139,7 @@ if($w == '') {
|
||||
}
|
||||
|
||||
// 쿠폰생성알림 발송
|
||||
if($w == '' && ($_POST['cp_sms_send'] || $_POST['cp_email_send'])) {
|
||||
if ($w == '' && (isset($_POST['cp_sms_send']) || isset($_POST['cp_email_send']))) {
|
||||
include_once(G5_LIB_PATH.'/mailer.lib.php');
|
||||
|
||||
$sms_count = 0;
|
||||
|
||||
@@ -45,7 +45,7 @@ $qstr1 = 'mb_name='.urlencode($mb_name);
|
||||
<form name="fmember" method="get">
|
||||
<div id="scp_list_find">
|
||||
<label for="mb_name">회원이름</label>
|
||||
<input type="text" name="mb_name" id="mb_name" value="<?php echo get_text($mb_name); ?>" class="frm_input required" required size="20">
|
||||
<input type="text" name="mb_name" id="mb_name" value="<?php echo get_text($mb_name); ?>" class="frm_input" size="20">
|
||||
<input type="submit" value="검색" class="btn_frmline">
|
||||
</div>
|
||||
<div class="tbl_head01 tbl_wrap new_win_con">
|
||||
|
||||
+62
-60
@@ -112,7 +112,7 @@ function get_max_value($arr)
|
||||
return array_pop($arr);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php if (! auth_check_menu($auth, '400400', 'r', true)) { ?>
|
||||
<div class="sidx">
|
||||
<section id="anc_sidx_ord">
|
||||
<h2>주문현황</h2>
|
||||
@@ -368,6 +368,66 @@ function get_max_value($arr)
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script>
|
||||
jQuery(function($) {
|
||||
graph_draw();
|
||||
|
||||
$("#sidx_graph_area div").hover(
|
||||
function() {
|
||||
if($(this).is(":animated"))
|
||||
return false;
|
||||
|
||||
var title = $(this).attr("title");
|
||||
if(title && $(this).data("title") == undefined)
|
||||
$(this).data("title", title);
|
||||
var left = parseInt($(this).css("left")) + 10;
|
||||
var bottom = $(this).height() + 5;
|
||||
|
||||
$(this)
|
||||
.attr("title", "")
|
||||
.append("<div id=\"price_tooltip\"><div></div></div>");
|
||||
$("#price_tooltip")
|
||||
.find("div")
|
||||
.html(title)
|
||||
.end()
|
||||
// .css({ left: left+"px", bottom: bottom+"px" })
|
||||
.show(200);
|
||||
},
|
||||
function() {
|
||||
if($(this).is(":animated"))
|
||||
return false;
|
||||
|
||||
$(this).attr("title", $(this).data("title"));
|
||||
$("#price_tooltip").remove();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
function graph_draw()
|
||||
{
|
||||
var g_h1 = new Array("<?php echo implode('", "', $h_val['order']); ?>");
|
||||
var g_h2 = new Array("<?php echo implode('", "', $h_val['cancel']); ?>");
|
||||
var duration = 600;
|
||||
|
||||
var $el = $("#sidx_graph_area li");
|
||||
var h1, h2;
|
||||
var $g1, $g2;
|
||||
|
||||
$el.each(function(index) {
|
||||
h1 = g_h1[index];
|
||||
h2 = g_h2[index];
|
||||
|
||||
$g1 = $(this).find(".order");
|
||||
$g2 = $(this).find(".cancel");
|
||||
|
||||
$g1.animate({ height: h1+"px" }, duration);
|
||||
$g2.animate({ height: h2+"px" }, duration);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php } //endif ?>
|
||||
<?php if ($is_admin === 'super') { ?>
|
||||
<div class="sidx sidx_cs">
|
||||
<section id="anc_sidx_oneq">
|
||||
<h2>1:1문의</h2>
|
||||
@@ -480,64 +540,6 @@ function get_max_value($arr)
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
graph_draw();
|
||||
|
||||
$("#sidx_graph_area div").hover(
|
||||
function() {
|
||||
if($(this).is(":animated"))
|
||||
return false;
|
||||
|
||||
var title = $(this).attr("title");
|
||||
if(title && $(this).data("title") == undefined)
|
||||
$(this).data("title", title);
|
||||
var left = parseInt($(this).css("left")) + 10;
|
||||
var bottom = $(this).height() + 5;
|
||||
|
||||
$(this)
|
||||
.attr("title", "")
|
||||
.append("<div id=\"price_tooltip\"><div></div></div>");
|
||||
$("#price_tooltip")
|
||||
.find("div")
|
||||
.html(title)
|
||||
.end()
|
||||
// .css({ left: left+"px", bottom: bottom+"px" })
|
||||
.show(200);
|
||||
},
|
||||
function() {
|
||||
if($(this).is(":animated"))
|
||||
return false;
|
||||
|
||||
$(this).attr("title", $(this).data("title"));
|
||||
$("#price_tooltip").remove();
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
function graph_draw()
|
||||
{
|
||||
var g_h1 = new Array("<?php echo implode('", "', $h_val['order']); ?>");
|
||||
var g_h2 = new Array("<?php echo implode('", "', $h_val['cancel']); ?>");
|
||||
var duration = 600;
|
||||
|
||||
var $el = $("#sidx_graph_area li");
|
||||
var h1, h2;
|
||||
var $g1, $g2;
|
||||
|
||||
$el.each(function(index) {
|
||||
h1 = g_h1[index];
|
||||
h2 = g_h2[index];
|
||||
|
||||
$g1 = $(this).find(".order");
|
||||
$g2 = $(this).find(".cancel");
|
||||
|
||||
$g1.animate({ height: h1+"px" }, duration);
|
||||
$g2.animate({ height: h2+"px" }, duration);
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<?php
|
||||
} //end if
|
||||
include_once (G5_ADMIN_PATH.'/admin.tail.php');
|
||||
@@ -232,7 +232,7 @@ $od_b_addr1 = clean_xss_tags($data['od_b_addr1']);
|
||||
$od_b_addr2 = clean_xss_tags($data['od_b_addr2']);
|
||||
$od_b_addr3 = clean_xss_tags($data['od_b_addr3']);
|
||||
$od_b_addr_jibeon = preg_match("/^(N|R)$/", $data['od_b_addr_jibeon']) ? $data['od_b_addr_jibeon'] : '';
|
||||
$od_memo = clean_xss_tags($data['od_memo']);
|
||||
$od_memo = clean_xss_tags($data['od_memo'], 0, 1, 0, 0);
|
||||
$od_deposit_name = clean_xss_tags($data['od_deposit_name']);
|
||||
$od_tax_flag = $default['de_tax_flag_use'];
|
||||
$od_receipt_price = $tot_ct_price + $od_send_cost + $od_send_cost2 - ($od_temp_point + $tot_cp_price + $tot_sc_cp_price);
|
||||
|
||||
@@ -32,6 +32,8 @@ include_once(G5_PATH.'/head.sub.php');
|
||||
|
||||
<script>
|
||||
// <![CDATA[
|
||||
var g5_admin_csrf_token_key = "<?php echo (function_exists('admin_csrf_token_key')) ? admin_csrf_token_key() : ''; ?>";
|
||||
|
||||
function _copy(link)
|
||||
{
|
||||
var new_it_id = document.getElementById('new_it_id').value;
|
||||
|
||||
@@ -53,6 +53,7 @@ $opt_sql = " insert ignore into {$g5['g5_shop_item_option_table']} ( io_id, io_t
|
||||
sql_query($opt_sql);
|
||||
|
||||
// html 에디터로 첨부된 이미지 파일 복사
|
||||
$copied_editor_images = array();
|
||||
if($cp['it_explan']) {
|
||||
$matchs = get_editor_image($cp['it_explan'], false);
|
||||
$count_matchs = (isset($matchs[1]) && is_array($matchs[1])) ? count($matchs[1]) : 0;
|
||||
@@ -73,7 +74,13 @@ if($cp['it_explan']) {
|
||||
|
||||
$newfile = preg_replace("/\.([^\.]+)$/", "_".$new_it_id.".\\1", $matchs[1][$i]);
|
||||
$cp['it_explan'] = str_replace($matchs[1][$i], $newfile, $cp['it_explan']);
|
||||
|
||||
$copied_editor_images[] = array(
|
||||
'original' => $srcfile,
|
||||
'new' => $dstfile
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$sql = " update {$g5['g5_shop_item_table']} set it_explan = '".addslashes($cp['it_explan'])."' where it_id = '$new_it_id' ";
|
||||
@@ -100,6 +107,11 @@ if($cp['it_mobile_explan']) {
|
||||
|
||||
$newfile = preg_replace("/\.([^\.]+)$/", "_".$new_it_id.".\\1", $matchs[1][$i]);
|
||||
$cp['it_mobile_explan'] = str_replace($matchs[1][$i], $newfile, $cp['it_mobile_explan']);
|
||||
|
||||
$copied_editor_images[] = array(
|
||||
'original' => $srcfile,
|
||||
'new' => $dstfile
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,6 +152,7 @@ function copy_directory($src_dir, $dest_dir)
|
||||
}
|
||||
|
||||
// 파일복사
|
||||
$copied_item_files = array();
|
||||
$dest_path = G5_DATA_PATH.'/item/'.$new_it_id;
|
||||
@mkdir($dest_path, G5_DIR_PERMISSION);
|
||||
@chmod($dest_path, G5_DIR_PERMISSION);
|
||||
@@ -155,6 +168,11 @@ for($i=1; $i<=10; $i++) {
|
||||
copy($file, $dstfile);
|
||||
@chmod($dstfile, G5_FILE_PERMISSION);
|
||||
$new_img = $new_it_id.'/'.basename($file);
|
||||
|
||||
$copied_item_files[] = array(
|
||||
'original' => $file,
|
||||
'new' => $dstfile,
|
||||
);
|
||||
}
|
||||
|
||||
$sql_img .= $comma." it_img{$i} = '$new_img' ";
|
||||
@@ -166,6 +184,24 @@ $sql = " update {$g5['g5_shop_item_table']}
|
||||
where it_id = '$new_it_id' ";
|
||||
sql_query($sql);
|
||||
|
||||
if( function_exists('shop_seo_title_update') ) shop_seo_title_update($new_it_id, true);
|
||||
|
||||
/**
|
||||
* 아이템 복사 처리 후 Event Hook
|
||||
* @var string $it_id 원본 아이템 ID
|
||||
* @var string $new_it_id 복사한 새로운 아이템 ID
|
||||
* @var array $cp 복사한 아이템 정보
|
||||
* @var array $copied_item_files 복사한 파일 목록
|
||||
* @var array $copied_editor_images 복사한 에디터 이미지 목록
|
||||
*/
|
||||
run_event('shop_admin_itemcopy', array(
|
||||
'it_id' => (string) $it_id,
|
||||
'new_it_id' => (string) $new_it_id,
|
||||
'cp' => $cp,
|
||||
'copied_item_files' => $copied_item_files,
|
||||
'copied_editor_images' => $copied_editor_images
|
||||
));
|
||||
|
||||
$qstr = "ca_id=$ca_id&sfl=$sfl&sca=$sca&page=$page&stx=".urlencode($stx);
|
||||
|
||||
goto_url("itemlist.php?$qstr");
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user