Refactored code and added additional features
[speedfreak] / Server / application / config / api.php
index c61e18c..99b56a8 100644 (file)
@@ -7,8 +7,18 @@
  * URL where to redirect if no parameters are given to API controller
  */
  $config['default_redirect'] = 'http://www.speedfreak-app.com';
-
 /*
  * Salt for hashing (should always be changed on deployment!)
  */
-$config['salf'] = 'klzdjkhI/&/567Û%#ÛgbnkBJHVTVjdhiuhdbmzcss-__FDHSYUWYUTUDGBZ';
\ No newline at end of file
+$config['salf'] = 'klzdjkhI/&/567Û%#ÛgbnkBJHVTVjdhiuhdbmzcss-__FDHSYUWYUTUDGBZ';
+
+/*
+ * Maximum filesize for avatar images (in bytes)
+ */
+$config['avatar_max_filesize'] = '102400';
+
+/*
+ * Allowed image types for avatars
+ */
+$config['avatar_allowed_filetypes'] = array('image/jpeg');
\ No newline at end of file