Your IP : 216.73.216.170


Current Path : /var/www/iplanru/data/old/www/i-plan.ru/
Upload File :
Current File : /var/www/iplanru/data/old/www/i-plan.ru/meta.php

<?php
defined ( '_JEXEC' ) or die ( 'Restricted access' );
?>
<script type="text/javascript" >
function meta(){
var y=document.getElementsByName("keywords");
y[0].content=y[0].content+"<?php 
	$id = $_GET['id'];
	$db = &JFactory::getDBO();
	$query = "SELECT metakey,metadesc FROM #__content WHERE id = '$id'";
	$db->setQuery($query);
	$result = $db->loadObjectList();
	foreach ( $result as $row ) {
	echo $row->metakey;
	}
?>";
y=document.getElementsByName("description");
y[0].content=y[0].content+"<?php
	foreach ( $result as $row ) {
	echo $row->metadesc;
	}
?>";
}
meta();
</script>