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