MOON
Server: Apache/2.2.34 (Unix) mod_ssl/2.2.34 OpenSSL/0.9.8e-fips-rhel5 mod_bwlimited/1.4 FrontPage/5.0.2.2635
System: Linux server.asjudinet.com 2.6.32-042stab141.3 #1 SMP Fri Nov 15 22:45:34 MSK 2019 i686
User: asjudine (504)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: /home/asjudine/mensajes_elibom.php
<?php 
  require_once("mainfile.php");
  include ("config.php");
  require_once("Conectarse.php");
  require('elibom/elibom.php');

//$tel=$_GET["telefono"];

$mensaje=$_GET["cadena"];


 $conttre = mysql_query('SELECT actuacion FROM mensajes_texto WHERE id = "'.$_GET["id"].'" ');
		  if (!$conttre) {
				die('Invalid query 1: ' . mysql_error());
			}
		list($actuacion) = mysql_fetch_row($conttre); 

///CUENTA LOS CARACTERES 
$cantcaract=strlen($actuacion);

echo $cantcaract;
/////////////////////////
/////////SEPARA LA CADENA 
$cadena= substr($actuacion,0,160);  
$cadena2=substr($actuacion,160,160);
$cadena3=substr($actuacion,320,160);
$cadena4=substr($actuacion,480,160);




 
  
$tel="3123862644";

// if ($cantcaract<"160") {
			
			

// settype($tel, "string");

//$deliveryId = $elibom->sendMessage(''.$tel.'', '"'.$cadena.'"');
	 
	 
$elibom = new ElibomClient('ventas.asjudinet2015@hotmail.com', '7lnC62i2ae');
$deliveryId = $elibom->sendMessage(''.$tel.'', ''.$mensaje.'');
     
	 
	 
$mssql2 = mysql_query("UPDATE  mensajes_texto   set estado = '1' WHERE id = '".$_GET["id"]."' ");
				if (!$mssql2) {
				die('Invalid query update 2: ' . mysql_error());
							}	 
							
							
							echo "<script>alert('Mensaje Enviado ');</script>";
							
	 
 //}
 /*if ($cantcaract>="160" and $cantcaract<"320" )
 {
	 
	
		 settype($tel, "string");

$elibom = new ElibomClient('ventas.asjudinet2015@hotmail.com', '7lnC62i2ae');
$deliveryId = $elibom->sendMessage(''.$tel.'', '"'.$mensaje.'"');
 
 
 sleep (6);
settype($tel, "string");
 
 
$elibom = new ElibomClient('ventas.asjudinet2015@hotmail.com', '7lnC62i2ae');
$deliveryId = $elibom->sendMessage(''.$tel.'', '"'.$cadena2.'"');
 
	 echo "<script>alert('Primer Mensaje Enviado ');</script>";
	 
$mssql2 = mysql_query("UPDATE  mensajes_texto   set estado = '1' WHERE id = '".$_GET["id"]."' ");
				if (!$mssql2) {
				die('Invalid query update 2: ' . mysql_error());
							}	 
		 
		 
		 echo "<script>alert('Error en el Mensaje Enviado ');</script>";
	 
	 }
	 */


?>