Aller au contenu

Dax

Webmaster Régulier
  • Compteur de contenus

    95
  • Inscrit(e) le

  • Dernière visite

Tout ce qui a été posté par Dax

  1. Bonjour à tous, Est-ce que quelqu'un saurait me dire pourquoi les modifications que j'apporte à mon fichier php ne se voient pas à l'écran lorsque le fichier est en ligne ? (alors que dans Dreamweaver c'est parfait) Mon but est de séparer la partie haute en deux colonnes, voici la modification code original: <div id="announce" class="block"> <h2><span><?php echo $lang_common['Announcement'] ?></span></h2> <div class="box"> <div class="inbox"> <div><?php echo $pun_config['o_announcement_message'] ?></div> </div> </div> </div> que je remplace par celui-ci: <table width="100%" border="0" cellspacing="1" cellpadding="1"> <tr> <td> <div id="announce" class="block"> <h2><?php echo $lang_common['Announcement'] ?></h2> </div> </td> <td> <div class="box"> <div class="inbox"> <div><?php echo $pun_config['o_announcement_message'] ?></div> </div> </div> </td> </tr> </table> Voici ce que j'ai malgré mes modifications et ce que je voudrais avoir (montage photo) Merci d'avance à celui ou celle qui voudra bien m'éclairer .
  2. Merci pour ta réponse. Que penses tu du script phpMySQLAutoBackup ? exemple 1 (h**p://www.dwalker.co.uk/phpmysqlautobackup/)
  3. Bonjour le Hub, J'ai testé 4 façons de faire une sauvegarde de ma bdd et je trouve certaines différences lorsque je compare les fichiers. Quel sont pour vous les plus fiables ? (donnez moi votre classement) 1. un script de sauvegarde (n°1) 2. en utilisant PhpMyAdmin 3. un autre script de sauvegarde (n°2) 4. directement depuis l'admin de mon site 1. CODE create table cl_ad ( ad_id int(11) not null auto_increment, ad_owner int(11) default '0' , ad_cat_id int(11) default '0' , ad_title varchar(255) default '0' , ad_description text , ad_date int(11) default '0' , ad_date_expire int(11) default '0' , ad_date_updated int(11) default '0' , ad_expires_after_days int(11) default '0' , ad_owner_notified tinyint(1) default '0' , ad_has_video tinyint(1) default '0' , ad_has_picture tinyint(1) default '0' , ad_has_doc int(11) default '0' , ad_views int(11) default '0' , ad_votes double(6,2) default '0.00' , ad_voters int(11) default '0' , ad_totalscore double(6,2) default '0.00' , ad_last_vote_ip varchar(20) default '0' , ad_is_validated tinyint(1) default '0' , ad_is_sold tinyint(1) default '0' , ad_is_special tinyint(1) default '0' , ad_is_premium tinyint(1) default '0' , PRIMARY KEY (ad_id) ); insert into cl_ad (ad_id, ad_owner, ad_cat_id, ad_title, ad_description, ad_date, ad_date_expire, ad_date_updated, ad_expires_after_days, ad_owner_notified, ad_has_video, ad_has_picture, ad_has_doc, ad_views, ad_votes, ad_voters, ad_totalscore, ad_last_vote_ip, ad_is_validated, ad_is_sold, ad_is_special, ad_is_premium) values ('32', '20', '72', 'MAISON DE VILLAGE', 'TRES BELLE APPARTEMENT CLIMATISE DANS MAISON AU CENTRE DU VILLAGE', '1174066444', '1210350844', '1202111808', '0', '0', '0', '4', '0', '808', '0.00', '0', '0.00', '0', '1', '0', '0', '0'); insert into cl_ad (ad_id, ad_owner, ad_cat_id, ad_title, ad_description, ad_date, ad_date_expire, ad_date_updated, ad_expires_after_days, ad_owner_notified, ad_has_video, ad_has_picture, ad_has_doc, ad_views, ad_votes, ad_voters, ad_totalscore, ad_last_vote_ip, ad_is_validated, ad_is_sold, ad_is_special, ad_is_premium) values ('33', '20', '83', 'YAMAHA VIRAGO', 'TRES BELLE MOTO VIROGO BLEU NUIT 20000KMS ANNEE 91 PORTE BAGAGES PRIX 1800', '1174067919', '1210352319', '1202111599', '0', '0', '0', '0', '0', '380', '0.00', '0', '0.00', '0', '1', '0', '0', '0'); 2. CODE CREATE TABLE IF NOT EXISTS `cl_ad` ( `ad_id` int(11) NOT NULL auto_increment, `ad_owner` int(11) default '0', `ad_cat_id` int(11) default '0', `ad_title` varchar(255) default '0', `ad_description` text, `ad_date` int(11) default '0', `ad_date_expire` int(11) default '0', `ad_date_updated` int(11) default '0', `ad_expires_after_days` int(11) default '0', `ad_owner_notified` tinyint(1) default '0', `ad_has_video` tinyint(1) default '0', `ad_has_picture` tinyint(1) default '0', `ad_has_doc` int(11) default '0', `ad_views` int(11) default '0', `ad_votes` double(6,2) default '0.00', `ad_voters` int(11) default '0', `ad_totalscore` double(6,2) default '0.00', `ad_last_vote_ip` varchar(20) default '0', `ad_is_validated` tinyint(1) default '0', `ad_is_sold` tinyint(1) default '0', `ad_is_special` tinyint(1) default '0', `ad_is_premium` tinyint(1) default '0', PRIMARY KEY (`ad_id`) ) TYPE=MyISAM AUTO_INCREMENT=559 ; -- -- Contenu de la table `cl_ad` -- INSERT INTO `cl_ad` (`ad_id`, `ad_owner`, `ad_cat_id`, `ad_title`, `ad_description`, `ad_date`, `ad_date_expire`, `ad_date_updated`, `ad_expires_after_days`, `ad_owner_notified`, `ad_has_video`, `ad_has_picture`, `ad_has_doc`, `ad_views`, `ad_votes`, `ad_voters`, `ad_totalscore`, `ad_last_vote_ip`, `ad_is_validated`, `ad_is_sold`, `ad_is_special`, `ad_is_premium`) VALUES (32, 20, 72, 'MAISON DE VILLAGE', 'TRES BELLE APPARTEMENT CLIMATISE DANS MAISON AU CENTRE DU VILLAGE', 1174066444, 1210350844, 1202111808, 0, 0, 0, 4, 0, 808, 0.00, 0, 0.00, '0', 1, 0, 0, 0); INSERT INTO `cl_ad` (`ad_id`, `ad_owner`, `ad_cat_id`, `ad_title`, `ad_description`, `ad_date`, `ad_date_expire`, `ad_date_updated`, `ad_expires_after_days`, `ad_owner_notified`, `ad_has_video`, `ad_has_picture`, `ad_has_doc`, `ad_views`, `ad_votes`, `ad_voters`, `ad_totalscore`, `ad_last_vote_ip`, `ad_is_validated`, `ad_is_sold`, `ad_is_special`, `ad_is_premium`) VALUES (33, 20, 83, 'YAMAHA VIRAGO', 'TRES BELLE MOTO VIROGO BLEU NUIT 20000KMS\r\nANNEE 91 PORTE BAGAGES PRIX 1800', 1174067919, 1210352319, 1202111599, 0, 0, 0, 0, 0, 381, 0.00, 0, 0.00, '0', 1, 0, 0, 0); 3. CODE CREATE TABLE `cl_ad` ( `ad_id` int(11) NOT NULL auto_increment, `ad_owner` int(11) default '0', `ad_cat_id` int(11) default '0', `ad_title` varchar(255) default '0', `ad_description` text, `ad_date` int(11) default '0', `ad_date_expire` int(11) default '0', `ad_date_updated` int(11) default '0', `ad_expires_after_days` int(11) default '0', `ad_owner_notified` tinyint(1) default '0', `ad_has_video` tinyint(1) default '0', `ad_has_picture` tinyint(1) default '0', `ad_has_doc` int(11) default '0', `ad_views` int(11) default '0', `ad_votes` double(6,2) default '0.00', `ad_voters` int(11) default '0', `ad_totalscore` double(6,2) default '0.00', `ad_last_vote_ip` varchar(20) default '0', `ad_is_validated` tinyint(1) default '0', `ad_is_sold` tinyint(1) default '0', `ad_is_special` tinyint(1) default '0', `ad_is_premium` tinyint(1) default '0', PRIMARY KEY (`ad_id`) ) TYPE=MyISAM AUTO_INCREMENT=534; INSERT INTO `cl_ad` (`ad_id`, `ad_owner`, `ad_cat_id`, `ad_title`, `ad_description`, `ad_date`, `ad_date_expire`, `ad_date_updated`, `ad_expires_after_days`, `ad_owner_notified`, `ad_has_video`, `ad_has_picture`, `ad_has_doc`, `ad_views`, `ad_votes`, `ad_voters`, `ad_totalscore`, `ad_last_vote_ip`, `ad_is_validated`, `ad_is_sold`, `ad_is_special`, `ad_is_premium`) values('32', '20', '72', 'MAISON DE VILLAGE', 'TRES BELLE APPARTEMENT CLIMATISE DANS MAISON AU CENTRE DU VILLAGE', '1174066444', '1210350844', '1202111808', '0', '0', '0', '4', '0', '779', '0.00', '0', '0.00', '0', '1', '0', '0', '0'); INSERT INTO `cl_ad` (`ad_id`, `ad_owner`, `ad_cat_id`, `ad_title`, `ad_description`, `ad_date`, `ad_date_expire`, `ad_date_updated`, `ad_expires_after_days`, `ad_owner_notified`, `ad_has_video`, `ad_has_picture`, `ad_has_doc`, `ad_views`, `ad_votes`, `ad_voters`, `ad_totalscore`, `ad_last_vote_ip`, `ad_is_validated`, `ad_is_sold`, `ad_is_special`, `ad_is_premium`) values('33', '20', '83', 'YAMAHA VIRAGO', 'TRES BELLE MOTO VIROGO BLEU NUIT 20000KMS ANNEE 91 PORTE BAGAGES PRIX 1800', '1174067919', '1210352319', '1202111599', '0', '0', '0', '0', '0', '352', '0.00', '0', '0.00', '0', '1', '0', '0', '0'); 4. CODE create table cl_ad ( ad_id int auto_increment primary key, ad_owner int, ad_cat_id int, ad_title varchar(255), ad_description text, ad_date int, ad_date_expire int, ad_date_updated int, ad_expires_after_days int, ad_owner_notified int, ad_has_video int, ad_has_picture int, ad_has_doc int, ad_views int, ad_votes real, ad_voters int, ad_totalscore real, ad_last_vote_ip varchar(20), ad_is_validated int, ad_is_sold int, ad_is_special int, ad_is_premium int ); insert into cl_ad (ad_id, ad_owner, ad_cat_id, ad_title, ad_description, ad_date, ad_date_expire, ad_date_updated, ad_expires_after_days, ad_owner_notified, ad_has_video, ad_has_picture, ad_has_doc, ad_views, ad_votes, ad_voters, ad_totalscore, ad_last_vote_ip, ad_is_validated, ad_is_sold, ad_is_special, ad_is_premium) values (32, 20, 72, "MAISON DE VILLAGE", "TRES BELLE APPARTEMENT CLIMATISE DANS MAISON AU CENTRE DU VILLAGE", 1174066444, 1210350844, 1202111808, 0, 0, 0, 4, 0, 755, 0, 0, 0, "0", 1, 0, 0, 0); insert into cl_ad (ad_id, ad_owner, ad_cat_id, ad_title, ad_description, ad_date, ad_date_expire, ad_date_updated, ad_expires_after_days, ad_owner_notified, ad_has_video, ad_has_picture, ad_has_doc, ad_views, ad_votes, ad_voters, ad_totalscore, ad_last_vote_ip, ad_is_validated, ad_is_sold, ad_is_special, ad_is_premium) values (33, 20, 83, "YAMAHA VIRAGO", "TRES BELLE MOTO VIROGO BLEU NUIT 20000KMS\r\nANNEE 91 PORTE BAGAGES PRIX 1800", 1174067919, 1210352319, 1202111599, 0, 0, 0, 0, 0, 330, 0, 0, 0, "0", 1, 0, 0, 0);
  4. Merci à toi !! J'ai vu hier soir que tu avais posté une solution mais je n'ai pas eu le temps de la tester, en plus si je reussit à intégrer corectement le code, il faut attendre un délai de 48 heures avant que les adsenses apparaissent. Tiens moi au courant si tu as quelque chose? Encore merci !!
  5. Merci pour tes indications mais mon problème c'est que c'est seulement ce fichier qui est utilisé pour générer les pages pour consulter mon site via le WAP. Ce code permet de créer une page index.wml avec tous les titres et une autre avec les details qui se nomme detail.wml . Donc forcément il doit pouvoir y avoir un moyen de l'intégrer. Merci quand même !
  6. Bonjour à tous, comment faire pour intégrer ce code adsense pour mobile dans mon fichier php sans causer d'erreurs ? CODE <?php $GLOBALS['google']['ad_type']='text_image'; $GLOBALS['google']['channel']=''; $GLOBALS['google']['client']='pub-xxxxxxxxxxxxxxxx'; $GLOBALS['google']['format']='mobile_double'; $GLOBALS['google']['https']=$_SERVER['HTTPS']; $GLOBALS['google']['host']=$_SERVER['HTTP_HOST']; $GLOBALS['google']['ip']=$_SERVER['REMOTE_ADDR']; $GLOBALS['google']['markup']='wml'; $GLOBALS['google']['oe']='latin1'; $GLOBALS['google']['output']='wml'; $GLOBALS['google']['ref']=$_SERVER['HTTP_REFERER']; $GLOBALS['google']['url']=$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $GLOBALS['google']['useragent']=$_SERVER['HTTP_USER_AGENT']; $google_dt = time(); google_set_screen_res(); function google_append_url(&$url, $param, $value) { $url .= '&' . $param . '=' . urlencode($value); } function google_append_globals(&$url, $param) { google_append_url($url, $param, $GLOBALS['google'][$param]); } function google_append_color(&$url, $param) { global $google_dt; $color_array = split(',', $GLOBALS['google'][$param]); google_append_url($url, $param, $color_array[$google_dt % sizeof($color_array)]); } function google_set_screen_res() { $screen_res = $_SERVER['HTTP_UA_PIXELS']; $delimiter = 'x'; if ($screen_res == '') { $screen_res = $_SERVER['HTTP_X_UP_DEVCAP_SCREENPIXELS']; $delimiter = ','; } $res_array = explode($delimiter, $screen_res); if (sizeof($res_array) == 2) { $GLOBALS['google']['u_w'] = $res_array[0]; $GLOBALS['google']['u_h'] = $res_array[1]; } } function google_get_ad_url() { $google_ad_url = 'http://pagead2.googlesyndication.com/pagead/ads?'; $google_scheme = ($GLOBALS['google']['https'] == 'on') ? 'https://' : 'http://'; foreach ($GLOBALS['google'] as $param => $value) { if ($param == 'client') { google_append_url($google_ad_url, $param, 'ca-mb-' . $GLOBALS['google'][$param]); } else if (strpos($param, 'color_') === 0) { google_append_color($google_ad_url, $param); } else if ((strpos($param, 'host') === 0) || (strpos($param, 'url') === 0)) { google_append_url($google_ad_url, $param, $google_scheme . $GLOBALS['google'][$param]); } else { google_append_globals($google_ad_url, $param); } } google_append_url($google_ad_url, 'dt', round(1000 * array_sum(explode(' ', microtime())))); return $google_ad_url; } $google_ad_handle = _AT_fopen(google_get_ad_url(), 'r'); if ($google_ad_handle) { while (!feof($google_ad_handle)) { echo fread($google_ad_handle, 8192); } fclose($google_ad_handle); } ?> Fichier php CODE <?session_start(); include_once("admin/inc.php"); $catname = " :: LA_WAP"; include_once("header_inc.php"); writeLinkedTitle(""); $catid_search = ""; $tplList=new TplLoad; $val_string=""; $val_string2=""; if ($validation == 1) { $val_string = " AND ad_is_validated = 1"; } else { $val_string = ""; } if ($validation == 1) { $val_string2 = " where ad_is_validated = 1"; } else { $val_string2 = ""; } $sql_links = "select ad_id,ad_title,ad_description,ad_date from $ads_tbl $val_string2 order by ad_id desc limit 30"; $sql_result = q ($sql_links); $num_links = mysql_num_rows($sql_result); $file_pointer = fopen("wap/index.wml", "w"); fwrite($file_pointer,"<?xml version=\"1.0\"?>\n" . "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \&quot;http://www.wapforum.org/DTD/wml_1.1.xml\">\n" . "<wml>\t<card id=\"LatestAds\" title=\"Latest ads\">\n<p><table columns=\"1\">"); fclose($file_pointer); for ($i=0; $i<$num_links; $i++) { $row = mysql_fetch_array($sql_result); $ad_id = $row["ad_id"]; $sitetitle = $row["ad_title"]; $ad_description = $row["ad_description"]; $datestamp = $row["datestamp"]; $ad_date=formatDateShort($row["ad_date"]); $fp=fopen("wap/index.wml", 'a'); fwrite($fp,"\n<tr><td><a href=\"detail.wml#wap_$ad_id\">$sitetitle</a> $ad_date1</td></tr>"); fclose($fp); } $fi=fopen("wap/index.wml", 'a'); fwrite($fi,"</table></p></card></wml>"); fclose($fi); $num_links = mysql_num_rows($sql_result); $sql_links = "select ad_id,ad_title,ad_description,user_name,user_email from $ads_tbl, $usr_tbl where ad_owner = user_id $val_string order by ad_id desc limit 10"; $sql_result = q ($sql_links); $num_links = mysql_num_rows($sql_result); for ($i=0; $i<$num_links; $i++) { $row = mysql_fetch_array($sql_result); $ad_id = $row["ad_id"]; $sitetitle = $row["ad_title"]; $ad_description = strip_tags($row["ad_description"]); $name = $row["user_name"]; $phone = $row["phone"]; $email = $row["user_email"]; $array[] = "<card id=\"wap_$ad_id\" title=\"$sitetitle\"><p>$sitetitle<br />$ad_description<br /><br />$name / $email</p></card>"; } $arrelm0=""; $arrelm1=""; $arrelm2=""; $arrelm3=""; $arrelm4=""; $arrelm5=""; $arrelm6=""; $arrelm7=""; $arrelm8=""; $arrelm9=""; $arrelm10=""; $special = ""; // DETAILED PAGES $start = "<?xml version=\"1.0\"?>\n<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \&quot;http://www.wapforum.org/DTD/wml_1.1.xml\">\n<wml>\t"; if (isset($array[0])) $arrelm0 = $array[0]; if (isset($array[1])) $arrelm1 = $array[1]; if (isset($array[2])) $arrelm2 = $array[2]; if (isset($array[3])) $arrelm3 = $array[3]; if (isset($array[4])) $arrelm4 = $array[4]; if (isset($array[5])) $arrelm5 = $array[5]; if (isset($array[6])) $arrelm6 = $array[6]; if (isset($array[7])) $arrelm7 = $array[7]; if (isset($array[8])) $arrelm8 = $array[8]; if (isset($array[9])) $arrelm9 = $array[9]; if (isset($array[10])) $arrelm10 = $array[10]; $slutt= "</wml>"; $file_pointer = fopen("wap/detail.wml", "w"); fwrite($file_pointer,"$start $arrelm0 $arrelm1 $arrelm2 $arrelm3 $arrelm4 $arrelm5 $arrelm6 $arrelm7 $arrelm8 $arrelm9 $arrelm10 $slutt"); fclose($file_pointer); $tplList->assign("wap_url",&quot;http://$url/wap/index.wml"); if (file_exists("images/rss.xml")) $tplList->assign("LA_RSS_FEED", LA_RSS_FEED); $tplList->display("latestwap.tpl"); include_once("footer_inc.php"); ?>
  7. OK c'est bon, c'était bien çà l'erreur, les fichiers étaient manquants En fait j'ai lancé ce sujet avant de faire la modif sur mon site pour être sûr de ne pas faire n'importe quoi, et donc là j'utilisais un site test avec des dossiers renomés un peu à la va vite et incomplets. La seule erreur que j'obtiens désormais est celle ci: après avoir supprimer le dossier ancien-nom-trop-long lorsque je tape : www.monsite.com/ancien-nom-trop-long (sans le slash de fin) j'obtiens un erreur 404 mais quand je tape : www.monsite.com/ancien-nom-trop-long/ (avec le slash de fin) çà fonctionne j'arrive à résoudre ce problème en laissant ce dossier présent sur le serveur même si il est vide mais c'est pas l'idéal Si vous avez une idée je suis preneur. Merci d'avance.
  8. Bonjour et merci à tous les deux !! Dan tu lis dans mes pensées car c'est la question que j'allais posé, mais lorsque je rajoute le slash final et que j'essaye en tapant l'url www.monsite.com/ancien-nom-trop-long/page-quelconque.php j'obtiens une erreur 404 et donc la redirection vers le nouveau dossier n'est pas faite. D'où peut venir le problème ?
  9. Bonjour le hub !! Quelqu'un pourrait-il me dire quoi indiquer dans mon htaccess pour que je ne perde pas mes backlinks après avoir renommer un dossier ? Une redirection permanente suffit-elle ? ancienne configuration : www.monsite.com/ancien-nom-trop-long nouvelle configuration : www.monsite.com/nouveau-nom RedirectPermanent /ancien-nom-trop-long http://www.monsite.com/nouveau-nom Merci d'avance à qui voudra bien m'éclairer !!
  10. Bonjour à tous, J'aimerai créé un champ supplémentaire obligatoire pour que sur la page de soumission le webmaster puisse indiquer la page du lien retour, et que lorsqu'il valide sa soumission, l'url du lien retour soit présente dans l'email qui m'est envoyé pour me signaler qu'un nouveau site vient d'être inscrit. Quelqu'un pourait me dire comment faire SVP
  11. Merci de t'être penché sur mon sujet, je viens d'y arriver de façon laborieuse mais çà a marché, en décochant les cases de la colonne Null et en ajoutant 0 dans le champ valeur à coté de chaque case, çà a enregistré ces nouveaux paramètres, puis en supprimant ces nouvelles valeurs et en mettant les paramêtres voulus la modification est bien prise en compte. Le sujet est donc clos, et en fait mon problème d'affichage du Rss ne venait pas de là, j'ai tout simplement supprimé la catégorie comme çà plus de problème.
  12. Bonjour à tous, J'ai un souci avec une table de ma BDD, cette table répertorie 101 catégories pour mon site d'annonces, et je ne sais pour quelle raison, une seule catégorie a été crée differement des autres, et elle me pose problème dans l'affichage de mon flux Rss à chaque fois qu'une annonce y est déposée. J'ai beau essayé de décocher ce qui est en plus par rapport aux autres catégories et cliquer sur éxécuter, la modification n'est jamais prise en compte et les paramètres sont les mêmes. Voici une capture d'écran pour mieux situé le problème, en fait il faudrait que les 4 petites cases dans la colonne Null soient décochées mais la modif n'est pas prise en compte. Pouvez m'aider à résoudre ce problème SVP ? Voici aussi un dump, le problème est à la catégorie 46 CODE -- phpMyAdmin SQL Dump-- version 2.6.4-pl3 -- http://www.phpmyadmin.net -- -- Serveur: db441.1and1.fr -- Généré le : Mercredi 19 Mars 2008 à 10:33 -- Version du serveur: 4.0.27 -- Version de PHP: 4.3.10-200.schlund.1 -- -- Base de données: `xxxxxxxxxx` -- -- -------------------------------------------------------- -- -- Structure de la table `phpclass_category` -- DROP TABLE IF EXISTS `phpclass_category`; CREATE TABLE IF NOT EXISTS `phpclass_category` ( `cat_id` int(11) NOT NULL auto_increment, `cat_fatherid` int(11) default '0', `cat_name` varchar(150) default '0', `cat_full_name` varchar(150) default '0', `cat_description` varchar(255) default '0', `cat_image` varchar(100) default '0', `cat_total` int(11) default '0', `cat_cost` int(11) default '0', `cat_latest_date` int(11) default '0', `cat_tpl` int(11) default '0', `cat_allow_ads` char(2) default '0', `lang_nor` varchar(155) default '0', `lang_eng` varchar(155) default NULL, `lang_fre` varchar(155) default NULL, `lang_ger` varchar(155) default NULL, `lang_pol` varchar(155) default NULL, PRIMARY KEY (`cat_id`), KEY `cat_fatherid` (`cat_fatherid`) ) TYPE=MyISAM AUTO_INCREMENT=104; -- -- Contenu de la table `phpclass_category` -- INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (31, 21, 'Collection', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (32, 21, 'Coupé/Sportive', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (33, 21, 'Course/Rallye', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (34, 21, 'Karting', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (35, 21, 'Mobile home', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (36, 21, 'Monospace', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (37, 21, 'Pick-up', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (38, 21, 'Pièces/Accessoires', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (39, 21, 'Poids lourds', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (40, 21, 'Remorques', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (41, 21, 'Société', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (42, 21, 'Utilitaires', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (43, 0, 'DIVERS', '0', '', 'arrow.gif', 12, 0, 0, 1, '', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (44, 43, 'Art/Collection', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (45, 43, 'Autre', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (46, 43, 'Beauté/Santé', '0', '', 'arrow.gif', 0, 0, 0, 1, 'on', '', NULL, NULL, NULL, NULL); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (47, 43, 'Bricolage/Jardinage', '0', '', 'blank.gif', 3, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (48, 43, 'Décoration', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (49, 43, 'Electroménager', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (50, 43, 'Informatique', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (51, 43, 'Jouets/Jeux', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (52, 43, 'Livres/BD', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (53, 43, 'Matériel professionnel', '0', '', 'blank.gif', 2, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (54, 43, 'Mobilier', '0', '', 'blank.gif', 1, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (55, 43, 'Multimédia', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (56, 43, 'Musique', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (57, 43, 'Sport/Loisir', '0', '', 'blank.gif', 2, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (58, 43, 'Vêtements/Chaussures/Accessoires', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (59, 0, 'EMPLOIS', '0', '', 'arrow.gif', 2, 0, 0, 1, '', '', '', '', '', ''); INSERT INTO `phpclass_category` (`cat_id`, `cat_fatherid`, `cat_name`, `cat_full_name`, `cat_description`, `cat_image`, `cat_total`, `cat_cost`, `cat_latest_date`, `cat_tpl`, `cat_allow_ads`, `lang_nor`, `lang_eng`, `lang_fre`, `lang_ger`, `lang_pol`) VALUES (60, 59, 'Demande d''emploi', '0', '', 'blank.gif', 0, 0, 0, 1, 'on', '', '', '', '', '');
  13. Je sais pas si çà peut t'aider parce que là c'est vraiment large comme fourchette, mais pour bloquer les spammeurs en provenance d'une région je crois que tu peux indiquer seulement les deux ou trois premiers chiffres de l'IP comme dans cet exemple pour bloquer des spammeurs du Niger <Limit GET> order allow,deny deny from 213.185.106 allow from all </Limit>
  14. Bonjour à tous, Je cherche un moyen de bloquer certains spammeurs en utlisant leurs adresses IP , on m'a indiqué d'utilisé un .htaccess comme ceci <Limit GET> order allow,deny deny from 91.186.10.10 allow from all </Limit> Le problème est que le spammeur sévit sur un script qui est placé ici h**p://www.monsite.com/dossier-du-script , et que j'utilise déjà un htaccess pour la réécriture d'url dans ce dossier Ma question est: ce système fonctionne-t-il si je place le htaccess à la racine ? Si la réponse est négative, alors quelqu'un pourait-il m'indiquer si cet exemple vous semble correct : CODE RewriteEngine on RewriteBase / # User-Agents with no privileges (mostly spambots/spybots/offline downloaders that ignore robots.txt) RewriteCond %{REMOTE_ADDR} ^220\.181\.33\.225 [OR] #rude bot RewriteCond %{REMOTE_ADDR} ^60\.28\.252\.77 [OR] #rude bot RewriteCond %{REMOTE_ADDR} ^69\.31\.1\.154 [OR] #rude bot RewriteCond %{REMOTE_ADDR} ^24\.86\.103\.176 [OR] #spammer RewriteCond %{REMOTE_ADDR} ^81\.95\.146\.162 [OR] #spammer RewriteCond %{REMOTE_ADDR} ^193\.252\.177\.186 [OR] #spammer RewriteCond %{REMOTE_ADDR} "^63\.148\.99\.2(2[4-9]|[3-4][0-9]|5[0-5])$" [OR] # Cyveillance spybot RewriteCond %{REMOTE_ADDR} ^12\.148\.196\.(12[8-9]|1[3-9][0-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot RewriteCond %{REMOTE_ADDR} ^12\.148\.209\.(19[2-9]|2[0-4][0-9]|25[0-5])$ [OR] # NameProtect spybot RewriteCond %{REMOTE_ADDR} ^64\.140\.49\.6([6-9])$ [OR] # Turnitin spybot RewriteCond %{HTTP_REFERER} iaea\.org [OR] # spambot RewriteCond %{HTTP_REFERER} neopets\.com [OR] # referrer spam RewriteCond %{HTTP_REFERER} spampoison\.com [OR] # looks exactly like a spambot RewriteCond %{HTTP_REFERER} riaa\.com [OR] # some bot RewriteCond %{HTTP_REFERER} cxa\.de [OR] # porn site RewriteCond %{HTTP_REFERER} filthserver\.com [OR] # porn site RewriteCond %{HTTP_REFERER} wastedpartygirls\.com [OR] # porn site RewriteCond %{HTTP_REFERER} amateurxpass\.com [OR] # porn site RewriteCond %{HTTP_REFERER} mature--young\.com [OR] # porn site RewriteCond %{HTTP_REFERER} bloglisting\.com [OR] # porn site RewriteCond %{HTTP_REFERER} nudecelebblogs\.com [OR] # porn site RewriteCond %{HTTP_REFERER} sexrabbit\.de [OR] # porn site RewriteCond %{HTTP_REFERER} busty2\.com [OR] # porn site RewriteCond %{HTTP_REFERER} adult-models\.biz [OR] # porn site RewriteCond %{HTTP_REFERER} freenudecelebrity\.net [OR] # porn site RewriteCond %{HTTP_REFERER} limolimo\.net [OR] # dont know RewriteCond %{HTTP_REFERER} shatteredreality\.net [OR] # spammer site RewriteCond %{HTTP_USER_AGENT} ^[A-Z]+$ [OR] # spambot RewriteCond %{HTTP_USER_AGENT} anarchie [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} cherry.?picker [NC,OR] # spambot RewriteCond %{HTTP_USER_AGENT} "compatible ; MSIE 6.0" [OR] # spambot (note extra space before semicolon) RewriteCond %{HTTP_USER_AGENT} crescent [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} "^DA \d\.\d+" [OR] # OD RewriteCond %{HTTP_USER_AGENT} "DTS Agent" [OR] # OD RewriteCond %{HTTP_USER_AGENT} "^Download" [OR] # OD RewriteCond %{HTTP_USER_AGENT} EasyDL/\d\.\d+ [OR] # OD RewriteCond %{HTTP_USER_AGENT} e?mail.?(collector|magnet|reaper|siphon| sweeper|harvest|collect|wolf) [NC,OR] # spambot RewriteCond %{HTTP_USER_AGENT} express [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} extractor [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} "Fetch API Request" [OR] # OD RewriteCond %{HTTP_USER_AGENT} flashget [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} FlickBot [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} FrontPage [OR] # stupid user trying to edit my site RewriteCond %{HTTP_USER_AGENT} getright [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} go.?zilla [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} "efp_AT_gmx\.net" [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} grabber [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} imagefetch [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} httrack [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} "Indy Library" [OR] # spambot RewriteCond %{HTTP_USER_AGENT} "^Internet Explore" [OR] # spambot RewriteCond %{HTTP_USER_AGENT} ^IE\ \d\.\d\ Compatible.*Browser$ [OR] # spambot RewriteCond %{HTTP_USER_AGENT} "LINKS ARoMATIZED" [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} "Microsoft URL Control" [OR] # spambot RewriteCond %{HTTP_USER_AGENT} "mister pix" [NC,OR] # rude bot RewriteCond %{HTTP_USER_AGENT} "^Mozilla/4.0$" [OR] # dumb bot RewriteCond %{HTTP_USER_AGENT} "mister pix" [NC,OR] # rude bot RewriteCond %{HTTP_USER_AGENT} "^Mozilla/4.0$" [OR] # dumb bot RewriteCond %{HTTP_USER_AGENT} "^Mozilla/\?\?$" [OR] # formmail attacker RewriteCond %{HTTP_USER_AGENT} MSIECrawler [OR] # IE's "make available offline" mode RewriteCond %{HTTP_USER_AGENT} ^NG [OR] # unknown bot RewriteCond %{HTTP_USER_AGENT} offline [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} net.?(ants|mechanic|spider|vampire|zip) [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} nicerspro [NC,OR] # spambot RewriteCond %{HTTP_USER_AGENT} ninja [NC,OR] # Download Ninja OD RewriteCond %{HTTP_USER_AGENT} NPBot [OR] # NameProtect spybot RewriteCond %{HTTP_USER_AGENT} PersonaPilot [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} snagger [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} Sqworm [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} SurveyBot [OR] # rude bot RewriteCond %{HTTP_USER_AGENT} tele(port|soft) [NC,OR] # OD RewriteCond %{HTTP_USER_AGENT} TurnitinBot [OR] # Turnitin spybot RewriteCond %{HTTP_USER_AGENT} web.?(auto|bandit|collector|copier|devil|downloader|fetch|hook|mole| miner|mirror|reaper|sauger|sucker|site|snake|stripper|weasel|zip) [NC,OR] # ODs RewriteCond %{HTTP_USER_AGENT} vayala [OR] # dumb bot, doesn't know how to follow links, generates lots of 404s RewriteCond %{HTTP_USER_AGENT} zeus [NC,OR] # Below are filtered requests (mostly virus and other security holes sniffers) RewriteCond %{REQUEST_URI} formmail [NC,OR] RewriteCond %{REQUEST_URI} _vti_bin [NC,OR] RewriteCond %{REQUEST_URI} MSOffice [OR] RewriteCond %{REQUEST_URI} mail.?(pl|cgi) [NC] RewriteRule .* - [F,L] RewriteRule abuse templates/scammers.html RewriteRule ^([a-zA-Z0-9]*).html detail.php?siteid=$1 RewriteRule rally-cars-for-sale.php index.php?catid=1&set_add_ad_cat= RewriteRule race-cars-for-sale.php index.php?catid=3&set_add_ad_cat= RewriteRule trackday-cars-for-sale.php index.php?catid=5&set_add_ad_cat= RewriteRule karts-for-sale.php index.php?catid=7&set_add_ad_cat= RewriteRule trailers-for-sale.php index.php?catid=9&set_add_ad_cat= RewriteRule uk-racing-circuits.php motorsportlocations.php?catid=1 RewriteRule drag-strips.php motorsportlocations.php?catid=4 RewriteRule uk-hillclimbs.php motorsportlocations.php?catid=5 RewriteRule uk-inactive-racing-circuits.php motorsportlocations.php?catid=8 RewriteRule indoor-kart-circuits.php motorsportlocations.php?catid=11 RewriteRule outdoor-kart-circuits.php motorsportlocations.php?catid=12 RewriteRule motor-racing-museums.php motorsportlocations.php?catid=7 RewriteRule oval-racing-circuits.php motorsportlocations.php?catid=3 RewriteRule rally-stages.php motorsportlocations.php?catid=10 RewriteRule speed-venues.php motorsportlocations.php?catid=6 RewriteRule street-circuits.php motorsportlocations.php?catid=2 RewriteRule trackday-airfields.php motorsportlocations.php?catid=9 RewriteRule dadson-kart-challenge.php motorsportlocations.php?seriesid=2 RewriteRule wscc-speed-series-venues.php motorsportlocations.php?seriesid=1 <Files *> order deny,allow #deny from 84.92.125.171 #nigerian spammer deny from 213.185.106.24 deny from 213.185.106 #some dutch scammer deny from 213.181.88.58 deny from 213.181.88 deny from 87.106.29.229 deny from 87.106.29 # Nigerian/African 419 Scammers IP addresses follow: deny from 12.166.96.32/27 41.220.64.0/20 41.223.248.0/22 61.11.230.112/29 62.56.128.0/17 62.56.235. 62.56.236. 62.56.244.0/22 62.56.248. 62.128.160.0/20 62.173.32.0/19 62.192.128.0/19 62.192.140.250 62.193.160.0/19 63.70.178. 63.73.58. 63.100.193. 63.103.138. 63.103.139.64/26 63.103.140.0/22 63.109.245.168/29 63.109.248.128/25 63.122.154. 64.14.48.128/26 64.110.30. 64.110.31. 64.110.64.16/28 64.110.76.0/23 64.110.81. 64.110.93.16/28 64.110.93.176/28 64.110.147. 65.209.91. 65.209.92. 66.18.64.0/19 66.110.31. 66.178.7.16/29 66.178.7.32/28 66.178.46.0/24 66.178.55. 66.178.62. 66.178.80.176/29 66.178.81.64/29 66.199.241.82 66.205.20. 80.87.64.0/19 80.88.128.0/20 80.88.129. 80.88.130. 80.88.131. 80.88.132.0/26 80.88.132.64/27 80.88.132.104/29 80.88.132.128/26 80.88.132.192/27 80.88.132.224/28 80.88.132.240/29 80.88.133.0/25 80.88.134.0/26 80.88.134.64/29 80.88.136. 80.88.137. 80.88.138.0/25 80.88.138.128/26 80.88.138.192/27 80.88.139.0/25 80.88.139.128/26 80.88.139.192/27 80.88.139.224/28 80.88.140. 80.88.141.0/25 80.88.141.128/27 80.88.142. 80.88.143.128/24 80.88.144.0/23 80.88.146. 80.88.147. 80.88.148. 80.88.149.0/25 80.88.149.128/26 80.88.149.192/28 80.88.150. 80.88.151. 80.88.152. 80.88.153. 80.88.154.32/27 80.88.154.72/29 80.88.154.80/29 80.88.154.96/28 80.88.155.0/25 80.88.155.128/27 80.88.155.160/29 deny from 80.78.18.88/29 80.78.18.96/27 80.78.18.128/29 80.179.102.0/24 80.179.107.64/27 80.179.107.224/29 80.179.128.0/17 80.231.4.0/23 80.247.136.0/24 80.247.137.0/24 80.247.141.32/27 80.247.141.64/26 80.247.141.128/25 80.247.142.0/24 80.247.147.16/28 80.247.147.32/29 80.247.147.64/27 80.247.147.96/28 80.247.151.0/24 80.247.153.0/24 80.247.156.0/26 80.247.156.128/28 80.247.157.0/24 80.247.159.0/24 80.248.0.0/20 80.248.64.0/23 80.248.70.0/20 80.248.64.0/20 80.250.32.0/20 80.255.40.48/28 80.255.40.96/29 80.255.40.112/28 80.255.40.128/28 80.255.40.192/28 80.255.40.224/27 80.255.40.240/28 80.255.43. 80.255.46.0/29 80.255.46.16/28 80.255.46.64/29 80.255.59.19 80.255.59.0/24 81.18.32.0/20 81.18.40.0/24 81.18.42.0/24 81.23.194.0/27 81.23.194.64/27 81.23.194.128/25 81.23.195.0/24 81.23.196.0/25 81.23.196.128/29 81.23.200.0/21 81.24.0.0/20 81.91.224.0/20 81.199.0.0/16 81.199.6.0/24 81.199.7.0/24 81.199.72.0/22 81.199.76.0/24 81.199.82.0/23 81.199.84.0/22 81.199.84. 81.199.85. 81.199.86. 81.199.87. 81.199.88. 81.199.89. 81.199.90.0/24 81.199.94.0/23 81.199.108.0/22 81.199.124.0/22 81.199.240.0/21 82.128.0.0/17 83.229.100.0/23 84.254.188.3 84.254.128.0/18 deny from 155.239.0.0/16 192.116.64.0/18 192.116.128.0/18 192.116.152.0/21 193.110.2.0/23 193.189.0.0/18 193.189.64.0/23 193.189.128. 193.219.192.0/18 193.220.0.0/16 193.220.26.0/24 193.220.30.0/26 193.220.30.64/27 193.220.31.0/26 193.220.31.64/27 193.220.45.0/25 193.220.47.0/25 193.220.77.0/26 193.220.187.0/26 193.220.187.128/27 195.8.22. 195.44.168.0/21 195.44.176.0/21 195.137.13. 195.137.14. 195.166.224.0/19 195.166.237.40 195.166. 195.219.176. 195.225.62.0/23 195.245.108.0/23 196.1.176.0/20 196.3.60.0/22 196.3.180.0/22 196.29.208.0/20 196.38.110.0/23 196.45.192.0/18 196.46.240.0/21 196.46.144.0/22 196.200.0.0/20 196.200.64.0/20 196.200.112.0/20 196.201.64.0/19 196.201.64.128/25 196.201.65.0/24 196.202.160.0/19 196.202.224.0/21 196.207.0.0/20 196.207.128.0/18 196.207.192.0/18 196.207.247.0/24 196.220.0.0/19 204.118.170.0/24 209.88.163. 209.101.84. 209.159.164. 209.159.166.0/24 209.198.240.0/23 209.198.242.16/28 209.198.242.96/29 209.198.242.104/30 209.198.242.108/31 209.198.242.128/27 209.198.246.240/28 212.96.2.0/23 212.96.4. 212.96.28. 212.96.29. 212.96.30. 212.100.64.0/19 212.165.128.0/17 212.165.132.64/27 212.165.135. 212.165.140.16/29 212.165.140.64/26 212.165.140.128/25 212.165.141.0/24 212.165.147.0/26 212.165.147.128/26 212.199.108.0/24 212.199.251.0/24 212.247.93.0/24 deny from 213.136.96.0/24 213.136.116.0/24 213.140.62.0/23 213.150.192.0/23 213.166.160.0/19 213.181.64.0/19 213.185.96.0/21 213.185.106.0/24 213.185.112. 213.185.113.0/26 213.185.124. 213.187.135. 213.187.145. 213.211.128.0/18 213.211.188.0/24 213.232.96. 213.255.193. 213.255.195.0/25 213.255.195.128/27 213.255.198. 213.255.199. 216.72.104.0/21 216.74.187.0/24 216.129.147.128/28 216.129.159. 216.133.174. 216.147.132.144/28 216.147.132.160/28 216.236.200.96/28 216.236.202.96/28 216.236.205.0/24 216.236.222.128/26 216.250.195.0/27 216.250.195.64/26 216.250.221.0/24 216.250.222.0/24 216.252.176.0/24 216.252.177.0/24 216.252.231.0/25 216.252.245.0/24 217.10.163.128/26 217.10.163.192/27 217.10.163.224/27 217.10.166.0/26 217.10.166.64/28 217.10.169.0/24 217.10.170.0/24 217.10.171.0/24 217.10.173.0/26 217.10.182.0/27 217.10.184.0/24 217.14.80.0/20 217.15.124.0/25 217.20.241.0/25 217.20.241.128/29 217.20.241.136/29 217.20.241.144/28 217.20.241.160/29 217.20.241.168/29 217.20.241.176/29 217.20.241.184/29 217.20.241.192/29 217.20.241.200/29 217.20.241.208/29 217.20.242.0/24 217.20.243.24/29 217.20.243.32/27 217.78.64.0/20 217.117.0.0/20 217.146.3.144/28 217.146.3.160/28 217.146.3.176/29 217.146.3.224/27 217.146.4.64/26 217.146.5. 217.146.6.0/25 217.146.6.160/27 217.146.7. 217.146.8.0/25 217.146.9. 217.146.10.128/25 217.146.11.0/25 217.146.12. 217.146.13. 217.146.14.0/25 217.146.15.0/25 217.146.16.0/27 217.146.16.32/29 217.194.140.0/22 217.194.144.0/20 217.20.242.0/27 217.20.242.32/28 217.20.242.48/29 # Tentative CIDR block for 16,777,216 AfriNIC assigned IPs #deny from 41.0.0.0/8 # Pan Am Sat Nigeria and South Africa deny from 216.139.160.0/19 216.139.176.136/29 # Added Goldenlines.net.il (Israel) because of Open Proxies used by Nigerian scammers deny from 80.179.244.0/24 # The CIDRs below are Canadian Satellite ISPs that appear to have reassigned these IP blocks to Nigeria deny from 64.86.155.0/24 64.201.33.0/24 216.185.79.0/24 # added this German ISP on 5/1/05, probably reassigned to Nigeria: 62.192.128.0/19 # Added Sky-Vision satellite services for African and Eastern European Internet Cafes deny from 83.229.64.0/18 217.194.144.0/20 # Kenya, Somalia, Zimbabwe, Ghana and some misc Nigerian IPs deny from 196.200.0.0/16 196.201.0.0/16 # Added New Skies Satellite Service (Nigeria + Africa) on Dec 7, 2005: deny from 66.178.0.0/17 deny from 66.178.0.0/17 # Amsterdam, The Netherlands Versatel Nederland DSL-NAT Customers - Lottery and 419 scammers deny from 62.59.36.0/22 62.59.40.0/21 62.59.48.0/22 82.93. 82.168.0.0/14 # Italian Satellite ISP for Nigeria added 04/08/2006 deny from 83.137.61.0/24 # Ironlinkus.com Satellite Services (Africa - used by scammers) - added on 08/08/2006 deny from 216.118.252.0/24 216.118.253.0/24 # End Nigerian/African blocklist # Turkish 419 scammers: deny from 66.199.224.0/19 72.36.168.153/29 85.98.160.0/20 212.174.113.0/24 # Turkey Telecom entire CIDRs: 85.98.128.0/17 212.174.0.0/17 - for future blocking # Added CHINANET Guangdong province network, Beijing, China, on 11/16/05 deny from 219.128.0.0/13 219.136.0.0/15 220.181.0.0/16 # Add other blocked domain names or IP addresses here, starting with "deny from " without quotes # If you find that you need to poke a hole in the blocklist, for legitimate visitors, follow this example: allow from 123.456.789.0 # Add "allow from" IP addresses, or CIDR Ranges, after all of the "deny from" items, just before the closing Files tag. # Everything not included within these deny from ranges is PERMITTED by the allow portion of the directive. </Files> <Files 403.shtml> order allow,deny allow from all </Files> # This prevents web browsers or spiders from seeing your .htaccess directives: <Files .htaccess> deny from all </Files> # End of file
  15. J'ai aussi essayé ce petit code qui devrait permettre de créer un fichier xml contenant le nom des membres suivis de leurs codes de confirmation respectifs, seulement il commence à créer le fichier puis bloque à cause d'une erreur. Voici ce qui est affiché lorsque je consulte le fichier xml, seul le dernier membre apparait et pas les autres: Un nom contenait un caractère non valide. Erreur de traitement de la ressource http://www.monsite.com/verification.xml <Verify code><user><name>Dax</name><code>1938ereWJ</code></user> ------------^ <? include_once("admin/inc.php"); $writeStr=""; $writeStr.="<Verify code>"; $mysql_user = "select user_name, user_verify_code from $usr_tbl"; $result = q ($mysql_user); while ($row=mysql_fetch_array($result)) { $user_name = $row["user_name"]; $user_verify_code = $row["user_verify_code"]; $writeStr.="<user><name>$user_name</name><code>$user_verify_code</code></user>\n"; } $writeStr.="</Verify code>\n"; $fp = fopen("verification.xml","w+"); fwrite($fp,$writeStr); fclose($fp); ?> Si je pouvais afficher tous les codes il me serait facile d'envoyer de nouveau les liens de confirmations, auriez vous une idée du pourquoi çà coince ?
  16. Bonjour à tous, Lorsqu'un membre s'inscrit sur mon site, un mail contenant un lien pour confirmer son adresse email lui est envoyé, seulement il arrive parfois que ce mail ne soit pas envoyé pour des raisons que j'ignore. Ce que j'aimerai proposer c'est un code qui permette de récupérer le code de vérification présent dans la base de données et de l'envoyer de nouveau au membre qui en fait la demande. Je ne suis pas expert donc j'ai essayé de m'inspirer de ce code qui permet d'envoyer un nouveau mot de passe lorsqu'un membre a oublié le sien, mais aussi de se connecter à son espace membre. CODE <?$msg = ""; if (isset($_GET["logout"])) { session_start(); $_SESSION = array(); session_destroy(); } else session_start(); include_once("admin/inc.php"); $pagename = $sitename . " - " . LA_LOGIN; include_once("header_inc.php"); writeLinkedTitle(""); if ($auto) include "update.php"; if (!empty($_SESSION["valid_user"])) { echo "<blockquote><p><b>" . LA_ALREADY_LOGGED . "</b><br>"; echo LA_ALREADY_LOGGED_DESC . "</p></blockquote>"; include("footer_inc.php"); exit; } if (empty($set_outer_color)) { $set_outer_color = "#A9B8D1"; } if (empty($set_inner_color)) { $set_inner_color = "#FFFFFF"; } if (empty($set_descr_color)) { $set_descr_color = "#FFFFFF"; } if (isset($_POST["submit"]) AND !isset($_REQUEST["forgot"])) { $username=""; $password=""; if (isset($_POST["username"])) $username = htmlspecialchars($_POST["username"]); if (isset($_POST["password"])) $password = htmlspecialchars($_POST["password"]); $username=trim(getParam("username","")); $password=trim(getParam("password","")); $sql = "select user_status,user_verify_code,user_approved,user_id,user_name,user_email from $usr_tbl where user_email = '$username' AND user_pass_md5 = md5('$password')"; $result = q($sql); $num_check = mysql_num_rows($result); if ($num_check==1) { $row_line = mysql_fetch_array($result); $status = $row_line["user_status"]; $verify_code = $row_line["user_verify_code"]; $approve = $row_line["user_approved"]; $user_id = $row_line["user_id"]; $user_email = $row_line["user_email"]; $name = $row_line["user_name"]; if ($status == 1) $msg = LA_BLOCKED_LOGIN; elseif ($verify_code AND $opt_verify) $msg = LA_NEED_TO; elseif ($approve_mem AND !$approve) $msg = LA_WAIT_APP; else { $_SESSION["valid_user"] = $user_id; $_SESSION["user_name"] = $name; $_SESSION["user_email"] = $user_email; addLoginItem($user_id); addToHistory(1,$user_id,"",""); // Redirect user to correct page if (!empty($_REQUEST["redirect_to"])) redirect($_REQUEST["redirect_to"]); else redirect("member.php"); } } else { // Failed login //$msg = writeHeadLine(LA_WARNING,"red"); $msg = $msg . LA_NOT_AUTHORIZED; addToHistory(13,"","","$username"); } } elseif (isset($_REQUEST["forgot"]) AND isset($_POST["email"])) { $email = $_POST["email"]; $new_password = generatePassword(5); if (($email)) { $result = q ("select user_email from $usr_tbl where user_email = '$email'"); $count_results = mysql_num_rows($result); if ($count_results>0) { $sql="update $usr_tbl set user_pass_md5 = md5('$new_password') where user_email = '$email'"; $res = q ($sql); $msg = writeHeadLine(LA_SUCCESS,"black"); $msg = $msg . formatString(LA_FORGOT_SENT_MSG,array("<b>$email</b>")); addToHistory(14,"","","$username"); sendEmail($email,$from_adress_mail,LA_FORGOT_MAIL_SUBJECT,formatString(LA_FORGOT_SEND_MAIL_BO DY, array("$new_password",&quot;http://$url/member_login.php","$name_of_site"))); } else { $msg = writeHeadLine(LA_WARNING,"red"); $msg = $msg . formatString(LA_FORGOT_NOTF,array("<b>$email</b>")); } } else { $msg = writeHeadLine(LA_WARNING,"red"); $msg = $msg . LA_ERROR_MSG21; } } if (isset($_REQUEST["logout"])) { $msg = $la_session_remove; } check_valid_user("$msg"); require("footer_inc.php"); ?> Voici le code que j'ai inventé (je pense que j'aurai plus de chance de gagner au loto que trouver un code qui marche mais bon...) et forcément il ne marche pas, auriez vous une direction à me donner SVP parceque là je désespère. Je voudrai récupérer le "user_verify_code". CODE <?$msg = ""; include_once("admin/inc.php"); $pagename = $sitename . " - " . LA_LOGIN; include_once("header_inc.php"); if (isset($_REQUEST["forgot"]) AND isset($_POST["user_name"])) { $user_name = $_POST["user_name"]; $user_verify_code = $row["user_verify_code"]; if (($user_name)) { $mysql_user = "select user_name, user_verify_code from $usr_tbl"; $result = q ($mysql_user); $num_check = mysql_num_rows($result); if ($num_check==1) { $sql="select user_verify_code from $usr_tbl"; $res = q ($sql); $msg = writeHeadLine(LA_SUCCESS,"black"); $msg = $msg . formatString(LA_VERIFYCODE_SENT_MSG,array("<b>$user_name</b>")); sendEmail($email,$from_adress_mail,LA_VERIFYCODE_SUBJECT,formatString(LA_VERIFYCODE_SEND_MAIL _BODY, array(&quot;http://$url/verify.php?=","$user_verify_code"))); } else { $msg = writeHeadLine(LA_WARNING,"red"); $msg = $msg . formatString(LA_VERIFYCODE_NOTF,array("<b>$user_name</b>")); } } else { $msg = writeHeadLine(LA_WARNING,"red"); $msg = $msg . LA_ERROR_MSG_VERIFYCODE; } } if (isset($_REQUEST["logout"])) { $msg = $la_session_remove; } check_valid_user("$msg"); require("footer_inc.php"); ?> Si çà peut vous guider voici aussi le code qui permet l'inscription CODE <?session_start(); include("admin/inc.php"); $lBanList = split(",", $set_banlist_users); $catname = " :: $register"; include("header_inc.php"); $FName = getParam("friendname",""); $FEmail = trim(getParam("friendemail","")); $lEmail = trim(getParam("email","")); $lName = getParam("name",""); $lPassOne=getParam("passwd",""); $lPassTwo=getParam("passwd2",""); $lEmelding=getParam("emelding",""); $lValidateSign=getParam("validate_sign",""); $lHideEmail=getParam("hide_email",""); $lAgreeCond=getParam("agree_cond",""); $tplRegister=new TplLoad; writeLinkedTitle(""); if (isset($_SESSION["valid_user"])) { echo "<blockquote><p class='box'>".LA_ALREADY_LOGGED_DESC."</p></blockquote>"; include("footer_inc.php"); exit; } $lExtraFieldArray=getMandatoryValues("",2); $i=0; if (is_array($lExtraFieldArray)) { foreach ($lExtraFieldArray as $item) { $value="e_" . $item["q_field"]; $lArray[$i]["id"]=$i; $lArray[$i]["field"]=$value; $lStr=$_REQUEST[$value]; $lValueStr=""; if ($lStr) { if (is_array($lStr)) { foreach ($lStr as $lItem) $lValueStr.="$lItem,"; $lValueStr=substr($lValueStr,0,-1); } else $lValueStr=$lStr; } elseif (getParam("submit","")=="") { $lValueStr=$row[$value]; } if (getParam("submit","") !="") { if ($item["q_mand"] && empty($lValueStr)) $error_str.= "<li class='warn_intend'>".LA_YOU_MUST ." <b>" . $item["q_question"] . "</b></li>"; else if (!empty($item["q_reg_exp"])) { if (preg_match($item["q_reg_exp"],$lValueStr)) $error_str.="<li class='warn_intend'>".$item["q_reg_exp_errormsg"] ." <b>".$item["q_question"]."</b></li>"; } } $lArray[$i]["value"]=$lValueStr; $data.="$value='$lValueStr',"; $i++; } $lExtraArray=getExtraAdvValue("",2,$lArray); $tplRegister->assign("extra_fields_array",$lExtraArray); } if (isset($_POST["submit"])) { $result = mysql_query ("select * from $usr_tbl where user_email = '$lEmail'"); if (mysql_num_rows($result)>0) $error_str.= "<li type='square' class='warn_intend'>".LA_ERROR_MSG20."</li>"; if (!validEmail($lEmail)) $error_str.= "<li type='square' class='warn_intend'>".LA_ERROR_MSG21."</li>"; if (ereg(" ", $lPassOne) OR strlen($lPassOne)<$set_password_len) $error_str.= "<li type='square' class='warn_intend'>". ereg_replace("%1%",$set_password_len,LA_ERROR_MSG24)."</li>"; if (($lPassOne <> $lPassTwo)) $error_str.= "<li type='square' class='warn_intend'>".LA_ERROR_MSG22."</li>"; if (($set_agree_conditions==1 AND !$lAgreeCond)) $error_str.= "<li type='square' class='warn_intend'>".LA_CONDITIONS_MANDATORY ."</li>"; if (($set_img_validation==1 AND $_SESSION["validate_sign_session"] <> $lValidateSign)) $error_str.= "<li type='square' class='warn_intend'>".LA_IMG_VER_FAILED ."</li>"; if ($usr_1_mandatory AND $usr_1 == "") $error_str.= "<li type='square' class='warn_intend'>".LA_FIELD." $usr_1_text ". LA_MAND ."</li>"; // Find Extra fields in user table and get values from not empty rows $i=0; $lRemoteIP=getRemoteIp(); if (!empty($lEmail)) $error_str.=ban($lBanList, $lEmail); if (!empty($lRemoteIP)) $error_str.=ban($lBanList, getRemoteIp()); //getRemoteIp if (!$error_str) { $temp_validate = ""; if ($opt_verify) { $temp_validate = generatePassword(5); } else { $random = 0; } $registered = time(); if (!$opt_verify) { $p = ""; } else { $p = $lPassOne; } $user_id=createUser($lEmail,$lPassOne,$lName,$lEmelding,$lHideEmail,$temp_validate,$data); if ($result) { $tplRegister=new TplLoad; $tplRegister->assign("registration_ok",1); if ($set_payments) { $sql="select count(pid) as num from $pkg_tbl"; $res_count=q($sql); $row_c=mysql_fetch_array($res_count); $num_packages=$row_c["num"]; // Create new admin user if admin table is empty if ($num_packages<1) { q("INSERT INTO `$pkg_tbl` (`pid`, `pname`, `pterm`, `pdur`, `pactive`, `pprice`, `pcurrency`, `pupload`, `pmessages`, `pchat`, `pgb`, `protation`, `pvisitor`, `pfav`, `pmatch`, `pflirts`) VALUES (99, 'Default', 1, 3, 2, 0.00, 'USD', 3, 4, 999, 1, 1, 10, 10, 10, 10)"); q("INSERT INTO `$pkg_tbl` (`pid`, `pname`, `pterm`, `pdur`, `pactive`, `pprice`, `pcurrency`, `pupload`, `pmessages`, `pchat`, `pgb`, `protation`, `pvisitor`, `pfav`, `pmatch`, `pflirts`) VALUES (1, 'Small', 2, 30, 1, 10.00, 'USD', 5, 20, 999, 1, 1, 1, 30, 30, 30)"); q("INSERT INTO `$pkg_tbl` (`pid`, `pname`, `pterm`, `pdur`, `pactive`, `pprice`, `pcurrency`, `pupload`, `pmessages`, `pchat`, `pgb`, `protation`, `pvisitor`, `pfav`, `pmatch`, `pflirts`) VALUES (2, 'Medium', 1, 60, 1, 25.00, 'USD', 25, 250, 999, 1, 1, 55, 55, 55, 55)"); q("INSERT INTO `$pkg_tbl` (`pid`, `pname`, `pterm`, `pdur`, `pactive`, `pprice`, `pcurrency`, `pupload`, `pmessages`, `pchat`, `pgb`, `protation`, `pvisitor`, `pfav`, `pmatch`, `pflirts`) VALUES (3, 'Gold', 1, 90, 1, 60.00, 'USD', 200, 200, 999, 1, 1, 200, 200, 200, 200)"); } addPackage($user_id,99); } if ($opt_verify) { $subject = formatString(LA_NEW_USER_MAIL_TITLE, array("$name_of_site")); $message = formatString(LA_NEW_USER_MAIL_MSG_VAL . LA_NEW_USER_MAIL_MSG2_VAL, array(&quot;http://$url/verify.php?verify=$temp_validate","$name_of_site")); sendEmail($lEmail, $from_adress_mail, $subject, $message); //Friend Invite: if ($FName != "" || $FEmail !="") { $Fsubject = formatString(LA_FRIEND_MAIL_TITLE, array("$lName","$name_of_site")); $Fmessage = formatString(LA_FRIEND_MAIL_MSG, array("$lName",&quot;http://www.isula-web.com/annonces_autos_voitures_vehicules_occasion","Isula Web","$FName")); sendEmail($FEmail, $lEmail, $Fsubject, $Fmessage); } $tplRegister->assign("verify",1); } elseif ($approve_mem) { //$sql = "update $usr_tbl set months='" .round($_REQUEST["months"]) ."' where user_id=$user_id"; //$r = q($sql); $tplRegister->assign("wait_approval",1); } else { $subject = formatString(LA_NEW_USER_MAIL_TITLE, array("$name_of_site")); $message = formatString(LA_NEW_USER_MAIL_MSG . LA_NEW_USER_MAIL_MSG2, array(&quot;http://$url/member_login.php","$lEmail","$lPassOne","$name_of_site")); sendEmail($lEmail, $from_adress_mail, $subject, $message); $_SESSION["valid_user"] = $user_id; addLoginItem($user_id); } } } } if (!isset($_POST["submit"]) OR (isset($_POST["submit"]) AND !empty($error_str))) { $tplRegister->assign("show_regform",1); $tplRegister->caching = false; $tplRegister->assign("name",getParam("name","")); $tplRegister->assign("email",getParam("email","")); $tplRegister->assign("passwd",getParam("passwd","")); $tplRegister->assign("passwd2",getParam("passwd2","")); $tplRegister->assign("emelding",getParam("emelding","")); $tplRegister->assign("hide_email",getParam("hide_email","")); $tplRegister->assign("agree_cond",getParam("agree_cond","")); $tplRegister->assign("la_pass",eregi_replace("%1%",$set_password_len,LA_PASS1)); $tplRegister->assign("set_agree_conditions",$set_agree_conditions); $tplRegister->assign("LA_CONDITIONS_TEXT",formatString(LA_CONDITIONS,array("<a href=\"java script:openWin3('info.php?what=terms',300,500,'')\">"))); if ($error_str) $error_str="<ul class='warn'>$error_str</ul>"; $tplRegister->assign("errorMsg",$error_str); if ($set_img_validation==1) $tplRegister->assign("image_validation",1); } $tplRegister->display("register.tpl"); include_once("footer_inc.php"); ?>
  17. Bonjour à tous, J'ai un souci avec un attribut ou un tag qui ne veut pas s'afficher et j'ai besoin de vos conseils, je vous explique Dans la partie admin de mon site j'ai la possibilité d'autorisé certains tags et attributs dans les descriptions laissées par les membres, voici ceux que j'utilise: HTML tags : br,b,a,i,p,ul,li,ol,strong,span,em HTML attributes : style,href,rel,title J'ai besoin que les membres puissent mettre ce genre de lien <a href="http://www.youtube.com/watch?v=l9MdgSUpG5U" rel="youtubevideo[480 380]" title="www.votresite.com">Voir la vidéo</a> mais mon problème est que je ne trouve pas le tag ou l'attribut qui autorise l'affichage de cette partie de l'url =l9MdgSUpG5U dans la source. Voici ce qui apparait dans la source : <a href="http://www.youtube.com/watch?v" rel="youtubevideo[480380]" title="www.votresite.com">Voir la vidéo</a> L'url est incomplète et l'espace entre 480 et 380 est manquant. J'ai déjà essayé de rajouter watch dans les deux mais çà n'y change rien . Auriez vous une idée SVP
  18. Oui , je sais tout çà , au départ je voulais juste empécher le téléchargement de fichiers mais c'est apparement impossible
  19. Si tu sais comment faire pour cacher la source je veux bien savoir parce que j'avais cru comprendre qu'empécher le clic droit est vraiment mauvais et en plus il suffit de cliquer dans la barre de navigation sur "Page" et "afficher la source" pour qu"elle apparaisse
  20. Je reviens sur ce sujet pour savoir si il était possible d'empécher le téléchargement des fichiers .css ?
  21. Ok , merci à vous c'est exact qu'en mettant le htaccess le fichier .js ne fait plus son job
  22. Bonjour à tous, comment dois-je faire pour empécher quiconque de télécharger les fichiers .php et .js en tapant leur chemin d'accès dans l'url exemple: www.monsite.com/dossier/common.php Merci d'avance
  23. Merci Dan de t'être penché sur mon cas, je viens de trouver ce qui me provoquait cette erreur, c'est parce que sur ma page d'acceuil j'avais insérer une vidéo youtube et c'est le code embed qui interfere avec le javascript. Tout est rentré dans l'ordre, je m'en suis rendu compte en essayant d'accéder au site sans passer par l'index et j'ai vu que toutes les autres pages fonctionnaient..
  24. Même lorsque je tape www.monsite.com/annonces/mediavideo j'ai une erreur
×
×
  • Créer...