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 595 additions and 2 deletions
<?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();?>
<div class="row">
<div class="col-xl-3 col-sm-6">
<div class="card card-mini mb-4">
<div class="card-body">
<h2 class="mb-1">71,503</h2>
<p>Online Signups</p>
<div class="chartjs-wrapper">
<canvas id="barChart"></canvas>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6">
<div class="card card-mini mb-4">
<div class="card-body">
<h2 class="mb-1">9,503</h2>
<p>New Visitors Today</p>
<div class="chartjs-wrapper">
<canvas id="dual-line"></canvas>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6">
<div class="card card-mini mb-4">
<div class="card-body">
<h2 class="mb-1">71,503</h2>
<p>Monthly Total Order</p>
<div class="chartjs-wrapper">
<canvas id="area-chart"></canvas>
</div>
</div>
</div>
</div>
<div class="col-xl-3 col-sm-6">
<div class="card card-mini mb-4">
<div class="card-body">
<h2 class="mb-1">9,503</h2>
<p>Total Revenue This Year</p>
<div class="chartjs-wrapper">
<canvas id="line"></canvas>
</div>
</div>
</div>
</div>
</div>
<?php
if($_SESSION['admin'] == 1){
require_once('lib/class/userliste.class.php');
$User = new USERLISTE;
$UserStat = $User->startseite();
$Chart = $User->Chart();
head("Bilanz der letzten 14 Tage");
echo '<canvas class="my-4" id="BilanzChart" width="100%" height="10"></canvas>';
foot();
head("");
echo '
<div class="row">
<div class="col-md-3">
<table class="table table-striped">
<tr>
<td width="55%">Angemeldete User</td>
<td align="right">'.@number_format($UserStat->kd_uid,0,",",".").'&nbsp;&nbsp;</td>
</tr>
<tr>
<td>Gesamtguthaben</td>
<td align="right">'.@number_format($UserStat->kd_kontostand,2,",",".").'&nbsp;&nbsp;</td>
</tr>
<tr>
<td width="55%">Guth. pro User</td>
<td align="right">'.@number_format($UserStat->kd_kontostand / $UserStat->kd_uid,2,",",".").'&nbsp;&nbsp;</td>
</tr>
</table>
</div>
</div>
';
foot();
echo '</td>
</tr></table>';
}
?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js"></script>
<script>
var ctx = document.getElementById("BilanzChart");
var myChart = new Chart(ctx, {
type: 'line',
data: {
labels: [<?php echo $Chart['label'];?>],
datasets: [{
data: [<?php echo $Chart['ges'];?>],
lineTension: 0,
backgroundColor: 'transparent',
borderColor: '#007bff',
borderWidth: 4,
pointBackgroundColor: '#007bff'
}]
},
options: {
scales: {
yAxes: [{
ticks: {
beginAtZero: false
}
}]
},
legend: {
display: false,
}
}
});
</script>
<?php
$texte = Classloader('texte',true);
$texteAus = $texte->AWerbung();
head("Alternativwerbung bearbeiten (html erlaubt!)");?>
<div align="center">
<br />
<form action="" method="post">
<b>Startseitenwerbung</b><br>
<textarea name="start" class="form-control"><?php echo base64_decode($texteAus->start);?></textarea><br>
<br>
<b>Startseitenwerbung</b><br>
<textarea name="start_popup" class="form-control"><?php echo base64_decode($texteAus->start_popup);?></textarea><br>
<br>
<b>Bettelwerbung</b><br>
<textarea name="bettelwerbung" class="form-control"><?php echo base64_decode($texteAus->bettelwerbung);?></textarea><br>
<br>
<input type="Submit" name="run[updaten_alternativwerbung]" value="Speichern">
</form>
</div>
<?php foot();?>
<?php
$texte = Classloader('texte',true);
$aus = $texte->Ausgabe();
?>
<ul class="nav nav-tabs" id="myTab" role="tablist">
<?php echo $aus['kopf'];?>
</ul>
<br>
<div class="tab-content" id="myTabContent">
<?php echo $aus['body'];?>
</div>
<?php
require_once('lib/class/userliste.class.php');
$doppel = new USERLISTE;
head ("RefSchleifen-Pr&uuml;fung");
echo $doppel->Refschleifen();
foot ();
?>
<?php
$user = Classloader('userliste',true);
$user->set_uid($_GET['uid']);
$daten = $user->userinfo();
?>
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" href="#start" role="tab" data-toggle="tab">Start</a></li>
<li class="nav-item"><a class="nav-link" href="#buchungsliste" role="tab" data-toggle="tab">Buchungsliste</a></li>
<li class="nav-item"><a class="nav-link" href="#bettelref" role="tab" data-toggle="tab">Bettel Refferer</a></li>
<li class="nav-item"><a class="nav-link" href="#notizen" role="tab" data-toggle="tab">Notizen</a></li>
<li class="nav-item"><a class="nav-link" href="#berechtigung" role="tab" data-toggle="tab">Berechtigungen</a></li>
<li class="nav-item"><a class="nav-link" href="?content=/usersystem/liste" class="btn btn-default">Zur&uuml;ck</a></li>
</ul>
<hr>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="start">
<?php require_once(__dir__ .'/user_include/allgemeines.php'); ?>
</div>
<div role="tabpanel" class="tab-pane" id="buchungsliste">
<?php require_once(__dir__ .'/user_include/buchungen.php');?>
</div>
<div role="tabpanel" class="tab-pane" id="bettelref">
<?php require_once(__dir__ .'/user_include/bet_ref.php');?>
</div>
<div role="tabpanel" class="tab-pane" id="notizen">
<?php require_once(__dir__ .'/user_include/notizen.php');?>
</div>
<div role="tabpanel" class="tab-pane" id="berechtigung">
<?php require_once(__dir__ .'/user_include/rechte.php');?>
</div>
</div>
<?php
require_once('lib/class/userliste.class.php');
$user = new USERLISTE;
head("Doppelte IP Adressen");
echo $user->DoppelAcc();
if(isset($_GET['ip']) && $_GET['ip'] != ''){
echo $user->DoppelAccIP($_GET['ip']);
}
foot();
echo '<hr>';
head("Doppelte Passwörter");
echo $user->DoppelPass();
if(isset($_GET['md5']) && $_GET['md5'] != ''){
echo $user->DoppelPassList($_GET['md5']);
}
foot();
?>
<script>
var UserID;
function userdetails(uid){
UserID = uid;
$('#userdetails').modal('show');
$.ajax({
type: "POST",
url: "content/usersystem/user_include/ansicht.php",
data : { uid : UserID }
}).done(function( data )
{
var obj = JSON.parse(data);
document.getElementById("start_html").innerHTML = obj.konto;
});
}
</script>
<?php
$user = Classloader('userliste',true);
head("Userliste");
echo $user->liste();
foot();
?>
<script>
$('#Userliste').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"
}
}
});
</script>
<div class="row">
<div class="col-md-6">
<form action="" method="POST">
<input type="hidden" name="uid" value="<?php echo $daten->uid;?>">
<input type="hidden" name="alt_werber" value="<?php echo $daten->werber;?>">
<table class="table table-striped">
<tr>
<td align="right"><b>Nickname</b>:&nbsp;</td>
<td align="left">&nbsp;<input type="text" name="user[nickname]" class="form-control" value="<?php echo $daten->nickname;?>"></td>
</tr>
<tr>
<td align="right"><b>Werber-ID</b>:&nbsp;</td>
<td align="left">&nbsp;<input type="text" name="werber[werber]" class="form-control" value="<?php echo $daten->werber;?>"></td>
</tr>
<tr>
<td align="right"><b>eMailadresse</b>:&nbsp;</td>
<td align="left">&nbsp;<input type="text" name="mail[emailadresse]" class="form-control" value="<?php echo $daten->emailadresse;?>"></td>
</tr>
<tr>
<td align="right"><b>eMail-Empfang</b>:&nbsp;</td>
<td align="left">&nbsp;<select name="mail[freigabe_fuer]" size="1" class="form-control">
<option value="0" <?php if ($daten->freigabe_fuer == 0) echo'selected="selected"';?>>Kein Empfang</option>
<option value="1" <?php if ($daten->freigabe_fuer == 1) echo'selected="selected"';?>>Nur Newsletter</option>
<option value="2" <?php if ($daten->freigabe_fuer == 2) echo'selected="selected"';?>>Nur Paidmails</option>
<option value="3" <?php if ($daten->freigabe_fuer == 3) echo'selected="selected"';?>>Newsletter / Paidmails</option>
</select></td>
</tr>
<tr>
<td align="right">&nbsp;<b>Bettelsperre</b>:</td>
<td align="left">&nbsp;
<select name="konto[bettel_sperre]" size="1" class="form-control">
<option value="0" <?php if ($daten->bettel_sperre == 0) echo'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if ($daten->bettel_sperre == 1) echo'selected="selected"';?>>aktiviert</option>
</select>
</td>
</tr>
<tr>
<td align="right">&nbsp;<b>Banner Sperre</b>:</td>
<td align="left">&nbsp;
<select name="konto[forced_sperre]" size="1" class="form-control">
<option value="0" <?php if ($daten->forced_sperre == 0) echo'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if ($daten->forced_sperre == 1) echo'selected="selected"';?>>aktiviert</option>
</select>
</td>
</tr>
<tr>
<td align="right">&nbsp;<b>Chat Sperre</b>:</td>
<td align="left">&nbsp;
<select name="konto[chat_sperre]" size="1" class="form-control">
<option value="0" <?php if ($daten->chat_sperre == 0) echo'selected="selected"';?>>deaktiviert</option>
<option value="1" <?php if ($daten->chat_sperre == 1) echo'selected="selected"';?>>aktiviert</option>
</select>
</td>
</tr>
<tr>
<td align="right"><b>Auszahlungssperre</b></td>
<td align="left">
<select name="konto[auszahlung_sperre]" class="form-control">
<option value="0" <?php if ($daten->auszahlung_sperre == 0) echo'selected="selected"';?>>Gesperrt</option>
<option value="1" <?php if ($daten->auszahlung_sperre == 1) echo'selected="selected"';?>>Freigeschaltet</option>
</select>
</td>
</tr>
<tr>
<td align="right"><b>Adminstatus</b></td>
<td align="left">
<select name="konto[admin]" class="form-control">
<option value="0" <?php if ($daten->admin == 0) echo'selected="selected"';?>>User</option>
<option value="1" <?php if ($daten->admin == 1) echo'selected="selected"';?>>Admin</option>
</select>
</td>
</tr>
<tr>
<td align="center" colspan="2"><br /><input type="submit" class="btn btn-default" name="run[profile_save]" value="Allgemeine Daten Speichern"><br />&nbsp;</td>
</tr>
</table>
</form>
</div>
<div class="col-md-6">
<ul class="list-group">
<li class="list-group-item">
<div class="row">
<div class="col"><b>User-ID:</b></div>
<div class="col text-right"><?php echo $daten->uid;?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>Kontostand A:</b></div>
<div class="col text-right"><?php echo $daten->kontostand_a;?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>Kontostand B:</b></div>
<div class="col text-right"><?php echo $daten->kontostand_b;?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>Vorname:</b></div>
<div class="col text-right"><?php echo $daten->vorname;?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>Nachname:</b></div>
<div class="col text-right"><?php echo $daten->nachname;?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>Angemeldet seid:</b></div>
<div class="col text-right"><?php echo date("d.m.Y H:i", $daten->angemeldet_seit);?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>IP:</b></div>
<div class="col text-right"><?php echo $daten->login_ip .' / '. geoIP($daten->login_ip);?></div>
</div>
</li>
<li class="list-group-item">
<div class="row">
<div class="col"><b>letzter Login:</b></div>
<div class="col text-right"><?php echo date("d.m.Y H:i", $daten->loginzeit);?></div>
</div>
</li>
</ul>
</div>
</div>
<?php
if( !isset( $_SERVER['HTTP_X_REQUESTED_WITH'] ) OR $_SERVER['HTTP_X_REQUESTED_WITH'] != 'XMLHttpRequest' OR $_SERVER['REQUEST_METHOD'] != 'POST'){ die();}
require_once('../../../../lib/db_config.php');
require_once('../../../../lib/datenbank.inc.php');
$datenbank = new DB;
require_once('../../../lib/class/userliste.class.php');
$user = new USERLISTE;
$user->set_uid($_POST['uid']);
$user->userdetails();
<table class="table table-striped">
<tr class="tabellenhead">
<th>Zeit</th>
<th>Verg&uuml;tung</th>
<th>Refferer</th>
</tr>
<?php
echo $user->bettel_ref();
?>
</table>
<?php
if(empty($_GET['minus'])){ $_GET['minus'] = 1;}
$user->set_bseite($_GET['minus']);
$buchungen = $user->buchungen();
?>
<ul class="nav nav-pills mb-3" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-a" role="tab" aria-controls="pills-a" aria-selected="true">Buchungen Konto A</a>
</li>
<li class="nav-item">
<a class="nav-link" id="pills-profile-tab" data-toggle="pill" href="#pills-b" role="tab" aria-controls="pills-b" aria-selected="false">Buchungen Konto B</a>
</li>
<li class="nav-item">
<button type="button" class="nav-link btn" data-toggle="modal" data-target="#manuelle-buchung">Manuelle Buchung durchf&uuml;hren</button>
</li>
</ul>
<div class="tab-content" id="pills-tabContent">
<div class="tab-pane fade show active" id="pills-a" role="tabpanel" aria-labelledby="pills-home-tab">
<table class="table table-fluid tabgle-striped">
<tr>
<th>Zeit</th>
<th>Buchung</th>
<th><?php echo $grundconfig->waehrung;?></th>
<th>Verwendungszweck</th>
<th>TAN</th>
<th>Kontobuchung erfolgreich</th>
</tr>
<?php echo $buchungen['A'];?>
</table>
</div>
<div class="tab-pane fade" id="pills-b" role="tabpanel" aria-labelledby="pills-profile-tab">
<table class="table table-fluid table-striped">
<tr>
<th>Zeit</th>
<th>Buchung</th>
<th><?php echo $grundconfig->waehrung;?></th>
<th>Verwendungszweck</th>
<th>TAN</th>
<th>Kontobuchung erfolgreich</th>
</tr>
<?php echo $buchungen['B'];?>
</table>
</div>
</div>
<div class="modal fade" id="manuelle-buchung" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<form method="post" action="">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Manuelle Buchung durchf&uuml;hren</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Betrag</span>
</div>
<input type="text" class="form-control" placeholder="Betrag" name="betrag">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Art</span>
</div>
<select name="art" class="form-control">
<option value="+">+</option>
<option value="-">-</option>
</select>
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1">Verwendungszweck</span>
</div>
<input type="text" class="form-control" placeholder="Verwendungszweck" name="verwendung">
</div>
</div>
<div class="modal-footer">
<input type="submit" name="run[manuelle_buchung]" value="Buchen" class="btn btn-primary">
</div>
</div>
</div>
</form>
</div>
......@@ -20,6 +20,6 @@
</tr>
</table>
<div class="text-center">
<input type="submit" name="finanze" class="btn btn-default" value="&raquo; Buchen" />
<input type="submit" name="run[finanze]" class="btn btn-default" value="&raquo; Buchen" />
</div>
</form>
\ No newline at end of file
</form>
<center>
<form action="" method="POST">
<table align="center" border="0" cellpadding="0" cellspacing="2">
<tr>
<td><b>Notizen</b>:<br />
<textarea name="text" class="form-control" rows="3"></textarea>
</tr>
<tr>
<td align="center"><br /><input type="submit" name="run[notice]" value="Notiz hinzuf&uuml;gen" class="btn btn-success"></td>
</tr>
</table>
</form>
</center>
<hr>
<br>
<ul class="list-group">
<li class="list-group-item">
<div class="row">
<div class="col-md-3"><u><b>Datum</b></u></div>
<div class="col-md-9"><u><b>Notiz</b></u></div>
</div>
</li>
<?php
$user->ShowNotizen();
?>
</ul>
</table>
<form method="post" action="">
<select name="seiten[]" class="form-control" multiple>
<?php echo $user->RechteListe($daten);?>
</select>
<br>
<br>
<input type="submit" name="run[berechtigungAdmin]" value="Speichern" class="btn btn-success btn-block">
</form>
\ No newline at end of file