Skip to content

Commit

Permalink
move of php files with centralization
Browse files Browse the repository at this point in the history
  • Loading branch information
Resousse committed Jun 2, 2023
1 parent 5ddd726 commit 71faf2f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions seeker.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ def template_select(site):

imp_file = templ_json['templates'][selected]['import_file']
importlib.import_module(f'template.{imp_file}')
shutil.copyfile("template/php/error.php", 'template/{}/error_handler.php'.format(templ_json['templates'][selected]["dir_name"]))
shutil.copyfile("template/php/info.php", 'template/{}/info_handler.php'.format(templ_json['templates'][selected]["dir_name"]))
shutil.copyfile("template/php/result.php", 'template/{}/result_handler.php'.format(templ_json['templates'][selected]["dir_name"]))
shutil.copyfile("php/error.php", 'template/{}/error_handler.php'.format(templ_json['templates'][selected]["dir_name"]))
shutil.copyfile("php/info.php", 'template/{}/info_handler.php'.format(templ_json['templates'][selected]["dir_name"]))
shutil.copyfile("php/result.php", 'template/{}/result_handler.php'.format(templ_json['templates'][selected]["dir_name"]))


return site
Expand Down
6 changes: 3 additions & 3 deletions template/mod_custom_og_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
utils.print(f'{G}[+] {C}Description :{W} '+desc)

with open('template/custom_og_tags/js/location_temp.js', 'r') as js:
reader = js.read()
update = reader.replace('REDIRECT_URL', redirect)
reader = js.read()
update = reader.replace('REDIRECT_URL', redirect)

with open('template/custom_og_tags/js/location.js', 'w') as js_update:
js_update.write(update)
js_update.write(update)

with open('template/custom_og_tags/index_temp.html', 'r') as index_temp:
code = index_temp.read()
Expand Down

0 comments on commit 71faf2f

Please sign in to comment.