-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added CMS and Version detection for Al Mubda (issue #47)
- Loading branch information
1 parent
3c055c3
commit f42a9da
Showing
6 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/python3 | ||
# -*- coding: utf-8 -*- | ||
# This is a part of CMSeeK, check the LICENSE file for more information | ||
# Copyright (c) 2018 Tuhinshubhra | ||
|
||
# Al Mubda version detection | ||
# Rev 1 | ||
|
||
import cmseekdb.basic as cmseek | ||
import re | ||
|
||
def start(source): | ||
cmseek.statement("Detecting Al Mubda version using source code [Method 1 of 1]") | ||
regex = re.findall(r'Powered by Al Mubda version (\d.*?)</a>', source) | ||
if regex != []: | ||
if regex[0] != '' and regex[0] != ' ': | ||
version = regex[0] | ||
cmseek.success('Al Mubda version ' + cmseek.bold + cmseek.fgreen + version + cmseek.cln + ' detected') | ||
return version | ||
|
||
cmseek.error('Version detection failed!') | ||
return '0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -948,3 +948,10 @@ | |
'vd':'0', | ||
'deeps':'0' | ||
} | ||
|
||
abda = { | ||
'name':'Al Mubda', | ||
'url':'http://www.almubda.net/', | ||
'vd':'1', | ||
'deeps':'0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters