Browse Source

API htpasswd file correctly included

Iñigo Valentin 8 năm trước cách đây
mục cha
commit
a0306d217d
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      www-admin/API/v3/functions.php

+ 2 - 2
www-admin/API/v3/functions.php

@@ -40,7 +40,7 @@
             $pass_rw = 'XXXX';
         ?>
         */
-        include('../../../www/.htpasswd');
+        include('../../.htpasswd');
 
         //Connect to to database
         if ($mode == 'ro')
@@ -146,7 +146,7 @@
      *    user: (string): Username.                      *
      *    pass: (string): Password.                      *
      * @return: (int): User id, or -1 if the user and    *
-	 *          pass didn't match.                       *
+     *          pass didn't match.                       *
      *****************************************************/
     function login($con, $user, $pass){
         session_start();