Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • isaack/VMS-SUEE_2.0
  • ztk.me/VMS-z
2 results
Show changes
Showing
with 716 additions and 0 deletions
<?php
$chat = Classloader('chat',true);
$chatSe = $datenbank->get_row("SELECT chat_aktiv,hintergrundfarbe,textfarbe,profillink FROM ".PREFIX . CHATSE ."",true);
?>
<div class="row">
<div class="col-6">
<div class="card">
<div class="card-header">Grundeinstellungen</div>
<div class="card-body">
<form method="post" action="">
<table class="table">
<tr>
<th>Chat Aktiv</th>
<td>
<select name="chat_aktiv" class="form-control">
<option value="1"<?php if($chatSe->chat_aktiv == 1) echo'selected="selected"';?>>deaktiviert</option>
<option value="2"<?php if ($chatSe->chat_aktiv == 2) echo'selected="selected"';?>>aktiviert</option>
</select>
</td>
</tr>
<tr>
<th>Hintergrundfarbe</th>
<td><input class="form-control" type="color" name="hintergrundfarbe" value="<?php echo $chatSe->hintergrundfarbe;?>"></td>
</tr>
<tr>
<th>Textfarbe</th>
<td><input class="form-control" type="color" name="textfarbe" value="<?php echo $chatSe->textfarbe;?>"></td>
</tr>
<tr>
<th>Profillinkfarbe</th>
<td><input class="form-control" type="color" name="profillink" value="<?php echo $chatSe->profillink;?>"></td>
</tr>
<tr>
<th></th>
<td><input class="btn btn-default" type="submit" name="run[chat_save]" value="Chat Einstellungen Speichern"></td>
</tr>
</table>
</form>
</div>
</div>
</div>
<div class="col-6">
<div class="card">
<div class="card-header">Smileyverwaltung</div>
<div class="card-body">
<form method="post" action="" enctype="multipart/form-data">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="inputGroupFileAddon01">Upload</span>
</div>
<div class="custom-file">
<input name="datei" type="file" class="custom-file-input" id="inputGroupFile01" aria-describedby="inputGroupFileAddon01">
<label class="custom-file-label" for="inputGroupFile01">Choose file</label>
</div>
<input type="text" name="kurz" placeholder="Kurzzeichen" class="form-control" required>
<div class="input-group-append">
<input type="submit" name="run[SmileyUpload]" value="Speichern" class="btn btn-success">
</div>
</div>
</form>
<hr>
<?php echo $chat->SmileyAnsicht();?>
</div>
</div>
</div>
</div>
<?php
head("Chatverlauf");
echo $chat->Verlauf();
foot();
?>
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Admin Zugang &auml;ndern</h3>
</div>
<div class="panel-body">
<form method="post" action="">
<table class="table">
<tr>
<th><b>Loginname (Adminforce)</b></th>
<td><input class="form-control" type="Text" name="admin_name" value="<?php echo base64_decode($grundconfig->admin_name);?>"></td>
</tr>
<tr>
<th><b>Passwort (Adminforce)</b></th>
<td><input class="form-control" type="Text" name="admin_pass"></td>
</tr>
<tr>
<td align="center" colspan="2"><input class="btn btn-default" type="Submit" name="run[adminPW]" value="Zugangsdaten Updaten"></td>
</tr>
</table>
</form>
</div>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['BETTEL']['MIN'];?></label>
<input type="text" class="form-control" name="min_bettel" value="<?php echo $grundconfig->min_betteln;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['BETTEL']['MINN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['BETTEL']['MAX'];?></label>
<input type="text" class="form-control" name="max_bettel" value="<?php echo $grundconfig->max_betteln;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['BETTEL']['MAXN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['BETTEL']['RELOAD'];?></label>
<input type="text" class="form-control" name="reload_betteln" value="<?php echo $grundconfig->reload_betteln;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['BETTEL']['RELOADN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['BETTEL']['INFO'];?></label>
<textarea name="bettel_infotext" class="form-control"><?php echo $grundconfig->bettel_infotext;?></textarea>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['BETTEL']['DIREKT'];?></label>
<select name="bettel_direkt" class="form-control">
<option value="0" <?php if($grundconfig->bettel_direkt == 0) echo 'selected="selected"';?>>nicht erlauben</option>
<option value="1" <?php if($grundconfig->bettel_direkt == 1) echo 'selected="selected"';?>>erlauben</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['BETTEL']['DIREKTN'];?></small>
</div>
\ No newline at end of file
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['NUTZER']['REGFREE'];?></label>
<select name="reg_free" class="form-control">
<option value="0" <?php if($grundconfig->reg_free == 0) echo 'selected="selected"';?>><?php echo GLOBALSETTING['SETTING']['NUTZER']['SELF'];?></option>
<option value="1" <?php if($grundconfig->reg_free == 1) echo 'selected="selected"';?>><?php echo GLOBALSETTING['SETTING']['NUTZER']['ADMIN'];?></option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['NUTZER']['REGFREEN'];?></small>
</div>
<?php
$ref = Classloader('grundeinstellung',true);
echo $ref->Refliste();
?>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['EMAIL'];?></label>
<input type="text" class="form-control" name="betreibermail" value="<?php echo $grundconfig->betreibermail;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['EMAILN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['CRON_PW'];?></label>
<input type="text" class="form-control" name="cron_pw" value="<?php echo $grundconfig->cron_pw;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['CRON_PWN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['WARTUNG'];?></label>
<select name="wartung" class="form-control">
<option value="0" <?php if($grundconfig->wartung == 0) echo 'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if($grundconfig->wartung == 1) echo 'selected="selected"';?>>aktiviert</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['WARTUNGN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['DOMAIN'];?></label>
<input type="text" class="form-control" name="domain" value="<?php echo $grundconfig->domain;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['DOMAINN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['SEITN'];?></label>
<input type="text" class="form-control" name="seitenname" value="<?php echo $grundconfig->seitenname;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['SEITNN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['DSTART'];?></label>
<input type="date" class="form-control" name="start_seite" value="<?php echo date("Y-m-d", $grundconfig->start_seite);?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['DSTARTN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['USTART'];?></label>
<div class="row">
<div class="col-md-6">
Chat<input class="form-control" type="checkbox" name="anzeige_chat" value="1" <?php if($interface->anzeige_chat == 1){ echo 'CHECKED';} ?>>
</div>
<div class="col-md-6">
Startseitentext<input class="form-control" type="checkbox" name="anzeige_text" value="1" <?php if($interface->anzeige_text == 1){ echo 'CHECKED';} ?>>
</div>
</div>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['USTARTN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['NEWSK'];?></label>
<select name="news_komment" class="form-control">
<option value="0" <?php if ($interface->news_komment == 0) echo 'SELECTED';?>>Deaktiviert</option>
<option value="1" <?php if ($interface->news_komment == 1) echo 'SELECTED';?>>Aktiviert</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['NEWSKN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['BUCHL'];?></label>
<select name="buchungen_loeschen" class="form-control">
<option value="0" <?php if ($interface->buchungen_loeschen == 0) echo 'SELECTED';?>>Deaktiviert</option>
<option value="1" <?php if ($interface->buchungen_loeschen == 1) echo 'SELECTED';?>>Aktiviert</option>
</select>
<?php
if ($interface->buchungen_loeschen == 1) echo '<input class="form-control" style="width:100px;" type="text" name="buchungen_loeschen_tage" value="'.$interface->buchungen_loeschen_tage.'"> Tage';
?>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['BUCHLN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['DENIEDE'];?></label>
<input type="text" class="form-control" name="denied_domains" value="<?php echo $grundconfig->denied_domains;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['DENIEDEN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUND']['IPLAND'];?></label>
<input type="text" class="form-control" name="ip_erlaubt" value="<?php echo $grundconfig->ip_erlaubt;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUND']['IPLANDN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['SMTP']['HOST'];?></label>
<input type="text" class="form-control" name="SMTP_HOST" value="<?php echo $grundconfig->SMTP_HOST;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['SMTP']['HOSTN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['SMTP']['PORT'];?></label>
<input type="text" class="form-control" name="SMTP_PORT" value="<?php echo $grundconfig->SMTP_PORT;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['SMTP']['PORTN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['SMTP']['VERBI'];?></label>
<select name="SMTP_VERBINDUNG" class="form-control">
<option value="ssl" <?php if($grundconfig->SMTP_VERBINDUNG == 'ssl'){ echo 'selected="selected"';}?>>SSL</option>
<option value="tls" <?php if($grundconfig->SMTP_VERBINDUNG == 'tls'){ echo 'selected="selected"';}?>>TLS</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['SMTP']['VERBIN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['SMTP']['NICK'];?></label>
<input type="text" class="form-control" name="SMTP_LOGIN" value="<?php echo $grundconfig->SMTP_LOGIN;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['SMTP']['NICKN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['SMTP']['PASS'];?></label>
<input type="text" class="form-control" name="SMTP_PASS">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['SMTP']['PASSN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['STARTV']['VERDI'];?></label>
<input type="text" class="form-control" name="verdienst_start" value="<?php echo $grundconfig->verdienst_start;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['STARTV']['VERDIN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['STARTV']['RELOAD'];?></label>
<input type="text" class="form-control" name="reload_start" value="<?php echo $grundconfig->reload_start;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['STARTV']['RELOADN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['STARTV']['LOG'];?></label>
<select name="start_log" class="form-control">
<option value="0" <?php if($grundconfig->start_log == 0) echo 'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if($grundconfig->start_log == 1) echo 'selected="selected"';?>>aktiviert</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['STARTV']['POPN'];?></small>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['STARTV']['POP'];?></label>
<select name="popup_start" class="form-control">
<option value="0" <?php if($grundconfig->popup_start == 0) echo 'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if($grundconfig->popup_start == 1) echo 'selected="selected"';?>>aktiviert</option>
</select>
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['STARTV']['POPN'];?></small>
</div>
\ No newline at end of file
<div class="row">
<div class="col-md-6">
<div class="card">
<div class="card-header"><h2><?php echo GLOBALSETTING['SETTING']['GRUNDW']['GRUND'];?></h2></div>
<div class="card-body">
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUNDW']['NAME'];?></label>
<input type="text" class="form-control" name="waehrung" value="<?php echo $grundconfig->waehrung;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUNDW']['NOTICE'];?></small>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="card">
<div class="card-header"><h2><?php echo GLOBALSETTING['SETTING']['GRUNDZ']['GRUND'];?></h2></div>
<div class="card-body">
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUNDZ']['STATUS'];?></label>
<select name="waehrung_zwei" class="form-control">
<option value="0" <?php if($grundconfig->waehrung_zwei == 0) echo 'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if($grundconfig->waehrung_zwei == 1) echo 'selected="selected"';?>>aktiv</option>
</select>
</div>
<div class="form-group">
<label><?php echo GLOBALSETTING['SETTING']['GRUNDZ']['NAME'];?></label>
<input type="text" class="form-control" name="waehrung" value="<?php echo $grundconfig->waehrung;?>">
<small class="form-text text-muted"><?php echo GLOBALSETTING['SETTING']['GRUNDZ']['NOTICE'];?></small>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
<?php
$cron = Classloader('crons',true);
head("Crons (Übersicht und manuell Start)");
echo $cron->liste();
foot(); ?>
<?php
if(!is_writable('backup')){
echo '
<div class="alert alert-danger">
Das Verzeichniss Backup, kann nicht beschrieben werden. Bitte &auml;ndere die Zugriffsrechte auf 0777.<br>Ohne Zugriffsrechte, k&ouml;nnen keine Backups erstellt werden.
</div>
';
}
$alledateien = scandir('backup');
$ausgabe = '';
$i = 1;
foreach ($alledateien as $datei) {
if ($datei != "." && $datei != ".." && $datei != "index.html" && $datei != ".htaccess"){
$datum = str_replace("dump_". DB_BASS ."_","",$datei);
$datum = str_replace(".sql","",$datum);
$datum = str_replace("_"," ",$datum);
$inhalt = file_get_contents('backup/'.$datei);
$ausgabe .= '
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="überschriftEins">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#'.$i.'" aria-expanded="false" aria-controls"'.$i.'">
'. $datum.'
</a>
</h4>
</div>
<div id="'.$i.'" class="panel-collapse collapse" role="tabpanel" aria-labelledby="überschriftEins">
<div class="panel-body">
<div class="text-center">
<form method="post" action="">
<input type="hidden" name="datei" value="'. $datei .'">
<button type="button" class="btn btn-info" data-toggle="modal" data-target="#'.$i.'_'.$i.'">Inhalt Anzeigen</button>
<button type="submit" name="run[backup_loeschen]" class="btn btn-danger">Backup l&ouml;schen</button>
<button type="submit" name="run[backup_wiederherstellen]" class="btn btn-success">Backup wiederherstellen</button>
</form>
</div>
<div class="modal fade" id="'.$i.'_'.$i.'" tabindex="-1" role="dialog" aria-labelledby="meinModalLabel">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Schließen"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="meinModalLabel">Inhalt des Backups</h4>
</div>
<div class="modal-body">
<code>'. nl2br($inhalt) .'</code>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Schließen</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
';
$i++;
}
};
?>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
<?php echo $ausgabe;?>
</div>
<?php
$menue = Classloader('mver',true);
$menue->set_art('admin');
head("Men&uuml;verwaltung Adminbereich");
echo '<div class="text-center"><button class="btn btn-info" data-toggle="modal" data-target="#LinkNew">Neuen Link hinzuf&uuml;gen</button></div><hr>';
echo $menue->NewListen();
echo $menue->listen();
?>
<div class="modal fade" id="LinkNew" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form method="post" action="">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Neuen Link eintragen</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<table class="table">
<tr>
<td>Pfad zur Datei</td>
<td>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">page/</span>
</div>
<input type="text" name="link" class="form-control" id="beispielFeldSumme" placeholder="Link zur Datei">
<div class="input-group-append">
<span class="input-group-text">.php</span>
</div>
</div>
</td>
</tr>
<tr>
<td>Name des Links<br><small>(F&uuml;r User sichtbar)</small></td>
<td><input type="text" class="form-control" name="name"></td>
</tr>
<tr>
<td>Box in der der Link stehen soll</td>
<td>
<select class="form-control" name="box" id="box" onchange="MenueAuswahl('admin');">';
<?php echo $menue->selectBox(0);?>
</select>
</td>
</tr>
<tr id="MenueInputGroupAdmin"></tr>
<tr>
<td>Ordnungszahl f&uuml;r Box</td>
<td><input type="text" class="form-control" name="ordnung"></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<input type="submit" class="btn btn-success" name="run[menue_neu_save_admin]" value="Speichern">
</div>
</div>
</form>
</div>
</div>
<?php
require_once('lib/class/mver.class.php');
$menue = new mver;
$menue->set_art('user');
head("Men&uuml;verwaltung Userbereich");
echo '<div class="text-center"><button class="btn btn-info" data-toggle="modal" data-target="#LinkNew">Neuen Link hinzuf&uuml;gen</button></div><hr>';
echo $menue->NewListen();
echo $menue->listen();
?>
<div class="modal fade" id="LinkNew" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<form method="post" action="">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Neuen Link eintragen</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<table class="table">
<tr>
<td>Pfad zur Datei</td>
<td>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text">page/</span>
</div>
<input type="text" name="link" class="form-control" id="beispielFeldSumme" placeholder="Link zur Datei">
<div class="input-group-append">
<span class="input-group-text">.php</span>
</div>
</div>
</td>
</tr>
<tr>
<td>Name des Links<br><small>(F&uuml;r User sichtbar)</small></td>
<td><input type="text" class="form-control" name="name"></td>
</tr>
<tr>
<td>Box in der der Link stehen soll</td>
<td>
<select class="form-control" name="box" id="box" onchange="MenueAuswahl('user');">';
<?php echo $menue->selectBox(0);?>
</select>
</td>
</tr>
<tr id="MenueInputGroupAdmin"></tr>
<tr>
<td>Ordnungszahl f&uuml;r Box</td>
<td><input type="text" class="form-control" name="ordnung"></td>
</tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<input type="submit" class="btn btn-success" name="run[menue_neu_save_user]" value="Speichern">
</div>
</div>
</form>
</div>
</div>
<?php
$Class = Classloader('multiKonten',true);
$row = $Class->ListeMultiKonten();
head("Liste aller Multikonten");
?>
<table class="table table-hover" id="DataTables">
<thead>
<?php echo $row['head'];?>
</thead>
<tbody>
<?php echo $row['body'];?>
</tbody>
</table>
<?php foot();?>
<script>
$( document ).ready(function() {
$('#DataTables').DataTable({
'paging' : true,
'lengthChange': false,
'searching' : true,
'ordering' : true,
'info' : true,
'autoWidth' : false,
"language": {
"lengthMenu": "Display _MENU_ Einträge pro Seite",
"zeroRecords": "Nichts gefunden Entschuldigung",
"info": "Zeige Seite _PAGE_ von _PAGES_",
"infoEmpty": "Keine Einträge vorhanden",
"infoFiltered": "(filtered from _MAX_ total records)",
"paginate": {
"first": "erste",
"last": "letzte",
"next": "Weiter",
"previous": "Zur&uuml;ck"
}
},
"order": [[ 0, "desc" ]]
});
});
</script>
\ No newline at end of file
<div class="alert alert-info">
Hier hast du die M&ouml;glichkeit die MySQL Daten von deinen gekauften Addons einfach und bequem in die Datenbank einzuf&uuml;gen.<br>
Durch dieses Script wird im gleichen Moment auch der Prefix auf dein System eingestellt.
<hr>
Um nun die Daten in die Datenbank zu laden, kannst du einmal den Inhalt der Datei in das Textfeld kopieren oder die komplette Datei hochladen.<br>
<b>!!!ACHTUNG!!! Es werden vom System nur .txt oder .mysql Datein erkannt.</b>
</div>
<form method="post" action="" enctype="multipart/form-data">
<div class="form-group">
<label for="exampleFormControlFile1">Datei w&auml;hlen</label>
<input type="file" class="form-control-file" name="mysqldatei">
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">MySQL Befehl</label>
<textarea class="form-control" name="mysqltxt" rows="3"></textarea>
</div>
<br>
<div class="alert alert-danger text-center">
<b>!!!ACHTUNG!!! Es erfolgt keinerlei Pr&uuml;fung des MySQL-Befehls</b>
</div>
<input type="submit" name="run[MySQL]" value="Ausf&uuml;hren" class="btn btn-success btn-block">
</form>
<?php
head("Webseiteneinstellungen"); ?>
<div>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<li role="presentation" class="nav-item"><a href="#start" class="nav-link active" role="tab" data-toggle="tab">Seiteneinstellung</a></li>
<li role="presentation" class="nav-item"><a href="#waehrung" class="nav-link" role="tab" data-toggle="tab">W&auml;hrung</a></li>
<li role="presentation" class="nav-item"><a href="#bettel" class="nav-link" role="tab" data-toggle="tab">Bettellink</a></li>
<li role="presentation" class="nav-item"><a href="#startseite" class="nav-link" role="tab" data-toggle="tab">Startseite</a></li>
<li role="presentation" class="nav-item"><a href="#nutzer" class="nav-link" role="tab" data-toggle="tab">Nutzer</a></li>
<li role="presentation" class="nav-item"><a href="#smtp" class="nav-link" role="tab" data-toggle="tab">SMTP</a></li>
<li role="presentation" class="nav-item"><a href="#ref" class="nav-link" role="tab" data-toggle="tab">Refeinstellung</a></li>
<li role="presentation" class="nav-item"><a href="#admin_pw" class="nav-link" role="tab" data-toggle="tab">Admin PW</a></li>
</ul>
<br>
<div class="tab-content">
<div role="tabpanel" class="tab-pane fade show active" id="start">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/sitesetting.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="waehrung">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/waehrung.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="W&auml;hrung Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="bettel">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/betteln.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="Bettellink Einstellung Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="startseite">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/startseite.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="Startseiten Einstellung Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="nutzer">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/nutzer.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="Nutzer Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="smtp">
<form action="" method="post">
<?php require('page/interfacedaten/config_include/smtp.php');?>
<input type="submit" name="run[GrunConfigUpdate]" value="SMTP Speichern" class="btn btn-default">
</form>
</div>
<div role="tabpanel" class="tab-pane" id="ref">
<?php require('page/interfacedaten/config_include/ref.php');?>
</div>
<div role="tabpanel" class="tab-pane" id="admin_pw">
<?php require('page/interfacedaten/config_include/admin_pw.php');?>
</div>
</div>
</div>
<?php foot(); ?>
<?php
$Class = Classloader('start',true);
?>
<table class="table table-striped" id="DataTable">
<thead>
<tr>
<th>#</th>
<th>UID</th>
<th>Datum</th>
<th>Betrag</th>
</tr>
</thead>
<tbody>
<?php echo $Class->Liste();?>
</tbody>
</table>
\ No newline at end of file
<?php
require_once('lib/class/news.class.php');
$news = new NEWS;
if (!isset($titel)) $titel = '';
if (!isset($news)) $news = '';
if (!isset($id)) $id = '0';
if (!isset($_POST['auffuehren'])) $_POST['auffuehren'] = '0';
if (!isset($_POST['load'])) $_POST['load'] = '0';
if (!isset($_POST['loader'])) $_POST['loader'] = '0';
if (isset($_POST['load']) && $_POST['load'] == 'Editieren') {
$id = htmlspecialchars($_POST['id']);
$edit = $datenbank->get_row("SELECT * FROM " . PREFIX . NEWS . " WHERE id ='" . $datenbank->escape($id) . "'",true);
$titel = $edit['titel'];
$news = $edit['news'];
$id = $edit['id'];
}
head("News editieren / löschen");
echo $news->edit();
foot();
head("News schreiben");
?>
<form action="" method="post">
<div class="form-group">
<label>Newstitel</label>
<input type="text" name="titel" class="form-control" placeholder="Newstitel" required>
</div>
<div class="form-group">
<label>Newstext</label>
<textarea class="ckeditor" name="news" rows="10" required></textarea>
</div>
<center>
<div class="btn-group" role="group" aria-label="Basic example">
<input type="Submit" class="btn btn-info" name="run[news4]" value="Seite">
<input type="Submit" class="btn btn-warning" name="run[news2]" value="Newsletter und Seite">
<input type="Submit" class="btn btn-light" name="run[news3]" value="Newsletter">
</div>
</center>
</form>
<?php foot();?>