Skip to content

Commit

Permalink
Fix an error on the IRC link and finish to translate text
Browse files Browse the repository at this point in the history
  • Loading branch information
Kcchouette committed Aug 27, 2016
1 parent e6f5430 commit 9460993
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
4 changes: 4 additions & 0 deletions config.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@
"Modify_but" => "Modify it!",
"Remove_but" => "Remove it!",
"Connect_but" => "Log in!",
"Bot:" => "Bot:",
"Bots" => "Bots",
"Add_h2" => "Add a bot",
"Modify_h2" => "Modify a bot",
"Modify_Remove_h2" => "Modify/Remove a bot",
Expand Down Expand Up @@ -116,6 +118,8 @@
"Modify_but" => "Le modifier !",
"Remove_but" => "Le supprimer!",
"Connect_but" => "Se connecter",
"Bot:" => "Bot :",
"Bots" => "Bots",
"Add_h2" => "Ajouter un bot",
"Modify_h2" => "Modifier un bot",
"Modify_Remove_h2" => "Modifier/Supprimer un bot",
Expand Down
17 changes: 8 additions & 9 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
}

if (isset($_GET["bot"]) && !empty(returnBotIRC(getBotList(), $_GET["bot"]))) {
echo '<li><a href="' . returnBotWebsite(getBotList(), $_GET["bot"]) . '" class="omgbtn omgrounded omgwarn">' . $_GET["bot"] . ' ' . $lang[$language]["IRC"] . '</a></li>';
echo '<li><a href="' . returnBotIRC(getBotList(), $_GET["bot"]) . '" class="omgbtn omgrounded omgwarn">' . $_GET["bot"] . ' ' . $lang[$language]["IRC"] . '</a></li>';
}
else if (!isset($_GET["bot"]) && !empty($irc_link)) {
echo '<li><a href="' . $irc_link . '" class="omgbtn omgrounded omgwarn">'. $irc_label . '</a></li>';
Expand All @@ -61,7 +61,7 @@
<section class="omggrid omg3columns">
<div class="omgblock">
<div class="omgborder">
<h3>Bots</h3>
<h3><?php require_once 'config.php'; echo $lang[$language]["Bots"]; ?></h3>
<p>
<?php require_once 'xdcc.php';
$bots = getBotList();
Expand All @@ -82,16 +82,15 @@
?>
</div>
<div class="omgblock omgblockof2">
<h3>Bot: <?php echo htmlspecialchars($_GET["bot"]); ?></h3>
<h3><?php require_once 'config.php'; echo $lang[$language]["Bot:"] . ' ' . htmlspecialchars($_GET["bot"]); ?></h3>
<p><div><?php
if (!isset($_GET["bot"]))
{
require_once 'config.php';

require_once 'config.php';

if (!isset($_GET["bot"])) {
echo '<div class="omgcenter">' . $lang[$language]["choose_bot"] . '</div>';
}
else
{
require_once 'config.php';
else {
require_once 'xdcc.php';

echo '<table>';
Expand Down

0 comments on commit 9460993

Please sign in to comment.