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

HawkEye - php

#1 Příspěvekod Jirik998 » 28 říj 2012, 16:30

Server: 93.91.250.118:27997

Prosím o pomoc, už jsem vyzkoušel vše, ale nemohu se z mého webu připojit na databázi
nemám web u Fakahedy
Spoiler: zobrazit
<?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" => "******",
"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);
}

?>


databáze se mi vytvořila, tudíž funguje, ale při pokusu o připojení z webu to píše :
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'gs_27997_1'@'wl21-f164.wedos.net' (using password: YES) in /data/web/virtuals/30679/virtual/www/domains/hawkeye.maweb.cz/config.php on line 64
Could not connect to MySQL Database!

Když to napísi takto : "dbHost" => "mysql://avenger.fakaheda.eu:3306/gs_26997_1",

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL server host 'mysql' (0) in /data/web/virtuals/30679/virtual/www/domains/hawkeye.maweb.cz/config.php on line 63
Could not connect to MySQL Database!

Zkoušel jsem další varinty nastavení, ale bez úspěchu.
Díky předem za pomoc
93.91.250.118:27997

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

Re: HawkEye - php

#2 Příspěvekod eakethet » 28 říj 2012, 17:38

Zkus to avenger.fakaheda.eu změnit na avenger.fakaheda.eu:3306

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

Re: HawkEye - php

#3 Příspěvekod Jirik998 » 28 říj 2012, 18:31

to je to samé, taky to nejde
93.91.250.118:27997

Uživatelský avatar
Shaggy84675
Příspěvky: 1239
Věk: 28
Registrován: 23 srp 2011, 12:53
Reputation: 0
Kontaktovat uživatele:

Re: HawkEye - php

#4 Příspěvekod Shaggy84675 » 28 říj 2012, 19:00

Dal jsi sem heslo, tak si ho změň!. Jinak dej sem ten PHP v

Kód: Vybrat vše

CODE
Omluvte prosím moji nefunkčnost podpisu. Momentálně přesouvám podpis na svůj webserver.

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

Re: HawkEye - php

#5 Příspěvekod Jirik998 » 28 říj 2012, 19:32

No jo, já jsem blbej. A to že tam to heslo nemám dávat vím. Nicméně po jeho změně jsem se do phpAdmin už nedostal. Napsal jsem o pomoc na podporu.
Ale php v code přikládám
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:3306",
               "dbUser"  => "gs_27997_1",
               "dbPass"  => "xxxxxxxx",
               "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);
   }
      
?>
93.91.250.118:27997

mickes1
Příspěvky: 278
Registrován: 12 úno 2012, 01:11
Reputation: 0

Re: HawkEye - php

#6 Příspěvekod mickes1 » 29 říj 2012, 07:57

Pokud máš script na jiném hostingu než u wedosu a chceš se připojit k databázi u wedosu tak tě budu muset zklamat. Wedos nemá veřejnou databázi.
Karma potěší :)

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

Re: HawkEye - php

#7 Příspěvekod Jirik998 » 29 říj 2012, 12:56

Ne, chci se připojit z Wedosu na databázi Fakaheda. Od Fakahedy potřebuji vycucnout data do webové aplikace HawkEye. V tom by problém být neměl
93.91.250.118:27997

Uživatelský avatar
zdenda204
Příspěvky: 3617
Věk: 36
Registrován: 23 kvě 2012, 21:38
Reputation: 0

Re: HawkEye - php

#8 Příspěvekod zdenda204 » 29 říj 2012, 13:11

Jak vypada ten skript v defaultu kdyz ho stahnes?
Přijímám zakázky na skripty/pluginy v PHP/Javě za malý poplatky! A kup mi sušenku :) Obrázek Obrázek
⇨Projekt Market⇦

mickes1
Příspěvky: 278
Registrován: 12 úno 2012, 01:11
Reputation: 0

Re: HawkEye - php

#9 Příspěvekod mickes1 » 29 říj 2012, 14:27

Jirik998 píše:Ne, chci se připojit z Wedosu na databázi Fakaheda. Od Fakahedy potřebuji vycucnout data do webové aplikace HawkEye. V tom by problém být neměl

Neměl. Vyzkoušej jiný script jestli komunikuje s databází popř. napiš na sales@fakaheda.eu jestli máš veřejnou databázi nebo jestli zde není jiný problém.
Karma potěší :)

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

Re: HawkEye - php

#10 Příspěvekod Jirik998 » 29 říj 2012, 14:39

Takhle vypadá po stažení
Spoiler: zobrazit

Kód: Vybrat vše

$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,

jdu zkusit nainstalovat něco jiného s databází, jestli není problém v tom, jak psal mickes1
93.91.250.118:27997


Zpět na „Minecraft, Tekkit“

Kdo je online

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