list.php 266 B

1234567891011121314
  1. <?php
  2. error_reporting(E_ALL);
  3. require_once 'action.php';
  4. require_once 'db.php';
  5. require_once 'token.php';
  6. $token = substr(trim($_GET['token']),0,25);
  7. if (!(new token)->isUser($token)) {
  8. echo "user access denied";
  9. exit;
  10. }
  11. print_r((new action)->getList());