mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-03 23:23:53 +01:00 
			
		
		
		
	faire git pull = être un gros fou, j'ai rien tester
This commit is contained in:
		@@ -372,7 +372,9 @@ def stats():
 | 
			
		||||
@app.route("/override/", methods=["POST"])
 | 
			
		||||
def override_post():
 | 
			
		||||
    json = request.form.to_dict(flat=False)
 | 
			
		||||
    print(request.form["unban"])
 | 
			
		||||
    log = open(f"/app/MsRewards-Reborn/Flask/static/logs/custom.txt", 'w')  # so that data written to it will be appended
 | 
			
		||||
    subprocess.Popen([f"python3 -u /app/MsRewards-Reborn/V6.py -c {json['config']} --very-custom {json}"], stdout=log, stderr=log, shell=True)
 | 
			
		||||
    log.close()
 | 
			
		||||
    return(render_template("vnc_post.html"))
 | 
			
		||||
 | 
			
		||||
@app.route("/override/", methods=["GET"])
 | 
			
		||||
 
 | 
			
		||||
@@ -37,9 +37,9 @@ function change_override(value, data) {
 | 
			
		||||
            <td id="compte_{{i}}"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="unban"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="tout"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="daily"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="pc"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="mobile"></td>
 | 
			
		||||
            <td><input type="checkbox" id="compte_{{i}}" value="{{i}}" name="log_points"></td>
 | 
			
		||||
        </tr>
 | 
			
		||||
        {% endfor %}
 | 
			
		||||
        
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user