Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/photoworx.nl/public_html/include/functions.php on line 1603
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/photoworx.nl/public_html/include/functions.php on line 1609
Deprecated: Array and string offset access syntax with curly braces is deprecated in /var/www/photoworx.nl/public_html/include/functions.php on line 1621
//function getTheSEOcontent in include/functions.php
if(isset($_GET['p']))
$id = intval($_GET['p']);
else
$id = PAGE_ID_HOME;
//favicon
echo '
' . SITE_NAME . ' | ' . strtoupper(getTheSEOcontent($mysqli, $id, 'pageTitle')) . ' | ';
$cTitles = getTheSEOcontent($mysqli, $id, 'contentTitle');
if(count($cTitles) > 0){
foreach($cTitles as &$contentTitle){
if(trim($contentTitle) != '')
echo $contentTitle . ' |' ;
}
}
$cKeys = getTheSEOcontent($mysqli, $id, 'keywords');
$countKey = 0;
$theKeyString = '';
if(count($cKeys) > 0){
foreach($cKeys as &$keys){
$countKey = $countKey + 1;
if(trim($keys) != '' && $countKey < 4)
echo ' - ' . $keys;
if(trim($keys) != '')
$theKeyString .= $keys . ', ';
}
}
echo'
';
if(trim(getTheSEOcontent($mysqli, $id, 'description')) != ''){
echo'';
}
if(trim($theKeyString) != ''){
echo'';
}
//rss sitemap
$sql = "SELECT * FROM sitemap LIMIT 1 ";
$result = mysqli_query($mysqli, $sql);
if (mysqli_num_rows($result) > 0) {
$row = mysqli_fetch_assoc($result);
if($row['rss'] == 1){
echo'';
}
}
?>
require dirname(__FILE__).'/../include/includecheck.php';
function launchHeadHandler($mysqli, $id) {
global $plugins;
$sql = "SELECT content_id, content_type FROM pageContent WHERE page_id = '$id' ORDER BY order_nr ASC";
$result = mysqli_query($mysqli, $sql) or die ('');
if (mysqli_num_rows($result) > 0) {
while($row = mysqli_fetch_assoc($result)) {
$ctype = $row['content_type'];
$cid = $row['content_id'];
foreach($plugins as $plugin) {
if ($plugin['name'] == $ctype) {
//staat er een head.php in de pluginmap?
if (file_exists('plugins/'.$ctype.'/head.php')){
echo '
';
include_once 'plugins/'.$ctype.'/head.php';
echo '
';
}
}
}
}
}
}
if(isset($_SESSION['PROFILE_USERID'])){
echo '
';
}
if(isset($_GET['p']) && $_GET['p'] == 'profile'){
include ('plugins/profile_content/head.php');
}
if(isset($_GET['p']))
$id = intval($_GET['p']);
else
$id = PAGE_ID_HOME;
launchHeadHandler($mysqli, $id);
?>