diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-10 17:08:59 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-10 17:08:59 -0600 |
commit | 60565ffeee573d426bf3bffe18c4852f7b798e2d (patch) | |
tree | ffb57618c43d965b2842142d5a62616147bc4257 | |
parent | d4830b93c9a1930c937f9a6f813185c95d01917a (diff) | |
download | tilde.club-60565ffeee573d426bf3bffe18c4852f7b798e2d.tar.gz tilde.club-60565ffeee573d426bf3bffe18c4852f7b798e2d.zip |
fruitvote stats page path fix
-rw-r--r-- | html/public/fruitvote/GoPage.php | 2 | ||||
-rw-r--r-- | html/public/fruitvote/stats.php | 7 | ||||
-rw-r--r-- | html/public/fruitvote/stats/index.php | 7 |
3 files changed, 8 insertions, 8 deletions
diff --git a/html/public/fruitvote/GoPage.php b/html/public/fruitvote/GoPage.php index d71f545..c0fde0e 100644 --- a/html/public/fruitvote/GoPage.php +++ b/html/public/fruitvote/GoPage.php @@ -4,7 +4,7 @@ class GoPage { private $socket; private $template; - public function __construct($page, $socket = "/home/simponic/fruitvote/http.sock", $template = "../template.html") { + public function __construct($page, $template = "../template.html", $socket = "/home/simponic/fruitvote/http.sock") { $this->page = $page; $this->socket = $socket; $this->template = $template; diff --git a/html/public/fruitvote/stats.php b/html/public/fruitvote/stats.php deleted file mode 100644 index 5147723..0000000 --- a/html/public/fruitvote/stats.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -require_once("GoPage.php"); - -$page = new GoPage("/stats"); -echo $page->render(); -?> diff --git a/html/public/fruitvote/stats/index.php b/html/public/fruitvote/stats/index.php new file mode 100644 index 0000000..691ba95 --- /dev/null +++ b/html/public/fruitvote/stats/index.php @@ -0,0 +1,7 @@ +<?php + +require_once("../GoPage.php"); + +$page = new GoPage("/stats", "../../template.html"); +echo $page->render(); +?> |