loadArrays(); $string = $arrays[$arrayName][$indexName]; $string = $extra ? preg_replace("/###/", $utf8->smartUtf8_decode($extra), $string) : preg_replace("/###/", "", $string); return MISC::p($utf8->encodeUtf8($string), "error", "center"); } // English errors function loadArrays() { return array( "sessionError" => array( "write" => "Unable to write to session.", ), // General user input errors "inputError" => array( "nan" => "Input is not a number.###", "missing" => "Missing input.###", "invalid" => "Invalid input.###", "styleExists" => "That style already exists", ), // File operations (import/export) "file" => array( 'write' => "Unable to write to file###", 'noSql' => "You must first list or select resources", "read" => "Unable to read directory or file", "empty" => "You have not yet exported any files", "upload" => "File upload error", "folder" => "Unable to create directory", ), ); } } ?>