Parse error: syntax error, unexpected $end
El bibi
-
avion-f16 Messages postés 20368 Date d'inscription Statut Contributeur Dernière intervention -
avion-f16 Messages postés 20368 Date d'inscription Statut Contributeur Dernière intervention -
Bonjour,
j'ai une erreur lors du lancement d'un plugin que j'ai moi même modifié pour mon forum.
Erreur : Parse error: syntax error, unexpected $end in /mnt/136/sdb/5/8/guildeathalys/forum/plugins/AMP_Allods_Recrutement.php on line 171
Je sais que cela viens qu'une accolade manquante mais je ne vois pas d'où !
Voila la page concernée.
j'ai une erreur lors du lancement d'un plugin que j'ai moi même modifié pour mon forum.
Erreur : Parse error: syntax error, unexpected $end in /mnt/136/sdb/5/8/guildeathalys/forum/plugins/AMP_Allods_Recrutement.php on line 171
Je sais que cela viens qu'une accolade manquante mais je ne vois pas d'où !
Voila la page concernée.
<?php
/***********************************************************************
Copyright (C) 2005 Connor Dunn (Connorhd@mypunbb.com)
This software is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
This software is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston,
MA 02111-1307 USA
************************************************************************/
// Make sure no one attempts to run this script "directly"
if (!defined('PUN'))
exit;
// Tell admin_loader.php that this is indeed a plugin and that it is loaded
define('PUN_PLUGIN_LOADED', 1);
define('PLUGIN_VERSION', '0.1');
define('PLUGIN_URL', 'admin_loader.php?plugin=AMP_Allods_Recrutement.php');
if (isset($_POST['form_sent']))
{
$form = array_map('trim', $_POST['form']);
while (list($key, $input) = @each($form))
{
// Only update values that have changed
if ((isset($pun_config['o_'.$key])) || ($pun_config['o_'.$key] == NULL))
{
if ($pun_config['o_'.$key] != $input)
{
if ($input != '' || is_int($input))
$value = '\''.$db->escape($input).'\'';
else
$value = 'NULL';
$db->query('UPDATE '.$db->prefix.'config SET conf_value='.$value.' WHERE conf_name=\'o_'.$key.'\'') or error('Impossible de mettre à jour la configuration', __FILE__, __LINE__, $db->error());
}
}
}
while (list($id, $set) = @each($allow))
{
$db->query('UPDATE '.$db->prefix.'groups SET g_pm='.$set.' WHERE g_id=\''.$id.'\'') or error('Impossible de changer les permissions.', __FILE__, __LINE__, $db->error());
}
while (list($id, $set) = @each($limit))
{
$db->query('UPDATE '.$db->prefix.'groups SET g_pm_limit='.intval($set).' WHERE g_id=\''.$id.'\'') or error('Impossible de changer les permissions.', __FILE__, __LINE__, $db->error());
}
// Regenerate the config cache
require_once PUN_ROOT.'include/cache.php';
generate_config_cache();
redirect(PLUGIN_URL, 'Etat du recrutement mis à jour. Redirection...');
}
else
{
// Display the admin navigation menu
generate_admin_menu($plugin);
?>
<div class="block">
<h2><span>Allods Recrutement v<?php echo PLUGIN_VERSION ?></span></h2>
<div class="box">
<div class="inbox">
<p>Plugin de gestion de l'état du recrutement de la guilde.</p>
</div>
</div>
</div>
<div class="blockform">
<h2 class="block2"><span>Paramètres</span></h2>
<div class="box">
<form method="post" action="<?php echo PLUGIN_URL; ?>">
<div class="inform">
<input type="hidden" name="form_sent" value="1" />
<fieldset>
<legend>Recrutement Allods</legend>
<div class="infldset">
<table class="aligntop" cellspacing="0">
<tr>
<th scope="row">Afficher bloc de recrutement</th>
<td>
<input type="radio" name="form[allods_recruitment]" value="1"<?php if ($pun_config['o_allods_recruitment'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_recruitment]" value="0"<?php if ($pun_config['o_allods_recruitment'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Activez ou non l'affichage du bloc, puis ci-dessous, gérez l'état de votre recrutement.</span>
</td>
</tr>
<tr>
<th scope="row"><acronym title="Uniform Ressource Locator" lang="en">URL</acronym> du sujet de spécifications du recrutement</th>
<td>
<input type="text" name="form[wow_recrute_url]" size="50" maxlength="255" value="<?php echo $pun_config['o_wow_recrute_url'] ?>" />
<span>Saisissez-ici l'<acronym title="Uniform Ressource Locator" lang="en">URL</acronym> du sujet de spécifications du recrutement.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/eclaireur.jpg" alt="eclaireur" /></th>
<td>
<input type="radio" name="form[allos_eclaireur]" value="1"<?php if ($pun_config['o_allods_eclaireur'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_eclaireur]" value="0"<?php if ($pun_config['o_allods_chaman'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Eclaireurs.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/guerisseur.jpg" alt="guerisseur" /></th>
<td>
<input type="radio" name="form[allods_guerisseur]" value="1"<?php if ($pun_config['o_allods_guerisseur'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_guerisseur]" value="0"<?php if ($pun_config['o_allods_guerisseur'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Guerisseurs.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/guerrier.jpg" alt="guerrier" /></th>
<td>
<input type="radio" name="form[allods_guerrier]" value="1"<?php if ($pun_config['o_allods_guerrier'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_guerrier]" value="0"<?php if ($pun_config['o_allods_guerrier'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Guerriers.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/invocateur.jpg" alt="invocateur" /></th>
<td>
<input type="radio" name="form[allods_invocateur]" value="1"<?php if ($pun_config['o_allods_invocateur'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_invocateur]" value="0"<?php if ($pun_config['o_allods_invocateur'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Invocateurs.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/mage.jpg" alt="mage" /></th>
<td>
<input type="radio" name="form[allods_mage]" value="1"<?php if ($pun_config['o_allods_mage'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_mage]" value="0"<?php if ($pun_config['o_allods_mage'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Mages.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/paladin.jpg" alt="paladin" /></th>
<td>
<input type="radio" name="form[allods_paladin]" value="1"<?php if ($pun_config['o_allods_paladin'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_paladin]" value="0"<?php if ($pun_config['o_allods_paladin'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Paladins.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/psionique.jpg" alt="psionique" /></th>
<td>
<input type="radio" name="form[allods_psionique]" value="1"<?php if ($pun_config['o_allods_psionique'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_psionique]" value="0"<?php if ($pun_config['o_allods_psionique'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Psioniques.</span>
</td>
</tr>
<tr>
<th scope="row"><img src="./img/c/tribaliste" alt="tribaliste" /></th>
<td>
<input type="radio" name="form[allods_tribaliste]" value="1"<?php if ($pun_config['o_allods_tribaliste'] == '1') echo ' checked="checked"' ?> /> <strong>Oui</strong> <input type="radio" name="form[allods_tribaliste]" value="0"<?php if ($pun_config['o_allods_tribaliste'] == '0') echo ' checked="checked"' ?> /> <strong>Non</strong>
<span>Ouvrir ou fermer le recrutement des Tribalistes.</span>
</td>
</tr>
</table>
</div>
</fieldset>
</div>
<p class="submitend"><input type="submit" name="save" value="Enregistrer" /></p>
</form>
</div>
</div>
A voir également:
- Parse error: syntax error, unexpected $end
- Eespt technical error ✓ - Forum TNT / Satellite / Réception
- Fan error lenovo - Forum PC portable
- Pointage antenne trop faible - Forum Box et Streaming vidéo
- Cmos checksum error ✓ - Forum Carte-mère/mémoire
- Error 1962 ✓ - Forum PC fixe