Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/server/ice/addban.php')
-rw-r--r--scripts/server/ice/addban.php50
1 files changed, 0 insertions, 50 deletions
diff --git a/scripts/server/ice/addban.php b/scripts/server/ice/addban.php
deleted file mode 100644
index bc601bfa4..000000000
--- a/scripts/server/ice/addban.php
+++ /dev/null
@@ -1,50 +0,0 @@
-<?php
-
-# This shows how to use structs from PHP.
-
-if (Ice_intversion() >= 30400) {
- require 'Ice.php';
- require 'Murmur.php';
-} else {
- Ice_loadProfile();
-}
-
-try {
- if (Ice_intversion() >= 30400) {
- $ICE = Ice_initialize();
- }
-
- $base = $ICE->stringToProxy("Meta:tcp -h 127.0.0.1 -p 6502");
- $meta = $base->ice_checkedCast("::Murmur::Meta");
-
- $default = $meta->getDefaultConf();
-
- $server = $meta->getServer(1);
-
-
- $bans = $server->getBans();
-
- print_r($bans);
- foreach($bans as $ban) {
- for($i=0;$i<16;$i+=2) {
- echo sprintf("%02x%02x", $ban->address[$i], $ban->address[$i+1]);
- if ($i != 14) {
- echo ":";
- }
- }
- $mask = $ban->bits;
- echo "/$mask\n";
- }
-
- $ban = new Murmur_Ban();
- $ban->address = array(0,0,0,0,0,0,0,0,0,0,255,255,127,0,0,1);
- $ban->bits = 128;
-
- array_push($bans, $ban);
-
- $server->setBans($bans);
-
-} catch (Ice_Exception $ex) {
- print_r($ex);
-}
-?>