Current File : /home/users/kundensystem/www/admin/system_setting.php |
<?php
include './inc/header.php';
include './inc/sidebar.php';
if($adminRole['system']!='1'&&$adminData['role']!='1'){
?><script>location.href="index.php";</script><?php
exit;
}
if(isset($_POST['rand'])&&$_POST['rand']!=''&&$_POST['rand']==$_SESSION['rand']){
mysqli_query($conn, "UPDATE ".$dbtable50."
SET footer_adv1 = '".$_POST['footer_adv1']."',
footer_adv2 = '".$_POST['footer_adv2']."',
index_title = '".$_POST['index_title']."',
index_rotate = '".$_POST['index_rotate']."',
footer_date_act = '".(isset($_POST['footer_date_act']) ? $_POST['footer_date_act'] : 'nein')."',
loadtime_act = '".(isset($_POST['loadtime_act']) ? $_POST['loadtime_act'] : 'nein')."',
login_check_code = '".str_replace("'", "\"", $_POST['login_check_code'])."'
");
$msg='<div class="alert alert-success alert-dismissible fade show">Daten werden erfolgreich geändert</div>';
}
$sql=mysqli_query($conn, "SELECT * FROM ".$dbtable50);
$ROW=mysqli_fetch_assoc($sql);
?>
<main id="main" class="main">
<div class="pagetitle">
<h1>Systemeinstellungen</h1>
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.php">Home</a></li>
<li class="breadcrumb-item">System-Einstellungen</li>
<li class="breadcrumb-item">Systemeinstellungen</li>
</ol>
</nav>
</div><!-- End Page Title -->
<section class="section dashboard">
<div class="row">
<div class="col-lg-2"> </div>
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<h5 class="card-title">Systemeinstellungen</h5>
<?php if($msg!='') echo $msg; ?>
<form class="form-horizontal padding-form" name="anmelden" action="system_setting.php" method="post">
<div class="row mb-2">
<label class="control-label col-lg-3" >Datum im Footer anzeigen : </label>
<div class="col-lg-4">
<select class="form-select" name="footer_date_act">
<option value="ja" <?= $ROW['footer_date_act']=='ja' ? 'selected' : '';?>>Ja</option>
<option value="nein" <?= $ROW['footer_date_act']!='ja' ? 'selected' : '';?>>Nein</option>
</select>
</div>
</div>
<div class="row mb-2">
<label class="control-label col-lg-3" >Ladezeit der Webseite anzeigen : </label>
<div class="col-lg-4">
<select class="form-select" name="loadtime_act">
<option value="ja" <?= $ROW['loadtime_act']=='ja' ? 'selected' : '';?>>Ja</option>
<option value="nein" <?= $ROW['loadtime_act']!='ja' ? 'selected' : '';?>>Nein</option>
</select>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" >Werbungscode Footer 1 : </label>
<div class="col-lg-8">
<textarea class="form-control m-bot15" name="footer_adv1" rows="4"><?php echo $ROW['footer_adv1']; ?></textarea>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" >Werbungscode Footer 2 : </label>
<div class="col-lg-8">
<textarea class="form-control m-bot15" name="footer_adv2" rows="4"><?php echo $ROW['footer_adv2']; ?></textarea>
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" >Titel Lauftext : </label>
<div class="col-lg-8">
<input type="text" class="form-control m-bot15" name="index_title" value="<?php echo $ROW['index_title']; ?>" />
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" >Lauftext Startseite : </label>
<div class="col-lg-8">
<input type="text" class="form-control m-bot15" name="index_rotate" value="<?php echo $ROW['index_rotate']; ?>" />
</div>
</div>
<div class="row">
<label class="control-label col-lg-3" >Lizenz-System Code : </label>
<div class="col-lg-8">
<textarea class="form-control m-bot15" name="login_check_code" rows="12"><?php echo $ROW['login_check_code']; ?></textarea>
<ul>
<li style=" list-style: auto;">Laden Sie sich die lc.php Datei runter: <a href="lcdownload.php" style="text-decoration: underline; cursor:pointer">Hier</a></li>
<li style=" list-style: auto;">Passen Sie die Domains an die Ihres Lizenz-Systems an --> $license_domains.</li>
<li style=" list-style: auto;">Kopieren Sie den Code und integrieren diesen entweder in der index.php oder login.php Ihres Adminverzeichnis</li>
<li style=" list-style: auto;">Passen Sie dann (systemId=="Produkt-ID") an die Artikelnummer an, von den Produkten welche Sie im Lizenz-System angelegt haben</li>
<li style=" list-style: auto;">Geben Sie den Login-Code ein, um E-Mail und Passwort zu überprüfen</li>
</ul>
</div>
</div>
<br><br>
<div class="form-group text-center">
<?php $rand=rand(); $_SESSION['rand']=$rand;?>
<input type="hidden" value="<?= $rand;?>" name='rand'>
<button type="submit" class="btn btn-primary">Absenden</button>
</div>
</form>
<br><br>
</div>
</div>
</div>
</div>
</section>
</main><!-- End #main -->
<?php
include_once './inc/footer.php';
?>
<script>
$('.sub6 ul').addClass('show');
$('.sub6 .nav-link').removeClass('collapsed');
</script>