Sindbad~EG File Manager
from core import app
from flask import url_for,render_template_string
from datetime import datetime, date, time, timedelta
import datetime
#settime working as global variable but commented for easy identification of this variable using class name
# global settime
# settime = 5
class Helper:
mail_content = 'Dear *|MEM_NAME|* \n\nMany happy returns of the day.\n\nWishing you the very best for the year ahead.\n\nBest wishes.\n\nDr. Arup Chakrabarti\n\nEditor Proceedings, AIOS (2017-2023)\nMember - Managing Committee, AIOS (2014 - 2017)\nMember Scientific Committee, AIOS (2008 - 2014)'
office_bearers = [
{'office_bearer_name':'Mr.Sai krishnan','office_beared_email':'sai@numerotec.com','office_bearer_mobile':'','mail_content_today':mail_content,'wa_content_today':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"','wa_content_trw':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"'},
{'office_bearer_name':'Mr.santhosh','office_beared_email':'santhosh@numerotec.com','office_bearer_mobile':'','mail_content_today':mail_content,'wa_content_today':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"','wa_content_trw':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"'},
{'office_bearer_name':'Mr.sridharan.r','office_beared_email':'sridharan.r@numerotec.com','office_bearer_mobile':'','mail_content_today':mail_content,'wa_content_today':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"','wa_content_trw':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"'},
{'office_bearer_name':'Dr.Arup Chakrabarti','office_beared_email':'arupeye@gmail.com','office_bearer_mobile':'9946410540','mail_content_today':mail_content,'wa_content_today':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"','wa_content_trw':'http://wa.me/91*|MEM_MOBILE|*/?text=Dear%20*|MEM_NAME|*,%0A%0AMany%20happy%20returns%20of%20the%20day.%0A%0AWishing%20you%20the%20very%20best%20for%20the%20year%20ahead.%0A%0ABest%20wishes.%0A%0ADr.%20Arup%20Chakrabarti%0A%0AEditor%20Proceedings,%20AIOS%20(2017-2023)%0AMember%20-%20Managing%20Committee,%20AIOS%20(2014%20-%202017)%0AMember%20Scientific%20Committee,%20AIOS%20(2008%20-%202014)"'}
]
# def merge_tags(text,values):
# for k, v in values.items():
# if k :
# text = text.replace('*|'+k+'|*', v)
# return text
def merge_tags(text, values):
for k, v in values.items():
if k:
# Ensure the value is a string, if it's None, replace it with an empty string
text = text.replace(f'*|{k}|*', v if v is not None else '')
return text
def base64_encode(str_text):
if str_text:
sample_string_bytes = str_text.encode("ascii")
base64_bytes = base64.b64encode(sample_string_bytes)
base64_string = base64_bytes.decode("ascii")
return base64_string
else :
return None
def base64_decode(base64_string):
if base64_string:
base64_bytes = base64_string.encode("ascii")
sample_string_bytes = base64.b64decode(base64_bytes)
str_text = sample_string_bytes.decode("ascii")
return str_text
else :
return None
app.jinja_env.globals.update(Helper=Helper)
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists