1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00
2006-12-02 04:36:16 +00:00

52 lines
1.4 KiB
PHP

<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/content/e_meta.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:34:56 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
echo "<script type='text/javascript' src='".e_FILE."popup.js'></script>\n";
if(e_QUERY){
$qs = explode(".", e_QUERY);
if(is_numeric($qs[0])){
$from = array_shift($qs);
}else{
$from = "0";
}
}
if(isset($qs[0]) && $qs[0] == "content" && isset($qs[1]) && is_numeric($qs[1]) ){
$add_meta_keywords = '';
//meta keywords from content item
if($sql -> db_Select('pcontent', "content_meta", "content_id='".intval($qs[1])."'")){
list($row['content_meta']) = $sql -> db_Fetch();
$exmeta = $row['content_meta'];
if($exmeta != ""){
$exmeta = str_replace(", ", ",", $exmeta);
$exmeta = str_replace(" ", ",", $exmeta);
$exmeta = str_replace(",", ", ", $exmeta);
$add_meta_keywords = $exmeta;
}
}
if($add_meta_keywords){
define("META_MERGE", TRUE);
define("META_KEYWORDS", " ".$add_meta_keywords);
}
}
?>