$tempMinutesPv=0;
$tempSecondsPv=0;
$tempMoneyEarned=0;
$tempMoneySent=0;
$ammount=0;
$result = mysql_query("SELECT * FROM videosessions WHERE model='$model' AND type!='Sofortmessage'");
while($row = mysql_fetch_array($result))
{
$member=$row['member'];
$epercentage=$row['epercentage'];
$duration=$row['duration'];
$cpm=$row['cpm'];
$tempSecondsPv+=$row['duration'];
$ammount=(($duration/60)*$cpm)*$epercentage/10000 ;
$tempMoneyEarned+=$ammount;
if ($row['paid']=="1"){ $tempMoneySent+=$ammount;}
}
mysql_free_result($result);
//minimum payment & epercentage
$result = mysql_query("SELECT minimum,epercentage,cpm FROM chatmodels WHERE id='".$id."' LIMIT 1");
while($row = mysql_fetch_array($result))
{
$tempMinimum=$row["minimum"];
$tempCPM=$row['cpm'];
$tempEPercentage=$row['epercentage'];
}
mysql_free_result($result);
$select4="SELECT * FROM videosessions WHERE model='$model' AND paid='0' AND type='Sofortmessage'";
$result4 = mysql_query($select4);
$nOnline4=mysql_num_rows($result4);
?>
if (isset($msgError) && $msgError!="")
{
echo $msgError;
}
?>
Du erhälst im Moment echo $tempEPercentage;?>% aller Einnahmen aus deinen Chats und Sofortnachrichten.
Auszahlungen erfolgen monatlich aus allen Einnahmen deiner Chats und deiner Trinkgelder.
|
$incoming=$tempMoneyEarned-$tempMoneySent;
$incoming=number_format($incoming, 2, '.', ',');
$nOnline14=($nOnline4*$messagemoney/100)/2;
$incoming2=number_format($nOnline14, 2, '.', ',');
$incoming3=$incoming+$incoming2;
$incoming30=number_format($incoming3, 2, '.', ',');
?>
Deine Einnahmen (gesamt) neu: echo $incoming30 ;?> EUR
Deine Einnahmen aus Chats und Trinkgeldern neu: echo $incoming ;?> EUR
Deine Einnahmen aus Sofortnachrichten neu: echo $incoming2 ;?> EUR
|
Letzte Auszahlungen
//$secondsThisMonth=time(i)*60+time(G)*3600+time(j)*86400
//$secondsAll=time();
include('../../dbase.php');
$count=0;
$result = mysql_query("SELECT * FROM paymentsop WHERE sop='$username' ORDER BY date ASC");
while($row = mysql_fetch_array($result))
{
$count++;
$ammount= $row['ammount'];
echo'
';
}
mysql_free_result($result);
?>
|