PHPsend & Websend

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
eidosik
Příspěvky: 15
Registrován: 04 zář 2012, 11:29
Reputation: 0

PHPsend & Websend

#1 Příspěvekod eidosik » 04 zář 2012, 11:36

Server: IP:93.91.250.112:27517
ver. 1.3.2

Zdravim, mam problem... Pokusil som sa nainstalovat pluginy PHPsend a Websend (samozrejme zlvast, pretoze ani jeden ani druhy nefungoval) ... PHPscript na stranke sa nechce spojit so serverom. Skusal som uz XYZ portov... ako napr: 25517,26517(rcon),28517,29517,29000,30000, a co ja viem este ake..asi vsetky...

PHPsend v logfile:
Spoiler: zobrazit
...
2012-09-04 01:37:05 [INFO] [AutoMessage] AutoMessage Enabled!
2012-09-04 01:37:05 [INFO] [PHPsend] Enabling PHPsend v0.9
2012-09-04 01:37:05 [INFO] [PHPsend] Config loaded.
2012-09-04 01:37:05 [INFO] [PHPsend] PHPsend started main thread.
2012-09-04 01:37:05 [INFO] [PHPsend] Started hosting.
2012-09-04 01:37:05 [INFO] [iConomy] Enabling iConomy v7.0
...


PHPsend config.yml:
Spoiler: zobrazit
password: *****
postPassword: *****
port: 29517 (aktualny, skusal som aj ine)
postDataUrl: http://www.*****.sk/web/


index.php na webe:
Spoiler: zobrazit
<?php

include_once("PHPsend.php");

$con = new PHPsend();
$succ = $con->PHPconnect("93.91.250.112","*****","29517");

$con->PHPcommand("say Hallo ...");
$con->PHPcommand("say Server sets time to Day!");
$con->PHPcommand("time day");


$succ = $con->PHPdisconnect();

?>


PHPsend.php na webe:
Spoiler: zobrazit
<?php

error_reporting(0);

class PHPresponse
{
var $msg;
var $from;

function isFrom($who)
{
if ($who==$from)
return true;
else
return false;
}
}

function recv($socket)
{
$r=socket_read($socket, 256, PHP_NORMAL_READ);
return substr($r,0,-1);
}

class PHPsend
{
var $socket=null;

function PHPconnect($adress, $password, $port=29517)
{
$this->socket = socket_create(AF_INET, SOCK_STREAM, 0);

socket_set_block($this->socket);

$result = socket_connect($this->socket, $adress, $port);

if ($this->socket==null)
return 1;

socket_write($this->socket, md5($password)."\n", strlen(md5($password))+2); //auth
$result=recv($this->socket);

/*echo 'RESULT: '.$result."\n";
echo md5($result)."\n";*/

if ($result!="PHPpass0")
return 2;
else
return 0;
}

function PHPcommand($command)
{
socket_write($this->socket, $command."\n",strlen($command)+2);
$result=recv($this->socket);

if ($result!="PHPcmd0")
return 1;
return 0;
}

function PHPdisconnect()
{
socket_write($this->socket, "PHPdisconnect\n",15);
$result=recv($this->socket);

if ($result!="PHPdisconnect0")
return 1;
return 0;
}

function PHPrecv()
{
$result=recv($this->socket);
$resp=explode(':',$result,2);
$r=new PHPresponse();
$r->from=$resp[0];
$r->msg=$resp[1];
return $r;
}

function PHPrecvMsg()
{
$result=recv($this->socket);
$resp=explode(':',$result,2);
return $resp[1];
}
}

?>


Samozrejme index a phpsend php su v rovnakom adresary na webe...

Neviete poradit ci to nema nahodou fakaheda blokovane? tie porty? ale zase Dynmapy funguju aj hawkeye online, takze nechapem uz co je tam zle... vsetko som isiel podla navodu instalacie na bukkite, + same fora po internete, aj tu som googlil ale marne...

To iste je aj s Websend, vsetko nastavene podla googlu,bukkitu, a videi, no marne, absolutne...pri websende vypisovalo nieco ako chyba pri otvarani socketu...

Dokonca mi ani ta aktivacia sms nefnguje co je tu navod na fore...

pls help, samozrejme +karma, dakujem
Obrázek

Zpět na „Minecraft, Tekkit“

Kdo je online

Uživatelé prohlížející si toto fórum: Žádní registrovaní uživatelé a 112 hostů