15 lines
413 B
Python
15 lines
413 B
Python
import glob
|
|
import re
|
|
|
|
files = glob.glob("admin_*.php")
|
|
pattern = re.compile(r'<div class="col-md-10(.*?)"')
|
|
|
|
for file in files:
|
|
with open(file, 'r') as f:
|
|
content = f.read()
|
|
match = pattern.search(content)
|
|
if match:
|
|
print(f"{file}: {match.group(1)}")
|
|
else:
|
|
if "render_admin_sidebar" in content:
|
|
print(f"{file}: NO MATCH for col-md-10") |