Skip to content

Commit

Permalink
MIT license and credits
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeghali committed Sep 7, 2011
1 parent 42f945b commit 1d3bd9f
Show file tree
Hide file tree
Showing 19 changed files with 285 additions and 5 deletions.
22 changes: 22 additions & 0 deletions LICENSE
@@ -0,0 +1,22 @@
Copyright (c) 2011 Christian Stocker,
Christian Weiske,
Till Klampaeckel,
Igor Feghali

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
14 changes: 14 additions & 0 deletions config/config-admin.inc.php-dist
@@ -1,4 +1,18 @@
<?php
/**
* Planet PHP
*
* Config file for planet administration
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Weiske <cweiske@cweiske.de>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

/**
* PEAR karma
Expand Down
13 changes: 13 additions & 0 deletions config/config-defaults.inc.php
@@ -1,9 +1,22 @@
<?php
/**
* Planet PHP
*
* This is a defaults configuration to ease configuration.
*
* You should not edit anything in here, just override the constants in
* config.inc.php instead.
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
/**
*
* @author Till Klampaeckel <till@php.net>
*/
Expand Down
15 changes: 15 additions & 0 deletions config/config.inc.php-dist
@@ -1,4 +1,19 @@
<?php
/**
* Planet PHP
*
* Config file for planet
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

define('PROJECT_NAME_HR', 'Planet-PHP');
define('PROJECT_NAME', 'PlanetPHP');
define('PROJECT_URL', 'http://planet-php.org');
Expand Down
15 changes: 15 additions & 0 deletions include/Aggregator.php
@@ -1,4 +1,19 @@
<?php
/**
* Planet PHP
*
* Used in the aggregator script
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Till Klampaeckel <till@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

require_once 'utf2entities.php';
require_once 'magpierss/rss_fetch.inc';

Expand Down
14 changes: 14 additions & 0 deletions include/Controller.php
@@ -1,4 +1,18 @@
<?php
/**
* Planet PHP
*
* Main controller class
*
* PHP version 5
*
* @package Planet_PHP
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

abstract class Controller
{
/**
Expand Down
16 changes: 16 additions & 0 deletions include/Controller/Admin.php
@@ -1,4 +1,20 @@
<?php
/**
* Planet PHP
*
* Admin controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Controller_Admin extends Controller
{
protected $name = 'Admin';
Expand Down
14 changes: 14 additions & 0 deletions include/Controller/Feed.php
@@ -1,4 +1,18 @@
<?php
/**
* Planet PHP
*
* Feed controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Controller_Feed extends Controller
{
protected $name = 'Feed';
Expand Down
14 changes: 13 additions & 1 deletion include/Controller/Planet.php
@@ -1,6 +1,18 @@
<?php
/**
* @author Till Klampaeckel <till@php.net>
* Planet PHP
*
* Planet controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Controller_Planet extends Controller
{
Expand Down
15 changes: 15 additions & 0 deletions include/Controller/Submit.php
@@ -1,4 +1,19 @@
<?php
/**
* Planet PHP
*
* Submit controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Controller_Submit extends Controller
{
protected $name = 'Submit';
Expand Down
13 changes: 13 additions & 0 deletions include/Model.php
@@ -1,3 +1,16 @@
<?php
/**
* Planet PHP
*
* Main model class
*
* PHP version 5
*
* @package Planet_PHP
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model {
}
16 changes: 16 additions & 0 deletions include/Model/Admin.php
@@ -1,4 +1,20 @@
<?php
/**
* Planet PHP
*
* Admin model
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model_Admin extends Model
{
protected $db;
Expand Down
15 changes: 12 additions & 3 deletions include/Model/Feed.php
@@ -1,8 +1,17 @@
<?php
/**
* @category Feed
* @package Planet-PHP
* @author Till Klampaeckel <till@php.net>
* Planet PHP
*
* Feed model
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model_Feed extends Model
{
Expand Down
14 changes: 14 additions & 0 deletions include/Model/Feed/Entry.php
@@ -1,4 +1,18 @@
<?php
/**
* Planet PHP
*
* Feed Entry model
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model_Feed_Entry extends Model
{
protected $data = array(
Expand Down
15 changes: 15 additions & 0 deletions include/Model/Planet.php
@@ -1,4 +1,19 @@
<?php
/**
* Planet PHP
*
* Planet controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model_Planet extends Model
{
protected $db; // MDB2_Common
Expand Down
15 changes: 15 additions & 0 deletions include/Model/Submit.php
@@ -1,4 +1,19 @@
<?php
/**
* Planet PHP
*
* Submit controller
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/
class Model_Submit extends Model
{
/**
Expand Down
20 changes: 19 additions & 1 deletion public/router.php
@@ -1,10 +1,28 @@
<?php
/**
* Planet PHP
*
* Site router. Renders controller's action as requested by user.
*
* PHP version 5
*
* @package Planet_PHP
* @author Till Klampaeckel <till@php.net>
* @author Christian Weiske <cweiske@cweiske.de>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

/**
* Configuration file.
*/
require_once dirname(dirname(__FILE__)).'/config/config.inc.php';

// Init Router
/**
* Parse URL
*/
try {
$m = Net_URL_Mapper::getInstance();

Expand Down
14 changes: 14 additions & 0 deletions public/theme-router.php
@@ -1,4 +1,18 @@
<?php
/**
* Planet PHP
*
* Site router for theme assets.
*
* PHP version 5
*
* @package Planet_PHP
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

/**
* Configuration file.
*/
Expand Down
16 changes: 16 additions & 0 deletions scripts/aggregate.php
@@ -1,5 +1,21 @@
#!/usr/bin/env php
<?php
/**
* Planet PHP
*
* Script to fetch feeds and populate planet.
*
* PHP version 5
*
* @package Planet_PHP
* @author Christian Stocker <me@chregu.tv>
* @author Till Klampaeckel <till@php.net>
* @author Igor Feghali <ifeghali@php.net>
* @copyright 2011 The Authors
* @license http://opensource.org/licenses/MIT The MIT License
* @link http://github.com/ifeghali/planet-php/
*/

/**
* Configuration file.
*/
Expand Down

0 comments on commit 1d3bd9f

Please sign in to comment.