kaip padaryti pridetiniuose puslapiuose panales dejau sitai i pridetinius vistiek eroras
<?php
openside("nemokami sms");
//DIDELIS PRASYMAS NEISIMTI PO SIUNTIMO FORMA ESANCIOS, PASLAUGOS TIEKEJO NUORODOS...
//SMS.REBOOT.LT
$sms_user = "vartotojas"; //sms centro vartotojas (DEMO, limitas per para 50 SMS)
$sms_password = "slaptazodis"; //sms centro vartotojo slaptazodis (DEMO, limitas per para 50 SMS)
$reklama = "\nSMS dykai: sms.reboot.lt"; //reklaminis tekstas iki 30 simboliu("\n" naudojamas kaip ENTER)
$numb = $_GET['numb'];
$text = $_GET['text'];
if ($numb != "" && $text != "") {
if (strlen($num) != 7) { exit("snd.innerHTML='Įvedėte klaidingą numerį!'"); }
if (strlen($text) > 130) { exit("snd.innerHTML='Viršinote leistiną ženklų kiekį!'"); }
if (!is_numeric($num)) { exit("snd.innerHTML='Įvedėte klaidingą numerį!'"); }
$numb = substr($numb, 0, 7);
$numb = rawurlencode($num);
$text = substr($text, 0, 130);
$reklama = substr($reklama, 0, 30);
$text = $text . $reklama;
$text = str_replace ( '%u0105', 'ą', $text );
$text = str_replace ( '%u010D', 'č', $text );
$text = str_replace ( '%u0119', 'ę', $text );
$text = str_replace ( '%u0117', 'ė', $text );
$text = str_replace ( '%u012F', 'į', $text );
$text = str_replace ( '%u0161', 'š', $text );
$text = str_replace ( '%u0173', 'ų', $text );
$text = str_replace ( '%u016B', 'ū', $text );
$text = str_replace ( '%u017E', 'ž', $text );
$text = str_replace ( '%u0104', 'Ą', $text );
$text = str_replace ( '%u010C', 'Č', $text );
$text = str_replace ( '%u0118', 'Ę', $text );
$text = str_replace ( '%u0116', 'Ė', $text );
$text = str_replace ( '%u012E', 'Į', $text );
$text = str_replace ( '%u0160', 'Š', $text );
$text = str_replace ( '%u0172', 'Ų', $text );
$text = str_replace ( '%u016A', 'Ū', $text );
$text = str_replace ( '%u017D', 'Ž', $text );
$text = urlencode($text);
$fp = fopen("http://sms.reboot.lt/sms.php?user=$sms_user&password=$sms_password&numb=$numb&text=$text", "rb");
if($fp){ while(!feof($fp)) { $img = $img . fread($fp, 1024); } }
$img = substr($img, 2); exit("snd.innerHTML='$img'");
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="author" content="ELFA">
<meta name="keywords" content="Nemokamas SMS siuntimas sms.reboot.lt">
<title>SMS siuntimas</title>
<script language="JavaScript" type="text/JavaScript">
<!--
url = document.location.href;
xend = url.lastIndexOf("/") + 1;
var base_url = url.substring(0, xend);
function ajax_do (url) {
snd = document.getElementById('idTEXT');
if (url.substring(0, 4) != 'http') {
url = base_url + url + '?text=' + escape(document.smsform.text.value) + '&numb=' + escape (document.smsform.numb.value);
}
var jsel = document.createElement('SCRIPT');
jsel.type = 'text/javascript';
jsel.src = url;
document.body.appendChild (jsel);
}
function t_r() {
document.smsform.liko.value = 130 - document.smsform.text.value.length;
if (document.smsform.liko.value < 0) {
document.smsform.text.value = document.smsform.text.value.substring(0, document.smsform.text.value.length+(130 - document.smsform.text.value.length));
document.smsform.liko.value = 130 - document.smsform.text.value.length;
}
}
//-->
</script>
</head>
<body LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH="0" MARGINHEIGHT="0" bgcolor="#2792BC">
<table width="170" border="0" cellspacing="0" cellpadding="0" height="300">
<tr>
<td>
<div align="center">
<FORM name='smsform' target="_top">
<b>+3706</b><INPUT name='numb' size=15 maxlength='7' style='border: 0px solid #cecfce;background-color:#2792BC; width:104px;
font-family: Tahoma; padding-left:2px;
font-size: 11px;' onblur="if (value == '') {value='xxxxxxx';}" value="xxxxxxx" onfocus="if (value == 'xxxxxxx') {value='';}">
<br>
<textarea name='text' onkeyup="t_r()" onkeydown="t_r()" onchange="t_r()" onblur="if (value == ''){ value = 'Jūsų tekstas';}" onfocus="if (value == 'Jūsų tekstas') {value='';}" rows='12' cols='18' style='border: 1px solid #cecfce;background-color:#2792BC; width:145px;
font-family: Tahoma; padding-left:2px;
font-size: 11px;' >Jūsų tekstas</textarea><br>
<INPUT name="liko" size='15' value='130' style='border: 0px solid #cecfce;background-color:#2792BC; width:145px;
font-family: Tahoma; padding-left:65px;padding-bottom: 2px;padding-top: 2px;
font-size: 11px;'><br>
<INPUT TYPE='reset' VALUE='Valyti' style='border: 1px solid #cecfce;background-color:#2792BC;width:71px; font-family: Tahoma; font-size: 11px;'> <INPUT TYPE='reset' onClick="ajax_do('sms.php')" VALUE='Siųsti SMS' style='border: 1px solid #cecfce;background-color:#2792BC;width:71px; font-family: Tahoma; font-size: 11px;'><br><br>
</form>
</div>
</tr></td>
</table>
</body>
</html>
<?
closeside("");
ka tiksliai reik rasyti issamiai galite paaiskinti buciau dekingas nes bet kokia dedu panele vis eror
|