Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: Cambiar el precio para comprar VIP con WCoin C  (Visto 1962 veces)

0 Miembros and 1 Guest are viewing this topic.

Offline Ractor Posteado: December 06, 2019, 09:19:09 PM | Modificado: December 08, 2019, 04:35:49 PM by Ractor

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 1158
  • ar
Hola!

Necesitaria saber que es lo que deberia cambiar de este modulo en el cual fue aportado en este foro, donde se puede comprar VIP con WCoin C.

Lo que necesito es cambiar el precio, ya que la mayoria me compra vip con 30 WcoinC y necesito que cueste mas el VIP Bronce.

Code: [Select]
<style type="text/css">
.bronze{display:show;}
.silver{display:none;}
.gold{display:none;}
.platinum{display:none;}

</style>



<script type="text/javascript">
  top.visible_div_id = 'bronze';
  function toggle_visibility(id) {
     var old_e = document.getElementById(top.visible_div_id);
     var new_e = document.getElementById(id);
     if(old_e) {
        console.log('old', old_e, 'none');
        old_e.style.display = 'none';
     }
    console.log('new', new_e, 'block');
     new_e.style.display = 'block';   
     top.visible_div_id = id;         
  }
  </script>


<?
echo "<script type=\"text/javascript\">document.getElementById(\"h4\").innerHTML = \"Upgrade your account to VIP user\"</script>
<input type='hidden' id='module_contet' value='Upgrade your account to VIP user'>";
   
$load_vip_settings = simplexml_load_file('engine/config_mods/get_vip.xml');
$bronze = explode(",",trim($load_vip_settings->bronze));
$silver = explode(",",trim($load_vip_settings->silver));
$gold = explode(",",trim($load_vip_settings->gold));
$platinum = explode(",",trim($load_vip_settings->platinum));

$link_identifier = mssql_connect($core['db_host'], $core['db_user'], $core['db_password']);
mssql_select_db($core['db_name'], $link_identifier);

$exist = $core_db->Execute("Select memb___id from MEMB_INFO where memb___id=?",array($user_auth_id));
if($exist->EOF)
{
mssql_query("INSERT INTO MEMB_INFO(memb___id,AccountExpireDate,AccountLevel) VALUES ('$user_auth_id',NULL,NULL)");
}   

if (isset($_POST['get_vip1']))
{
$viptime = htmlspecialchars($_POST['viptime1'],ENT_QUOTES);
  $result2 = mssql_query("select WCoinC from CashShopData where AccountID='$user_auth_id'");
$myrow2 = mssql_fetch_array($result2);
if ($viptime == NULL )
{
echo msg('0',"VIP period was not found.");
}
 
  switch($viptime)
    {
      case '10' : $kredit = $bronze[0];
        break;
      case '30' : $kredit = $bronze[1];
        break;
      case '60' : $kredit = $bronze[2];
        break;
      default   : echo msg('0',"VIP period was not found.");
        break;
    }
 
  if ($myrow2['WCoinC'] < $kredit)
{

    echo msg('0',"Not enough credits.");
}
else
{
    $select = mssql_query("select AccountLevel,AccountExpireDate,memb___id from MEMB_INFO where memb___id='$user_auth_id'");   
$select_req = mssql_fetch_array($select);
    $actualDate = time();
    $vipEndDate = strtotime($select_req['AccountExpireDate']);
    $checkStatus =  ($vipEndDate) - ($actualDate);
$result = mssql_query("select AccountLevel from MEMB_INFO where memb___id='$user_auth_id'");
if (mssql_num_rows($result) > 0)
{
$myrow = mssql_fetch_array($result);
if ($checkStatus > 0)
{
echo msg('0',"You have already active VIP status.");
}
else
{
  $cas = time()+$viptime*86400;
        $small = date("Y-m-d H:i:s",$cas);
        mssql_query("update MEMB_INFO set AccountExpireDate='$small',AccountLevel ='1' WHERE memb___id='$user_auth_id'");
        mssql_query("update CashShopData set WCoinC= WCoinC-".$kredit." where AccountID='$user_auth_id'");
        echo msg('1',"VIP status was successfully bought.");
}
}
}
}
if (isset($_POST['get_vip2']))
{
$viptime = htmlspecialchars($_POST['viptime2'],ENT_QUOTES);
  $result2 = mssql_query("select WCoinC from CashShopData where AccountID='$user_auth_id'");
$myrow2 = mssql_fetch_array($result2);
if ($viptime == NULL )
{
echo msg('0',"VIP period was not found.");
}
 

    switch($viptime)
    {
      case '10' : $kredit = $silver[0];
        break;
      case '30' : $kredit = $silver[1];
        break;
      case '60' : $kredit = $silver[2];
        break;
      default   : echo msg('0',"VIP period was not found.");
        break;
    }
 
  if ($myrow2['WCoinC'] < $kredit)
{

    echo msg('0',"No tienes los wCoinC necesarios en tu cuenta.");
}
else
{
$result = mssql_query("select AccountLevel from MEMB_INFO where memb___id='$user_auth_id'");

    $select = mssql_query("select AccountLevel,AccountExpireDate,memb___id from MEMB_INFO where memb___id='$user_auth_id'");   
$select_req = mssql_fetch_array($select);
    $actualDate = time();
    $vipEndDate = strtotime($select_req['AccountExpireDate']);
    $checkStatus =  ($vipEndDate) - ($actualDate);
     
    if (mssql_num_rows($result) > 0)
{
$myrow = mssql_fetch_array($result);
if ($checkStatus > 0)
{
echo msg('0',"Tienes una membresia VIP ya activa.");
}
else
{
  $cas = time()+$viptime*86400;
        $small = date("Y-m-d H:i:s",$cas);
        mssql_query("update MEMB_INFO set AccountExpireDate='$small',AccountLevel ='2' WHERE memb___id='$user_auth_id'");
        mssql_query("update CashShopData set WCoinC= WCoinC-".$kredit." where AccountID='$user_auth_id'");
        echo msg('1',"¡BIENVENIDO AL CLUB VIP! Tu membresia a sido activada .");
}
}
}
}
if (isset($_POST['get_vip3']))
{
$viptime = htmlspecialchars($_POST['viptime3'],ENT_QUOTES);
  $result2 = mssql_query("select WCoinC from CashShopData where AccountID='$user_auth_id'");
$myrow2 = mssql_fetch_array($result2);
if ($viptime == NULL )
{
echo msg('0',"VIP period was not found.");
}
 
switch($viptime)
    {
      case '10' : $kredit = $gold[0];
        break;
      case '30' : $kredit = $gold[1];
        break;
      case '60' : $kredit = $gold[2];
        break;
      default   : echo msg('0',"VIP period was not found.");
        break;
    }
 
  if ($myrow2['credits'] < $kredit)
{

    echo msg('0',"Not enough credits.");
}
else
{
$result = mssql_query("select AccountLevel from MEMB_INFO where memb___id='$user_auth_id'");
    $select_req = mssql_fetch_array($select);
    $actualDate = time();
    $vipEndDate = strtotime($select_req['AccountExpireDate']);
    $checkStatus =  ($vipEndDate) - ($actualDate);
if (mssql_num_rows($result) > 0)
{
$myrow = mssql_fetch_array($result);
if ($checkStatus > 0)
{
echo msg('0',"You have already active VIP status.");
}
else
{
  $cas = time()+$viptime*86400;
        $small = date("Y-m-d H:i:s",$cas);
        mssql_query("update MEMB_INFO set AccountExpireDate='$small',Type ='3' WHERE memb___id='$user_auth_id'");
        mssql_query("update CashShopData set WCoinC= WCoinC-".$kredit." where AccountID='$user_auth_id'");
        echo msg('1',"VIP status was successfully bought.");
}
}
}
}
if (isset($_POST['get_vip4']))
{
$viptime = htmlspecialchars($_POST['viptime4'],ENT_QUOTES);
  $result2 = mssql_query("select credits from MEMB_CREDITS where memb___id='$user_auth_id'");
$myrow2 = mssql_fetch_array($result2);
if ($viptime == NULL )
{
echo msg('0',"VIP period was not found.");
}
 

    switch($viptime)
    {
      case '10' : $kredit = $platinum[0];
        break;
      case '30' : $kredit = $platinum[1];
        break;
      case '60' : $kredit = $platinum[2];
        break;
      default   : echo msg('0',"VIP period was not found.");
        break;
    }
 
  if ($myrow2['credits'] < $kredit)
{

    echo msg('0',"Not enough credits.");
}
else
{
$result = mssql_query("select Type from T_VIPList where AccountID='$user_auth_id'");
    $select_req = mssql_fetch_array($select);
    $actualDate = time();
    $vipEndDate = strtotime($select_req['Date']);
    $checkStatus =  ($vipEndDate) - ($actualDate);
if (mssql_num_rows($result) > 0)
{
$myrow = mssql_fetch_array($result);
if ($checkStatus > 0)
{
echo msg('0',"You have already active VIP status.");
}
else
{
  $cas = time()+$viptime*86400;
        $small = date("Y-m-d H:i:s",$cas);
        mssql_query("update T_VIPList set Date='$small',Type ='4' WHERE AccountID='$user_auth_id'");
        mssql_query("update MEMB_CREDITS set credits= credits-".$kredit." where memb___id='$user_auth_id'");
        echo msg('1',"VIP status was successfully bought.");
}
}
}
}
?>

<br><br>
<center>
   
   
   
   
   
    <h1><i class=" fa fa-money" aria-hidden="true"></i>&nbsp;Comprar VIP</h1>
    &nbsp;
    &nbsp;
   
        <div class="alert alert-info">
  <h2 class="tips-ayudas-color"><i class="fa fa-info-circle" aria-hidden="true"></i>&nbsp;INFORMACI&Oacute;N PARA COMPRAR VIP</h2>
  <p class="alert-info">
  No nos hacemos cargo por el mal uso del modulo:<br><br>
    <i class="fa fa-check" aria-hidden="true"></i>&nbsp;Una vez hecha la compra no habra devolucion.<br>
    <i class="fa fa-check" aria-hidden="true"></i>&nbsp;Solo podras comprar una opcion de VIP, elegi bien.<br>
        <i class="fa fa-check" aria-hidden="true"></i>&nbsp;LOS DIAS VIP SE COMPRAN POR WCOIN C.<br>
    <i class="fa fa-check" aria-hidden="true"></i>&nbsp;TODO esta especificado, leer bien antes de efectuar algun movimiento.<br>
    </p>
</div>

 &nbsp;
    &nbsp;
   
   
   
    <form method="post" action="">

    <label class="control-label">Tipo de VIP</label>

<select class="form-control" style="width: 120px" name="type" onchange="toggle_visibility(this.value);">
                <option value="gold" selected>VIP Rhino</option>
</select>
 

<div id="bronze" class="bronze" align="center" ><br>
<label class="control-label">Tiempo | WCoin C</label>
<form action="" method="post" onsubmit="request("form_vip","sh_","POST","getpage.php?cat=Get-VIP"); return false;" id="form_vip">
<select name="viptime1" class="form-control" style="margin-bottom:10px; width:250px;">
<option value="30">VIP por 30 dias | <? echo $bronze[1];?> WCoin C</option>
<option value="60">VIP por 60 dias | <? echo $bronze[2];?> WCoin C</option>
</select>
<input class="btn btn-success btn-lg" type="submit" name="get_vip1" value="Adquirir membresia"><br><br>
</form>
</div>

<div id="silver" class="silver" align="center"><br>
<label class="control-label">Tiempo | WCoin C</label>
<form action="" method="post" onsubmit="request("form_vip","sh_","POST","getpage.php?cat=Get-VIP"); return false;" id="form_vip">
<select name="viptime2" class="form-control" style="margin-bottom:10px; width:250px;">
<option value="30">VIP por 30 dias | <? echo $silver[1];?> WCoin C</option>
<option value="60">VIP por 60 dias | <? echo $silver[2];?> WCoin C</option>
</select>
<input class="btn btn-success btn-lg" type="submit" name="get_vip2" value="Adquirir membresia"><br><br>
</form>
</div>


<div id="gold" class="gold" align="center"><br>
<label class="control-label">Tiempo | WCoin C</label>
<form action="" method="post" onsubmit="request("form_vip","sh_","POST","getpage.php?cat=Get-VIP"); return false;" id="form_vip">
<select name="viptime2" class="form-control" style="margin-bottom:10px; width:250px;">
<option value="30">VIP por 30 dias | <? echo $gold[1];?> WCoin C</option>
<option value="60">VIP por 60 dias | <? echo $gold[2];?> WCoin C</option>
</select>
<input class="btn btn-success btn-lg" type="submit" name="get_vip3" value="Adquirir membresia"><br><br>
</form>
</div>

</center>


<br>

<ul>
  <p></p><b>Ventajas de las Membresias VIP:</b></p>
  <p><font color="#CD7F32"><strong>VIP MuRhino</strong></font>: 9999x exp, 95% Drop, Mapa Vip: /move land & /move vulcanus /move kanturu</p>
<p></ul>


Gracias:


Offline LionRooT #1 Posteado: December 06, 2019, 10:33:46 PM

  • Php Coder
  • +1 puntos por ventas
  • *
  • *
  • Rank: Heroe
  • Posts: 170
  • Gracias recibida: 745
  • ve
Dame el link donde está posteado el módulo


Offline Ractor #2 Posteado: December 07, 2019, 05:14:18 AM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 1158
  • ar

Offline Ractor #3 Posteado: December 07, 2019, 02:18:42 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 1158
  • ar

Offline LionRooT #4 Posteado: December 07, 2019, 06:49:43 PM | Modificado: December 07, 2019, 06:52:24 PM by LionRooT

  • Php Coder
  • +1 puntos por ventas
  • *
  • *
  • Rank: Heroe
  • Posts: 170
  • Gracias recibida: 745
  • ve

Offline Ractor #5 Posteado: December 07, 2019, 08:17:35 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 1158
  • ar

Online ZabiinoOo #6 Posteado: December 07, 2019, 11:38:57 PM

  • MAESTRO

  • US. DE HONOR

  • LEYENDA

  • Administrador
  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 7.302
  • Gracias recibida: 125853
  • pe
En el modulo esta haciendo un llamado al archivo:
Code: [Select]
engine/config_mods/get_vip.xml

Es decir que hay debe estar configurado el tipo de vip junto al precio




Prohibido pedir soporte via MP
Leer las reglas de cada seccion
we trust god

Gracias:


Offline Ractor #7 Posteado: December 08, 2019, 04:35:22 PM

  • 0 puntos por ventas
  • *
  • Rank: Puto amo
  • Posts: 267
  • Gracias recibida: 1158
  • ar
En el modulo esta haciendo un llamado al archivo:
Code: [Select]
engine/config_mods/get_vip.xml

Es decir que hay debe estar configurado el tipo de vip junto al precio

Gracias, solucionado


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
0 Replies
677 Views
Last post August 20, 2017, 02:55:17 AM
by muuplobo
1 Replies
1487 Views
Last post May 14, 2018, 01:54:01 PM
by caron22
1 Replies
1220 Views
Last post June 03, 2018, 01:24:05 AM
by Cloud
9 Replies
2514 Views
Last post June 13, 2021, 01:15:03 PM
by greensk8er
5 Replies
1019 Views
Last post November 23, 2023, 04:11:36 PM
by hikaru333