diff --git a/static/php/insert.php b/static/php/insert.php index 48c8126..09e5db2 100644 --- a/static/php/insert.php +++ b/static/php/insert.php @@ -79,5 +79,5 @@ $db = new database("./db/database.db"); $query = createquery($_REQUEST["form"]); $db->query("$query[0]",$query[1]); -$refer = (!empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : "/"); +$refer = (!empty($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"]."?odeslano" : "/"); header("Location: ".$refer); diff --git a/templates/index.html b/templates/index.html index 970e9aa..24196d0 100644 --- a/templates/index.html +++ b/templates/index.html @@ -31,5 +31,7 @@ , {{ now() | date(format="%Y") }}

+ {% block javascript %} + {% endblock javascript %} diff --git a/templates/page.html b/templates/page.html index 313d058..629f0e5 100644 --- a/templates/page.html +++ b/templates/page.html @@ -3,3 +3,14 @@ {% block content %} {{ page.content | safe }} {% endblock content %} + +{% block javascript %} + +{% endblock javascript %}