les modification sur le module telechargement
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Reprise du message précédent
cbn tu peux aller voirKONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Il faut mettre une url avec un fichier avec extensions .
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
ce quand je clique sur ecoute la fichie s'affiche dans une autre fenetre pop up
voila download
[code=php]<?php
/*##################################################
* download.php
* -------------------
* begin : July 27, 2005
* copyright : (C) 2005 Viarre Régis
* email : crowkait@phpboost.com
*
*
###################################################
*
* 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.
*
###################################################*/
include_once('../includes/begin.php');
include_once('../download/lang/' . $CONFIG['lang'] . '/download_' . $CONFIG['lang'] . '.php'); //Chargement de la langue du module.
$get_note = !empty($_GET['note']) ? numeric($_GET['note']) : 0;
$idurl = !empty($_GET['id']) ? numeric($_GET['id']) : 0;
$idcat = !empty($_GET['cat']) ? numeric($_GET['cat']) : 0;
$cache->load_file('download'); //$CAT_DOWNLOAD et $CONFIG_DOWNLOAD en global.
$CAT_DOWNLOAD[$idcat]['name'] = !empty($CAT_DOWNLOAD[$idcat]['name']) ? $CAT_DOWNLOAD[$idcat]['name'] : '';
$download['title'] = '';
if( !empty($idurl) && !empty($idcat) )
{
$download = $sql->query_array('download', '*', "WHERE visible = 1 AND id = '" . $idurl . "' AND idcat = '" . $idcat . "'", __LINE__, __FILE__);
define('TITLE', $LANG['title_download'] . ' - ' . addslashes($download['title']));
}
elseif( !empty($idcat) )
define('TITLE', $LANG['title_download'] . ' - ' . addslashes($CAT_DOWNLOAD[$idcat]['name']));
else
define('TITLE', $LANG['title_download']);
$l_com_note = !empty($idurl) ? (!empty($get_note) ? $LANG['note'] : (!empty($_GET['i']) ? $LANG['com'] : '') ) : '';
$speed_bar = array(
$LANG['title_download'] => transid('download.php'),
$CAT_DOWNLOAD[$idcat]['name'] => empty($idurl) ? '' : transid('download.php?cat=' . $idcat, 'download-' . $idcat . '+' . url_encode_rewrite($CAT_DOWNLOAD[$idcat]['name']) . '.php'),
$download['title'] => (!empty($get_note) || !empty($_GET['i'])) ? transid('download.php?cat=' . $idcat . '&id=' . $idurl, 'download-' . $idcat . '-' . $idurl . '+' . url_encode_rewrite($download['title']) . '.php') : '',
$l_com_note => ''
);
include_once('../includes/header.php');
if( !$groups->check_auth($SECURE_MODULE['download'], ACCESS_MODULE) )
{
$errorh->error_handler('e_auth', E_USER_REDIRECT);
exit;
}
$page = !empty($_GET['p']) ? numeric($_GET['p']) : 1;
if( !empty($idurl) && !empty($CAT_DOWNLOAD[$idcat]['name']) && !empty($idcat) ) //Contenu
{
$template->set_filenames(array('download' => '../templates/' . $CONFIG['theme'] . '/download/download.tpl'));
if( !$session->check_auth($session->data, $CAT_DOWNLOAD[$idcat]['secure']) )
{
$errorh->error_handler('e_auth', E_USER_REDIRECT);
exit;
}
if( empty($download['id']) )
{
$errorh->error_handler('e_unexist_file_download', E_USER_REDIRECT);
exit;
}
if( $session->data['level'] === 2 )
{
$java = '<script type="text/javascript">
<!--
function Confirm() {
return confirm("' . $LANG['alert_delete_file'] . '");
}
-->
</script>';
$edit = ' <a href="../download/admin_download' . transid('.php?id=' . $download['id']) . '" title="' . $LANG['edit'] . '"><img src="../templates/' . $CONFIG['theme'] . '/images/' . $CONFIG['lang'] . '/edit.png" class="valign_middle" /></a>';
$del = ' <a href="../download/admin_download.php?delete=1&id=' . $download['id'] . '" title="' . $LANG['delete'] . '" onClick="javascript:return Confirm();"><img src="../templates/' . $CONFIG['theme'] . '/images/' . $CONFIG['lang'] . '/delete.png" class="valign_middle" /></a>';
$template->assign_vars(array(
'JAVA' => $java,
'EDIT' => $edit,
'DEL' => $del
));
}
//On encode l'url pour un éventuel rewriting, c'est une opération assez gourmande
$rewrited_title = ($CONFIG['rewrite'] == 1) ? url_encode_rewrite($download['title']) : '';
$rewrited_cat_title = ($CONFIG['rewrite'] == 1) ? url_encode_rewrite($CAT_DOWNLOAD[$idcat]['name']) : '';
//Notation
if( $session->data['user_id'] !== -1 ) //Utilisateur connecté
$link_note = '<a class="com" style="font-size:10px;" href="download' . transid('.php?note=' . $download['id'] . '&id=' . $idurl . '&cat=' . $idcat, '-' . $idcat . '-' . $idurl . '-0-0-' . $download['id'] . '+' . $rewrited_title . '.php?note=' . $download['id']) . '#note" title="' . $LANG['note'] . '">' . $LANG['note'] . '</a>';
else
$link_note = $LANG['note'];
$note = ($download['nbrnote'] > 0 ) ? $download['note'] : '<em>' . $LANG['no_note'] . '</em>';
//Commentaires
$link_pop = "<a class="com" href="#" onclick="popup('" . HOST . DIR . transid("/includes/com.php?i=" . $idurl . "download") . "', 'download');">";
$link_current = '<a class="com" href="' . HOST . DIR . '/download/download' . transid('.php?cat=' . $idcat . '&id=' . $idurl . '&i=0', '-' . $idcat . '-' . $idurl . '.php?i=0') . '#download">';
$link = ($CONFIG['com_popup'] == '0') ? $link_current : $link_pop;
$com_true = ($download['nbr_com'] > 1) ? $LANG['com_s'] : $LANG['com'];
$com_false = $LANG['post_com'] . '</a>';
$l_com = !empty($download['nbr_com']) ? $com_true . '</a>: ' . $download['nbr_com'] : $com_false;
$template->assign_block_vars('download', array(
'MODULE_DATA_PATH' => $template->module_data_path('download'),
'IDURL' => $download['id'],
'NAME' => $download['title'],
'CONTENTS' => $download['contents'],
'URL' => $download['url'],
'CAT' => $CAT_DOWNLOAD[$idcat]['name'],
'DATE' => date($LANG['date_format'], $download['timestamp']),
'SIZE' => ($download['size'] >= 1) ? $download['size'] . ' ' . $LANG['unit_megabytes'] : ($download['size']*1024) . ' ' . $LANG['unit_kilobytes'],
'COMPT' => $download['compt'],
'THEME' => $CONFIG['theme'],
'COM' => $link . $l_com,
'NOTE' => $note,
'LANG' => $CONFIG['lang'],
'U_DOWNLOAD_CAT' => transid('.php?cat=' . $idcat, '-' . $idcat . '+' . $rewrited_cat_title . '.php'),
'L_NOTE' => $link_note,
'L_DESC' => $LANG['description'],
'L_CAT' => $LANG['category'],
'L_DATE' => $LANG['date'],
'L_SIZE' => $LANG['size'],
'L_TIMES' => $LANG['n_time'],
'L_DOWNLOAD' => $LANG['download']
));
//Affichage et gestion de la notation
if( !empty($get_note) && !empty($CAT_DOWNLOAD[$idcat]['name']) )
{
$template->assign_vars(array(
'L_ACTUAL_NOTE' => $LANG['actual_note'],
'L_VOTE' => $LANG['vote'],
'L_NOTE' => $LANG['note']
));
if( $session->check_auth($session->data, 0) ) //Utilisateur connecté.
{
if( !empty($_POST['valid_note']) )
{
$note = numeric($_POST['note']);
//Echelle de notation.
$check_note = ( ($note >= 0) && ($note <= $CONFIG_DOWNLOAD['note_max']) ) ? true : false;
$users_note = $sql->query("SELECT users_note FROM ".PREFIX."download WHERE idcat = '" . $idcat . "' AND id = '" . $get_note . "'", __LINE__, __FILE__);
$array_users_note = explode('/', $users_note);
if( !in_array($session->data['user_id'], $array_users_note) && !empty($session->data['user_id']) && ($check_note === true) )
{
$row_note = $sql->query_array('download', 'users_note', 'nbrnote', 'note', "WHERE id = '" . $get_note . "'", __LINE__, __FILE__);
$note = ( ($row_note['note'] * $row_note['nbrnote']) + $note ) / ($row_note['nbrnote'] + 1);
$row_note['nbrnote']++;
$users_note = !empty($row_note['users_note']) ? $row_note['users_note'] . '/' . $session->data['user_id'] : $session->data['user_id']; //On ajoute l'id de l'utilisateur.
$sql->query_inject("UPDATE ".PREFIX."download SET note = '" . $note . "', nbrnote = '" . $row_note['nbrnote'] . "',
users_note = '" . $users_note . "' WHERE id = '" . $get_note . "' AND idcat = '" . $idcat . "'", __LINE__, __FILE__);
//Success.
header('location:' . HOST . DIR . '/download/download' . transid('.php?cat=' . $idcat . '&id=' . $get_note, '-' . $idcat . '-' . $get_note . '.php', '&'));
exit;
}
else
{
header('location:' . HOST . DIR . '/download/download' . transid('.php?cat=' . $idcat . '&id=' . $get_note, '-' . $idcat . '-' . $get_note . '.php', '&'));
exit;
}
}
else
{
$row = $sql->query_array('download', 'users_note', 'nbrnote', 'note', "WHERE idcat = '" . $idcat . "' AND id = '" . $get_note . "'", __LINE__, __FILE__);
$array_users_note = explode('/', $row['users_note']);
$select = '';
if( in_array($session->data['user_id'], $array_users_note) ) //Déjà voté
$select .= '<option value="-1">' . $LANG['already_vote'] . '</option>';
else
{
//Génération de l'échelle de notation.
for( $i = -1; $i <= $CONFIG_DOWNLOAD['note_max']; $i++)
{
if( $i == -1 )
$select = '<option value="-1">' . $LANG['note'] . '</option>';
else
$select .= '<option value="' . $i . '">' . $i . '</option>';
}
}
$template->assign_block_vars('note', array(
'NOTE' => ($row['nbrnote'] > 0) ? $row['note'] : '<em>' . $LANG['no_note'] . '</em>',
'SELECT' => $select,
'U_DOWNLOAD_ACTION_NOTE' => transid('.php?note=' . $get_note . '&id=' . $get_note . '&cat=' . $idcat, '-' . $idcat . '-' . $get_note . '.php?note=' . $get_note)
));
}
}
else
{
$errorh->error_handler('e_auth', E_USER_REDIRECT);
exit;
}
}
//Affichage commentaires.
if( isset($_GET['i']) )
{
$_com_vars = 'download.php?cat=' . $idcat . '&id=' . $idurl . '&i=%d';
$_com_vars_e = 'download.php?cat=' . $idcat . '&id=' . $idurl . '&i=1';
$_com_vars_r = 'download-' . $idcat . '-' . $idurl . '.php?i=%d%s';
$_com_idprov = $idurl;
$_com_script = 'download';
include_once('../includes/com.php');
$template->assign_var_from_handle('HANDLE_COM', 'com');
}
$template->pparse('download');
}
elseif( !empty($idcat) && empty($idurl) ) //Contenu de la catégorie!
{
$template->set_filenames(array('download' => '../templates/' . $CONFIG['theme'] . '/download/download.tpl'));
if( !$session->check_auth($session->data, $CAT_DOWNLOAD[$idcat]['secure']) )
{
$errorh->error_handler('e_auth', E_USER_REDIRECT);
exit;
}
$nbr_dl = $sql->query("SELECT COUNT(*) FROM ".PREFIX."download WHERE visible = 1 AND idcat = '" . $idcat . "'", __LINE__, __FILE__);
$template->assign_block_vars('link', array(
'CAT_NAME' => $CAT_DOWNLOAD[$idcat]['name'],
'NO_CAT' => ($nbr_dl == 0) ? $LANG['none_download'] : ''
));
$rewrite_title = url_encode_rewrite($CAT_DOWNLOAD[$idcat]['name']);
$template->assign_vars(array(
'L_FILE' => $LANG['file'],
'L_SIZE' => $LANG['size'],
'L_DATE' => $LANG['date'],
'L_DOWNLOAD' => $LANG['download'],
'L_NOTE' => $LANG['note'],
'L_COM' => $LANG['com'],
'U_DOWNLOAD_ALPHA_TOP' => transid('.php?sort=alpha&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=alpha&mode=desc'),
'U_DOWNLOAD_ALPHA_BOTTOM' => transid('.php?sort=alpha&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?alpha&mode=asc'),
'U_DOWNLOAD_SIZE_TOP' => transid('.php?sort=size&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=size&mode=desc'),
'U_DOWNLOAD_SIZE_BOTTOM' => transid('.php?sort=size&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=size&mode=asc'),
'U_DOWNLOAD_DATE_TOP' => transid('.php?sort=date&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=date&mode=desc'),
'U_DOWNLOAD_DATE_BOTTOM' => transid('.php?sort=date&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=date&mode=asc'),
'U_DOWNLOAD_VIEW_TOP' => transid('.php?sort=view&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=view&mode=desc'),
'U_DOWNLOAD_VIEW_BOTTOM' => transid('.php?sort=view&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=view&mode=asc'),
'U_DOWNLOAD_NOTE_TOP' => transid('.php?sort=note&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=note&mode=desc'),
'U_DOWNLOAD_NOTE_BOTTOM' => transid('.php?sort=note&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=note&mode=asc'),
'U_DOWNLOAD_COM_TOP' => transid('.php?sort=com&mode=desc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=com&mode=desc'),
'U_DOWNLOAD_COM_BOTTOM' => transid('.php?sort=com&mode=asc&cat=' . $idcat, '-' . $idcat . '+' . $rewrite_title . '.php?sort=com&mode=asc')
));
$get_sort = !empty($_GET['sort']) ? trim($_GET['sort']) : '';
switch($get_sort)
{
case 'alpha' :
$sort = 'title';
break;
case 'size' :
$sort = 'size';
break;
case 'date' :
$sort = 'timestamp';
break;
case 'view' :
$sort = 'compt';
break;
case 'note' :
$sort = 'note/' . $CONFIG_DOWNLOAD['note_max'];
break;
case 'com' :
$sort = 'nbr_com';
break;
default :
$sort = 'timestamp';
}
$get_mode = !empty($_GET['mode']) ? trim($_GET['mode']) : '';
$mode = ($get_mode == 'asc' || $get_mode == 'desc') ? strtoupper(trim($_GET['mode'])) : 'DESC';
$unget = (!empty($get_sort) && !empty($mode)) ? '?sort=' . $get_sort . '&mode=' . $get_mode : '';
//On crée une pagination si le nombre de fichiers est trop important.
include_once('../includes/pagination.class.php');
$pagination = new Pagination();
$template->assign_vars(array(
'PAGINATION' => $pagination->show_pagin('download' . transid('.php' . (!empty($unget) ? $unget . '&' : '?') . 'cat=' . $idcat . '&p=%d', '-' . $idcat . '-0-%d+' . $rewrite_title . '.php' . $unget), $nbr_dl, 'p', $CONFIG_DOWNLOAD['nbr_file_max'], 3)
));
$result = $sql->query_while("SELECT id, title, timestamp, size, compt, note, nbrnote, nbr_com
FROM ".PREFIX."download
WHERE visible = 1 AND idcat = '" . $idcat . "'
ORDER BY " . $sort . " " . $mode .
$sql->sql_limit($pagination->first_msg($CONFIG_DOWNLOAD['nbr_file_max'], 'p'), $CONFIG_DOWNLOAD['nbr_file_max']), __LINE__, __FILE__);
while( $row = $sql->sql_fetch_assoc($result) )
{
//On encode l'url pour un éventuel rewriting, c'est une opération assez gourmande
$rewrited_title = ( $CONFIG['rewrite'] == 1 ) ? url_encode_rewrite($row['title']) : '';
//On reccourci le lien si il est trop long.
$fichier = (strlen($row['title']) > 45 ) ? substr(html_entity_decode($row['title']), 0, 45) . '...' : $row['title'];
//Commentaires
$link_pop = "<a class="com" href="#" onclick="popup('" . HOST . DIR . transid("/includes/com.php?i=" . $row['id'] . "download") . "', 'download');">";
$link_current = '<a class="com" href="' . HOST . DIR . '/download/download' . transid('.php?cat=' . $idcat . '&id=' . $row['id'] . '&i=0', '-' . $idcat . '-' . $row['id'] . '.php?i=0') . '#download">';
$link = ($CONFIG['com_popup'] == '0') ? $link_current : $link_pop;
$template->assign_block_vars('link.download', array(
'NAME' => $fichier,
'CAT' => $CAT_DOWNLOAD[$idcat]['name'],
'DATE' => date($LANG['date_format'], $row['timestamp']),
'COMPT' => $row['compt'],
'NOTE' => ($row['nbrnote'] > 0) ? $row['note'] . '/' . $CONFIG_DOWNLOAD['note_max'] : '<em>' . $LANG['no_note'] . '</em>',
'SIZE' => ($row['size'] >= 1) ? $row['size'] . ' ' . $LANG['unit_megabytes'] : ($row['size']*1024) . ' ' . $LANG['unit_kilobytes'],
'COM' => $link . $row['nbr_com'] . '</a>',
'U_DOWNLOAD_LINK' => transid('.php?cat=' . $idcat . '&id=' . $row['id'], '-' . $idcat . '-' . $row['id'] . '+' . $rewrited_title . '.php')
));
}
$sql->close($result);
$template->pparse('download');
}
else
{
$template->set_filenames(array('download' => '../templates/' . $CONFIG['theme'] . '/download/download.tpl'));
$total_file = $sql->query("SELECT COUNT(*) FROM ".PREFIX."download_cat AS dc
LEFT JOIN ".PREFIX."download AS d ON d.idcat = dc.id
WHERE d.visible = 1 AND dc.aprob = 1 AND dc.secure <= '" . $session->data['level'] . "'", __LINE__, __FILE__);
$total_cat = $sql->query("SELECT COUNT(*) FROM ".PREFIX."download_cat WHERE aprob = 1 AND secure <= '" . $session->data['level'] . "'", __LINE__, __FILE__);
if( $session->data['level'] === 2 )
$edit = ' <a href="admin_download_cat.php' . SID . '" title=""><img src="../templates/' . $CONFIG['theme'] . '/images/' . $CONFIG['lang'] . '/edit.png" class="valign_middle" /></a>';
else
$edit = '';
//On crée une pagination si le nombre de catégories est trop important.
include_once('../includes/pagination.class.php');
$pagination = new Pagination();
$CONFIG_DOWNLOAD['nbr_column'] = ($total_cat > $CONFIG_DOWNLOAD['nbr_column']) ? $CONFIG_DOWNLOAD['nbr_column'] : $total_cat;
$CONFIG_DOWNLOAD['nbr_column'] = !empty($CONFIG_DOWNLOAD['nbr_column']) ? $CONFIG_DOWNLOAD['nbr_column'] : 1;
$template->assign_block_vars('cat', array(
'PAGINATION' => $show_pagin = $pagination->show_pagin('download' . transid('.php?p=%d', '-0-0-%d.php'), $total_cat, 'p', $CONFIG_DOWNLOAD['nbr_cat_max'], 3),
'EDIT' => $edit,
'TOTAL_FILE' => $total_file,
'L_CATEGORIE' => ($total_cat > 1) ? $LANG['categories'] : $LANG['category'],
'L_HOW_DOWNLOAD' => $LANG['how_file']
));
//Catégories disponibles
$column_width = floor(100/$CONFIG_DOWNLOAD['nbr_column']);
$result = $sql->query_while("SELECT ad.id, ad.name, ad.contents, ad.icon, COUNT(d.id) AS count
FROM ".PREFIX."download_cat AS ad
LEFT JOIN ".PREFIX."download AS d ON d.idcat = ad.id AND d.visible = 1
WHERE ad.aprob = 1 AND ad.secure <= '" . $session->data['level'] . "'
GROUP BY ad.id
ORDER BY ad.class
" . $sql->sql_limit($pagination->first_msg($CONFIG_DOWNLOAD['nbr_cat_max'], 'p'), $CONFIG_DOWNLOAD['nbr_cat_max']), __LINE__, __FILE__);
while( $row = $sql->sql_fetch_assoc($result) )
{
//On encode l'url pour un éventuel rewriting, c'est une opération assez gourmande
$rewrited_cat_title = ($CONFIG['rewrite'] == 1) ? url_encode_rewrite($row['name']) : '';
$template->assign_block_vars('cat.download', array(
'WIDTH' => $column_width,
'TOTAL' => $row['count'],
'CAT' => $row['name'],
'IMG_CAT' => $row['icon'],
'CONTENTS' => $row['contents'],
'U_IMG_CAT' => !empty($row['icon']) ? '<a href="../download/download' . transid('.php?cat=' . $row['id'], '-' . $row['id'] . '.php') . '"><img src="' . $row['icon'] . '" alt="" /></a><br />' : '',
'U_DOWNLOAD_CAT' => transid('.php?cat=' . $row['id'], '-' . $row['id'] . '+' . $rewrited_cat_title . '.php')
));
}
$sql->close($result);
$template->pparse('download');
}
include('../includes/footer.php');
?>[/code]
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
je veux régler le compteur de telechargement car il marche pas
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Et pour ce que tu veux faire aussi je vais te retrouver tout ça .
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
quand je mets ce code le compteur marche mas j ai le truc meme il me propose d'enregistre , ouvrir ou annule
[code=php]</p>
<p style="text-align: center;">
<a onclick="window.open('../download/count.php?id={download.IDURL}','popup','width=650,height=350,left=0,top=0,scrollbars=1');" href="#" title="{download.NAME}"><img src="{download.MODULE_DATA_PATH}/images/{download.LANG}/bouton_url.gif" alt="" /></a>
<br />[/code]
quand je mets ce code le compteur ne marche pas mais il me porpose pas d'enregistre , ouvrir ou annuler
[code=php]<p style="text-align: center;">
<a onclick="window.open('{download.URL}','popup','width=700,height=500,left=0,top=0,scrollbars=1');" onclick="document.location = 'count.php?id={download.IDDOWNLOAD}'" href="#" title="{download.NAME}"><img src="{download.MODULE_DATA_PATH}/images/{download.LANG}/bouton_url.gif" alt="" /></a>[/code]
moi je veux pas qu'il me propose d'enregistre , ouvrir ou annuler et le compteur marche
voila
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
Il faut préciser ces choses la , moi je peux pas les deviner .
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
Code PHP :
et le ompteur marche mais quand je l'enleve si me donne ca
('../download/count.php?id={download.IDURL}'
KONA Membre non connecté
Booster Fusée
-
Booster Fusée
- Voir le profil du membre KONA
- Inscrit le : 21/05/2006
- Site internet
donc met par exemple un fichier zip . mp3 ou autre pour tester .
lou98 Membre non connecté
Booster Roquette
-
Booster Roquette
- Voir le profil du membre lou98
- Inscrit le : 06/11/2007
- Site internet
http://asfaloutinghir.free.fr/video/asfalou2/video.html
Répondre
Vous n'êtes pas autorisé à écrire dans cette catégorie
