//Retrieve Posts if(count($_REQUEST) == 4) //if we have no _GET or _POST variables $content = get_all_articles($base_url); else { $_REQUEST["limit"] = 4; $content = get_restricted_articles($base_url, $_REQUEST); }