board_posting_duo 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/board_posting_duo.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b95b5b20a5c3e0057d8f01dd2551b23141291d0662b32401522a129b33b36363
|
4
|
+
data.tar.gz: 87238898aa621547869b6b34784ae4ad2722d1d3e91713fb5b5a878a3b8ed8b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '088131e48e2003b47b70ac9259c513816f506d5cbeea9bbaeac1996cec2c54a6d82884e114c7aedd9cda5fce95553b5445ab39efbb0790966174da6ccfc06e90'
|
7
|
+
data.tar.gz: eca1764da5ae97a5415cd97c1a0cd653685d54e6d72cf2969f197483d152bca41c41659c1ebc1546abafe723cb6478ece7b72a45d621990277a197ab26ec269c
|
data/lib/board_posting_duo.rb
CHANGED
@@ -5784,7 +5784,7 @@ class Wordpress
|
|
5784
5784
|
c = noko.xpath('//*[@id="at-main"]/div/table/tbody').to_s.split('<tr>').length-1
|
5785
5785
|
for n in 1..c
|
5786
5786
|
tt = noko.xpath('//*[@id="at-main"]/div/table/tbody/tr['+n.to_s+']').to_s
|
5787
|
-
if tt.include?(user_id.to_s) and tt.include?('
|
5787
|
+
if tt.include?(user_id.to_s) and tt.include?('그누보드 게시판 자동 글 등록기')
|
5788
5788
|
if noko.xpath('//*[@id="at-main"]/div/table/tbody/tr['+n.to_s+']/td[7]/label[1]/input').to_s.include?('checked')
|
5789
5789
|
if mac_check(user_id) == 1
|
5790
5790
|
return 1
|
@@ -5812,7 +5812,7 @@ class Wordpress
|
|
5812
5812
|
cookie[i.to_s.split('=')[0]] = i.to_s.split('=')[1]
|
5813
5813
|
end
|
5814
5814
|
|
5815
|
-
http = HTTP.cookies(cookie).get('http://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'
|
5815
|
+
http = HTTP.cookies(cookie).get('http://marketingduo.co.kr/bbs/board.php?bo_table=product&sca=&sfl=wr_subject&sop=and&stx='+userid+'--그누보드 게시판 자동 글 등록기')
|
5816
5816
|
noko = Nokogiri::HTML(http.to_s)
|
5817
5817
|
mac_history = Array.new
|
5818
5818
|
mac_url = Array.new
|
@@ -5858,7 +5858,7 @@ class Wordpress
|
|
5858
5858
|
year2 = Time.now.to_s.split(' ')[1].split(':').join('')
|
5859
5859
|
uid = year+year2
|
5860
5860
|
puts uid
|
5861
|
-
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'
|
5861
|
+
json = {'token' => token, 'uid' => uid, 'bo_table' => 'product', 'wr_id' => '0', 'wr_subject' => userid+'--그누보드 게시판 자동 글 등록기', 'wr_content' => mac_address}
|
5862
5862
|
http = HTTP.cookies(cookie).post('http://marketingduo.co.kr/bbs/write_update.php', :form => json)
|
5863
5863
|
return 1
|
5864
5864
|
end
|