Navigacija

Vartotojų tinkle

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

Registruoti nariai: 25,955
Naujausias narys: Johny

Naujausi straipsniai

Paskutiniai nariai

Johny 1 savaitė
Reikalas 2 savaitės
Jaunelis 8 savaitės
lanis 8 savaitės
And2s 9 savaitės
Memento Mori14 savaitės
ozzWANTED14 savaitės
Quwqkibor16 savaitės
asirija20 savaitės
tomeem22 savaitės
weberiz26 savaitės
mRokass28 savaitės
kartoonas29 savaitės
iaescortsmap29 savaitės
grunskiz32 savaitės
Bruksnys32 savaitės
illusion32 savaitės
ordo33 savaitės
Jurgaila34 savaitės
originalcs1634 savaitės

Informacija:


OS: Unknown
Naršyklė: Nežinoma
IP: 3.15.237.164
Naujienų: 529
Straipsnių: 235
Temų: 52,588
Postų: 522,528
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.

Jaunelis
2024 Lie. 25 11:07:43
Oho vis dar veikia svetainė akinanti šypsen Šimtas metų, matau Šaukykloje nuostalgija. Smagu panaršyt po forumą ir pažiūrėt senas temas šypsosi

And2s
2024 Lie. 17 19:07:04
2008 pirmą kart čia patekau, man buvo 10m ir čia pramokau programavimo.. smagu skaityti senas žinutes, tokia nostalgija akinanti šypsen ačiū Ozz kad saugoji šitą kultūrinį reliktą šypsosi

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?

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