Skip to content

Commit 38cc3b3

Browse files
author
DaniloJovanovicGIT
committed
Ubacivanje backenda
1 parent d96031e commit 38cc3b3

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

img2.jpg

548 KB
Loading

index.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
<?php
12
require 'db.php';
3+
require 'backend.php';
24
session_start();
35
?>
46
<!DOCTYPE html>
@@ -7,6 +9,25 @@
79
<title>Avanture.rs</title>
810
<?php include 'css.html';?>
911
</head>
12+
<?php
13+
14+
$object1=new UserInterface();
15+
if($_SERVER['REQUEST_METHOD']=='POST')
16+
{
17+
if(isset($_POST['login'])){
18+
$object1->login();
19+
}
20+
elseif (isset($_POST['register'])) {
21+
$object1->register();
22+
}
23+
elseif (isset($_POST['subscribe'])) {
24+
$object1->subscribe();
25+
}
26+
elseif (isset($_POST['unsubscribe'])) {
27+
$object1->unsubscribe();
28+
}
29+
}
30+
?>
1031
<body>
1132
<div class="form">
1233
<ul class="tab-group">

0 commit comments

Comments
 (0)