TW_errors($options); } function add($errval, $position, $show_code, $param1=null, $param2=null ) { $err_id = "TW_err_".$this->identifier++; $this->ErrorArray[$err_id] = array($errval, $param1, $param2, $position, $show_code); if($errval & 0xff00) $this->IsError = 1; // append errors and warnings if(($errval & 0x0ff0) && $show_code != null ) return ''.$show_code.''; return null; } // You can call this method from your project and create nice list of errors. // // $lang - error string pack // $mask - any combination of following masks: // 0xf000 - internal, // 0x0f00 - errors, // 0x00f0 - warnings, // 0x000f - comments // function create_list (&$lang, $mask = 0x0ff0) { $errors = $this->get_by_mask($mask); $out = "