formats
This commit is contained in:
@@ -127,9 +127,9 @@ def colorize(text, color_code)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def red(text)
|
def red(text)
|
||||||
; colorize(text, 31)
|
colorize(text, 31)
|
||||||
end
|
end
|
||||||
|
|
||||||
def green(text)
|
def green(text)
|
||||||
; colorize(text, 32)
|
colorize(text, 32)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -23,14 +23,16 @@ module WebSite
|
|||||||
def is_wordpress?
|
def is_wordpress?
|
||||||
wordpress = false
|
wordpress = false
|
||||||
|
|
||||||
response = Browser.instance.get(login_url(),
|
response = Browser.instance.get(
|
||||||
|
login_url(),
|
||||||
{:follow_location => true, :max_redirects => 2}
|
{:follow_location => true, :max_redirects => 2}
|
||||||
)
|
)
|
||||||
|
|
||||||
if response.body =~ %r{WordPress}i
|
if response.body =~ %r{WordPress}i
|
||||||
wordpress = true
|
wordpress = true
|
||||||
else
|
else
|
||||||
response = Browser.instance.get(xmlrpc_url(),
|
response = Browser.instance.get(
|
||||||
|
xmlrpc_url(),
|
||||||
{:follow_location => true, :max_redirects => 2}
|
{:follow_location => true, :max_redirects => 2}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user