Phpffl



Current Description. Multiple PHP remote file inclusion vulnerabilities in phpFFL 1.24 allow remote attackers to execute arbitrary PHP code via a URL in the PHPFFLFILEROOT parameter to (1) admin.php, (2) custompages.php, (3) draft.php, (4) faq.php, (5) leagues.php, (6) livedraft.php, (7) login.php, (8) myteam.php, (9) profile.php, (10) signup.php, (11) statistics.php, (12) transactions.php. I am aware of phpFFL, which purports to be open source fantasy football league software—but development seems to have stalled. (It also looks like they are screen scraping CBS Sports for statistics, which I really want to avoid.). I only stumbled upon this open source league management system today. Looks like it is still being developed in that the scoring categories arent as complete as others, but you cant beat the price of free. It includes live scoring (or close to it) and most of the basic features one would need to. PhpFFL is a free and fully customizable online Fantasy Football League Manager with a live(ajax) draft module. PhpFFL is a web based application.

Fantasy Football League

phpFFL is a free, customizable web-based Fantasy Football League Manager with automated scoring. phpFFL is fully customizable. You customize the number of teams, schedule, divisions, length of season and scoring system.


Some of the features included in phpFFL:
  • Live Draft Module based on Ajax with autodraft capability.
  • Default player rank and ability for each team to customize their own list.
  • Customized Scoring to Fit Your League.
  • Multiple league support including public and private leagues.
  • Define the number of teams in your league and divisions.
  • Pre-loaded fantasy schedules which can be modifired.
  • Trades and Waivers submitted online through phpFFL.
  • Built in approval process for trades and waivers.
  • Sortable Player Stats.
  • Draft Module to run your draft.
  • Multiple Languages - English, German.
  • User defined time settings.
Home PageFantasy Football League
Version1.71
Contributorcpg
Updatedabout 4 years ago
Tagsfantasy football, league manager, league
Share
Status
  • Fedora 14Ubuntu 12.04
  • Fedora 19Fedora 21
  • Fedora 23Fedora 25
  • Fedora 27Fedora 33

This app is in status ALPHA and is only available for testing to members of the Amahi Tester Program until the app is stable to become Live.

Want to add your own app or package your favorite app here? Become a contributor and submit apps!

As a programmer and a fantasy football addict, I am embarassed by the meansthrough which we must expend ourselves to get data in a machine readable form.This lack of open source software cripples the community with sub-standardtools, and most importantly, detracts from some really cool and fun things thatcould be done with easily available statistics. Many tools are either out-datedor broken, or if they work, they are closed source and often cost money.

Yesterday I started work on a new library package that I hope will start toimprove this sorry state of affairs.

nflgame is a Pythonpackage that provides convenient accessto NFL statistics. This includes games that are currently being played, orgames as far back as the 2009 season.

nflgame works by reading a JSONfeedthat powers NFL.com’s liveGameCenter.

Since game statistics never change after a game has beenplayed,the JSON data is automatically cached and saved to disk if the game is nolonger being played. The next time statistics for that game are queried, thedata will be read from disk. (nflgame comes preloaded with data from every gamein the pre- and regular season since 2009.)

The API for nflgame is small andhopefully easy to use—even for those without much or any experienceprogramming.

Teaser

Let’s start off with a quick teaser to showcase some of nflgame’s power.

Who lead the league in rushing between weeks 10 and 14 of the 2010 regularseason?

I won’t make you hunt down the answer. Here’s five lines of code that lists thetop ten rushers in weeks 10-14 of the 2009 season:

Php Flush

Back to basics

If you are a beginning programmer (or don’t have any experience programming), Istrongly urge you to read my Tutorial for non programmers: Installationandexamples.What follows is a condensed version of the tutorial that might be abit too confusing for those without programming experience.

nflgame is designed around three core concepts: games, players and lists ofplayers (that are implemented as Python generators). Games can be selectedbased on season, week and team. Players in each game can then be accessed byname, statistical categories (i.e., passing, rushing, defense, etc.), or evenstatistical values—such as finding all players in a list with at leastone receiving touchdown.

Phpmyadmin

Games can be selected one at a time:

Or in bulk (every game in the 2009 season):

Each game comes with its own players attribute that holds player statisticsfor every player that participated in the game. Additionally, games haveattributes like winner, home, away, score_home, score_away andclock that report meta-information about the game itself.

So to get every player with at least one passing statistic in a game:

And the same thing can be done with rushing, receiving, defense, kicking, etc.,by simply replacing passing with one of the aforementioned.

Each player comes with his own grouping of statistics. To extend upon theprevious example, consider printing out some passing statistics associated witheach passer in the game:

Filtering, sorting and combining—oh my!

No data API would be complete without a means of filtering the data accordingto its values.

To find all players on the home team of the current game:

In this case, New England is the home team, so only players on the Patriots arereturned.

A more advanced use of filter is to use predicates to determine whether aparticular stat should be filtered or not. For example, here we look at everyplayer in the game on the home team with at least one interception:

Any player list can be sorted according to a statistical field. For example, wemight want to see a list of rushing leaders in the game by yards:

Player statistics for the same player from different games can be combined torepresent statistics from multiple games. Additionally, player generators canbe concatenated. This combination allows one to construct searchable playergenerators of any makeup: from only games in a certain week, to all gamesin a season (or multiple seasons!).

For example, to find the top ten rushing leaders from week 2 of the 2009season, we simply select all games from that week, combine the games into asingle player list, and use our familiar searching methods exemplified above toget our answer:

Phpffl

What if you wanted to see who passed for the most touchdowns in the first fiveweeks of the 2011 season?

Or how about the receiving leaders for the entire 2009 season?

Finally, with any of the above examples, you can export the statistics to aCSV file that can be read by Excel. For example, to export the entire 2011season in just a single line:

What’s next?

For the short-term, I’d really like to come up with an easy and elegant way ofproviding alerts (emails and texts) for your fantasy football team. Forexample, whenever a player on your team—or your opponent’steam—scores a lot of points like a touchdown or a field goal. I didsomething like this last year using a cobbled together hack-job that I’mashamed of, and it was a lot of fun. (I did screen scraping on the ESPN fantasyweb site for all the statistics.)

Php

The real problem here is keeping your roster up to date. It’s pretty easy ifyou’re using Yahoo because of their Fantasy SportsAPI, but I don’t think anyother league web site offers such amenities.

In the long-term, nflgame could certainly be the statistical back-bone forfantasy football league software. But I don’t think that’s on my personal radarany time soon.

I am aware of phpFFL, which purportsto be open source fantasy football league software—but development seemsto have stalled. (It also looks like they are screen scraping CBS Sports forstatistics, which I really want to avoid.) Plus, I vowed a long time ago neverto take up another serious project in PHP again. I value my mental health toohighly.

Links