Ver Mensaje Individual
  #9  
Antiguo 12-03-2009
Avatar de BlackDaemon
BlackDaemon BlackDaemon is offline
Miembro
 
Registrado: dic 2006
Ubicación: Bolivia - Santa Cruz
Posts: 206
Reputación: 18
BlackDaemon Va por buen camino
Hola

Bueno, mirando un poco el código he visto que usan un .js para recibir los datos y procesarlos, en si es este

http://sms.whsites.net/phone.js

Pero creo que no les gusta que le miren el código ya que lo tienen codificado con una función, pero bueno, lo decodificas con las mismas funciones de js, bueno, yo no sé js pero mirando el código veo que usan unescape y busqué por ello en google y fácilmente pude leer el texto ya entendible, el cual pondré a continuación para que veas lo que hacen, y los campos en si

Código PHP:
/* COPYRIGHT (C)2007 WWW.iSMS.COM.AR */ document.write(unescape("<script type="text/javascript">
function home() { 
if (window==window.top) { 
window.location='http://sms.radiosabalera.com.ar/'; 


if (window==window.top) { 
window.location='http://sms.radiosabalera.com.ar/'; 


if(window.opera) { 
window.history.go(1); 


var css_browser_selector = function() {var ua=navigator.userAgent.toLowerCase(),is=function(t){return ua.indexOf(t) != -1;},h=document.getElementsByTagName('html')[0],b=(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?'gecko ff2':is('firefox/3')?'gecko ff3':is('gecko/')?'gecko':is('opera/9')?'opera opera9':/opera\s(\d)/.test(ua)?'opera opera'+RegExp.$1:is('konqueror')?'konqueror':is('chrome')?'chrome webkit safari':is('applewebkit/')?'webkit safari':is('mozilla/')?'gecko':'',os=(is('x11')||is('linux'))?' linux':is('mac')?' mac':is('win')?' win':'';var c=b+os+' js'; h.className += h.className?' '+c:c;}(); 

function buttonSt(o, sens) { 
if(o) { 
if(sens == 1) { 
o.style.backgroundColor = '#E0DFE3'; 
o.style.cursor = 'default'; 
}else{ 
o.style.backgroundColor = '#CFCED2'; 
o.style.cursor = 'default'; 




//onsubmit="
setTimeout('sysReset()',300); return true;
function sysReset() { 
var i; 
for (i = 0; (i < document.forms.length); i++) { 
document.forms[i].reset(); 
document.sms.numero.value = ''; 
document.sms.mensaje.value = ''; 
document.sms.remitente.value = ''; 



//onkeypress="
return isnumberkey(event);
function isnumberkey(evt) { 
var charCode = (evt.which) ? evt.which : event.keyCode 
if (charCode > 31 && (charCode < 48 || charCode > 57)) 
return false; 
return true; 


//onkeyup="
return ismaxlength(this);
function ismaxlength(obj) { 
var mlength=obj.getAttribute? parseInt(obj.getAttribute('maxlength')) : '' 
if (obj.getAttribute && obj.value.length>mlength) 
obj.value=obj.value.substring(0,mlength) 


function waitSt() { 
document.getElementById('numero').style.color = '#9696A0'; 
document.getElementById('mensaje').style.color = '#9696A0'; 
document.getElementById('remitente').style.color = '#9696A0'; 


function readySt() { 
document.getElementById('numero').style.color = '#5A5A65'; 
document.getElementById('mensaje').style.color = '#5A5A65'; 
document.getElementById('remitente').style.color = '#5A5A65'; 


function toSend() { 
//soundManager.play('button'); 
window.focus(); 
waitSt(); 


function toReset() { 
//soundManager.play('button'); 
window.focus(); 
waitSt(); 
sysReset(); 
reset(); 


var isIE = navigator.appName.toLowerCase().indexOf('internet explorer')+1; 
var isMac = navigator.appVersion.toLowerCase().indexOf('mac')+1; 

function SoundManager(container) { 
// DHTML-controlled sound via Flash 
var self = this; 
this.movies = []; // movie references 
this.container = container; 
this.unsupported = 0; // assumed to be supported 
this.defaultName = 'default'; // default movie 
  
this.FlashObject = function(url) { 
var me = this; 
this.o = null; 
this.loaded = false; 
this.isLoaded = function() { 
if (me.loaded) return true; 
if (!me.o) return false; 
me.loaded = ((typeof(me.o.readyState)!='undefined' && me.o.readyState == 4) || (typeof(me.o.PercentLoaded)!='undefined' && me.o.PercentLoaded() == 100)); 
return me.loaded; 

this.mC = document.createElement('div'); 
this.mC.className = 'movieContainer'; 
with (this.mC.style) { 
// "
hide" flash movie 
position = 'absolute'; 
left = '-256px'; 
width = '64px'; 
height = '64px'; 

var html = ['<object classid="
clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"><param name="movie" value="'+url+'"><param name="quality" value="high"></object>','<embed src="'+url+'" width="1" height="1" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>']; 
if (navigator.appName.toLowerCase().indexOf('microsoft')+1) { 
this.mC.innerHTML html[0]; 
this.this.mC.getElementsByTagName('object')[0]; 
} else { 
this.mC.innerHTML html[1]; 
this.this.mC.getElementsByTagName('embed')[0]; 

document.getElementsByTagName('div')[0].appendChild(this.mC); 


this.addMovie = function(movieName,url) { 
self.movies[movieName] = new self.FlashObject(url); 


this.checkMovie = function(movieName) { 
movieName movieName||self.defaultName
if (!
self.movies[movieName]) { 
self.errorHandler('checkMovie','Exception: Could not find movie',arguments); 
return 
false
} else { 
return (
self.movies[movieName].isLoaded())?self.movies[movieName]:false



this.errorHandler = function(methodName,message,oArguments,e) { 
writeDebug('<div class="error">soundManager.'+methodName+'('+self.getArgs(oArguments)+'): '+message+(e?' ('+e.name+' - '+(e.message||e.description||'no description'):'')+'.'+(e?')':'')+'</div>'); 


this.play = function(soundID,loopCount,noDebug,movieName) { 
if (
self.unsupported) return false
movie self.checkMovie(movieName); 
if (!
movie) return false
if (
typeof(movie.o.TCallLabel)!='undefined') { 
try { 
self.setVariable(soundID,'loopCount',loopCount||1,movie); 
movie.o.TCallLabel('/'+soundID,'start'); 
if (!
noDebugwriteDebug('soundManager.play('+self.getArgs(arguments)+')'); 
} catch(
e) { 
self.errorHandler('play','Failed: Flash unsupported / undefined sound ID (check XML)',arguments,e); 




this.stop = function(soundID,movieName) { 
if (
self.unsupported) return false
movie self.checkMovie(movieName); 
if (!
movie) return false
try { 
movie.o.TCallLabel('/'+soundID,'stop'); 
writeDebug('soundManager.stop('+self.getArgs(arguments)+')'); 
} catch(
e) { 
// Something blew up. Not supported? 
self.errorHandler('stop','Failed: Flash unsupported / undefined sound ID (check XML)',arguments,e); 



this.getArgs = function(params) { 
var 
params?params.length:0
if (!
x) return ''
var 
result ''
for (var 
i=0i<xi++) { 
result += (i&&i<x?', ':'')+(params[i].toString().toLowerCase().indexOf('object')+1?typeof(params[i]):params[i]); 

return 
result 


this.setVariable = function(soundID,property,value,oMovie) { 
// set Flash variables within a specific movie clip 
if (!oMovie) return false
try { 
oMovie.o.SetVariable('/'+soundID+':'+property,value); 
// writeDebug('soundManager.setVariable('+self.getArgs(arguments)+')'); 
} catch(e) { 
// d'oh 
self.errorHandler('setVariable','Failed',arguments,e); 



this.setVariableExec = function(soundID,fromMethodName,oMovie) { 
try { 
oMovie.o.TCallLabel('/'+soundID,'setVariable'); 
} catch(
e) { 
self.errorHandler(fromMethodName||'undefined','Failed',arguments,e); 



this.callMethodExec = function(soundID,fromMethodName,oMovie) { 
try { 
oMovie.o.TCallLabel('/'+soundID,'callMethod'); 
} catch(
e) { 
// Something blew up. Not supported? 
self.errorHandler(fromMethodName||'undefined','Failed',arguments,e); 



this.callMethod = function(soundID,methodName,methodParam,movieName) { 
movie self.checkMovie(movieName||self.defaultName); 
if (!
movie) return false
self.setVariable(soundID,'jsProperty',methodName,movie); 
self.setVariable(soundID,'jsPropertyValue',methodParam,movie); 
self.callMethodExec(soundID,methodName,movie); 


this.setPan = function(soundID,pan,movieName) { 
self.callMethod(soundID,'setPan',pan,movieName); 


this.setVolume = function(soundID,volume,movieName) { 
self.callMethod(soundID,'setVolume',volume,movieName); 

// constructor - create flash objects 
if (isIE && isMac) { 
this.unsupported 1


if (!
this.unsupported) { 
this.addMovie(this.defaultName,'soundcontroller.swf'); 
// this.addMovie('rc','rubber-chicken-audio.swf'); 



function 
SoundManagerNull() { 
// Null object for unsupported case 
this.movies = []; // movie references 
this.container null
this.unsupported 1
this.FlashObject = function(url) {} 
this.addMovie = function(name,url) {} 
this.play = function(movieName,soundID) { 
return 
false

this.defaultName 'default'


function 
writeDebug(msg) { 
var 
document.getElementById('debugContainer'); 
if (!
o) return false
var 
document.createElement('div'); 
d.innerHTML msg
o.appendChild(d); 


var 
soundManager null

function 
soundManagerInit() { 
soundManager = new SoundManager(); 


function 
successSound() { 
soundManager.play('success'); 

</script>")) 
Aquí vemos claramente el nombre de los campos

document.sms.numero.value = '';
document.sms.mensaje.value = '';
document.sms.remitente.value = '';

Saludos!
Responder Con Cita