Nouveau WRInaute
Bonjour j'ai un site en php et je trouve sur le serveur qu'un fichier meta tag qui correspond à la page d'accueil , comment changer les meta tag des autres page qui son introuvable. Ci dessous la seule page que j'ai trouver merci de m'aider.
<?php
// FILE: meta_tags.php
// USE : This file controls the title, meta description,
// and meta keywords of every page on your web site.
// See the install docs for instructions.
// define META_TEXT_PRICE in your includes/languages/english/index.php file if you want a price prefix
// so for example add: "define('META_TEXT_PRICE', 'Price: ');" to this index.php file (without the outer double quotes)
if(!defined(META_TEXT_PRICE)) define ('META_TEXT_PRICE', '');
// Define Primary Section Output
define('PRIMARY_SECTION', ' : ');
// Define Secondary Section Output
define('SECONDARY_SECTION', ' - ');
// Define Tertiary Section Output
define('TERTIARY_SECTION', ', ');
// Optional customization options for each language
switch ($languages_id) {
// English language
case '1':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
// German language
case '2':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
// Spanish language
case '3':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
}
// Clear web site tagline if not customized
if ($web_site_tagline == TERTIARY_SECTION) {
$web_site_tagline = '';
}
// Get all top category names for use with web site keywords
$mt_categories_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."'");
while ($mt_categories = tep_db_fetch_array($mt_categories_query)) {
$mt_keywords_string .= $mt_categories['categories_name'] . ' ';
}
define('WEB_SITE_KEYWORDS', $mt_keywords_string . $mt_extra_keywords);
switch ($content) {
case CONTENT_ADVANCED_SEARCH:
define('META_TAG_TITLE', NAVBAR_TITLE_1 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADVANCED_SEARCH_RESULT:
define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_2 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_2);
break;
//START UPDATE
case CONTENT_ACCOUNT_EDIT:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_HISTORY:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_HISTORY_INFO:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_NEWSLETTERS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_NOTIFICATIONS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_PASSWORD:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADDRESS_BOOK:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADDRESS_BOOK_PROCESS:
define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
// END UPDATE
case CONTENT_CHECKOUT_CONFIRMATION:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_PAYMENT:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_PAYMENT_ADDRESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_SHIPPING:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_SUCCESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CREATE_ACCOUNT_SUCCESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_INDEX_DEFAULT:
define('META_TAG_TITLE', 'Accueil Terre-Déco');
define('META_TAG_DESCRIPTION', 'Site sur l artisanat du monde : de
l Afrique à l Asie montrant le savoir des artisants de chaque pays en
proposant leurs produits souvent uniques: awalé,masque,chaise à
palabre,bougeoir,table basse...');
define('META_TAG_KEYWORDS', 'afrique,asie,décoration,jeux
awalé,batik,bogolan,panneaux sculptes,peinture,statuette,buste,album
photo,profil,lampe,bougeoir,masque,chaise à palabre,table basse
sculptée,etnique,africain,
asiatique,art,deco,déco,ethnic,artisanat,sculpture,teck,iroko,senoufo,baoulé,yohoure,cote d ivoire,mali,gouro,benin,bénin,decoration
murale,bouddha,éléphant,lion,africaine,tête,penseuse,maison');
<?php
// FILE: meta_tags.php
// USE : This file controls the title, meta description,
// and meta keywords of every page on your web site.
// See the install docs for instructions.
// define META_TEXT_PRICE in your includes/languages/english/index.php file if you want a price prefix
// so for example add: "define('META_TEXT_PRICE', 'Price: ');" to this index.php file (without the outer double quotes)
if(!defined(META_TEXT_PRICE)) define ('META_TEXT_PRICE', '');
// Define Primary Section Output
define('PRIMARY_SECTION', ' : ');
// Define Secondary Section Output
define('SECONDARY_SECTION', ' - ');
// Define Tertiary Section Output
define('TERTIARY_SECTION', ', ');
// Optional customization options for each language
switch ($languages_id) {
// English language
case '1':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
// German language
case '2':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
// Spanish language
case '3':
//Extra keywords that will be outputted on every page
$mt_extra_keywords = '';
//Descriptive tagline of your web site
$web_site_tagline = TERTIARY_SECTION . '';
break;
}
// Clear web site tagline if not customized
if ($web_site_tagline == TERTIARY_SECTION) {
$web_site_tagline = '';
}
// Get all top category names for use with web site keywords
$mt_categories_query = tep_db_query("select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."'");
while ($mt_categories = tep_db_fetch_array($mt_categories_query)) {
$mt_keywords_string .= $mt_categories['categories_name'] . ' ';
}
define('WEB_SITE_KEYWORDS', $mt_keywords_string . $mt_extra_keywords);
switch ($content) {
case CONTENT_ADVANCED_SEARCH:
define('META_TAG_TITLE', NAVBAR_TITLE_1 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADVANCED_SEARCH_RESULT:
define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_2 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_2);
break;
//START UPDATE
case CONTENT_ACCOUNT_EDIT:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_HISTORY:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_HISTORY_INFO:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_NEWSLETTERS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_NOTIFICATIONS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ACCOUNT_PASSWORD:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADDRESS_BOOK:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
case CONTENT_ADDRESS_BOOK_PROCESS:
define('META_TAG_TITLE', NAVBAR_TITLE_2 . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . NAVBAR_TITLE_1 . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . NAVBAR_TITLE_1);
break;
// END UPDATE
case CONTENT_CHECKOUT_CONFIRMATION:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_PAYMENT:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_PAYMENT_ADDRESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_SHIPPING:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CHECKOUT_SUCCESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_CREATE_ACCOUNT_SUCCESS:
define('META_TAG_TITLE', HEADING_TITLE . PRIMARY_SECTION . TITLE . $web_site_tagline);
define('META_TAG_DESCRIPTION', TITLE . PRIMARY_SECTION . HEADING_TITLE . SECONDARY_SECTION . WEB_SITE_KEYWORDS);
define('META_TAG_KEYWORDS', WEB_SITE_KEYWORDS . HEADING_TITLE);
break;
case CONTENT_INDEX_DEFAULT:
define('META_TAG_TITLE', 'Accueil Terre-Déco');
define('META_TAG_DESCRIPTION', 'Site sur l artisanat du monde : de
l Afrique à l Asie montrant le savoir des artisants de chaque pays en
proposant leurs produits souvent uniques: awalé,masque,chaise à
palabre,bougeoir,table basse...');
define('META_TAG_KEYWORDS', 'afrique,asie,décoration,jeux
awalé,batik,bogolan,panneaux sculptes,peinture,statuette,buste,album
photo,profil,lampe,bougeoir,masque,chaise à palabre,table basse
sculptée,etnique,africain,
asiatique,art,deco,déco,ethnic,artisanat,sculpture,teck,iroko,senoufo,baoulé,yohoure,cote d ivoire,mali,gouro,benin,bénin,decoration
murale,bouddha,éléphant,lion,africaine,tête,penseuse,maison');