Skip to content

Commit

Permalink
added dynamic url for some levels
Browse files Browse the repository at this point in the history
  • Loading branch information
geek-at committed Mar 25, 2024
1 parent 70c54e0 commit 35c3642
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions data/levels/hackit31.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ public function render()
<h4 class="green">Finished '.round(($this->getImageCount()/$this->views)*100).'%</h4><br/>
<h4>Image URL:</h4>
<pre><code class="">https://www.0xf.at/data/imgs/'.$_SESSION['levels'][basename(__FILE__, '.php')].'.jpg</code></pre><br/>
<pre><code class="">'.URL.'/data/imgs/'.$_SESSION['levels'][basename(__FILE__, '.php')].'.png</code></pre><br/>
<h4>HTML code to include on your website:</h4>
<pre><code class="">'.htmlentities('<a href="https://www.0xf.at"><img src="https://www.0xf.at/data/imgs/'.$_SESSION['levels'][basename(__FILE__, '.php')].'.jpg" /></a>').'</code></pre>
<pre><code class="">'.htmlentities('<a href="'.URL.'"><img src="'.URL.'/data/imgs/'.$_SESSION['levels'][basename(__FILE__, '.php')].'.png" /></a>').'</code></pre>
<br/><input type="button" value="Refresh" onClick="checkPW()"/>
<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion docker/rootfs/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ server {
log_not_found off;
}

location ~ /(data/users|data/levels|tcp_servers) {
location ~ /(data/users|data/levels|tcp_servers|stats|comments) {
deny all;
return 404;
}
Expand Down

0 comments on commit 35c3642

Please sign in to comment.