diff options
Diffstat (limited to 'html')
-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(); +?> |