Файл: order.php
Строк: 1028
<?
include("header.php");
$urlpage='Заказ уровня';
require("inc/connect.inc.php");
if (isset($_COOKIE['id']) and isset($_COOKIE['hash']))
{
$query = mysql_query("SELECT *,INET_NTOA(login_ip) as login_ip FROM ".$db_pref."users WHERE id = '".intval($_COOKIE['id'])."' LIMIT 1");
$userdata = mysql_fetch_assoc($query);
if(($userdata['hash'] !== $_COOKIE['hash']) or ($userdata['id'] !== $_COOKIE['id'])
or (($userdata['login_ip'] !== $_SERVER['REMOTE_ADDR']) and ($userdata['login_ip'] !== "0.0.0.0")))
{
echo "<div align='center'><font color='red'><br><b>".$lang['error16']."</b></font><br><br></div>";
}
else
{
include("inc/usermenu.inc.php");
$povcad=mysql_escape_string($_POST["povcad"]);
$sistem_p=mysql_escape_string($_POST["sistem_p"]);
$submit=$_POST["submit"];
$protect=mysql_escape_string($_POST["protect"]);
$rang=$userdata['rang'];
if($matrix=="YES"){
$parent=$userdata['parent'];
$parent2=$userdata['parent2'];
$parent3=$userdata['parent3'];
$parent4=$userdata['parent4'];
$parent5=$userdata['parent5'];
$parent6=$userdata['parent6'];
$parent7=$userdata['parent7'];
$parent8=$userdata['parent8'];
$parent9=$userdata['parent9'];
$parent10=$userdata['parent10'];
}else{
$parent=$userdata['parent'];
$parent2=$userdata['parent2'];
$parent3=$userdata['parent3'];
$parent4=$userdata['parent4'];
$parent5=$userdata['parent'];
$parent6=$userdata['parent2'];
$parent7=$userdata['parent3'];
$parent8=$userdata['parent4'];
}
$sqlad=mysql_query("select*from ".$db_pref."users where id='1'");
$rowad=mysql_fetch_array($sqlad);
$admin_login=$rowad['user'];
$admin_email=$rowad['email'];
?>
<br>
<?
$sql=mysql_query("select*from ".$db_pref."sysvals");
$row=mysql_fetch_array($sql);
$site_url=$row['site_url'];
$name_title=$row['name_title'];
$currency=$row['currency'];
$sql=mysql_query("select*from ".$db_pref."pays");
$row=mysql_fetch_array($sql);
$pay=$row['pay'];
$pay2=$row['pay2'];
$pay3=$row['pay3'];
$pay4=$row['pay4'];
$pay5=$row['pay5'];
$pay6=$row['pay6'];
$pay7=$row['pay7'];
$pay8=$row['pay8'];
$pay9=$row['pay9'];
$pay10=$row['pay10'];
$urovni=$row['urovni'];
$sdfr=mysql_query("select user from ".$db_pref."users where id='1' limit 1");
$pty=mysql_fetch_array($sdfr);
$adslg=$pty['user'];
$admin_parent=$pty['user'];
$lang['order8']=str_replace("{dai_ne_akt}",$d_neakt,$lang['order8']);
$langorder8=$lang['order8'];
if(!isset($submit)):
list ($sparent , $obxod , $cash , $order8) = order($parent,$parent2,$parent3,$parent4,$parent5,$parent6,$parent7,$parent8,$parent9,$parent10);
if($rang>=$urovni):
?>
<TABLE class="form" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><div class="">
<h3 align="center"><i><?=$lang['order'];?></i></h3></div></td>
</tr>
<tr>
<td align="center"><?=$lang['order1'];?><p></td>
</tr>
</table>
<? else:
$sql=mysql_query("select*from ".$db_pref."neworders where name='$user'");
$num=mysql_num_rows($sql);
if($num>0):
$row=mysql_fetch_array($sql);
$ordrang=$row['rang'];
$ordname=$row['sname'];
$ordprotect=$row['protect'];
$sistem_pay=$row['sistem_p'];
$sql=mysql_query("select*from ".$db_pref."users where user='$ordname'");
$row=mysql_fetch_array($sql);
$alertpay_multi_p=$row['alertpay'];
$perfektmoney_multi_p=$row['perfektmoney'];
$ordwm=$row['wm'];
$sqle=mysql_query("select*from ".$db_pref."users where user='$user'");
$rowe=mysql_fetch_array($sqle);
$from_email=$rowe['email'];
$sqlad=mysql_query("select*from ".$db_pref."users where id='1'");
$rowad=mysql_fetch_array($sqlad);
$admin=$rowad['user'];
$lang['order3']=str_replace("{user}",$user,$lang['order3']);
$lang['order3']=str_replace("{cash}",$cash,$lang['order3']);
$lang['order5']=str_replace("{ordprotect}",$ordprotect,$lang['order5']);
$order5=$lang['order5'];
$lang['order4']=str_replace("{rang+1}",$rang+1,$lang['order4']);
$lang['order3']=str_replace("{money}",$money,$lang['order3']);
if(($sistem==multi) and ($sistem_pay==1)){
$logo='<br><a href="http://www.libertyreserve.com" target="_blank"><img src="images/liberty-reserve-logo.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order3']=str_replace("{ordwm}",$pwm.$logo,$lang['order3']);
}
elseif(($sistem==multi) and ($sistem_pay==2)){
$logo='<br><a href="http://www.alertpay.com" target="_blank"><img src="images/alertpay.png" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order3']=str_replace("{ordwm}",$alertpay_multi_p.$logo,$lang['order3']);
}
elseif(($sistem==multi) and ($sistem_pay==3)){
$logo='<br><a href="https://perfectmoney.com" target="_blank"><img src="images/perfekt.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order3']=str_replace("{ordwm}",$perfektmoney_multi_p.$logo,$lang['order3']);
}else{
$lang['order3']=str_replace("{ordwm}",$ordwm,$lang['order3']);
}
?>
<TABLE class="form" width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td align="center"> <h2 align="center"><i><?=$lang['order2'];?></i></h><br></td>
</tr>
<tr>
<td align="center" ><p><?=$lang['order3'];?> <?
if($sistem==webmoney){
echo" <br> $order5";
}?></p>
<?=$lang['order4'];?></td>
</tr>
<tr>
<td align="center"><b><br><a class="button" href="sendmail.php?from_email=<?=$from_email;?>&tema=<?=$lang['zakaz5'];?>">.:: <?=$lang['order7'];?> ::.</a></b></td>
</tr>
</table>
<?
else:
$sql=mysql_query("select*from ".$db_pref."users where user='$sparent'");
$row=mysql_fetch_array($sql);
$stp=$row['rang'];
$pemail=$row['email'];
$hoxot=$rang+1;
if($stp<$hoxot):
$lang['order10']=str_replace("{user}",$user,$lang['order10']);
$lang['order10']=str_replace("{sparent}",$sparent,$lang['order10']);
$lang['order10']=str_replace("{stp}",$stp,$lang['order10']);
$lang['order10']=str_replace("{rang+1}",$rang+1,$lang['order10']);
?>
<TABLE class="form" width=100% border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<h2 align="center"><i><?=$lang['error6'];?></i></h2><br></td>
</tr>
<tr>
<td align="center"><?=$lang['order10'];?>
<br>
<form METHOD=POST ACTION="order.php">
<input TYPE="hidden" name="povcad" value="1">
<input TYPE="submit" class="button" value="..:: <?=$lang['order11'];?> ::..">
</form>
</td>
</tr>
</table>
<?
$sql_user_mail=mysql_query("select*from ".$db_pref."users where user='$sparent'");
$row_user_mail=mysql_fetch_array($sql_user_mail);
$lang_mail=$row_user_mail["lang"];
if($lang_mail=='lv'){
include('language/mail-lv.php');
}
elseif($lang_mail=='ru'){
include('language/mail-ru.php');
}
elseif($lang_mail=='en'){
include('language/mail-en.php');
}
else{
include('language/mail-'.$deflangu.'.php');
}
$lang['order_mail']=str_replace("{sparent}",$sparent,$lang['order_mail']);
$lang['order_mail']=str_replace("{name_title}",$name_title,$lang['order_mail']);
$lang['order_mail']=str_replace("{hoxot}",$hoxot,$lang['order_mail']);
$lang['order_mail']=str_replace("{site_url}",$site_url,$lang['order_mail']);
$order12=$lang['order12'];
$texstp=$lang['order_mail'];
mail("$pemail","$sparent, $order12 & $name_title","$texstp","From: $admin_emailn"."Content-type: text/plain; charset=utf-8");
?>
<?
$admin_texstp="Уважаемый, $admin_login !
Только что в проекте $name_title у $sparent хотели сделать заказ на приобретение $hoxot уровня, но он ещё сам не на $hoxot уровне, поэтому в данной сделке было отказанно и реферал ждет, когда $sparent перейдёт на данный уровень!
Войти в аккаунт - $site_url
С наилучшими пожеланиями, Администратор";
mail("$admin_email","У $sparent хотели сделать заказ!","$admin_texstp","From: $admin_emailn"."Content-type: text/plain; charset=utf-8");
else:
$sql=mysql_query("select*from ".$db_pref."users where user='$sparent'");
$row=mysql_fetch_array($sql);
$pwm=$row['wm'];
$alertpay_multi_p=$row['alertpay'];
$perfektmoney_multi_p=$row['perfektmoney'];
$lang['order27']=str_replace("{user}",$user,$lang['order27']);
$lang['order27']=str_replace("{rang}",$rang,$lang['order27']);
$lang['order27']=str_replace("{rang+1}",$rang+1,$lang['order27']);
$lang['order27']=str_replace("{cash}",$cash,$lang['order27']);
$lang['order28']=str_replace("{cash}",$cash,$lang['order28']);
$lang['order31']=str_replace("{cash}",$cash,$lang['order31']);
$lang['order27']=str_replace("{money}",$money,$lang['order27']);
$lang['order14']=str_replace("{user}",$user,$lang['order14']);
$lang['order14']=str_replace("{rang}",$rang,$lang['order14']);
$lang['order14']=str_replace("{rang+1}",$rang+1,$lang['order14']);
$lang['order14']=str_replace("{cash}",$cash,$lang['order14']);
$lang['order14']=str_replace("{money}",$money,$lang['order14']);
$lang['order14']=str_replace("{pwm}",$pwm,$lang['order14']);
$lang['order28']=str_replace("{pwm}",$pwm,$lang['order28']);
$lang['order16']=str_replace("{user}",$user,$lang['order16']);
$lang['order16']=str_replace("{name_title}",$name_title,$lang['order16']);
?>
<div class="s5_mod_h3_l">
<div class="s5_mod_h3_r">
<div class="s5_mod_h3_m">
<h3 align="center" class="s5_mod_h3">
<span class="s5_h3_first">
<?=$lang['order13'];?></span>
</h3>
</div>
</div>
</div>
<TABLE class="form" width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<?if($sistem==webmoney){?>
<tr>
<td width="175" rowspan="6" align="center">
<a href="http://w.qiwi.ru/transfer.action" target="blank" style=";outline: 1px dashed rgb(10, 194, 34)">
<img width="165" height="340" src="images/QIWI.png" style=";outline: 1px dashed rgb(10, 194, 34)">
</a>
</td>
</tr>
<tr>
<td height="50px" colspan="2"align="center"><?=$lang['order14'];?></td>
</tr>
<tr>
<td height="250px" colspan="2"align="center" >
Войдите в QIWI-кошелек, кликнув по картинке слева
<br>
<br>
<?=$lang['order16'];?>
<br>
<br>
<p>После того как сделали платеж введите в форме ниже ID платежа (он появится после совершения перевода) и нажмите "заказать"
<br>
<br>
Ваш дистрибьютор получит уведомление о покупке уровня, зайдет в свой QIWI-кошелек, если платеж поступил на его счет то сразу подтвердит Вам уровень в системе
</p>
</td>
</tr>
<tr>
<td align="right"><i><b>Введите ID Транзакции : </b></i></td>
<FORM METHOD="POST" ACTION="order.php">
<td align="left" ><INPUT class="form6" NAME="protect" TYPE="text" maxlength="100"></td>
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order13'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?}
echo"</FORM>";
}
if($sistem==liqpay){
?>
<tr>
<td colspan="2" align="center">
<h2 align="center"><i><?=$lang['order13'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2"align="center"><?=$lang['order14'];?></td>
</tr>
<tr>
<td colspan="2"align="center" >
<br>
<?=$lang['order16'];?>
</td>
</tr>
<FORM METHOD="POST" ACTION="https://www.liqpay.com/?do=myliqpay" target="_blank">
<tr>
<td colspan="2"align="center" ><br>
<INPUT class="button" name="submit" type="submit" value="<?=$lang['order17'];?>">
<br><br>
</td>
</tr>
</FORM>
<tr>
<td align="center"><i><b><?=$lang['order19'];?></b></i></td>
<FORM METHOD="POST" ACTION="order.php">
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order20'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?}
echo"</FORM>";
}
if($sistem==alertpay){
?>
<tr>
<td colspan="2" align="center">
<h2 align="center"><i><?=$lang['order13'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2"align="center"><?=$lang['order14'];?></td>
</tr>
<tr>
<td colspan="2"align="center" >
<br>
<?=$lang['order16'];?>
</td>
</tr>
<tr>
<td colspan="2"align="center" ><br>
<form target="_blank" method="post" action="https://www.alertpay.com/PayProcess.aspx" name='alertpay'>
<input type="hidden" name="ap_merchant" value="<?=$pwm;?>"/>
<input type="hidden" name="ap_purchasetype" value="item-goods"/>
<input type="hidden" name="ap_itemname" value="<?=$user;?> & <?=$name_title;?>"/>
<input type="hidden" name="ap_amount" value="<?=$cash;?>"/>
<input type="hidden" name="ap_currency" value="USD"/>
<input type="hidden" name="ap_quantity" value="1"/>
<INPUT class="button" name="submit" type="submit" value="<?=$lang['order17'];?>">
</form>
<br>
<?=$lang['order28'];?><br>
<br>
<a href="https://www.alertpay.com" class="button" target="_blank"><?=$lang['order17'];?></a>
<br><br>
</td>
</tr>
<tr>
<td align="center"><i><b><?=$lang['order19'];?></b></i></td>
<FORM METHOD="POST" ACTION="order.php">
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order20'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?}
echo"</FORM>";
}
if($sistem==liberty){
?>
<tr>
<td colspan="2" align="center">
<h2 align="center"><i><?=$lang['order13'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2"align="center"><?=$lang['order14'];?></td>
</tr>
<tr>
<td colspan="2"align="center" >
<br>
<?=$lang['order16'];?>
</td>
</tr>
<tr>
<FORM action="https://sci.libertyreserve.com" target="_blank" method="post">
<INPUT name="lr_acc" type="hidden" value="<?=$pwm;?>">
<INPUT name="lr_amnt" type="hidden" value=<?=$cash;?>>
<input type="hidden" name="lr_comments" value="<?=$user;?> & <?=$name_title;?>">
<td colspan="2"align="center" ><br>
<INPUT name="i_submit" class="button" type=submit value="<?=$lang['order17'];?>">
<br><br>
<?=$lang['order28'];?><br>
<br>
<a href="http://www.libertyreserve.com" class="button" target="_blank"><?=$lang['order17'];?></a>
<br><br>
</td>
</tr>
</FORM>
<FORM METHOD="POST" ACTION="order.php">
<tr>
<td align="center"><i><b><?=$lang['order19'];?></b></i></td>
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order20'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?
}
echo"</FORM>";
}
if($sistem==perfekt){
?>
<tr>
<td colspan="2" align="center">
<h2 align="center"><i><?=$lang['order13'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2"align="center"><?=$lang['order14'];?></td>
</tr>
<tr>
<td colspan="2"align="center" >
<br>
<?=$lang['order16'];?>
</td>
</tr>
<tr>
<form action="https://perfectmoney.com/api/step1.asp" target="_blank" method="POST">
<input type="hidden" name="PAYEE_ACCOUNT" value="<?=$pwm;?>">
<input type="hidden" name="PAYEE_NAME" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="PAYMENT_ID" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="PAYMENT_AMOUNT" value="<?=$cash;?>">
<input type="hidden" name="PAYMENT_UNITS" value="USD">
<input type="hidden" name="STATUS_URL" value="">
<input type="hidden" name="PAYMENT_URL" value="http://<?=$_SERVER[HTTP_HOST];?>/order.php">
<input type="hidden" name="PAYMENT_URL_METHOD" value="POST">
<input type="hidden" name="NOPAYMENT_URL" value="http://<?=$_SERVER[HTTP_HOST];?>/order.php">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST">
<input type="hidden" name="SUGGESTED_MEMO" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="BAGGAGE_FIELDS" value="">
<td colspan="2"align="center" ><br>
<input type="submit" name="PAYMENT_METHOD" value="<?=$lang['order17'];?>" class="button">
<br><br><?=$lang['order28'];?><br>
<br>
<a href="https://perfectmoney.com" class="button" target="_blank"><?=$lang['order17'];?></a>
<br><br>
</td>
</tr>
</FORM>
<FORM METHOD="POST" ACTION="order.php">
<tr>
<td align="center"><i><b><?=$lang['order19'];?></b></i></td>
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order20'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?
}
echo"</FORM>";
}
if($sistem==multi){
?>
<tr>
<td colspan="2" align="center">
<h2 align="center"><i><?=$lang['order13'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2"align="center"><?=$lang['order27'];?></td>
</tr>
<tr>
<td colspan="2"align="center" >
<br>
<?=$lang['order16'];?>
<br>
<br>
</td>
</tr>
<tr>
<td colspan="2"align="center" >
<table border="0" align="center" cellpadding="0" cellspacing="5">
<tr>
<?
if(($povcad==1)||($povcad==2)||($povcad==null)){
if($alertpay_multi_p!==''){?>
<td valign="top" align="center">
<a href="http://www.alertpay.com" target="_blank"><img src="images/alertpay.png" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a>
<br>
<br>
<font color="red"><b><?=$alertpay_multi_p;?></b></font>
<form target="_blank" method="post" action="https://www.alertpay.com/PayProcess.aspx" name='alertpay'>
<input type="hidden" name="ap_merchant" value="<?=$alertpay_multi_p;?>"/>
<input type="hidden" name="ap_purchasetype" value="item-goods"/>
<input type="hidden" name="ap_itemname" value="<?=$user;?> & <?=$name_title;?>"/>
<input type="hidden" name="ap_amount" value="<?=$cash;?>"/>
<input type="hidden" name="ap_currency" value="USD"/>
<input type="hidden" name="ap_quantity" value="1"/>
<INPUT class="button" name="submit" type="submit" value="<?=$lang['order17'];?>">
</form>
</td>
<?
}
else{
?>
<td valign="top" align="center" height="100">
<img src="images/alertpay.png" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525">
<br>
<?=$lang['order29'];?>
<br>
<form METHOD=POST ACTION="order.php">
<input TYPE="hidden" name="povcad" value="2">
<input TYPE="submit" class="button" value="..:: <?=$lang['order30'];?> ::..">
</form>
</td>
<?
}}
if(($povcad==1)||($povcad==3)||($povcad==null)){
if($pwm!==''){
?>
<td valign="top" align="center">
<a href="http://www.libertyreserve.com" target="_blank"><img src="images/liberty-reserve-logo.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a>
<br>
<br>
<font color="red"><b><?=$pwm;?></b></font>
<FORM action="https://sci.libertyreserve.com" target="_blank" method="post">
<INPUT name="lr_acc" type="hidden" value="<?=$pwm;?>">
<INPUT name="lr_amnt" type="hidden" value=<?=$cash;?>>
<input type="hidden" name="lr_comments" value="<?=$user;?> & <?=$name_title;?>">
<INPUT name="i_submit" class="button" type=submit value="<?=$lang['order17'];?>">
</form>
</td>
<?
}
else{
?>
<td valign="top" align="center">
<img src="images/liberty-reserve-logo.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525">
<br>
<?=$lang['order29'];?>
<br>
<form METHOD=POST ACTION="order.php">
<input TYPE="hidden" name="povcad" value="3">
<input TYPE="submit" class="button" value="..:: <?=$lang['order30'];?> ::..">
</form>
</td>
<?
}}
if(($povcad==1)||($povcad==4)||($povcad==null)){
if($perfektmoney_multi_p!==''){?>
<td valign="top" align="center">
<a href="http://www.perfectmoney.com" target="_blank"><img src="images/perfekt.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a>
<br>
<br>
<font color="red"><b><?=$perfektmoney_multi_p;?></b></font>
<form action="https://perfectmoney.com/api/step1.asp" target="_blank" method="POST">
<input type="hidden" name="PAYEE_ACCOUNT" value="<?=$perfektmoney_multi_p;?>">
<input type="hidden" name="PAYEE_NAME" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="PAYMENT_ID" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="PAYMENT_AMOUNT" value="<?=$cash;?>">
<input type="hidden" name="PAYMENT_UNITS" value="USD">
<input type="hidden" name="STATUS_URL" value="">
<input type="hidden" name="PAYMENT_URL" value="http://<?=$_SERVER[HTTP_HOST];?>/order.php">
<input type="hidden" name="PAYMENT_URL_METHOD" value="POST">
<input type="hidden" name="NOPAYMENT_URL" value="http://<?=$_SERVER[HTTP_HOST];?>/order.php">
<input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST">
<input type="hidden" name="SUGGESTED_MEMO" value="<?=$user;?> & <?=$name_title;?>">
<input type="hidden" name="BAGGAGE_FIELDS" value="">
<input type="submit" name="PAYMENT_METHOD" value="<?=$lang['order17'];?>" class="button">
</form>
</td>
<?}
else{
?>
<td valign="top" align="center">
<a href="http://www.perfectmoney.com" target="_blank"><img src="images/perfekt.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a>
<br>
<?=$lang['order29'];?>
<br>
<form METHOD=POST ACTION="order.php">
<input TYPE="hidden" name="povcad" value="4">
<input TYPE="submit" class="button" value="..:: <?=$lang['order30'];?> ::..">
</form>
</td>
<?
}}
?>
</tr>
<tr>
<td colspan="3" align="center" >
<br>
<?=$lang['order31'];?><br>
<br>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center"><i><b><?=$lang['order19'];?></b></i>
</td>
</tr>
<?if(($povcad==2)||($povcad==3)||($povcad==4)){?>
<tr>
<td colspan="2" align="center" >
<br><span class="info"><?=$lang['order34'];?></span>
</td>
</tr>
<FORM METHOD="POST" ACTION="order.php">
<?}
else{?>
<tr>
<td colspan="2" align="center" >
<br>
<FORM METHOD="POST" ACTION="order.php">
<select class="select" name="sistem_p">
<option selected value="0"><?=$lang['order32'];?></option>
<?if($pwm!==''){?><option value="1">LibertyReserve</option><?}?>
<?if($alertpay_multi_p!==''){?><option value="2">AlertPay</option><?}?>
<?if($perfektmoney_multi_p!==''){?><option value="3">PerfectMoney</option><?}?>
</select>
</td>
</tr>
<?}
?>
<tr>
<td colspan="2" align="center" >
<br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order20'];?> ::.">
</td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?}if($povcad==2){?>
<input TYPE="hidden" name="povcad" value="2">
<input TYPE="hidden" name="sistem_p" value="2">
<?}?><?if($povcad==3){?>
<input TYPE="hidden" name="povcad" value="3">
<input TYPE="hidden" name="sistem_p" value="1">
<?}?><?if($povcad==4){?>
<input TYPE="hidden" name="povcad" value="4">
<input TYPE="hidden" name="sistem_p" value="3">
<?}
echo"</FORM>";
}
if($order8>"0"){
?>
<tr>
<td colspan="2" align="center"><i><b>
<br><span class="info">
<?=$order8;?></span>
</b></i></td>
</tr>
<?}
if($povcad==1){
?>
<tr>
<td colspan="2" align="center"><i><b>
<br><span class="info">
<?=$lang['order9'];?></span>
</b></i></td>
</tr>
<?}?>
</TABLE>
<?
endif;endif;endif;
else:
$ulength=strlen($protect);
if (($sistem==webmoney) and ($ulength<'5') || ($ulength>'100')):
?>
<TABLE class="form" width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td colspan="2" align="center" >
<h2 align="center"><i><?=$lang['error6'];?></i></h2><br></td>
</tr>
<tr>
<td colspan="2" align="center"><font color="red"><?=$lang['order21'];?></font></td>
</tr>
<FORM METHOD="POST" ACTION="order.php">
<tr>
<td align="right"><i><b><?=$lang['order18'];?></b></i></td>
<td align="left"><INPUT class="form6" NAME="protect" TYPE="text" maxlength="10"></td>
</tr>
<tr>
<td colspan="2" align="center" ><br><INPUT class="button" TYPE="submit" name="submit" value=".:: <?=$lang['order13'];?> ::."></td>
</tr>
<?if($povcad==1){?>
<input TYPE="hidden" name="povcad" value="1">
<?}?><?if($povcad==2){?>
<input TYPE="hidden" name="povcad" value="2">
<?}?><?if($povcad==3){?>
<input TYPE="hidden" name="povcad" value="3">
<?}?><?if($povcad==4){?>
<input TYPE="hidden" name="povcad" value="4">
<?}?>
</FORM>
</TABLE>
<?
else:
if(($sistem==multi) and ($sistem_p==0)):
?>
<table class="form" width="90%" align="center" border="0" cellpadding="2" cellspacing="2">
<tr>
<td align="center"><b><i><?=$lang['error6'];?></i><b></td>
</tr>
<tr>
<td align="center"><font color="red"><?=$lang['order33'];?></font>
<br>
<br>
</td>
</tr>
<tr>
<td align="center">
<a class="button" href="javascript:history.back(1)">..:: <?=$lang['error1'];?> ::..</a>
</td>
</tr>
</table>
<?
else:
$sql=mysql_query("select*from ".$db_pref."users where user='$user'");
$row=mysql_fetch_array($sql);
$orang=$row['rang']+1;
list ($sparent , $obxod , $cash , $order8) = order_else($parent,$parent2,$parent3,$parent4,$parent5,$parent6,$parent7,$parent8,$parent9,$parent10);
$sq=mysql_query("select*from ".$db_pref."users where user='$sparent'");
$ro=mysql_fetch_array($sq);
$pwm=$ro['wm'];
$alertpay_multi_p=$ro['alertpay'];
$perfektmoney_multi_p=$ro['perfektmoney'];
$pemail=$ro['email'];
$date=date("d.m.Y H:i");
$sq=mysql_query("select*from ".$db_pref."neworders where name='$user'");
$ro=mysql_num_rows($sq);
$lang['order23']=str_replace("{user}",$user,$lang['order23']);
$lang['order23']=str_replace("{cash}",$cash,$lang['order23']);
$lang['order23']=str_replace("{money}",$money,$lang['order23']);
if(($sistem==multi) and ($sistem_p==1)){
$logo='<br><a href="http://www.libertyreserve.com" target="_blank"><img src="images/liberty-reserve-logo.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order23']=str_replace("{pwm}",$pwm.$logo,$lang['order23']);
}
elseif(($sistem==multi) and ($sistem_p==2)){
$logo='<br><a href="http://www.alertpay.com" target="_blank"><img src="images/alertpay.png" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order23']=str_replace("{pwm}",$alertpay_multi_p.$logo,$lang['order23']);
}
elseif(($sistem==multi) and ($sistem_p==3)){
$logo='<br><a href="https://perfectmoney.com" target="_blank"><img src="images/perfekt.jpg" alt="" width="180" height="41" style="padding:5px;border: 1px solid #252525"></a><br>';
$lang['order23']=str_replace("{pwm}",$perfektmoney_multi_p.$logo,$lang['order23']);
}else{
$lang['order23']=str_replace("{pwm}",$pwm,$lang['order23']);
}
$lang['order24']=str_replace("{protect}",$protect,$lang['order24']);
$order24=$lang['order24'];
$lang['order25']=str_replace("{orang}",$orang,$lang['order25']);
if($ro>0){?>
<TABLE class="form" width="95%" border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td align="center" >
<h2 align="center"><i><?=$lang['order22'];?></i></h2><BR></td>
</tr>
<tr>
<td align="center" ><?=$lang['order23'];?><?
if($sistem==webmoney){
echo"<br>$order24";
}?>
</td>
</tr>
<tr>
<td align="center" >
<?=$lang['order25'];?></td></tr>
</TABLE>
<script language='Javascript'>function reload() {location = "account.php"}; setTimeout('reload()', 3000);</script>
<?
}
else{
mysql_query("insert into ".$db_pref."neworders values(null, '$user', '$sparent', '$orang', '".mysql_real_escape_string($protect)."', '$date' , '$obxod' ,'','','$sistem_p');");
?>
<TABLE class="form" width=100% border="0" align="center" cellpadding="2" cellspacing="2">
<tr>
<td align="center" >
<h2 align="center"><i><?=$lang['order22'];?></i></h2><br></td>
</tr>
<tr>
<td align="center" ><?=$lang['order23'];?><?
if($sistem==webmoney){
echo"<br>$order24";
}?>
</td>
</tr>
<tr>
<td align="center" >
<?=$lang['order25'];?></td></tr>
</TABLE>
<?
$sql_user_mail=mysql_query("select*from ".$db_pref."users where user='$sparent'");
$row_user_mail=mysql_fetch_array($sql_user_mail);
$lang_mail=$row_user_mail["lang"];
if($lang_mail=='lv'){
include('language/mail-lv.php');
}
elseif($lang_mail=='ru'){
include('language/mail-ru.php');
}
elseif($lang_mail=='en'){
include('language/mail-en.php');
}
else{
include('language/mail-'.$deflangu.'.php');
}
$lang['order_mail1']=str_replace("{sparent}",$sparent,$lang['order_mail1']);
$lang['order_mail1']=str_replace("{name_title}",$name_title,$lang['order_mail1']);
$lang['order_mail1']=str_replace("{orang}",$orang,$lang['order_mail1']);
$lang['order_mail1']=str_replace("{site_url}",$site_url,$lang['order_mail1']);
$order26=$lang['order26'];
$message=$lang['order_mail1'];
mail("$pemail","$order26 & $name_title","$message","From: $admin_emailn"."Content-type: text/plain; charset=utf-8");
}
endif;endif;endif;
}
}
else
{
echo "<div align='center'><font color='red'><br><b>".$lang['error']."</b></font><br><br></div>";
}
include("footer.php");
?>