Image

Place your trust in a strong partner.

Bartels Mikrotechnik!

Your goals are our goals. The market success of your innovative products is what drives us forward. At the same time, it represents the benchmark for our own success. Therefore, we never consider technology and progress to be ends in themselves, but always the means of implementing ideas and visions – such as more useful, compacter, more efficient, or completely new products.

Our developers approach each job as a new challenge that needs to be mastered with an open mind and fresh ideas. Moreover, important accompanying work such as patent management, ensures exclusive rights for our client.

Make the most of these advantages for your innovations!
Let’s build ideas!

 
 
setQuery("SELECT * FROM #__DATA_page_control_configuration" ); $controls = $database -> loadObjectList(); if ($controls[0]->pc_state<>'active') { return($pages); } /*-------------------------------------------------------------------*/ if (strpos($pages,"JPHTMLBeacon7cb452efeb02f5f1920dc3a32d9bc790")>-1) return($pages); // Code above is to prevent this executive program executing itself to death. No admins allowed // in here, a search for a beacon is done in the html pages to indicate admin pages // ::::::::::::::::::::::::::::::::::::::::::::::::::::: if (strpos($_SERVER['REQUEST_URI'],"/administrator/")>-1) { return($pages); } // Code above is detect and allow fresh Admin login. // ::::::::::::::::::::::::::::::::::::::::::::::::::::: global $JP_Performance; $JP_Performance=array(); if ($executive_debug) { $time = microtime_float() - $time_start; $JP_Performance[]='Joomla Pages Started.
'; $JP_Performance[]='Section Configuration Check = '.sprintf("%.3f", $time).' seconds.
'; $time_start = microtime_float(); } global $mosConfig_absolute_path; // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // LOAD UP Page Definitions // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // if (isset($controls[0]->update_order)) // if ($controls[0]->update_order=='itemid') // { $page_definitions=load_page_definition_executive(''); } if (!isset($page_definitions)) { $page_definitions=load_page_definition_executive(''); } if (!$page_definitions) return ($pages); // NOTE if there is no page defintion, // then joomla pages cannot perform, so we return the original pages if ($executive_debug) { $time = microtime_float() - $time_start; $JP_Performance[]='Loading of Page Defintions = '.sprintf("%.3f", $time).' seconds.
'; $time_start = microtime_float(); } // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // Execute PAGE Pre Processors // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // Step 1. Find what page we are at. // ----------------------------------------------------- if ($debug) echo "REQUEST_URI = ".$_SERVER['REQUEST_URI']."
"; $index=strpos($_SERVER['REQUEST_URI'],'index.php?'); $uri_after_index=''; $url_length=strlen($_SERVER['REQUEST_URI']); if ($index) $uri_after_index=substr($_SERVER['REQUEST_URI'],$index,$url_length); $html_uri=$uri_after_index; $uri_after_index=ampReplace($uri_after_index); unset($page_id); unset($page_db_reference); foreach ($page_definitions as $key=>$page_definition) { if (empty($uri_after_index)) continue; if (strpos($page_definition->link,$uri_after_index)>-1) // AHA ! found the page { $page_id=intval(substr($page_definition->page,5,strlen($page_definition->page))); $page_db_reference=intval($key); } } // ----------------------------------------------------- // Step 2. Check if page control is set active, proceed if active, // return the original pages if not // ----------------------------------------------------- if (isset($page_db_reference)) { if (intval($page_definitions[$page_db_reference]->state)<1) return($pages); } // ----------------------------------------------------- // PAGE IS VALID AND ACTIVE BEYOND THIS LINE // Mandatory Process - page_control_itemid.php // ----------------------------------------------------- $f=$mosConfig_absolute_path.'/components/com_page_control/page_control_itemid.php'; if (file_exists($f)) {include_once($f);} // ----------------------------------------------------- if ($executive_debug) { $time = microtime_float() - $time_start; $JP_Performance[]='Mandatory Process page_control_itemid.php = '.sprintf("%.3f", $time).' seconds.
'; $time_start = microtime_float(); } if (!isset($page_id)) return($pages); // inserted June 26, 2008. Without this, some pages will be given false Itemid, tut ! // Step 3. Check if there is page processor. // ----------------------------------------------------- // ----------------------------------------------------- // Page Preprocessors // ----------------------------------------------------- $process_capacity=20; if (isset($page_id)) { if (!isset($page_preprocessors)) $page_preprocessors=load_page_preprocessors_executive(''); if (!$page_preprocessors) return($pages); // NOTE : IF NO PAGE PROCESSOR DATABASE LOADABLE, RETURN PAGES unset($this_page_preprocessor); foreach ($page_preprocessors as $key=>$page_preprocessor) { if (intval($page_preprocessor->page_id)==$page_id) { $this_page_preprocessor=$page_preprocessor; break; } } if ($debug) print_r($this_page_preprocessor); if (!isset($this_page_preprocessor)) return($pages); // NOTE, IF NO PAGE PROCESSOR RETURN PAGES // ----------------------------------------------------- // Step 4. Execute the page pre processor. // ----------------------------------------------------- if ( ($this_page_preprocessor) AND (intval($this_page_preprocessor->state)>0) ) { for ($i=1; $i<=($process_capacity); $i++) { $process='process_'.sprintf("%03.0d", $i); eval("\$cur_process=\$this_page_preprocessor->$process; "); if ( ($cur_process=='') OR ($cur_process=='none' ) ) { $cur_process='default'; } else { // page processor found $f=$mosConfig_absolute_path.'/components/com_page_control/page_process/'; $f.=$cur_process.'.php'; // page processor found // ******************** EXECUTE EFFECTS FILE if (file_exists($f)) { include_once($f); } // ******************** EXECUTE EFFECTS FILE } } // for i=1 until capacity } // if this page processor found // ----------------------------------------------------- } // if set page id // ::::::::::::::::::::::::::::::::::::::::::::::::::::: if ($executive_debug) { $time = microtime_float() - $time_start; $JP_Performance[]='Section Page Preprocessors = '.sprintf("%.3f", $time).' seconds.
'; $time_start = microtime_float(); $time = microtime_float() - $total_time_start; $JP_Performance[]='Joomla Pages Execution Time = '.sprintf("%.3f", $time).' seconds.
'; $JP_Performance[]='Joomla Pages Ended.'; } // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // Execute GLOBAL PreProcessors // ::::::::::::::::::::::::::::::::::::::::::::::::::::: if (!isset($global_page_preprocessors)) $global_page_preprocessors=load_global_page_preprocessors_executive(''); foreach ($global_page_preprocessors as $key=>$global_page_preprocessor) { if ($global_page_preprocessor->state>0) { // active global page processor found $f=$mosConfig_absolute_path.'/components/com_page_control/page_process/'; $f.=$global_page_preprocessor->global_process_filename.'.php'; // active global page processor found // ******************** Execute GLOBAL PreProcessor if (file_exists($f)) { include_once($f); } // ******************** Execute GLOBAL PreProcessor } // if active } // foreach global_page_preprocessors // ----------------------------------------------------- if ($executive_debug) { $time = microtime_float() - $time_start; $JP_Performance[]='Section GLOBAL Page Preprocessors = '.sprintf("%.3f", $time).' seconds.
'; $time = microtime_float() - $total_time_start; $JP_Performance[]='Joomla Pages Execution Time = '.sprintf("%.3f", $time).' seconds.
'; } return($pages); } // end instruction display // ::::::::::::::::::::::::::::::::::::::::::::::::::::: default : return($pages); break; // no instruction; } // end switch instruction return($pages); // in default, always return original pages. } // end function page control //return($pages); // just in case; // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: // ::::::::::::::::::::::::::::::::::::::::::::::::::::: //------------------------------------------------------------------ function load_page_definition_executive($page_definitions) { //------------------------------------------------------------------ global $database; $database->setQuery("SELECT * FROM #__DATA_page_control"); $page_definitions=$database->loadObjectList(); $err=$database -> getErrorNum(); switch ($err) { case '0': break; // success case '1146': break; // no data default : break; // for all others return(false); // never never reach here. } if (count($page_definitions)<1) { return(false); } return($page_definitions); } //------------------------------------------------------------------ //------------------------------------------------------------------ function load_page_preprocessors_executive($page_preprocessors) { //------------------------------------------------------------------ global $database; $database->setQuery("SELECT * FROM #__DATA_page_control_process"); $page_preprocessors=$database->loadObjectList(); $err=$database -> getErrorNum(); switch ($err) { case '0': break; // success case '1146': break; // no data default : break; // for all others return(false); // never never reach here. } if (count($page_preprocessors)<1){ return(false); } return($page_preprocessors); } //------------------------------------------------------------------ //------------------------------------------------------------------ function load_global_page_preprocessors_executive($global_page_preprocessors) { //------------------------------------------------------------------ global $database; $database->setQuery("SELECT * FROM #__DATA_page_control_global_process"); $global_page_preprocessors=$database->loadObjectList(); $err=$database -> getErrorNum(); switch ($err) { case '0': break; // success case '1146': break; // no data default : break; // for all others return(false); // never never reach here. } if (count($global_page_preprocessors)<1){ return(false); } return($global_page_preprocessors); } //------------------------------------------------------------------ //------------------------------------------------------------------ function microtime_float() { //------------------------------------------------------------------ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } //------------------------------------------------------------------ ?>