/**
     * This Methode is called on loadtime.
     * After all variables initiated, it calls the block dependent init methode.
     * Finaly the css is loaded if exist
     */
    function pmxc_AdmArticle_loadinit()
    {
        $this->smf_groups = PortaMx_getUserGroups();
        // get all usergroups
        $this->title_icons = PortaMx_getAllTitleIcons();
        // get all title icons
        $this->custom_css = PortaMx_getCustomCssDefs();
        // custom css definitions
        $this->usedClass = PortaMx_getdefaultClass(false, true);
        // default class types
        $this->categories = PortaMx_getCategories();
        // exist categories
        if ($this->cfg['ctype'] == 'php') {
            addInlineJavascript(str_replace("\n", "\n\t", PortaMx_compressJS('
			function php_syntax(elmid)
			{
				document.getElementById("check_" + elmid).className = "info_frame";
				var result = pmx_setCookie("pmx_php_check", document.getElementById(elmid).value, "php_snytax", false);
				result = result.replace(/@elm@/g, elmid);
				document.getElementById("check_" + elmid).innerHTML = result;
				Show_help("check_" + elmid);

				var errLine = /(on\\sline\\s)(\\d+)(.*)/;
				errLine.exec(result);
				errLine = RegExp.$2;
				php_showerrline(elmid, errLine);
			}
			function php_showerrline(elmid, errLine)
			{
				if(errLine != "" && !isNaN(errLine))
				{
					var lines = document.getElementById(elmid).value.split("\\n");
					var count = 0;
					for(var i = 0; i < errLine -1; i++)
						count += lines[i].length +1;

					if(document.getElementById(elmid).setSelectionRange)
					{
						document.getElementById(elmid).focus();
						document.getElementById(elmid).setSelectionRange(count, count+lines[i].length);
					}
					else if(document.getElementById(elmid).createTextRange)
					{
						range=document.getElementById(elmid).createTextRange();
						range.collapse(true);
						range.moveStart("character", count);
						range.moveEnd("character", count+lines[i].length);
						range.select();
					}
				}
			}')));
        }
    }
 /**
  * This Methode is called on loadtime.
  * After all variables initiated, it calls the block dependent init methode.
  * Finaly the css is loaded if exist
  */
 function pmxc_AdmCategories_loadinit()
 {
     $this->smf_groups = PortaMx_getUserGroups();
     // get all usergroups
     $this->title_icons = PortaMx_getAllTitleIcons();
     // get all title icons
     $this->custom_css = PortaMx_getCustomCssDefs();
     // custom css definitions
     $this->usedClass = PortaMx_getdefaultClass(false, true);
     // default class types
     $this->categories = PortaMx_getCategories();
     // exist categories
 }
 /**
  * This Methode is called on loadtime.
  * After all variables initiated, it calls the block dependent init methode.
  * Finaly the css and language is loaded if exist
  */
 function pmxc_AdmBlock_loadinit()
 {
     global $context;
     $this->smf_themes = PortaMx_getsmfThemes();
     // get all themes
     $this->smf_groups = PortaMx_getUserGroups();
     // get all usergroups
     $this->smf_boards = PortaMx_getsmfBoards();
     // get all smf boards
     $this->register_blocks = $context['pmx']['RegBlocks'];
     // get all registered block
     $this->block_classdef = PortaMx_getdefaultClass();
     // get default classes
     $this->title_icons = PortaMx_getAllTitleIcons();
     // get all title icons
     $this->custom_css = PortaMx_getCustomCssDefs();
     // custom css definitions
     $this->can_cached = 0;
     // default no caching
     // sort the registered blocks
     ksort($this->register_blocks, SORT_STRING);
     // call the blockdepend init methode
     $this->pmxc_AdmBlock_init();
 }