Problème Ligne 113 : xmlhttprequest.php
Qu'est ce cela signifie?
Support Général
apicius46 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre apicius46
- Inscrit le : 06/08/2008
Dans mes erreurs archivés j'ai cette remarque: Undefined index: -1 Ligne 113 : xmlhttprequest.php
Qu'est que cela signifie? J'ai aussi un problème aussi avec les stats qui ne fonctionne pas(je ne suis pas chez free), est-ce lié ? Comment réparer cette erreur...
Merci d'avance pour votre aide.
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Code PHP :
97.elseif ($refresh) 98.{ 99. $array_class = array('member', 'modo', 'admin'); 100. $result = $Sql->query_while("SELECT id, login, user_id, level, contents 101. FROM " . PREFIX . "shoutbox 102. ORDER BY timestamp DESC 103. " . $Sql->limit(0, 25), __LINE__, __FILE__); 104. while ($row = $Sql->fetch_assoc($result)) 105. { 106. $row['user_id'] = (int)$row['user_id']; 107. if ($User->check_level(MODO_LEVEL) || ($row['user_id'] === $User->get_attribute('user_id') && $User->get_attribute('user_id') !== -1)) 108. $del = '<a href="javascript:Confirm_del_shout(' . $row['id'] . ');" title="' . $LANG['delete'] . '"><img src="../templates/' . get_utheme() . '/images/delete_mini.png" alt="" /></a>'; 109. else 110. $del = ''; 111. 112. if ($row['user_id'] !== -1) 113. $row['login'] = $del . ' <a style="font-size:10px;" class="' . $array_class[$row['level']] . '" href="../member/member' . url('.php?id=' . $row['user_id'], '-' . $row['user_id'] . '.php') . '">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</a>'; 114. else 115. $row['login'] = $del . ' <span class="text_small" style="font-style: italic;">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</span>'; 116. 117. echo '<p id="shout_container_' . $row['id'] . '">' . $row['login'] . '<span class="text_small">: ' . str_replace(array("n", "r"), array('', ''), ucfirst(second_parse($row['contents']))) . '</span></p>' . "n"; 118. } 119. $Sql->query_close($result); 120.}
Si ça peut aider un admin/dev
ReidLos Membre non connecté
-
Modérateur
- Voir le profil du membre ReidLos
- Inscrit le : 27/02/2009
- Site internet
- Groupes :
-
Equipe Développement
Code PHP :
97.elseif ($refresh) 98.{ 99. $array_class = array('member', 'modo', 'admin'); 100. $result = $Sql->query_while("SELECT id, login, user_id, level, contents 101. FROM " . PREFIX . "shoutbox 102. ORDER BY timestamp DESC 103. " . $Sql->limit(0, 25), __LINE__, __FILE__); 104. while ($row = $Sql->fetch_assoc($result)) 105. { 106. $row['user_id'] = (int)$row['user_id']; 107. if ($User->check_level(MODO_LEVEL) || ($row['user_id'] === $User->get_attribute('user_id') && $User->get_attribute('user_id') !== -1)) 108. $del = '<a href="javascript:Confirm_del_shout(' . $row['id'] . ');" title="' . $LANG['delete'] . '"><img src="../templates/' . get_utheme() . '/images/delete_mini.png" alt="" /></a>'; 109. else 110. $del = ''; 111. 112. if ($row['user_id'] !== -1) 113. $row['login'] = $del . ' <a style="font-size:10px;" class="' . $row['level'] !== -1 ? $array_class[$row['level']] : ''. '" href="../member/member' . url('.php?id=' . $row['user_id'], '-' . $row['user_id'] . '.php') . '">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</a>'; 114. else 115. $row['login'] = $del . ' <span class="text_small" style="font-style: italic;">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</span>'; 116. 117. echo '<p id="shout_container_' . $row['id'] . '">' . $row['login'] . '<span class="text_small">: ' . str_replace(array("n", "r"), array('', ''), ucfirst(second_parse($row['contents']))) . '</span></p>' . "n"; 118. } 119. $Sql->query_close($result); 120.}
Fait la correction comme ça...
Édité par ReidLos Le 13/05/2010 à 23h06
apicius46 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre apicius46
- Inscrit le : 06/08/2008
j'ai effectué les modifs... ca marche!!!
Merci à tous les deux et à l'équipe réactive.
Je mets le sujet réglé... Maintenant mon soucis est mon compteur de stats qui ne fonctionne plus... J'ai juste les pages vues qui marche...
@++
ReidLos Membre non connecté
-
Modérateur
- Voir le profil du membre ReidLos
- Inscrit le : 27/02/2009
- Site internet
- Groupes :
-
Equipe Développement
apicius46 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre apicius46
- Inscrit le : 06/08/2008
Je ne sais pas trop ou regardé précisément...
ReidLos Membre non connecté
-
Modérateur
- Voir le profil du membre ReidLos
- Inscrit le : 27/02/2009
- Site internet
- Groupes :
-
Equipe Développement
apicius46 Membre non connecté
Booster Bazooka
-
Booster Bazooka
- Voir le profil du membre apicius46
- Inscrit le : 06/08/2008
En fait je viens de me rendre compte que les modis ne marchent pas.
J'ai effectué les modifs somme ceci et je n'ai plus rien:
Code PHP :
<?php /*################################################## * shoutbox_mini.php * ------------------- * begin : July 29, 2005 * copyright : (C) 2005 Viarre Régis * email : [mail=crowkait@phpboost.com]crowkait@phpboost.com[/mail] * * ################################################### * * This program 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 program 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ###################################################*/ function shoutbox_mini($position, $block) { global $Cache, $LANG, $User, $CONFIG_SHOUTBOX, $nbr_members, $last_member_id, $last_member_login, $Sql; //Mini Shoutbox non activée si sur la page archive shoutbox. { load_module_lang('shoutbox'); $Cache->load('shoutbox'); //Chargement du cache ###########################Insertion############################## $shoutbox = retrieve(POST, 'shoutbox', false); if ($shoutbox) { //Membre en lecture seule? $Errorh->handler('e_readonly', E_USER_REDIRECT); $shout_contents = retrieve(POST, 'shout_contents', '', TSTRING_UNCHANGE); { //Accès pour poster. if ($User->check_level($CONFIG_SHOUTBOX['shoutbox_auth'])) { //Mod anti-flood, autorisé aux membres qui bénificie de l'autorisation de flooder. $check_time = ($User->get_attribute('user_id') !== -1 && $CONFIG['anti_flood'] == 1) ? $Sql->query("SELECT MAX(timestamp) as timestamp FROM " . PREFIX . "shoutbox WHERE user_id = '" . $User->get_attribute('user_id') . "'", __LINE__, __FILE__) : ''; { } //Vérifie que le message ne contient pas du flood de lien. $shout_contents = strparse($shout_contents, $CONFIG_SHOUTBOX['shoutbox_forbidden_tags']); if (!check_nbr_links($shout_pseudo, 0)) //Nombre de liens max dans le pseudo. if (!check_nbr_links($shout_contents, $CONFIG_SHOUTBOX['shoutbox_max_link'])) //Nombre de liens max dans le message. $Sql->query_inject("INSERT INTO " . PREFIX . "shoutbox (login, user_id, level, contents, timestamp) VALUES ('" . $shout_pseudo . "', '" . $User->get_attribute('user_id') . "', '" . $User->get_attribute('level') . "', '" . $shout_contents . "', '" . time() . "')", __LINE__, __FILE__); redirect(HOST . url(SCRIPT . '?' . QUERY_STRING, '', '&')); } else //utilisateur non autorisé! } } ###########################Affichage############################## $tpl = new Template('shoutbox/shoutbox_mini.tpl'); import('core/menu_service'); MenuService::assign_positions_conditions($tpl, $block); //Pseudo du membre connecté. if ($User->get_attribute('user_id') !== -1) 'SHOUTBOX_PSEUDO' => $User->get_attribute('login'), 'C_HIDDEN_SHOUT' => true )); else 'SHOUTBOX_PSEUDO' => $LANG['guest'], 'C_VISIBLE_SHOUT' => true )); $refresh_delay = empty($CONFIG_SHOUTBOX['shoutbox_refresh_delay']) ? 60 : $CONFIG_SHOUTBOX['shoutbox_refresh_delay']; 'SID' => SID, 'L_ALERT_TEXT' => $LANG['require_text'], 'L_ALERT_UNAUTH_POST' => $LANG['e_unauthorized'], 'L_ALERT_FLOOD' => $LANG['e_flood'], 'L_ALERT_LINK_PSEUDO' => $LANG['e_link_pseudo'], 'L_ALERT_INCOMPLETE' => $LANG['e_incomplete'], 'L_ALERT_READONLY' => $LANG['e_readonly'], 'L_DELETE_MSG' => $LANG['alert_delete_msg'], 'L_SHOUTBOX' => $LANG['title_shoutbox'], 'L_MESSAGE' => $LANG['message'], 'L_PSEUDO' => $LANG['pseudo'], 'L_SUBMIT' => $LANG['submit'], 'L_REFRESH' => $LANG['refresh'], 'L_ARCHIVES' => $LANG['archives'] )); elseif ($refresh) { $result = $Sql->query_while("SELECT id, login, user_id, level, contents FROM " . PREFIX . "shoutbox ORDER BY timestamp DESC " . $Sql->limit(0, 25), __LINE__, __FILE__); while ($row = $Sql->fetch_assoc($result)) { $row['user_id'] = (int)$row['user_id']; if ($User->check_level(MODO_LEVEL) || ($row['user_id'] === $User->get_attribute('user_id') && $User->get_attribute('user_id') !== -1)) $del = '<a href="javascript:Confirm_del_shout(' . $row['id'] . ');" title="' . $LANG['delete'] . '"><img src="../templates/' . get_utheme() . '/images/delete_mini.png" alt="" /></a>'; else $del = ''; if ($row['user_id'] !== -1) $row['login'] = $del . ' <a style="font-size:10px;" class="' . $row['level'] !== -1 ? $array_class[$row['level']] : ''. '" href="../member/member' . url('.php?id=' . $row['user_id'], '-' . $row['user_id'] . '.php') . '">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</a>'; else $row['login'] = $del . ' <span class="text_small" style="font-style: italic;">' . (!empty($row['login']) ? wordwrap_html($row['login'], 16) : $LANG['guest']) . '</span>'; echo '<p id="shout_container_' . $row['id'] . '">' . $row['login'] . '<span class="text_small">: ' . str_replace(array("n", "r"), array('', ''), ucfirst(second_parse($row['contents']))) . '</span></p>' . "n"; } $Sql->query_close($result); } ?>
Que faut il modifier?J'ai fait le dernière MAJ.. et j'ai encore ce problème
Au fait, reidlos, la librairie GD est bien activé pour mes stats, et j'ai un post à ce sujet
Merci d'avance
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
