Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,953
Naujausias narys: Quwqkibor

Naujausi straipsniai

Paskutiniai nariai

Memento Mori 2 dienos
ozzWANTED 5 dienos
Quwqkibor 2 savaitės
asirija 6 savaitės
tomeem 8 savaitės
Reikalas 9 savaitės
weberiz11 savaitės
mRokass14 savaitės
kartoonas15 savaitės
iaescortsmap15 savaitės
grunskiz18 savaitės
Bruksnys18 savaitės
illusion18 savaitės
ordo19 savaitės
Jurgaila20 savaitės
originalcs1620 savaitės
Rytis21 savaitės
halis22 savaitės
junkus25 savaitės
morlis25 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 13.59.134.193
Naujienų: 529
Straipsnių: 235
Temų: 52,585
Postų: 522,523
Postų pask. parą: 0
Shout'ų pask. parą: 0
P.S.C. pask. parą: 0
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.

ozzWANTED
2024 Sau. 17 01:01:00
Desperatiškus komentarus šaukykloje su accountu po mėnesio prasibuvimo, ištryniau. Pasaulis ir taip juodas. Įjungiam šviesą, prašviesės. šypsosi

Majakas
2023 Gru. 10 19:12:39
Negaliu patikėti jog žinutės/pranešimai visi yra nuo 2008 m akinanti šypsen

Žmogus
2023 Rugs. 7 21:09:14
O gal BloodKiller pasijungs?

Apocal
2023 Rugs. 2 18:09:23
Nu davai nuveikiam kažką akinanti šypsen. Prisijungti kada visi čia akinanti šypsen.

Apocal
2023 Rugs. 2 00:09:18
Šiaip atėjau pažiūrėti ar dar lopas nesby yra ar koks ten buvo.

Š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ų: 827      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ą: