|
@@ -8,7 +8,8 @@ import sys
|
|
|
modTag = "mod"
|
|
|
|
|
|
file_path_html = 'glife.html'
|
|
|
-file_path_mod = 'mods/mod.html'
|
|
|
+file_path_mod = 'mod.html'
|
|
|
+file_path_mod_online = 'mod.php'
|
|
|
|
|
|
data = ''
|
|
|
modData = ''
|
|
@@ -45,7 +46,10 @@ modData += scripts
|
|
|
with open(file_path_mod, 'w') as file:
|
|
|
file.write(modData)
|
|
|
|
|
|
+with open(file_path_mod_online, 'w') as file:
|
|
|
+ file.write(f'<?php header("Access-Control-Allow-Origin: *"); header(\'Content-type: text/javascript\'); echo($_GET[\'callback\']);?>(`{modData}\n`);')
|
|
|
|
|
|
-
|
|
|
+with open(file_path_html, 'w') as file:
|
|
|
+ file.write(dataWithoutModStuff)
|
|
|
|
|
|
print('Done')
|