Added link to api.php or index.php being checked, so that if you called the script via another script you can understand something.

git-svn-id: https://wikiteam.googlecode.com/svn/trunk@588 31edc4fc-5e31-b4c4-d58b-c8bc928bcb95
pull/117/head
nemobis 12 years ago
parent fac6c33846
commit 721eb8c596

@ -808,7 +808,7 @@ def checkAPI(api):
f = urllib.urlopen(api)
raw = f.read()
f.close()
print 'Checking api.php...'
print 'Checking api.php...', api
if re.search(r'action=query', raw):
return True
return False
@ -818,7 +818,7 @@ def checkIndexphp(indexphp):
f = urllib2.urlopen(req)
raw = f.read()
f.close()
print 'Checking index.php...'
print 'Checking index.php...', indexphp
if re.search(r'(This wiki is powered by|<h2 id="mw-version-license">)', raw):
return True
return False
@ -1026,4 +1026,4 @@ def main(params=[]):
bye()
if __name__ == "__main__":
main()
main()
Loading…
Cancel
Save