Skip to content

Commit

Permalink
Merge pull request #2 from Pramuditha2003/Host-
Browse files Browse the repository at this point in the history
  • Loading branch information
PramudithaWeerakoon authored Oct 19, 2023
2 parents b17c26d + a24a1e3 commit 2572d40
Show file tree
Hide file tree
Showing 51 changed files with 157 additions and 199 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/laksala_pramuditha.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy PHP app to Azure Web App - pramuditha

on:
push:
branches:
- laksala
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Check if composer.json exists
id: check_files
uses: andstor/file-existence-action@v1
with:
files: 'composer.json'

- name: Run composer install if composer.json exists
if: steps.check_files.outputs.files_exists == 'true'
run: composer validate --no-check-publish && composer install --prefer-dist --no-progress

- name: Zip artifact for deployment
run: zip release.zip ./* -r

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v3
with:
name: php-app
path: release.zip

deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: php-app

- name: Unzip artifact for deployment
run: unzip release.zip

- name: 'Deploy to Azure Web App'
uses: azure/webapps-deploy@v2
id: deploy-to-webapp
with:
app-name: 'pramuditha'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D2E1496B33A84E97A29E2F65F30CEC80 }}
package: .
19 changes: 8 additions & 11 deletions agms/about.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
session_start();
error_reporting(0);

include('includes/dbconnection.php');
include('hi/dbconnection.php');
?>
<!DOCTYPE html>
<html lang="zxx">
Expand Down Expand Up @@ -37,7 +37,7 @@ function hideURLbar() {
</head>
<body>
<!--headder-->
<?php include_once('includes/header.php');?>
<?php include_once('hi/header.php');?>
<!-- banner -->
<div class="inner_page-banner one-img">
</div>
Expand Down Expand Up @@ -67,35 +67,32 @@ function hideURLbar() {
?>
<h3 class="title text-center mb-lg-5 mb-md-4 mb-sm-4 mb-3"><?php echo $row['PageTitle'];?></h3>
<div class="about-innergrid-agile text-center">
<h4>Welcome To Our Gallery</h4>
<h4>Welcome Laksala</h4>
<p class="mb-3"> <?php echo $row['PageDescription'];?>
</p><br><?php } ?>
<div class=" img-toy-w3l-top">
</div>
</div>
<div class="about-sub-inner text-center mt-lg-4 mt-3">
<h4>Art Gallery
<h4>Laksala
</h4>
<div class="row">
<div class="col-lg-4 col-md-4 abut-gride">
<span class="fas fa-truck"></span>
<h5>Shipping</h5>
<p class="mt-3"> velit sagittis vehicula. Duis posuere
ex in mollis iaculis. Suspendisse tincidunt
<p class="mt-3"> We provide efficient shipping services to get your orders to you quickly. You can choose from a range of shipping options during checkout to suit your preferences
</p>
</div>
<div class="col-lg-4 col-md-4 abut-gride">
<span class="fas fa-phone-volume"></span>
<h5>Support</h5>
<p class="mt-3"> velit sagittis vehicula. Duis posuere
ex in mollis iaculis. Suspendisse tincidunt
<p class="mt-3"> Your satisfaction is our top priority, and our dedicated support team is available 24/7 to assist you with any questions or concerns you may have. Feel free to reach out to us anytime; we're here to help
</p>
</div>
<div class="col-lg-4 col-md-4 abut-gride">
<span class="fas fa-undo"></span>
<h5> Return</h5>
<p class="mt-3"> velit sagittis vehicula. Duis posuere
ex in mollis iaculis. Suspendisse tincidunt
<p class="mt-3">We understand that sometimes products may not meet your expectations. Our hassle-free return policy allows you to return items within 30 days of purchase for a full refund or exchange
</p>
</div>
</div>
Expand All @@ -104,7 +101,7 @@ function hideURLbar() {
</section>
<!--//about -->

<?php include_once('includes/footer.php');?>
<?php include_once('hi/footer.php');?>
<!-- //Modal 1-->
<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,7 @@
/**
* ### .include(haystack, needle, [message])
*
* Asserts that `haystack` includes `needle`. Works
* Asserts that `haystack` hi `needle`. Works
* for strings and arrays.
*
* assert.include('foobar', 'bar', 'foobar contains string "bar"');
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified agms/admin/images/backgroung-img.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions agms/admin/includes/dbconnection.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
$con=mysqli_connect("localhost", "root", "", "agmsdb");
if(mysqli_connect_errno()){
echo "Connection Fail".mysqli_connect_error();
echo "Connection Fail".mysqli_connect_error();
}

?>
?>
4 changes: 2 additions & 2 deletions agms/admin/includes/header.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
include('hi/dbconnection.php');
?>
<header class="header dark-bg">
<div class="toggle-nav">
Expand All @@ -15,7 +15,7 @@

?>
<!--logo start-->
<a href="dashboard.php" class="logo"><span class="lite"><strong> ART GALLERY | Admin</strong></span></a>
<a href="dashboard.php" class="logo"><span class="lite"><strong> Laksala | Admin</strong></span></a>
<!--logo end-->


Expand Down
2 changes: 1 addition & 1 deletion agms/admin/js/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ if (!jQuery) { throw new Error("Bootstrap requires jQuery") }
var width = $tip[0].offsetWidth
var height = $tip[0].offsetHeight

// manually read margins because getBoundingClientRect includes difference
// manually read margins because getBoundingClientRect hi difference
var marginTop = parseInt($tip.css('margin-top'), 10)
var marginLeft = parseInt($tip.css('margin-left'), 10)

Expand Down
2 changes: 1 addition & 1 deletion agms/admin/js/moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ var matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi; // +00 -00 +00:00 -00:00 +0000
var matchTimestamp = /[+-]?\d+(\.\d{1,3})?/; // 123456789 123456789.123

// any word (or two) characters or numbers including two/three word month in arabic.
// includes scottish gaelic two word and hyphenated months
// hi scottish gaelic two word and hyphenated months
var matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;


Expand Down
13 changes: 10 additions & 3 deletions agms/admin/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,20 @@
<!-- Custom styles -->
<link href="css/style.css" rel="stylesheet">
<link href="css/style-responsive.css" rel="stylesheet" />
<style>
h1{
align-content: center;
color: black;
width: 50%;
}
</style>

</head>

<body class="login-img3-body">

<div class="container">

<h1><b>Laksala ADMINISTRATOR</b></h1>
<form class="login-form" action="" method="post">

<div class="login-wrap">
Expand All @@ -55,8 +62,8 @@
<input type="password" class="form-control" name="password" placeholder="Password" required="true">
</div>

<lable><span class="pull-right"> <a href="forgot-password.php"> Forgot Password?</a></span>

<label><span class="pull-right"> <a href="forgot-password.php"> Forgot Password?</a></span>
</label>
<button class="btn btn-primary btn-lg btn-block" type="submit" name="login">Login</button>
<p style="margin-top:3%; font-weight:bold"><a href="../index.php" >Back to Home page</a></p>
Expand Down
6 changes: 3 additions & 3 deletions agms/art-enquiry.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
error_reporting(0);
include('includes/dbconnection.php');
include('hi/dbconnection.php');

if(isset($_POST['send']))
{
Expand Down Expand Up @@ -56,7 +56,7 @@ function hideURLbar() {
<link href="//fonts.googleapis.com/css?family=Open+Sans:400,600,700" rel="stylesheet">
</head>
<body>
<?php include_once('includes/header.php');?>
<?php include_once('hi/header.php');?>
<!-- banner -->
<div class="inner_page-banner one-img">
</div>
Expand Down Expand Up @@ -102,7 +102,7 @@ function hideURLbar() {
</section>
<!--subscribe-address-->

<?php include_once('includes/footer.php');?>
<?php include_once('hi/footer.php');?>

<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
Expand Down
6 changes: 3 additions & 3 deletions agms/contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
session_start();
error_reporting(0);

include('includes/dbconnection.php');
include('hi/dbconnection.php');
?>
<!DOCTYPE html>
<html lang="zxx">
Expand Down Expand Up @@ -37,7 +37,7 @@ function hideURLbar() {
</head>
<body>
<!--headder-->
<?php include_once('includes/header.php');?>
<?php include_once('hi/header.php');?>
<!-- banner -->
<div class="inner_page-banner one-img">
</div>
Expand Down Expand Up @@ -91,7 +91,7 @@ function hideURLbar() {
</div>
</div>
</section>
<?php include_once('includes/footer.php');?>
<?php include_once('hi/footer.php');?>

<!--js working-->
<script src='js/jquery-2.2.3.min.js'></script>
Expand Down
Binary file added agms/css/underpanel.jpg
Binary file modified agms/images/b1.jpg
Binary file modified agms/images/b2.jpg
Binary file modified agms/images/b3.jpg
Binary file modified agms/images/cc1.jpg
Binary file added agms/images/handicrafts_board_logo.jpg
7 changes: 0 additions & 7 deletions agms/includes/dbconnection.php

This file was deleted.

8 changes: 0 additions & 8 deletions agms/includes/footer.php

This file was deleted.

Loading

0 comments on commit 2572d40

Please sign in to comment.