[Help] webshop сас смс-и

Sunwalker

Well-Known Member
Joined
Apr 25, 2008
Messages
1,811
Reaction score
376
Може ли някой да ми обясни как става работата с смс-ите за webshop (за кредити) пример: 1sms = 3000 кредита в webshop

Tnx
 

Break House

Active Member
Joined
Apr 26, 2008
Messages
281
Reaction score
34
Ако всичко на готово се даваше всеки 2ри щеше да има Сървър...
 

Lesh0

New Member
Joined
Apr 22, 2008
Messages
705
Reaction score
89
браво Murder подкрепям те ! (rofl)(rofl) Нека той си мисли че форума е за плод и зеленчук (rofl) (Извинявам се просто ми стана смешно за горния коментар) ! А по темата потърси из форума е обяснено всичко за смс и webshop нагласата !!
 

KR373N

Well-Known Member
Joined
May 18, 2008
Messages
1,944
Reaction score
445
това е кода които е за webshop този скрипт ви дава възможноста да получават кредитите

ЗАБЕЛЕЖКА: това важи само за Mobio.bg

Code:
<?PHP
$item   = $_REQUEST["item"];
$fromnum  = $_REQUEST["fromnum"];
$extid   = $_REQUEST["extid"];
$sum = '2.40';

$mobio_remote_addr = "194.12.244.114";
$servID  = 1234;

$db_serv = '127.0.0.1';
$db_user = 'sa';
$db_pass = 'password';
$db_name = 'MuOnline';
$credits_to_add = '600';
$sms = '1';

function NOW() {
	return date('Y-m-d H:i:s');
}

if($_SERVER['REMOTE_ADDR'] == $mobio_remote_addr || 1) {

	$sms_reply = 'Greshka. Spazvaite to4no instrukciite';
	$conn = mssql_connect($db_serv, $db_user, $db_pass);
	if($conn) {
		mssql_select_db($db_name);
		mssql_query("UPDATE MEMB_CREDITS SET credits=credits+'$credits_to_add' WHERE memb___id='$item'");
		/*$time = NOW();
		$res = mssql_query("INSERT INTO SMSLOG (memb___id, fromnum, time, sum) VALUES
									('$item', '$fromnum', '$time', '$sum')");*/
		$res = mssql_query("SELECT credits FROM MEMB_CREDITS WHERE memb___id='$item'");
		if(mssql_num_rows($res)>0) {
			$row = mssql_fetch_row($res);
			$sms_reply = "Vashite krediti sa uspeshno zakupeni. Imate {$row[0]} crediti.";
		}

	}
	file("http://mobio.bg/paynotify/pnsendsms.php?servID=$servID&tonum=$fromnum&extid=$extid&message=".urlencode($sms_reply));
}

?>
 

Murder

New Member
Joined
Apr 21, 2008
Messages
502
Reaction score
74
Не важи само за тфа.. просто сменяш линка и е готово :)
 

Bupyc™

New Member
Joined
Jul 10, 2008
Messages
504
Reaction score
327
PHP:
 <?php
$msconnect=mssql_connect("localhost","sa","pas");
$msdb=mssql_select_db("MuOnline",$msconnect);


$sms_text = $_GET['sms_text'];


$ip=$_SERVER["REMOTE_ADDR"];

$sms_text = str_replace("insertmu","","$sms_text");

$querty="Select * From MEMB_CREDITS where memb___id='$sms_text'";
$k=mssql_query($querty);
$row=mssql_fetch_row($k);

$newcredits = $row[1] + 400;
$sms = $row[2] + 1;

if ($ip != '87.120.5.43')
{
echo"insertmu.com - Ima greshka v sistemata!";
exit;
}

elseif ($sms_text != NULL)
{
$query="UPDATE MEMB_CREDITS SET credits='$newcredits',insertmu = '$sms' where memb___id = '$sms_text'";
$mssqlmsg = mssql_query($query);
echo "insertmu : $sms_text va6ite krediti sa dobaveni veche imate $newcredits kredita.";}
?>
Ето ти за Wisdom.bg
 
Thread starter Similar threads Forum Replies Date
A [Help] BUY ITEMS FROM WEBSHOP PROBLEM Help 6
C [Help] Webshop Help 2
natumno [Help] RoYaL MuWebshop 1.0 Change Credits database - Help Help 4
K [Help] Jewels in WebShop 97d Help 4
E [Help] Webshop error Help 1
M [Help] Webshop for 97d+99i cookie issue Help 0
T [Help] Webshop Help 1
M [Help] Webshop 97d promlem Help 0
M [Help] WebShop Help 0
dDosgwapo [Help] Помощ итеми WEBSHOP Help 0
ecnagorra [Help] WebShop Help 1
hanuka [Help] WebShop Skill problem Help 14
HOLIGAN [Help] Savoy's WebShop 0.9c execute items problem Help 1
E [Help] WebShop Help 2
Nesquik [Help] Add items in webshop Help 0
DemonuMu [Help] Error Installing WebShop Help 4
R [Help] 97d99i Webshop Help 0
swvol [Help] Remove items from WebShop Help 1
Holder [Help] Webshop Season 4 Images Help 1
AfterCtrl [Help] WebShop Problem Help 0
ShadowDeat [Help] WebShop Help 9
d00k13 [Help] Webshop item codes Help 2
FasT RuNNeR [Help] Webshop Season 6 Help 12
S [Help] WebShop 0.9 + Socket Help 4
XSSecurety. [Help] WebShop Bug Help 10
butamuh4o0o [Help] WebShop Help 1
DeLasale [Help] WebShop Items Help 6
XSSecurety. [Help] Webshop Help 3
Ex7a3u [Help] Season 6 WebShop Items Help 6
XSSecurety. [Help] Webshop Help 7
XSSecurety. [Help] WebShop GM Help 3
Wurlol [Help] Търся няколко модула за webshop Help 3
B [Help] Проблем с Login в WebShop Help 5
kulturista [Help] Webshop Problem Help 1
M [Help] Webshop for Seson2 Help 1
Mr.LiM [Help] WebShop Login Help 0
Toshy [Help] WebShop items Help 2
ivowe3 [Help] WebShop Itemadder Help 0
s7amb370 [Help] WebShop Problem Help 0
TheDevil [Help] Webshop problem Help 2
V [Help] Webshop items Help 4
wingshot [Help] Webshop Help 8
B [Help] WebShop Items Help 0
B [Help] Webshop Installation Help 10
ivowe3 [Help] WebShop Add Items Problem Help 3
MadBoy [Help] How to install webshop with MD5 Help 5
x3mSm [Help] S3 Ep1 WebShop Help 1
Archon [Help] Солове в WebShop-а Help 18
BeautyDeaD [Help] [HELP] WebShop options Help 3
acriman [Help] How to add custom items in webshop Help 4

Similar threads