Example #1
0
     $rules = $_POST['body'];
     $ez_league->edit_rules($league_id, $rules);
     break;
 case 'edit-league':
     $league_id = $_POST['league_id'];
     $league = $_POST['league'];
     $total_games = $_POST['total_games'];
     $max_teams = $_POST['max_teams'];
     $max_roster = $_POST['max_roster'];
     $start = strtotime($_POST['start']);
     $end = strtotime($_POST['end']);
     $ez_league->edit_league($max_teams, $total_games, $league_id, $league, $max_roster, $start, $end);
     break;
 case 'delete-league':
     $league_id = $_POST['league_id'];
     $ez_league->delete_league($league_id);
     break;
 case 'create-league':
     $league = $_POST['league'];
     $teams = $_POST['max_teams'];
     $games = $_POST['total_games'];
     $max_roster = $_POST['max_roster'];
     $game = $_POST['game'];
     $start = strtotime($_POST['start']);
     $end = strtotime($_POST['end']);
     $ez_league->create_league($league, $game, $teams, $games, $max_roster, $start, $end);
     break;
 case 'edit-season':
     $start = strtotime($_POST['start']);
     $end = strtotime($_POST['end']);
     $registration = strtotime($_POST['registration']);