Skip to content
Snippets Groups Projects
Commit 748ff849 authored by Eric Laufer's avatar Eric Laufer
Browse files

update

parent 20d0534c
No related merge requests found
......@@ -14,14 +14,17 @@ function foot(){
}
function menuehead($titel){
echo'<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">'.$titel.'</h3>
</div>
<div class="panel-body">';
$titel2 = str_replace(" ","_",$titel);
echo '
<a class="btn btn-primary btn-block" data-toggle="collapse" href="#'.$titel2.'" role="button" aria-expanded="false" aria-controls="'.$titel2.'">
'.$titel.'
</a>
<div class="collapse" id="'. $titel2 .'">
<div class="card card-body">
';
}
function menuefoot(){
echo'</div></div>';
echo'</div></div><hr>';
}
?>
\ No newline at end of file
?>
......@@ -33,8 +33,8 @@ class ref{
$this->konto->set_var($werber,$verguetung,'+','Refzahlung ('. $uid .')');
if($ressourcen->refback > 0){
$refback = $verguetung / 100 * $ressourcen->refback;
$this->konto->set_var($werber,$verguetung,'-','Refback ('. $uid .'->'. $ressourcen->refback.'%)');
$this->konto->set_var($uid,$verguetung,'+','Refback ('. $ressourcen->refback.'%)');
$this->konto->set_var($werber,$refback,'-','Refback ('. $uid .'->'. $ressourcen->refback.'%)');
$this->konto->set_var($uid,$refback,'+','Refback ('. $ressourcen->refback.'%)');
}
if($ebene == 1){
$this->db->update(PREFIX . WERBER, array("umsatz" => 0, "gesamt" => $ressourcen->gesamt + $ressourcen->umsatz), array("uid" => $uid),1);
......
......@@ -3,7 +3,7 @@ session_start();
if (!isset($_GET['auszahlen'])) $_GET['auszahlen'] = "false";
require_once('lib/functions.lib.php');
require_once('lib/db_config.php');
require_once('lib/datenbank.inc.php');
require_once('lib/class/db.class.php');
$datenbank = new DB;
$grundconfig = $datenbank->get_row("SELECT * FROM ". PREFIX . CONFIG ." ",true);
require_once('lib/functions.lib.php');
......
......@@ -2,7 +2,7 @@
session_start();
require_once ('lib/functions.lib.php');
require_once ('lib/db_config.php');
require_once('lib/datenbank.inc.php');
require_once('lib/class/db.class.php');
$datenbank = new DB;
$grundconfig = $datenbank->get_row("SELECT * FROM ". PREFIX . CONFIG ." ",true);
require_once ('lib/session.lib.php');
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment