Exemple #1
0
     } else {
         if ($row['type'] == 'C' and $row['active'] == 'N') {
             $easywiModules[$row['get']] = false;
         }
     }
 }
 if ($easywiModules['ip'] === true) {
     $what_to_be_included_array['imprint'] = 'imprint.php';
 }
 if ($easywiModules['le'] === true) {
     $what_to_be_included_array['lendserver'] = 'lend.php';
 }
 $query = $sql->prepare("SELECT `activeGS`,`activeVS` FROM `lendsettings` WHERE `resellerid`=0 LIMIT 1");
 $query->execute();
 while ($row = $query->fetch(PDO::FETCH_ASSOC)) {
     $page_data->SetData('lendactiveGS', $row['activeGS']);
     $page_data->SetData('lendactiveVS', $row['activeVS']);
 }
 $query = $sql->prepare("SELECT `active` FROM `modules` WHERE `id`=5 LIMIT 1");
 $query->execute();
 $lendActive = $query->fetchColumn();
 $lendActive = active_check($lendActive) ? $lendActive : 'Y';
 $page_data->SetData('lendactive', $lendActive);
 $page_data->SetData('protectioncheck', $protectioncheck);
 $page_data->SetData('title', $title);
 $query = $sql->prepare("SELECT p.`id`,p.`subpage`,p.`naviDisplay`,t.`title` FROM `page_pages` p LEFT JOIN `page_pages_text` t ON p.`id`=t.`pageid` WHERE p.`released`='1' AND p.`type`='page' AND t.`language`=? AND p.`resellerid`='0' ORDER BY `subpage`,`sort`");
 $query->execute(array($user_language));
 if ($seo == 'Y') {
     $page_data->SetMenu($gsprache->news, $gsprache->news, 'news');
     if ($protectioncheck == 'Y') {
         $page_data->SetMenu($page_sprache->protectioncheck, $page_sprache->protectioncheck, 'protectioncheck');