Newbie Spellweaver
- Joined
- Feb 3, 2015
- Messages
- 30
- Reaction score
- 11
How to fix this problem ?
You must be registered to see links
Thats a server issue, check your apache logs.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
How to fix this problem ?
You must be registered to see links
Didnt i upload a fix for this? If not, i will do it tomorrow.darkshifty bro fix it this problem but pokemon-info.php doesn't working. Why ?
<?php
$page = 'information';
#Goeie taal erbij laden voor de page
include_once('language/language-pages.php');
#Pagina's opbouwen.
switch ($_GET['category']) {
#Persoonlijk openen
case "game-info":
echo $txt['informationpage'];
#Persoonlijk sluiten
break;
#Wachtwoord openen
case "pokemon-info":
?>
<script type="text/javascript">
function show_info(pokemon){
if(pokemon == "none") $("#pokemon_info").html("<?php echo $txt['choose_a_pokemon']; ?>")
else if(pokemon == "undefined") $("#pokemon_info").html()
else if(pokemon!=""){
//pokemon = pokemon.replace(" ", "_");
$("#pokemon_info").load("ajax_call/pokemon_info.php?page=pokemon-info&pokemon="+pokemon+"")
}
else $("#pokemon_info").html()
}
</script>
<center>
<div style="padding-bottom:14px;">
<select class="text_select" style="float:none;" id="pokemon" onChange="show_info(this.value)" />
<option value="none"><?php echo $txt['choosepokemon']; ?></option>
<?php
$allpokemonsql = $db->query("SELECT wild_id, naam FROM pokemon_wild ORDER BY naam ASC");
while($allpokemon = $allpokemonsql->fetch(PDO::FETCH_ASSOC)){
$allpokemon['naam_goed'] = computer_naam($allpokemon['naam']);
if(isset($_GET['pokemon']) and $_GET['pokemon'] == $allpokemon['wild_id']){
echo '<option value="'.$allpokemon['wild_id'].'" selected>'.$allpokemon['naam_goed'].'</option>';
}else{
echo '<option value="'.$allpokemon['wild_id'].'">'.$allpokemon['naam_goed'].'</option>';
}
}
?>
</select>
</div>
<div id="pokemon_info"><?php echo $txt['choose_a_pokemon']; ?></div>
<? //echo showAlert('blue','Pokemon zoeken is tijdelijk uitgezet.');?>
</center>
<?php
if(isset($_GET['pokemon'])){
?><script type="text/javascript">
show_info(<?=$_GET['pokemon']?>);
</script>
<?
}
#wachtwoord sluiten
break;
#Profiel openen
case "attack-info":
?>
<center>
<table width="660" callpadding="0" cellspacing="0" border="0">
<tr>
<td class="top_first_td" width="50"><?php echo $txt['#']; ?></td>
<td class="top_td" width="160"><?php echo $txt['name']; ?></td>
<td class="top_td" width="120"><?php echo $txt['type']; ?></td>
<td class="top_td" width="70"><?php echo $txt['att']; ?></td>
<td class="top_td" width="70"><?php echo $txt['acc']; ?></td>
<td class="top_td" width="130"><?php echo $txt['effect']; ?></td>
<td class="top_td" width="60"><?php echo $txt['ready']; ?></td>
</tr>
<?php
#Pagina nummer opvragen
if(empty($_GET['subpage'])) $subpage = 1;
else $subpage = $_GET['subpage'];
#Max aantal leden per pagina
$max = 50;
#Aantal attacks
$aantal_attacks = 600;
$aantal_paginas = ceil($aantal_attacks/$max);
$pagina = $subpage*$max-$max;
$attackquery = $db->query("SELECT naam, sterkte, soort, mis, effect_kans, effect_naam, klaar FROM aanval ORDER BY naam ASC LIMIT ".$pagina.", ".$max."");
for($number = 1; $attack = $attackquery->fetch(PDO::FETCH_ASSOC); $number ++){
$type = strtolower($attack['soort']);
if(($attack['effect_kans'] == '0') OR ($attack['effect_kans'] == '') OR (($attack['effect_naam'] != 'Sleep') AND ($attack['effect_naam'] != 'Paralyzed') AND ($attack['effect_naam'] != 'Poisoned') AND ($attack['effect_naam'] != 'Flinch') AND ($attack['effect_naam'] != 'Burn') AND ($attack['effect_naam'] != 'Freeze') AND ($attack['effect_naam'] != 'Confued'))) $effect = '-';
else $effect = $attack['effect_kans'].'% '.$attack['effect_naam'];
if($attack['klaar'] == 'ja') $klaar = '<img src="http://forum.ragezone.com/images/icons/green.png">';
else $klaar = '<img src="http://forum.ragezone.com/images/icons/red.png">';
$accuracy = 100 - $attack['mis'];
echo '<tr>
<td class="normal_first_td">'.$number.'.</td>
<td class="normal_td">'.$attack['naam'].'</td>
<td class="normal_td"><table><tr><td><div class="type '.$type.'">'.$type.'</div></td></tr></table></td>
<td class="normal_td">'.$attack['sterkte'].'</td>
<td class="normal_td">'.$accuracy.'</td>
<td class="normal_td">'.$effect.'</td>
<td class="normal_td">'.$klaar.'</td>
</tr>';
}
#Pagina systeem
$links = false;
$rechts = false;
echo '<tr><td colspan=7><br /><center><div class="pagination">';
if($subpage == 1)
echo '<span class="disabled"> < </span>';
else{
$back = $subpage-1;
echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&category='.$_GET['category'].'&subpage='.$back.'"> < </a>';
}
for($i = 1; $i <= $aantal_paginas; $i++) {
if((2 >= $i) && ($subpage == $i))
echo '<span class="current">'.$i.'</span>';
elseif((2 >= $i) && ($subpage != $i))
echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&category='.$_GET['category'].'&subpage='.$i.'">'.$i.'</a>';
elseif(($aantal_paginas-2 < $i) && ($subpage == $i))
echo '<span class="current">'.$i.'</span>';
elseif(($aantal_paginas-2 < $i) && ($subpage != $i))
echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&category='.$_GET['category'].'&subpage='.$i.'">'.$i.'</a>';
else{
$max = $subpage+3;
$min = $subpage-3;
if($subpage == $i)
echo '<span class="current">'.$i.'</span>';
elseif(($min < $i) && ($max > $i))
echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&category='.$_GET['category'].'&subpage='.$i.'">'.$i.'</a>';
else{
if($i < $subpage){
if(!$links){
echo '<span class="disabled">...</span>';
$links = True;
}
}
else{
if(!$rechts){
echo '<span class="disabled">...</span>';
$rechts = True;
}
}
}
}
}
if($aantal_paginas == $subpage)
echo '<span class="disabled"> > </span>';
else{
$next = $subpage+1;
echo '<a href="'.$_SERVER['PHP_SELF'].'?page='.$_GET['page'].'&category='.$_GET['category'].'&subpage='.$next.'"> > </a>';
}
echo "</div></center></td></tr>";
?>
</table>
</center>
<?php
break;
#standaard
default:
#Doorsturen naar persoonlijk
echo '<script type="text/javascript">
window.location.href = \'?page=information&category=game-info\';
</script>';
break;
}
?>
<?
session_start();
date_default_timezone_set('Europe/Amsterdam');
include('../includes/config.php');
include('../includes/ingame.inc.php');
$page = 'information';
$_GET['category'] = 'pokemon-info';
//Goeie taal erbij laden voor de page
include_once('../language/language-pages.php');
if (isset($_GET['pokemon']) && $_GET['pokemon'] != $txt['choosepokemon']) {
$pokemonSQL = $db->prepare("SELECT pokemon_wild.wild_id, naam, zeldzaamheid, type1, type2, gebied, wereld, COUNT(pokemon_speler.wild_id) AS hoeveelingame
FROM pokemon_wild
LEFT JOIN pokemon_speler
ON pokemon_wild.wild_id = pokemon_speler.wild_id
WHERE pokemon_wild.wild_id = :pokemon
GROUP BY pokemon_wild.wild_id");
$pokemonSQL->bindParam(':pokemon', $_GET['pokemon'], PDO::PARAM_STR);
$pokemonSQL->execute();
$info = $pokemonSQL->fetch(PDO::FETCH_ASSOC);
$levelensql = $db->prepare("SELECT * FROM levelen WHERE wild_id = :pokemon ORDER BY level ASC");
$levelensql->bindParam(':pokemon', $_GET['pokemon'], PDO::PARAM_STR);
$levelensql->execute();
$aantallevelen = $levelensql->fetchColumn();
if ($info['zeldzaamheid'] == 1) $zeldzaam = $txt['not_rare'];
elseif ($info['zeldzaamheid'] == 2) $zeldzaam = $txt['a_bit_rare'];
else $zeldzaam = $txt['very_rare'];
if (empty($info['gebied'])) $gebied = $txt['not_a_favorite_place'];
else $gebied = $info['gebied'] . ' ' . $txt['is_his_favorite_place'];
$info['type1'] = strtolower($info['type1']);
$info['type2'] = strtolower($info['type2']);
if (empty($info['type2'])) $info['type'] = '<table><tr><td><div class="type ' . $info['type1'] . '">' . $info['type1'] . '</div></td></tr></table>';
else $info['type'] = '<table><tr><td><div class="type ' . $info['type1'] . '">' . $info['type1'] . '</div></td><td> <div class="type ' . $info['type2'] . '">' . $info['type2'] . '</div></td></tr></table>';
echo '
<div style="padding-bottom: 20px;">
<table width="400">
<tr>
<td width="200"><img src="images/pokemon/' . $info['wild_id'] . '.gif" alt="normal ' . $info['naam'] . '" title="' . $info['naam'] . '"><img src="images/shiny/' . $info['wild_id'] . '.gif" alt="Shiny ' . $info['naam'] . '" title="' . $info['naam'] . '"></td>
<td width="200" valign="bottom"><div style="padding-left:8px;"># ' . $info['wild_id'] . '<br />
' . $info['naam'] . '<br />
' . $info['type'] . '
' . $info['naam'] . ' ' . $txt['is'] . ' ' . $zeldzaam . '.<br />
' . $txt['lives_in'] . ' ' . $info['wereld'] . '.<br />
' . $gebied . '<br />
' . $txt['how_much_1'] . ' ' . highamount($info['hoeveelingame']) . ' ' . $info['naam'] . 's ' . $txt['how_much_2'] . '</div>
</td>
</tr>
</table>
</div>
<table width="400">
<tr>
<td colspan="2" style="padding-right:20px;"><center><h3>' . $txt['attack&evolution'] . '</h3></center></td>
</tr>';
if ($aantallevelen == 0) {
echo '
<tr>
<td colspan="2">' . $txt['no_attack_or_evolve'] . '</td>
</tr>';
} elseif ($aantallevelen > 0) {
echo '
<tr>
<td width="100"><strong>' . $txt['level'] . '</strong></td>
<td width="100"><strong>' . $txt['evolution'] . '</strong></td>
</tr>';
while ($levelen = $levelensql->fetch(PDO::FETCH_ASSOC)) {
if ($levelen['wat'] == 'att') {
echo '
<tr>
<td>' . $levelen['level'] . '</td>
<td>' . $levelen['aanval'] . '</td>
</tr>';
} else {
$evolutieSQL = $db->query("SELECT wild_id, naam FROM pokemon_wild WHERE wild_id = '" . $levelen['nieuw_id'] . "'");
$evolutie = $evolutieSQL->fetch(PDO::FETCH_ASSOC);
}
if ($levelen['wat'] == 'evo' && $levelen['level'] < 100) {
echo '
<tr>
<td>' . $levelen['level'] . '</td>
<td><img src="images/pokemon/icon/' . $evolutie['wild_id'] . '.gif" alt="' . $evolutie['naam'] . '" title="' . $evolutie['naam'] . '"></td>
</tr>
';
} elseif ($levelen['wat'] == 'evo' && $levelen['stone'] != '') {
if (file_exists("../images/items/" . $levelen['stone'] . ".png")) {
$stone = "images/items/" . $levelen['stone'] . ".png";
} else {
$stone = "images/megastones/" . strtolower($levelen['stone']) . ".png";
}
echo '
<tr>
<td><img src="' . $stone . '" alt="' . $levelen['stone'] . '" title="' . $levelen['stone'] . '"></td>
<td><img src="images/pokemon/icon/' . $evolutie['wild_id'] . '.gif" alt="' . $evolutie['naam'] . '" title="' . $evolutie['naam'] . '"></td>
</tr>';
} elseif ($levelen['wat'] == 'evo' && $levelen['trade'] == 1) {
echo '
<tr>
<td><img src="images/icons/trade.png" alt="Trade" title="Trade"></td>
<td><img src="images/pokemon/icon/' . $evolutie['wild_id'] . '.gif" alt="' . $evolutie['naam'] . '" title="' . $evolutie['naam'] . '"></td>
</tr>';
}
}
}
echo '
<tr>
<td colspan="2" align="center"><br/><a href="?page=catched&pokemon=' . $info['wild_id'] . '" class="button">Wie heeft hem gevangen?</a></td>
</tr>';
echo '</table>';
}
Didnt i upload a fix for this? If not, i will do it tomorrow.
Verstuurd vanaf mijn SM-G920F met Tapatalk
Oh my. The code is such a mess.
Oh my. The code is such a mess.
he just saying its better you fix your release source before you share it because other people have no idea how to fix it at all
No one is interested, refrain from commenting if you do not have anything usefull to add please.
Dont be toxic, be constructive.
How to config cron jobs?
With what exactly? after registry?How to send activation code?
How to fix it?
You must be registered to see links
The readme explains how the cronjobs works
With what exactly? after registry?
Activate show errors, then i can see what is wrong. i assume you didnt adjust the settings table.
Yes.after registry sorry my english