Jump to content
php.lv forumi

Palīdzība esteria SMS skripts.


Charls

Recommended Posts

Tātad, jau kādu laiku cenšos dabūt esteria SMS risinājumu skriptu gatavu, un neesu neko panācis. Esteria piedāvā tikai paraugus, un no php es saprotu tik daudz, ka to var apzīmēt ar šādu simbolu - 0

Nu nauda man nav, bet cerams, ka kādam būs kāds brīvs brīdis lai uzstaisītu man šo skriptu.

 

Paraugs:

<?php

if (!in_array($_SERVER['REMOTE_ADDR'], array("217.199.115.18", "80.255.224.34")) exit("Don't cheat");

if ($_GET["charged"]){		
preg_match("/somecode(\d+)\s*(.*)/i", $_GET["text"], $matches);	
$sql = "MAKE SOME SQL QUERY";
mysql_query($sql);	
}else{		
preg_match("/somecode(\d+)\s*(.*)/i", $_GET["text"], $matches);		
switch ($matches[1]){
	case 1:	// contra1 TEXT
		$price = 1.15; // Ls 1.15
		$answer = "Paldies, ka noziedoji LVL 1.15";
		break;
	case 2:
		$price = 0.35;	// Ls 0.35
		$answer = "Paldies, ka noziedoji LVL 0.35";
		break;
	case 3:
		$price = 0.95;	// Ls 0.95
		$answer = "Paldies, ka noziedoji LVL 0.95";
		break;
	default:
		$price = 0.10;
		$answer = "Paldies, ka noziedoji LVL 0.10";
}	
header("x-esteria-price: ".$price);	
echo $answer;	
exit();	
}
?>

Edited by Charls
Link to comment
Share on other sites

Nu, to make money, you have to spend it :) Tā kā, moš paprasi mammai, omītei, vai vienkārši lasi pudeles, nopelni kādu čiriku, un varbūt kāds uztaisīs un varēsi raust lielo piķi ar sms pakalpojumiem...

 

Skatos, esi jau php forumā praktiski 2 gadus, pa to laiku daudz var iemācīties :)

Link to comment
Share on other sites

Nu pretī varu piedāvāt http://letasgultas.lv/ skriptu. Tas skaitas kā kautkāds Interneta veikals. Ir arī admina panelis.

99% ka nesi pat reali pirkstu pielicis, koda programmesana, domaju Programmesanu, nevis koda izmantosanu.

Taa kaa Shii ir reala necienja pret ctu programmetaju darbu !!!

Jo ja butu uzkodejis(kaut nelielu dalju), no I-veikla, tad sadu primitivu (ko prasi) skriptu uzcept, butu kadas stundas jautajums...

Edited by Grey_Wolf
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...