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

Merge branch 'push' into 'master'

changes done for project architecture i.e htdocs/photogram/htdocs

See merge request !7
parents 9b8c3503 4ffad0d0
No related branches found
No related tags found
1 merge request!7changes done for project architecture i.e htdocs/photogram/htdocs
Pipeline #3799 passed
Showing
with 17 additions and 36 deletions
<?php
/*
class webAPI
{
public function __construct()
{
if(php_sapi_name() == 'cli') {
global $__site_config;
$__site_config = file_get_contents("/home/Lucifer/photogramconfig.json");
} elseif(php_sapi_name() == 'apache2handler') {
global $__site_config;
$__site_config = file_get_contents($_SERVER["DOCUMENT_ROOT"] . "/../photogramconfig.json");
}
database::getconnetion();
}
public function initiateSession()
{
// sessions::start();
}
}
*/
File moved
File moved
......@@ -13,13 +13,13 @@
<link rel="canonical" href="https://getbootstrap.com/docs/5.2/examples/album/">
<link
href="<?=get_config("base_path")?>App/assets/dist/css/bootstrap.min.css"
href="<?=get_config("base_path")?>assets/dist/css/bootstrap.min.css"
rel="stylesheet">
<!--//print(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")) {?>
<?php if (file_exists($_SERVER['DOCUMENT_ROOT'] . get_config("base_path") . "css/" . basename($_SERVER['PHP_SELF'], ".php") . ".css")) {?>
<link
href="<?=get_config("base_path")?>App/css/<?=basename($_SERVER['PHP_SELF'], ".php")?>.css"
href="<?=get_config("base_path")?>css/<?=basename($_SERVER['PHP_SELF'], ".php")?>.css"
rel="stylesheet">
<!-- here we are loading the css file in an autoamted way like we already know document root has the location to htdocs
and after that we are giving the css folder location there we are using base name function from php self which is the
......
File moved
......@@ -20,7 +20,7 @@ if($login) {
<?print($email)?> hope you're doing good
</p>
<p>You can <a
href="<?php get_config("base_path")?>App/index.php">Continue</a>
href="<?php get_config("base_path")?>index.php">Continue</a>
by clicking</p>
</p>
</div>
......@@ -33,7 +33,7 @@ if($login) {
<h1 class="text-body-emphasis">Oops incorrect username or password</h1>
<p class="col-lg-8 mx-auto lead">
<p>please<a
href="<?php get_config("base_path")?>App/login_page.php">tryagain</a>
href="<?php get_config("base_path")?>login_page.php">tryagain</a>
by clicking</p>
</p>
</div>
......@@ -44,7 +44,7 @@ if($login) {
<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"
src="<?php get_config("base_path")?>assets/img/logo.png"
alt="poke img" width="300" height="150">
<h1 class="h3 mb-3 fw-normal">Please sign in</h1>
......
File moved
......@@ -18,7 +18,7 @@ if ($signup) {
<h1 class="text-body-emphasis">Signup success</h1>
<p class="col-lg-8 mx-auto lead">
<p>You can <a
href="<?=get_config("base_path")?>App/login_page.php">Login</a>
href="<?=get_config("base_path")?>login_page.php">Login</a>
from here</p>
</p>
</div>
......@@ -32,9 +32,9 @@ if ($signup) {
<form method="post" action="signup.php">
<img class="mb-4"
src="<?=get_config("base_path")?>App/assets/logo.png"
alt="poke img" width="300" height="150">
<!-- <img class="mb-4"
src="<?=get_config("base_path")?>assets/img/logo.png"
alt="poke img" width="300" height="150"> -->
<h1 class="h3 mb-3 fw-normal">Please signup </h1>
<div class="form-floating">
<input name="username" type="tinytext" class="form-control" id="floatingInput" placeholder="text" width="40"
......
htdocs/assets/img/cust.jpg

70.9 KiB

File moved
htdocs/assets/img/photogram bg.jpg

551 KiB

body {
background-image: url('../assets/img/cust.jpg');
background-repeat: no-repeat;
background-position: center center;
background-size: cover;
background-attachment: fixed;
height: 100%;
}
.form-signin {
max-width: 330px;
padding: 1rem;
background: inherit;
filter:;
}
.form-signin .form-floating:focus-within {
......
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