Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: v7 vip sistema

Parašė LGkm380· 2011 Kov. 5 13:03:33
#1

Sveiki iskilo didele problema.. Isidiegiau vips sistema susitvarkiau viska pasidariau bet siunciant zinute (pinigai gaunami) bet ateina toks atsakas : WebToPayException: Can't write to logfile: includes/webtopay.log idesiu sms_get.php gal kas zino kur klaida? Buciau labai dekingas uz pagalba..

<?php
 
$slaptazodis='132465749(pavizdys)86465465415'; #tavo projekto slaptazodis 

include "config.php"; 
include "includes/sms_config.php";
function dbquery($query) {
	$result = @mysql_query($query);
	if (!$result) {
		echo mysql_error();
		return false;
	} else {
		return $result;
	}
}
	$db_connect = @mysql_connect($db_host, $db_user, $db_pass);
	$db_select = @mysql_select_db($db_name);
 
 
require_once('includes/WebToPay.php');
try {
 WebToPay::checkResponse($_GET, array(
            'sign_password' => $slaptazodis, #Projekto pass
            'log'           => 'includes/webtopay.log',
        ));
 
$chars = "abcdefghijklmnpqrstuvwxyz123456789";
			$char_count = strlen($chars) - 1;
			$kodas = "";
			for ($i = 0; $i < 8; $i++) {
				$pass .= substr($chars, mt_rand(0, $char_count), 1);
			}
			$result = dbquery("INSERT INTO sms (sms_kodas) VALUES ('$kodas')");
echo "OK Tavo kodas: ".$kodas; 
}
catch (Exception $e) {
    echo get_class($e).': '.$e->getMessage();
}
 
 
?>