// All the start of your script here:// Start of rules:if($_REQUEST['do'] == 'rules'){ // Fill in rules here...}else{ // Fill in main here...}