public System.PageReference currentPage()
Type: System.PageReference
This code segment returns the id parameter of the current page.
public MyController() { account = [ SELECT Id, Name, Site FROM Account WHERE Id = :ApexPages.currentPage(). getParameters(). get('id') ]; }