|
1234567891011121314151617 |
- <?php
-
- require_once './db_connection.php';
-
- require_once './modules/user.mod.php';
-
-
- $id = $_GET['id'];
- $pass = $_GET['pass'];
-
- $user = User :: find ($id);
-
- if ($user -> pass === $pass)
- echo implode (',', [1, $user -> name]);
- else
- echo '0';
-
|