Browse Source

auth false

Gnieark 8 months ago
parent
commit
bf5dfe20aa
3 changed files with 26 additions and 0 deletions
  1. 7 0
      class/User.php
  2. 11 0
      html/index.php
  3. 8 0
      html/tpl/connect.html

+ 7 - 0
class/User.php

@@ -0,0 +1,7 @@
+<?php
+class User{
+    static function IsConnected(){
+        return false;
+    }
+
+}

+ 11 - 0
html/index.php

@@ -0,0 +1,11 @@
+<?php
+
+//load class
+require_once ("../class/tplBlock/TplBlock.php");
+require_once ("../class/User.php");
+if(User::IsConnected() === false){
+    $tpl = new TplBlock();
+
+    echo $tpl->applyTplFile("tpl/connect.html");
+}
+

+ 8 - 0
html/tpl/connect.html

@@ -0,0 +1,8 @@
+<html>
+    <head>
+
+    </head>
+    <body>
+        <h1>Page de connection</h1>
+    </body>
+</html>