private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "votre mot de passe";
private $database = "uber_db";
private $link;
Pour wamp :
Code PHP :
class MySQL
{
private $connected = false;
private $hostname = "localhost";
private $username = "root";
private $password = "";
private $database = "uber_db";
private $link;
Pour les hébergements et session dédier :
Code PHP :
class MySQL
{
private $connected = false;
private $hostname = "Mysql distant ( Demandez le a votre hébergeur )";
private $username = "votre identifiant sur phpmyadmin";
private $password = "votre mot de passe de phpmyadmin";
private $database = "votrenomdebasededonnées_uber_db";
private $link;
Enregistrer le tout et voila ! ^^
Maintenant allons du coter de inc.config.php :
Code PHP :
$config['Site']['www'] = "";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "";
$config['MySQL']['database'] = "uber_db";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "127.0.0.1";
$config['MUS']['port'] = 2001;
Pour xampp :
Code PHP :
$config['Site']['www'] = "";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "votremotdepasse";
$config['MySQL']['database'] = "uber_db";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "127.0.0.1";
$config['MUS']['port'] = 2001;
Pour wamp :
Code PHP :
$config['Site']['www'] = "";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "localhost";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "";
$config['MySQL']['database'] = "uber_db";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "127.0.0.1";
$config['MUS']['port'] = 2001;
Pour les hébergements et session dédier :
Code PHP :
$config['Site']['www'] = "";
$config['Site']['hash_secret'] = "xCg532%@%gdvf^5DGaa6&*rFTfg^FD4\$OIFThrR_gh(ugf*/";
$config['MySQL']['hostname'] = "Mysql distant ( Demandez le a votre hébergeur )";
$config['MySQL']['username'] = "root";
$config['MySQL']['password'] = "votre mot de passe de phpmyadmin";
$config['MySQL']['database'] = "votrenomdebasededonnées_uber_db";
$config['MUS']['enabled'] = false;
$config['MUS']['ip'] = "votre ip ou celui de votre session dédier";
$config['MUS']['port'] = 2001;
Maintenant retourner dans le dossier uberemu puis dans le dossier bin puis x86 puis Debug . ( dosier ou vous l'avez extrait \uberEmu\bin\x86\Debug )
Puis ouvrez uber-config.conf ( Avec toujours n'importe quel éditeur de texte ) Puis nous allons modifier sa :
Code PHP :
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=
db.name=uber_db
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=30
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=500
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1
Pour xampp :
Code PHP :
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=mot de passe de phpmyadmin
db.name=uber_db
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=30
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=500
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1
Pour wampp :
Code PHP :
## MySQL Configuration
db.hostname=localhost
db.port=3306
db.username=root
db.password=
db.name=uber_db
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=30
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=500
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=127.0.0.1
Pour les sessions dédier et hébergements :
Code PHP :
## MySQL Configuration
db.hostname=Mysql distant de votre hébergeur ( Contacter lui si vous ne le connaissez pas ! )
db.port=3306
db.username=root
db.password= Mot de passe
db.name=uber_db
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=5
db.pool.maxsize=30
## Game TCP/IP Configuration
game.tcp.bindip=Ip de votre séssion ou 127.0.01 pour ce qui ont un hébergement
game.tcp.port=30000
game.tcp.conlimit=500
## MUS TCP/IP Configuration
mus.tcp.bindip=Ip de votre séssion ou 127.0.01 pour ce qui ont un hébergement
mus.tcp.port=30001
mus.tcp.allowedaddr=Ip de votre séssion ou 127.0.01 pour ce qui ont un hébergement
Enregistrer puis lancez le serveur ( Uberemu avec la tasse de café bien pour la pause ! )
ROOH ! Encore en train de bailler au corneille ? Nan mais c'est pas vrai ... Les jeunes de nos jours sont vraiment fégniants !
Bref ne vous inquiété pas c'est presque fini ^^
Ils nous reste juste a configurer le client !
Qui est placer dans le dosier inc/TPL il se nomme page-client.tpl ( Ouvrez le encore une fois avec n'importe quel éditeur de texte )
- Pour xampp
Spoiler (Voir)
Code PHP :
<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "%www%/flash_client_error",
"client.connection.failed.url" : "%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://www.habbo.fr/gamedata/external?id=external_variables",
"external.texts.txt" : "http://www.habbo.fr/gamedata/external?id=external_flash_texts",
"use.sso.ticket" : "1",
<?php
if ($forwardType > 0)
{
echo ' "forward.type" : "' . $forwardType . '",' . LB;
echo ' "forward.id" : "' . $forwardId . '",' . LB;
}
?>
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Bienvenue !",
"flash.client.url" : "%flash_client_url%",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "%flash_base%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "%flash_base%Habbo10.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "%flash_base%Habbo.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please install Adobe Flash Player.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/45_0061af58e257a7c6b931c91f771b4483/2/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
</script>
</body>
</html>
- Pour wampp
Spoiler (Voir)
Code PHP :
<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1",
"connection.info.port" : "30000",
"site.url" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "%www%/flash_client_error",
"client.connection.failed.url" : "%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://www.habbo.fr/gamedata/external?id=external_variables",
"external.texts.txt" : "http://www.habbo.fr/gamedata/external?id=external_flash_texts",
"use.sso.ticket" : "1",
<?php
if ($forwardType > 0)
{
echo ' "forward.type" : "' . $forwardType . '",' . LB;
echo ' "forward.id" : "' . $forwardId . '",' . LB;
}
?>
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Bienvenue !",
"flash.client.url" : "%flash_client_url%",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "%flash_base%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "%flash_base%Habbo10.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "%flash_base%Habbo.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please install Adobe Flash Player.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/45_0061af58e257a7c6b931c91f771b4483/2/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
</script>
</body>
</html>
- Pour hébergement et autre :
Spoiler (Voir)
[php]<body id="client" class="flashclient">
<script type="text/javascript">
var habboDefaultClientPopupUrl = "%www%/client";
</script>
<noscript>
<meta http-equiv="refresh" content="0;url=%www%/client/nojs" />
</noscript>
<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = true;
FlashExternalInterface.logLoginStep("web.view.start");
if (top == self) {
FlashHabboClient.cacheCheck();
}
var flashvars = {
"client.allow.cross.domain" : "1",
"client.notify.cross.domain" : "0",
"connection.info.host" : "127.0.0.1 ou l'ip de votre dédier !",
"connection.info.port" : "30000",
"site.url" : "%www%",
"url.prefix" : "%www%",
"client.reload.url" : "%www%/account/reauthenticate?page=/flash_client",
"client.fatal.error.url" : "%www%/flash_client_error",
"client.connection.failed.url" : "%www%/client_connection_failed",
"external.hash" : "",
"external.variables.txt" : "http://www.habbo.fr/gamedata/external?id=external_variables",
"external.texts.txt" : "http://www.habbo.fr/gamedata/external?id=external_flash_texts",
"use.sso.ticket" : "1",
<?php
if ($forwardType > 0)
{
echo ' "forward.type" : "' . $forwardType . '",' . LB;
echo ' "forward.id" : "' . $forwardId . '",' . LB;
}
?>
"sso.ticket" : "%sso_ticket%",
"processlog.enabled" : "0",
"account_id" : "0",
"client.starting" : "Bienvenue !",
"flash.client.url" : "%flash_client_url%",
"user.hash" : "",
"facebook.user" : "0",
"has.identity" : "0",
"flash.client.origin" : "popup"
};
var params = {
"base" : "%flash_base%",
"allowScriptAccess" : "always",
"menu" : "false"
};
if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}
var clientUrl = "%flash_base%Habbo10.swf";
try {
if (swfobject.getFlashPlayerVersion().major <= 9) {
clientUrl = "%flash_base%Habbo.swf";
}
} catch(e) {}
swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
</script>
<div id="overlay"></div>
<div id="client-ui" >
<div id="flash-wrapper">
<div id="flash-container">
<div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix">
<h2 class="title">Please install Adobe Flash Player.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/45_0061af58e257a7c6b931c91f771b4483/2/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
</div>
</div>
<script type="text/javascript">
$('content').show();
</script>
<noscript>
<div style="width: 400px; margin: 20px auto 0 auto; text-align: center">
<p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p>
</div>
</noscript>
</div>
</div>
<div id="content" class="client-content"></div>
</div>
<div style="display: none">
<div id="habboCountUpdateTarget">
%hotel_status%
</div>
<script language="JavaScript" type="text/javascript">
setTimeout(function() {
HabboCounter.init(600);
}, 20000);
</script>
</div>
<script type="text/javascript">
RightClick.init("flash-wrapper", "flash-container");
</script>
</body>
</html>
Voila ! vous enregistrer et op c'est partit ^^
Pour vous mettre administrateur allez dans phpmyadmin ou navicat et allez dans users cliquer sur votre speudo et dans rank mettez : 7
Et pour changez le %site_name% allez dans :
inc/tpl/head-init.tpl
ligne : 6
Et tu remplace %site_name% par ce que tu veux !
Source des images : moi et Diabu du forum de britania Dofus pour le tuto sur navicat !
Tutoriel par moi, phrase reprise pour le tutoriel sur navicat sur celui de Diabu et merci a lefou38 pour la partit %site_name%
( Version navicat & wamp non tester ! )
Voila ^^