HawkEye - php

Technická podpora k herním serverům Minecraft a Tekkit
Message
Autor
Jirik998
Příspěvky: 26
Registrován: 12 říj 2012, 13:13
Reputation: 0

Re: HawkEye - php

#11 Příspěvekod Jirik998 » 29 říj 2012, 15:56

Teď jsem nainstaloval Ultrabans a web na Wedosu si sosá data od Fakahedy bez problémů. Kde je zakopanej pes u Hawkeye, já už vyzkoušel snad všechny možnosti nastaveni adresy a nic.
93.91.250.118:27997

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: HawkEye - php

#12 Příspěvekod nejento » 29 říj 2012, 16:05

Jedna věc: Za tu celou dobu, co to tu je je tam viditelné heslo do MySQL. Změň si ho!

Další věc, dej sem znova ten php soubor a tentokrát do Code a i do Spoileru.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/

Jirik998
Příspěvky: 26
Registrován: 12 říj 2012, 13:13
Reputation: 0

Re: HawkEye - php

#13 Příspěvekod Jirik998 » 29 říj 2012, 16:51

S heslem je to v pohodě, už je dávno změněné
tady je originál
Spoiler: zobrazit

Kód: Vybrat vše

<?php
   ///////////////////////////////////////////////////
   //         HawkEye Interface Config File         //
   //                 by oliverw92                  //
   ///////////////////////////////////////////////////
   //     Edit the config array below with your     //
   //     details. Make sure all strings are        //
   //     escaped. If you can't work this out,      //
   //     ask in the thread on bukkit.org.          //
   ///////////////////////////////////////////////////
   $hawkConfig = array(
               //Enter your MySQL database information
               //Do not change 'dbTable'
               "dbHost"  => "localhost:3306",
               "dbDbase" => "minecraft",
               "dbUser"  => "root",
               "dbPass"  => "",
               "dbTable" => "hawkeye",
               "dbPlayerTable" => "hawk_players",
               "dbWorldTable" => "hawk_worlds",
               
               //Set this to the password you want people to have to use to access the interface
               //Leave blank for no password
               "password" => "",
               
               //Default radius to search for if user supplies a location
               "radius" => 30,
               
               //Limit the maximum number of results that can be returned. Do not use quotes
               //Set to 0 for no limit
               "maxResults" => 0,
               
               //Language pack - default is english.php
               //You can create your own based off the english.php file,
               //then change the name below to your language file name
               "langFile" => "english.php",
               
               //Log queries to log.txt
               //Useful to keep track of who is querying what
               "logQueries" => true,
               
               //Use forum for authentication?
               //Default is false
               "forumAuth" => false,

               //The relative location for the forum to this file.
               //Default is "../forum/"
               "forumDir" => "../forum/",

               //The type of forum that will be used.
               //Default is phpbb3
               //Available types are: phpbb3 and smf
               "forumType" => "phpbb3"
               
               );
               
   //The user wants to use forumAuth
   if ($hawkConfig["forumAuth"])
   {
      //We need to require the specified forumType.  Hopefully we support it (Or the user is using their own file)
      require('./forumAuth/'.$hawkConfig['forumType'].'.php');
   }
   
   $con = mysql_connect($hawkConfig["dbHost"], $hawkConfig["dbUser"], $hawkConfig["dbPass"]);
   if (!$con)
      return error("Could not connect to MySQL Database!");
   if (!mysql_select_db($hawkConfig["dbDbase"], $con))
      return error(mysql_error());
      
   mysql_query("SET NAMES UTF8");
   
   function handleError($errno, $errstr, $errfile, $errline, array $errcontext) {
       // error was suppressed with the @-operator
       if (0 === error_reporting()) return false;
       throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
   }
      
?>


a tady mnou upravený
Spoiler: zobrazit

Kód: Vybrat vše

<?php
   ///////////////////////////////////////////////////
   //         HawkEye Interface Config File         //
   //                 by oliverw92                  //
   ///////////////////////////////////////////////////
   //     Edit the config array below with your     //
   //     details. Make sure all strings are        //
   //     escaped. If you can't work this out,      //
   //     ask in the thread on bukkit.org.          //
   ///////////////////////////////////////////////////
   $hawkConfig = array(
               //Enter your MySQL database information
               //Do not change 'dbTable'
               "dbHost"  => "avenger.fakaheda.eu",
               "dbUser"  => "gs_27997_1",
               "dbPass"  => "moje heslo",
               "dbTable" => "hawkeye",
               "dbPlayerTable" => "hawk_players",
               "dbWorldTable" => "hawk_worlds",
               
               //Set this to the password you want people to have to use to access the interface
               //Leave blank for no password
               "password" => "",
               
               //Default radius to search for if user supplies a location
               "radius" => 30,
               
               //Limit the maximum number of results that can be returned. Do not use quotes
               //Set to 0 for no limit
               "maxResults" => 0,
               
               //Language pack - default is english.php
               //You can create your own based off the english.php file,
               //then change the name below to your language file name
               "langFile" => "english.php",
               
               //Log queries to log.txt
               //Useful to keep track of who is querying what
               "logQueries" => true,
               
               //Use forum for authentication?
               //Default is false
               "forumAuth" => false,

               //The relative location for the forum to this file.
               //Default is "../forum/"
               "forumDir" => "../forum/",

               //The type of forum that will be used.
               //Default is phpbb3
               //Available types are: phpbb3 and smf
               "forumType" => "phpbb3"
               
               );
               
   //The user wants to use forumAuth
   if ($hawkConfig["forumAuth"])
   {
      //We need to require the specified forumType.  Hopefully we support it (Or the user is using their own file)
      require('./forumAuth/'.$hawkConfig['forumType'].'.php');
   }
   
   $con = mysql_connect($hawkConfig["dbHost"], $hawkConfig["dbUser"], $hawkConfig["dbPass"]);
   if (!$con)
      return error("Could not connect to MySQL Database!");
   if (!mysql_select_db($hawkConfig["dbDbase"], $con))
      return error(mysql_error());
      
   mysql_query("SET NAMES UTF8");
   
   function handleError($errno, $errstr, $errfile, $errline, array $errcontext) {
       // error was suppressed with the @-operator
       if (0 === error_reporting()) return false;
       throw new ErrorException($errstr, 0, $errno, $errfile, $errline);
   }
      
?>


zkoušel jsem i jiné formáty dbhost
- "dbHost" => "avenger.fakaheda.eu:3306",
- "dbHost" => "avenger.fakaheda.eu:3306/gs_27997_1",
atd.
93.91.250.118:27997

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: HawkEye - php

#14 Příspěvekod nejento » 29 říj 2012, 17:01

Dej sem odkaz, jak to tam vypadá.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/

Jirik998
Příspěvky: 26
Registrován: 12 říj 2012, 13:13
Reputation: 0

Re: HawkEye - php

#15 Příspěvekod Jirik998 » 29 říj 2012, 17:45

tady je odkaz
teď to píše "No database selected"
http://www.maweb.cz/index.html
web je rozpracovaný
93.91.250.118:27997

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: HawkEye - php

#16 Příspěvekod nejento » 29 říj 2012, 17:59

Dej sem ještě config HawkEye. Hesla zakryj.
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/

Jirik998
Příspěvky: 26
Registrován: 12 říj 2012, 13:13
Reputation: 0

Re: HawkEye - php

#17 Příspěvekod Jirik998 » 29 říj 2012, 18:06

config HawkEye
Spoiler: zobrazit

Kód: Vybrat vše

log:
  lava-bucket: true
  water-bucket: true
  painting-place: true
  pvp-death: true
  mob-death: true
  other-death: true
  command: true
  chat: true
  join: true
  quit: true
  door-interact: true
  open-container: true
  container-transaction: true
  item-pickup: true
  item-drop: true
  button: true
  teleport: true
  lever: true
  sign-place: true
  sign-break: true
  painting-break: true
  flint-steel: true
  block-place: true
  block-break: true
  block-burn: true
  block-fade: true
  block-form: true
  leaf-decay: true
  mushroom-grow: true
  tree-grow: true
  water-flow: false
  lava-flow: false
  explosion: true
  enderman-pickup: true
  enderman-place: true
  entity-kill: true
  other: true
general:
  max-lines: 0
  log-item-drops-on-death: false
  cleanse-period: 20m
  cleanse-age: 0
  delete-data-on-rollback: true
  log-ip-addresses: true
  debug: false
  max-radius: 0
  give-user-tool: true
  tool-block: '17'
  default-here-radius: 5
  default-tool-command: ''
  check-for-updates: true
  op-permissions: false
mysql:
  hawkeye-table: hawkeye
  port: 3306
  player-table: hawk_players
  username: gs_27997_1
  world-table: hawk_worlds
  hostname: localhost
  max-connections: 10
  password: moje heslo
  database: gs_27997_1
ignore-worlds:
- thisworldisignored
- soisthisone
version: 1.0.7b
command-filter:
- /login
- /restartsrv
- /register
block-filter:
- 140
- 150
93.91.250.118:27997

eakethet
Příspěvky: 314
Registrován: 19 led 2012, 10:33
Reputation: 0

Re: HawkEye - php

#18 Příspěvekod eakethet » 29 říj 2012, 18:25

V tom webu bude problém u hawka, že se nejspíš neprovede příkaz mysql_select_db(); kterej vypadá nějak takhle

Kód: Vybrat vše

mysql_select_db("Jmeno_databaze", $spojeni);
kde $spojeni je mysql_connect("hostname:port","jmeno_uzviatele","heslo");

Uživatelský avatar
nejento
Příspěvky: 9815
Registrován: 28 lis 2011, 14:09
Reputation: 55
Kontaktovat uživatele:

Re: HawkEye - php

#19 Příspěvekod nejento » 29 říj 2012, 18:33

Heslo si strč do těchto uvozovek ''
Obrázek

Obrázek Přidejte se ke komunitě zákazníků na FakaHeda.eu Discord! Poznejte nové lidi nebo vyřešte svůj technický problém živě: https://discord.fakaheda.eu/

eakethet
Příspěvky: 314
Registrován: 19 led 2012, 10:33
Reputation: 0

Re: HawkEye - php

#20 Příspěvekod eakethet » 29 říj 2012, 19:30

nn, v tom problém není. tady jde o tom že se to nepřipojí k db z webu, ty uvozovky jak psal nejento ti hovno pomůžou. Dej sem prosímtě odkaz nebo ty soubory co máš všechny k tomu hawkeye


Zpět na „Minecraft, Tekkit“

Kdo je online

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