Navigacija

Vartotojų tinkle

Prisijungusių svečių: 86
Prisijungusių narių: 0
Prisijungusių narių nėra

Registruoti nariai: 25,963
Naujausias narys: WolfHammer

Naujausi straipsniai

Paskutiniai nariai

N-2004:11:42
Reikalas22:48:47
Rytis 4 dienos
DjArtas 1 savaitė
WolfHammer 1 savaitė
Nostesi12 savaitės
Wisedocs12 savaitės
asdasdddz16 savaitės
Paslapties K...17 savaitės
Audrius_1719 savaitės
Simbijanas31 savaitės
Karinacraft32 savaitės
Žmogus35 savaitės
Bruksnys40 savaitės
Darexs42 savaitės
Nepas43 savaitės
keistuole45 savaitės
Gizmis46 savaitės
MaFetas60 savaitės
ozzWANTED61 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 216.73.216.163
Naujienų: 529
Straipsnių: 235
Temų: 52,590
Postų: 522,550
Postų pask. parą: 0
Shout'ų pask. parą: 1
P.S.C. pask. parą: 1
Nuorodų kataloge: 13

Lankomumo Statistika

Peržiūrų šiandien: 22

Iš viso peržiūrų: 22948724

Prisijungti

REGISTRUOTIS
Nario vardas

Slaptažodis



Pamiršai slaptažodį?
Paprašyk naujo

Aktyvuoti save

Šaukykla

Jei norite rašyti žinutes, turite prisijungti.

N-20
2026 Vas. 6 21:02:05
O mes dar gyvi šypsosi)

WolfHammer
2026 Sau. 25 01:01:35
drovus

Žmogus
2025 Geg. 31 10:05:18
Kas geresnio? šypsosi

Nepas
2025 Bal. 9 17:04:13
drovus

Nepas
2025 Bal. 9 17:04:08
drovus

Šaukyklos archyvas

Apklausa

Ar esate patenkinti lietuviško vertimo kokybe?

Taip!

Taip, bet yra ką taisyti (parašysiu komentaruose)

Ne

Norėdamas balsuoti turite prisijungti.
Archyvas
Reklama 400x60
PHP: Problemos su kodu.
Forumas | PHP-Fusion, WordPress, Shopify, PHP ir MySQL (PROGRAMAVIMAS) | Kiti PHP, HTML, MySQL klausimai

Autorius: Majakas Peržiūrų: 1211      Spausdinti temą
2010 Rugs. 29 19:09:12          1 žinutė iš 2
Spausdinti pranešimą
Sveiki, taigi turiu faila sms.php, ir kaskodel jame meta errora stai toki :


Parse error: syntax error, unexpected '}' in /home/csfun/domains/csfun.us.lt/public_html/unban/sms.php on line 33


Failas:


<?php
$SMS_engine = new SMS_engine();
include('config.php');
 
$ip = $_SERVER['REMOTE_ADDR'];
if(!in_array($ip, array('195.216.233.20', '195.216.233.21', '195.216.233.22', '195.216.233.23', '195.216.233.24', '212.122.89.91'))) {
exit('Access denied! Code:01');
}
 
$ex = explode(" ", $_GET[sms], 2);
$ex[1] = strtolower($ex[1]);
if(empty($ex[1])){
echo "Jus neivedete ID!";
} else if(ereg("[^0-9]", $ex[1])){
echo "ID galibut tik is skaiciu (0-9)!";
} else {
$result = mysql_query("SELECT bid FROM amx_bans WHERE bid = '".$ex[1]."' LIMIT 1") or die( mysql_error());
$row = mysql_fetch_array($result, MYSQL_ASSOC);
 
if($row){
$date = date("Y-m-d H:i:s");
$result2 = @mysql_query("SELECT bid,player_nick,ban_reason FROM amx_bans WHERE bid = '".$ex[1]."' ");
$row = mysql_fetch_array($result2, MYSQL_ASSOC);
$nick = $row['player_nick'];
$reason = $row['ban_reason'];
$result3 = @mysql_query("INSERT INTO unban (`nick`,`reason`,`date`) VALUES ('$nick','$reason','$date') ");
$result = @mysql_query("DELETE FROM amx_bans WHERE bid = '".$ex[1]."'");
echo $msg3;
} else {
echo "Bano su id ".$ex[1]." nerasta!";
}
}
} else echo "Ivyko klaida!";
 
class SMS_engine {
var $config;
 
function getCert($cert = null) {
$fp = fsockopen("downloads.webtopay.com", 80, $errno, $errstr, 30);
if (!$fp)
exit("Cert error: $errstr ($errno)<br />\n");
else {
$out = "GET /download/" . ($cert ? $cert : 'public.key') . " HTTP/1.1\r\n";
$out .= "Host: downloads.webtopay.com\r\n";
$out .= "Connection: Close\r\n\r\n";
 
$content = '';
 
fwrite($fp, $out);
while (!feof($fp)) $content .= fgets($fp, 8192);
fclose($fp);
 
list($header, $content) = explode("\r\n\r\n", $content, 2);
 
return $content;
}
}
 
function checkCert($cert = null) {
$pKeyP = $this->getCert($cert);
if (!$pKeyP) return false;
$pKey = openssl_pkey_get_public($pKeyP);
if (!$pKey) return false;
$_SS2 = "";
foreach ($_GET As $key => $value) if ($key!='_ss2') $_SS2 .= "{$value}|";
$ok = openssl_verify($_SS2, base64_decode($_GET['_ss2']), $pKey);
return ($ok === 1);
}
 
function checkTransaction() {
if (function_exists('openssl_pkey_get_public')) {
if ($this->checkCert()) return true;
return $this->checkCert('public_old.key');
} else {
if ($this->cSS1( $_GET['_ss1'], $this->config['your_pass'], $_GET['id'], $this->config['test'] )) {
if ($_GET['status'] == '1') return true;
}
return false;
}
}
}
?>


Gal zinote kaip cia istaisyti ? Nes jau niekaip nerandu ;)


Redagavo Majakas 2010 Rugs. 29 19:09:47

1 atsakymas:
2010 Rugs. 29 19:09:31          2 žinutė iš 2
Spausdinti pranešimą

<?php
 
$SMS_engine = new SMS_engine();
 
include('config.php');
 
 
 
$ip = $_SERVER['REMOTE_ADDR'];
 
if(!in_array($ip, array('195.216.233.20', '195.216.233.21', '195.216.233.22', '195.216.233.23', '195.216.233.24', '212.122.89.91'))) {
 
exit('Access denied! Code:01');
 
}
 
 
 
$ex = explode(" ", $_GET[sms], 2);
 
$ex[1] = strtolower($ex[1]);
 
if(empty($ex[1])){
 
echo "Jus neivedete ID!";
 
} elseif (ereg("[^0-9]", $ex[1])){
 
echo "ID galibut tik is skaiciu (0-9)!";
 
} else {
 
$result = mysql_query("SELECT bid FROM amx_bans WHERE bid = '".$ex[1]."' LIMIT 1") or die( mysql_error());
 
$row = mysql_fetch_array($result, MYSQL_ASSOC);
 
 
 
if($row){
 
$date = date("Y-m-d H:idrovus");
 
$result2 = @mysql_query("SELECT bid,player_nick,ban_reason FROM amx_bans WHERE bid = '".$ex[1]."' ");
 
$row = mysql_fetch_array($result2, MYSQL_ASSOC);
 
$nick = $row['player_nick'];
 
$reason = $row['ban_reason'];
 
$result3 = @mysql_query("INSERT INTO unban (`nick`,`reason`,`date`) VALUES ('$nick','$reason','$date') ");
 
$result = @mysql_query("DELETE FROM amx_bans WHERE bid = '".$ex[1]."'");
 
echo $msg3;
 
} else {
 
echo "Bano su id ".$ex[1]." nerasta!";
 
}
 
}
 
} else { echo "Ivyko klaida!"; }
 
 
 
class SMS_engine {
 
var $config;
 
 
 
function getCert($cert = null) {
 
$fp = fsockopen("downloads.webtopay.com", 80, $errno, $errstr, 30);
 
if (!$fp)
 
exit("Cert error: $errstr ($errno)<br />\n");
 
else {
 
$out = "GET /download/" . ($cert ? $cert : 'public.key') . " HTTP/1.1\r\n";
 
$out .= "Host: downloads.webtopay.com\r\n";
 
$out .= "Connection: Close\r\n\r\n";
 
 
 
$content = '';
 
 
 
fwrite($fp, $out);
 
while (!feof($fp)) $content .= fgets($fp, 8192);
 
fclose($fp);
 
 
 
list($header, $content) = explode("\r\n\r\n", $content, 2);
 
 
 
return $content;
 
}
 
}
 
 
 
function checkCert($cert = null) {
 
$pKeyP = $this->getCert($cert);
 
if (!$pKeyP) return false;
 
$pKey = openssl_pkey_get_public($pKeyP);
 
if (!$pKey) return false;
 
$_SS2 = "";
 
foreach ($_GET As $key => $value) if ($key!='_ss2') $_SS2 .= "{$value}|";
 
$ok = openssl_verify($_SS2, base64_decode($_GET['_ss2']), $pKey);
 
return ($ok === 1);
 
}
 
 
 
function checkTransaction() {
 
if (function_exists('openssl_pkey_get_public')) {
 
if ($this->checkCert()) return true;
 
return $this->checkCert('public_old.key');
 
} else {
 
if ($this->cSS1( $_GET['_ss1'], $this->config['your_pass'], $_GET['id'], $this->config['test'] )) {
 
if ($_GET['status'] == '1') return true;
 
}
 
return false;
 
}
 
}
 
}
 
?>
0



#1 parse error: syntax error, unexpected '}' in /home/csfun/domains/csfun.us.lt/public_html/unban/sms.php on line 129Majakas, 2010 Rugs. 29 19:09:39 - [Prisegė ozzWANTED 2010 Rugs. 29 19:09:44]
Peršokti į forumą: