PageRenderTime 65ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 0ms

/app/Controller/AppController.php

https://bitbucket.org/udeshika/fake_twitter
PHP | 17 lines | 11 code | 4 blank | 2 comment | 2 complexity | 15f3cefd6c5257de1ac5d5c38f8d75af MD5 | raw file
  1. <?php
  2. class AppController extends Controller {
  3. function check_users() {
  4. // get user data from session
  5. $user = $this->Session->read('User');
  6. // if empty
  7. if (empty($user)) {
  8. return FALSE;
  9. } else {
  10. return TRUE;
  11. }
  12. }
  13. }