打包機遊戲列表");
echo "打包機遊戲列表
";
$ssh = new SSH2('192.168.5.108', 22);
$public_key = file_get_contents(__DIR__."\authorized_keys");
$private_key = file_get_contents(__DIR__."\Publisher");
$key = PublicKeyLoader::load($private_key);
if ($ssh->login('Publisher', $key)) {
// echo('Connected');
} else {
die('Login Failed');
}
$dir = $ssh->exec('dir /b/on D:\Casino-Core-Type2\assets\Game');
$dirs = explode("\n",$dir);
function lensort($a,$b){
return strlen($a)-strlen($b);
}
usort($dirs,'lensort');
for ( $i=0 ; $iexec('dir /b/on D:\Casino-Core-Type2\assets\Game\\'.$dirname);
$gamedirs = explode("\n",$gamedir);
if ( count($gamedirs) > 2 ) {
echo $dirname . "
";
}
}
}
?>