WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php $url = $_SERVER['REQUEST_URI']; if (strrpos($url,"hem.php")) { ?> <img src="<?php echo TEMPLATE_DIR; ?>/images/imagebild2.gif" /> <?php } elseif (strrpos($url,"home.php")) { ?> <img src="<?php echo TEMPLATE_DIR; ?>/images/imagebild2.gif" /> <?php } else { ?> <img src="<?php echo TEMPLATE_DIR; ?>/images/imagebild.gif" /> <?php } ?>
<?php $section_id = 9; $query_sections = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' "); if($query_sections->numRows() > 0) { $section = $query_sections->fetchRow(); $section_id = $section['section_id']; $module = $section['module']; require(WB_PATH.'/modules/'.$module.'/view.php'); } ?>
<?phpif (LANGUAGE==SE) {$section_id = 10; //change this section_id for Your needings$query_sec = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' ");if($query_sec->numRows() > 0) {$section = $query_sec->fetchRow();$section_id = $section['section_id'];$module = $section['module'];require(WB_PATH.'/modules/'.$module.'/view.php'); //statt view.php die alternative eintragen!}} else if (LANGUAGE==EN) {$section_id = 11; //change this section_id for Your needings$query_sec = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' ");if($query_sec->numRows() > 0) {$section = $query_sec->fetchRow();$section_id = $section['section_id'];$module = $section['module'];require(WB_PATH.'/modules/'.$module.'/view.php'); //statt view.php die alternative eintragen!}} else {$section_id = 12; //change this section_id for Your needings$query_sec = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' ");if($query_sec->numRows() > 0) {$section = $query_sec->fetchRow();$section_id = $section['section_id'];$module = $section['module'];require(WB_PATH.'/modules/'.$module.'/view.php'); //statt view.php die alternative eintragen!}}<?
maybe it is does what Your are looking for.regards from Himberg, near Vienna
<?phpif (LANGUAGE==SE) { $section_id = 10; //change this section_id for Your needings} elseif (LANGUAGE==EN) { $section_id = 11; //change this section_id for Your needings} else { $section_id = 12; //change this section_id for Your needings}if (isset($section_id)) { // Maker sure section isset $query_sec = $database->query("SELECT section_id,module FROM ".TABLE_PREFIX."sections WHERE section_id = '$section_id' "); if($query_sec->numRows() > 0) { $section = $query_sec->fetchRow(); $section_id = $section['section_id']; $module = $section['module']; require(WB_PATH.'/modules/'.$module.'/view.php'); //statt view.php die alternative eintragen! }}<?