<?php
session_start();

if($_SESSION['client_id'] != 0){
    echo 1;
}else if($_SESSION['admin'] == 0){
    echo 2;
}