<?php
session_start(); // Start the session to access session variables

if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
    // User is not logged in, redirect to login page
    header("Location: login.php");
    exit(); // Terminate the script after the redirect
}

// If the user is logged in, display the dashboard content
?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Jasper | Skilledustore Tools</title>
  
  <!-- Google Font: Source Sans Pro -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="plugins/fontawesome-free/css/all.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
  <!-- Tempusdominus Bootstrap 4 -->
  <link rel="stylesheet" href="plugins/tempusdominus-bootstrap-4/css/tempusdominus-bootstrap-4.min.css">
  <!-- iCheck -->
  <link rel="stylesheet" href="plugins/icheck-bootstrap/icheck-bootstrap.min.css">
  <!-- JQVMap -->
  <link rel="stylesheet" href="plugins/jqvmap/jqvmap.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="dist/css/adminlte.min.css">
  <!-- overlayScrollbars -->
  <link rel="stylesheet" href="plugins/overlayScrollbars/css/OverlayScrollbars.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="plugins/daterangepicker/daterangepicker.css">
  <!-- summernote -->
  <link rel="stylesheet" href="plugins/summernote/summernote-bs4.min.css">
</head>
<body class="hold-transition sidebar-mini layout-fixed">
  <div class="wrapper">
    
    <!-- Preloader -->
    <div class="preloader flex-column justify-content-center align-items-center">
      <img class="animation__shake" src="dist/img/AdminLTELogo.png" alt="AdminLTELogo" height="60" width="60">
    </div>
    
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
      <!-- Brand Logo -->
      <a href="#" class="brand-link">
        <img src="dist/img/AdminLTELogo.png" alt="AdminLTE Logo" class="brand-image img-circle elevation-3" style="opacity: .8">
        <span class="brand-text font-weight-light">Skilledustore Tools</span>
      </a>
      
      <!-- Sidebar -->
      <div class="sidebar">     
          
      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
        <div class="info">
          <a href="#" class="d-block"><?php echo $_SESSION['username']; ?></a>
        </div>
      </div>
        <!-- Sidebar Menu -->
        <nav class="mt-2">
          <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
            <!-- Add icons to the links using the .nav-icon class
            with font-awesome or any other icon font library -->

            <!-- sidebar  -->
            <li class="nav-item">
              <a href="netflix.php" class="nav-link">
                <i class="nav-icon fas fa-th"></i>
                <p>
                  Netflix
                </p>
              </a>
            </li>
            <!-- sidebar end -->

               <!-- sidebar  -->
               <li class="nav-item">
                <a href="prime.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Prime Video
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
              <li class="nav-item">
                <a href="envato.php" class="nav-link">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Envato Elements
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
              <li class="nav-item">
                <a href="canva.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Canva Pro
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar end -->
              <li class="nav-item">
                <a href="semrush.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    semrush
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar end -->
              <li class="nav-item">
                <a href="grammarly.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Grammarly Premium
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar end -->
              <li class="nav-item">
                <a href="quillbot.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Quillbot Premium
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="chatgpt.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Chat GPT 4
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="moz.php" class="nav-link   ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Moz Pro
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="storyblocks.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Story Blocks
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="wordai.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Word AI
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="storybase.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Story Base
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="wordtune.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Word Tune
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="wordhero.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Word Hero
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="nichescraper.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Niche Scraper
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
              <!-- sidebar start -->
              <li class="nav-item">
                <a href="longtailpro.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Long Tail Pro
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
<!-- sidebar start -->
              <li class="nav-item">
                <a href="crello.php" class="nav-link   ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    crello
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

<!-- sidebar start -->
              <li class="nav-item">
                <a href="closercopy.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Closers Copy
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="skillshare.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Skill Share
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                 <!-- sidebar start -->
              <li class="nav-item">
                <a href="invideo.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                    Invideo
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                  <!-- sidebar start -->
              <li class="nav-item">
                <a href="ubersuggest.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Ubersuggest
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
                                <!-- sidebar start -->
              <li class="nav-item">
                <a href="designai.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Design AI
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

        <!-- sidebar start -->
              <li class="nav-item">
                <a href="vidiq.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   VidIQ
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="textwizard.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Text Wizard.IO
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <!-- sidebar start -->
              <li class="nav-item">
                <a href="sellthetrend.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Sell The Trend
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="hashtagsforlikes.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Hash Tags for Likes
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

 <!-- sidebar start -->
              <li class="nav-item">
                <a href="picsart.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Picsart
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="copyai.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                   Copy.ai
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
                          <!-- sidebar start -->
              <li class="nav-item">
                <a href="jasper.php" class="nav-link active ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Jasper
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                          <!-- sidebar start -->
              <li class="nav-item">
                <a href="jungle.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                 Jungle Scout
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                <!-- sidebar start -->
              <li class="nav-item">
                <a href="buzzstream.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Buzz Stream
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                              <!-- sidebar start -->
              <li class="nav-item">
                <a href="virallaunch.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Viral Launch
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

      <!-- sidebar start -->
              <li class="nav-item">
                <a href="tuberanker.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Tube Ranker
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

               <!-- sidebar start -->
              <li class="nav-item">
                <a href="shutterstock.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Shutter Stock
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                             <!-- sidebar start -->
              <li class="nav-item">
                <a href="articlebuilder.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Article Builder
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                           <!-- sidebar start -->
              <li class="nav-item">
                <a href="freepik.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Freepik
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                                         <!-- sidebar start -->
              <li class="nav-item">
                <a href="buzzsumo.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Buzzsumo
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                                              <!-- sidebar start -->
              <li class="nav-item">
                <a href="writersonic.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Writer Sonic
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

	  <!-- sidebar start -->
              <li class="nav-item">
                <a href="writerzen.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  WriterZen
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
		  <!-- sidebar start -->
              <li class="nav-item">
                <a href="rytr.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  rytr.me
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
              		  <!-- sidebar start -->
              <li class="nav-item">
                <a href="figma.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                 figma
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
              		  <!-- sidebar start -->
              <li class="nav-item">
                <a href="linkedin.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                  Linkedin
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                            		  <!-- sidebar start -->
              <li class="nav-item">
                <a href="coursera.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                Coursera Plus
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                    		  <!-- sidebar start -->
              <li class="nav-item">
                <a href="udemy.php" class="nav-link ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                 Udemy
                  </p>
                </a>
              </li>
              <!-- sidebar end -->
                            <li class="nav-item">
                <a href="scribd.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                scribd
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                         <!-- sidebar end -->
                            <li class="nav-item">
                <a href="turnitin.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                 turnitin
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

                                       <!-- sidebar end -->
                            <li class="nav-item">
                <a href="doodly.php" class="nav-link  ">
                  <i class="nav-icon fas fa-th"></i>
                  <p>
                 doodly
                  </p>
                </a>
              </li>
              <!-- sidebar end -->

              <li class="nav-item">
                  <a href="dist/php/custom.php?action=logout" class="nav-link ">
                    <i class="nav-icon fas fa-th"></i>
                    <p>

                      Logout
                    </p>
                  </a>
                </li>
          </ul>
        </nav>
        <!-- /.sidebar-menu -->
      </div>
      <!-- /.sidebar -->
    </aside>
    
    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <div class="content-header">
        <div class="container-fluid">
          <div class="row mb-2">
            <div class="col-sm-6">
              <h1 class="m-0">Jasper Cookies</h1>
            </div><!-- /.col -->
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="#">Home</a></li>
                <li class="breadcrumb-item active">Jasper</li>
              </ol>
            </div><!-- /.col -->
          </div><!-- /.row -->
        </div><!-- /.container-fluid -->
      </div>
      <!-- /.content-header -->
      
      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="row">
            <div class="col-md-12">

           
              <!-- start Jasper -->
              <div class="card card-primary"> <div class="card-header">
                <h3 class="card-title">Jasper Cookies</h3>
              </div>
              <div class="card-body">
                <div class="form-group">
                  <label for="jasperUrl">Jasper</label>
                  <input type="text" class="form-control" id="jasperUrl" data-service="jasper" placeholder="URL" value="">
                </div>
                <div class="form-group">
                  <label for="jasperCookies">Cookies</label>
                  <input type="text" class="form-control" id="jasperCookies" data-service="jasper" placeholder="json" value="">
                </div>
              </div>
              <div class="card-footer">
                <button type="button" onclick="saveCookiesData('jasper')" class="btn btn-primary">Save Jasper Cookies</button>
                <div id="jasperSuccessMessage" style="display: none; color: green;">Jasper Cookies saved successfully!</div>
              </div>
            </div> 
<!-- end Jasper -->

<!-- start Jasper  1-->
              <div class="card card-primary"> <div class="card-header">
                <h3 class="card-title">Jasper Cookies</h3>
              </div>
              <div class="card-body">
                <div class="form-group">
                  <label for="jasperUrl">Jasper 1</label>
                  <input type="text" class="form-control" id="jasper1Url" data-service="jasper1" placeholder="URL" value="">
                </div>
                <div class="form-group">
                  <label for="jasperCookies">Cookies</label>
                  <input type="text" class="form-control" id="jasper1Cookies" data-service="jasper1" placeholder="json" value="">
                </div>
              </div>
              <div class="card-footer">
                <button type="button" onclick="saveCookiesData('jasper1')" class="btn btn-primary">Save Jasper Cookies</button>
                <div id="jasper1SuccessMessage" style="display: none; color: green;">Jasper Cookies saved successfully!</div>
              </div>
            </div> 
<!-- end Jasper  1-->

<!-- start Jasper  2-->
              <div class="card card-primary"> <div class="card-header">
                <h3 class="card-title">Jasper Cookies</h3>
              </div>
              <div class="card-body">
                <div class="form-group">
                  <label for="jasperUrl">Jasper 2</label>
                  <input type="text" class="form-control" id="jasper2Url" data-service="jasper2" placeholder="URL" value="">
                </div>
                <div class="form-group">
                  <label for="jasperCookies">Cookies</label>
                  <input type="text" class="form-control" id="jasper2Cookies" data-service="jasper2" placeholder="json" value="">
                </div>
              </div>
              <div class="card-footer">
                <button type="button" onclick="saveCookiesData('jasper2')" class="btn btn-primary">Save Jasper Cookies</button>
                <div id="jasper2SuccessMessage" style="display: none; color: green;">Jasper Cookies saved successfully!</div>
              </div>
            </div> 
<!-- end Jasper  2-->

<!-- start Jasper  3-->
              <div class="card card-primary"> <div class="card-header">
                <h3 class="card-title">Jasper Cookies</h3>
              </div>
              <div class="card-body">
                <div class="form-group">
                  <label for="jasperUrl">Jasper 3</label>
                  <input type="text" class="form-control" id="jasper3Url" data-service="jasper3" placeholder="URL" value="">
                </div>
                <div class="form-group">
                  <label for="jasperCookies">Cookies</label>
                  <input type="text" class="form-control" id="jasper2Cookies" data-service="jasper3" placeholder="json" value="">
                </div>
              </div>
              <div class="card-footer">
                <button type="button" onclick="saveCookiesData('jasper3')" class="btn btn-primary">Save Jasper Cookies</button>
                <div id="jasper3SuccessMessage" style="display: none; color: green;">Jasper Cookies saved successfully!</div>
              </div>
            </div> 
<!-- end Jasper  3-->



       

          </div> 
        </div> 
      </div> 
    </section>
    
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <strong> Copy Right Skilledustore Tools </strong>
    All rights reserved.
    <div class="float-right d-none d-sm-inline-block">
      <b>Version</b> 3.2.0
    </div>
  </footer>
  
  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Control sidebar content goes here -->
  </aside>
  <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="plugins/jquery/jquery.min.js"></script>
<!-- jQuery UI 1.11.4 -->
<script src="plugins/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- ChartJS -->
<script src="plugins/chart.js/Chart.min.js"></script>
<!-- Sparkline -->
<script src="plugins/sparklines/sparkline.js"></script>
<!-- JQVMap -->
<script src="plugins/jqvmap/jquery.vmap.min.js"></script>
<script src="plugins/jqvmap/maps/jquery.vmap.usa.js"></script>
<!-- jQuery Knob Chart -->
<script src="plugins/jquery-knob/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="plugins/moment/moment.min.js"></script>
<script src="plugins/daterangepicker/daterangepicker.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Summernote -->
<script src="plugins/summernote/summernote-bs4.min.js"></script>
<!-- overlayScrollbars -->
<script src="plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js"></script>
<!-- AdminLTE App -->
<script src="dist/js/adminlte.js"></script>
<script src="dist/js/pages/dashboard.js"></script>
<script src="dist/js/pages/custom.js"></script>
</body>
</html>
