diff --git a/application/libraries/MY_Form_validation.php b/application/libraries/MY_Form_validation.php new file mode 100644 index 0000000..6ada3b0 --- /dev/null +++ b/application/libraries/MY_Form_validation.php @@ -0,0 +1,42 @@ + + */ +class MY_Form_validation extends CI_Form_validation { + + /** + * Calls the parent constructor. + */ + public function __construct() { + parent::__construct(); + } + + /** + * Checks if a username or email is unique. + * + * @param string $value + * @param string $params + */ + function unique($value, $params) { + $CI =& get_instance(); + + $CI->form_validation->set_message('unique', 'The %s is already being used.'); + + list($table, $field) = explode(".", $params, 2); + + $query = $CI->db->select($field)->from($table)->where($field, $value)->limit(1)->get(); + + if ($query->row()) { + return false; + } else { + return true; + } + } + +} + +/* End of file MY_Form_validation.php */ +/* Location: ./application/libraries/MY_Form_validation.php */ diff --git a/system/language/german/calendar_lang.php b/system/language/german/calendar_lang.php new file mode 100755 index 0000000..fc29ff4 --- /dev/null +++ b/system/language/german/calendar_lang.php @@ -0,0 +1,50 @@ + + + 403 Forbidden + + + +

Directory access is forbidden.

+ + + \ No newline at end of file diff --git a/system/language/german/number_lang.php b/system/language/german/number_lang.php new file mode 100755 index 0000000..83c6c45 --- /dev/null +++ b/system/language/german/number_lang.php @@ -0,0 +1,10 @@ +