-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (22 loc) · 882 Bytes
/
index.php
File metadata and controls
32 lines (22 loc) · 882 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
//
if( ! class_exists("Config")) die("");
//
use Vinala\Panel;
$rot="app/pages/panel";
$root="./app/pages/panel";
$rooot=$root;
$path = Panel::getPath();
$appPath="../app/";
// Login
if(isset($_POST['password_1']) && isset($_POST['password_2']) && !empty($_POST['password_1']) && !empty($_POST['password_1']))
{
if($_POST['password_1']==Config::get('panel.password1') && $_POST['password_2']==Config::get('panel.password2'))
$_SESSION['lighty_pnl_fst_pass']=$_POST['password_1'];
}
if(isset($_GET['logout']) && $_GET['logout']="1") {
$_SESSION['lighty_pnl_fst_pass']="";unset($_SESSION['lighty_pnl_fst_pass']);}
if(!isset($_SESSION['lighty_pnl_fst_pass']) || empty($_SESSION['lighty_pnl_fst_pass']))
include "../$path"."src/views/loggin.php";
else if($_SESSION['lighty_pnl_fst_pass']==Config::get('panel.password1'))
include "../$path"."src/views/home.php";