Skip to content
Snippets Groups Projects
Commit 657a254f authored by V Harish Ragavendher's avatar V Harish Ragavendher
Browse files

<? ?>these short open tags has been disabled by official php so this is the...

<? ?>these short open tags has been disabled by official php so this is the reason that signup and login_page not working in dockers hopefully
parent 9382801e
Branches master
No related tags found
1 merge request!6<? ?>these short open tags has been disabled by official php so this is the...
......@@ -17,7 +17,7 @@
rel="stylesheet">
<!--//print(basename($_SERVER['PHP_SELF'], ".php").".css")-->
<?if (file_exists($_SERVER['DOCUMENT_ROOT'] . get_config("base_path") . "App/css/" . basename($_SERVER['PHP_SELF'], ".php") . ".css")) {?>
<?php if (file_exists($_SERVER['DOCUMENT_ROOT'] . get_config("base_path") . "App/css/" . basename($_SERVER['PHP_SELF'], ".php") . ".css")) {?>
<link
href="<?=get_config("base_path")?>App/css/<?=basename($_SERVER['PHP_SELF'], ".php")?>.css"
rel="stylesheet">
......@@ -25,5 +25,5 @@
and after that we are giving the css folder location there we are using base name function from php self which is the
file name we are using for eg: login.php will be in php self means basename will give the output like login and we are
manually adding .css which results the file name -->
<?}?>
<?php }?>
</head>
\ No newline at end of file
......@@ -26,7 +26,7 @@ if($login) {
</div>
</div>
</div>
<?} else {?>
<?php } else {?>
<div class="my-5">
<div class="p-5 text-center bg-body-tertiary">
<div class="container py-5">
......@@ -39,11 +39,13 @@ if($login) {
</div>
</div>
</div>
<?}
<?php }
} else {?>
<main class="form-signin w-100 m-auto">
<form method="post" action="login_page.php">
<img class="mb-4" src="<?php get_config("base_path")?>App/assets/logo.png" alt="poke img" width="300" height="150">
<img class="mb-4"
src="<?php get_config("base_path")?>App/assets/logo.png"
alt="poke img" width="300" height="150">
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
<div class="form-floating">
......@@ -76,4 +78,4 @@ if($login) {
</form>
</main>
<?}?>
\ No newline at end of file
<?php }?>
\ No newline at end of file
......@@ -24,7 +24,7 @@ if ($signup) {
</div>
</div>
</div>
<?} else {
<?php } else {
print("OOPS something was worng");
}
} else {?>
......@@ -72,4 +72,4 @@ if ($signup) {
</form>
</main>
<?}?>
\ No newline at end of file
<?php }?>
\ No newline at end of file
......@@ -19,7 +19,8 @@ include 'libs/load.php';
<script src="https://code.jquery.com/jquery-3.6.1.js"
integrity="sha256-3zlB5s2uwoUzrXK3BT7AX3FyvojsraNFxCc2vC/7pNI=" crossorigin="anonymous"></script>
<script src="<?php get_config("base_path")?>App/assets/dist/js/bootstrap.bundle.min.js">
<script
src="<?=get_config("base_path")?>App/assets/dist/js/bootstrap.bundle.min.js">
</script>
<script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment