Skip to content

Commit 71faf2f

Browse files
committed
move of php files with centralization
1 parent 5ddd726 commit 71faf2f

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed
File renamed without changes.

template/php/info.php php/info.php

File renamed without changes.
File renamed without changes.

seeker.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ def template_select(site):
156156

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

163163

164164
return site

template/mod_custom_og_tags.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545
utils.print(f'{G}[+] {C}Description :{W} '+desc)
4646

4747
with open('template/custom_og_tags/js/location_temp.js', 'r') as js:
48-
reader = js.read()
49-
update = reader.replace('REDIRECT_URL', redirect)
48+
reader = js.read()
49+
update = reader.replace('REDIRECT_URL', redirect)
5050

5151
with open('template/custom_og_tags/js/location.js', 'w') as js_update:
52-
js_update.write(update)
52+
js_update.write(update)
5353

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

0 commit comments

Comments
 (0)