Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
198 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?php | ||
/* | ||
Copyright 2009 - 2012 - Etienne 'lenaing' GIRONDEL <lenaing@gmail.com> | ||
FMB : | ||
------------ | ||
This software is an homemade PHP Blog engine. | ||
This software is governed by the CeCILL license under French law and | ||
abiding by the rules of distribution of free software. You can use, | ||
modify and/ or redistribute the software under the terms of the CeCILL | ||
license as circulated by CEA, CNRS and INRIA at the following URL | ||
"http://www.cecill.info". | ||
As a counterpart to the access to the source code and rights to copy, | ||
modify and redistribute granted by the license, users are provided only | ||
with a limited warranty and the software's author, the holder of the | ||
economic rights, and the successive licensors have only limited | ||
liability. | ||
In this respect, the user's attention is drawn to the risks associated | ||
with loading, using, modifying and/or developing or reproducing the | ||
software by the user in light of its specific status of free software, | ||
that may mean that it is complicated to manipulate, and that also | ||
therefore means that it is reserved for developers and experienced | ||
professionals having in-depth computer knowledge. Users are therefore | ||
encouraged to load and test the software's suitability as regards their | ||
requirements in conditions enabling the security of their systems and/or | ||
data to be ensured and, more generally, to use and operate it in the | ||
same conditions as regards security. | ||
The fact that you are presently reading this means that you have had | ||
knowledge of the CeCILL license and that you accept its terms. | ||
*/ | ||
|
||
/** | ||
* LoginPlugin.class.php file. | ||
* This file contains the sourcecode of the abstract LoginPlugin class. | ||
* Every FMB caching plugin should extends this class. | ||
* @package FMB | ||
* @subpackage Plugins | ||
* @author Ziirish <ziirish@ziirish.info> | ||
* @version 0.1b | ||
*/ | ||
namespace FMB\Plugins; | ||
use FMB\Core\Core; | ||
use FMB\Plugins\Plugin; | ||
use FMB\Plugins\LoginPluginInterface; | ||
|
||
// Loading required files. | ||
Core::loadFile('src/plugins/Plugin.class.php', true); | ||
Core::loadFile('src/plugins/LoginPlugin.interface.php', true); | ||
|
||
/** | ||
* LoginPlugin abstract class. | ||
* This file contains the LoginPlugin abstract class. | ||
* @package FMB | ||
* @subpackage Plugins | ||
* @author Ziirish <ziirish@ziirish.info> | ||
* @version 0.1b | ||
* @abstract | ||
*/ | ||
abstract class LoginPlugin extends Plugin implements LoginPluginInterface | ||
{ | ||
|
||
public final function __construct() | ||
{ | ||
parent::__construct('template'); | ||
} | ||
|
||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
<?php | ||
/* | ||
Copyright 2009 - 2012 - Etienne 'lenaing' GIRONDEL <lenaing@gmail.com> | ||
FMB : | ||
------------ | ||
This software is an homemade PHP Blog engine. | ||
This software is governed by the CeCILL license under French law and | ||
abiding by the rules of distribution of free software. You can use, | ||
modify and/ or redistribute the software under the terms of the CeCILL | ||
license as circulated by CEA, CNRS and INRIA at the following URL | ||
"http://www.cecill.info". | ||
As a counterpart to the access to the source code and rights to copy, | ||
modify and redistribute granted by the license, users are provided only | ||
with a limited warranty and the software's author, the holder of the | ||
economic rights, and the successive licensors have only limited | ||
liability. | ||
In this respect, the user's attention is drawn to the risks associated | ||
with loading, using, modifying and/or developing or reproducing the | ||
software by the user in light of its specific status of free software, | ||
that may mean that it is complicated to manipulate, and that also | ||
therefore means that it is reserved for developers and experienced | ||
professionals having in-depth computer knowledge. Users are therefore | ||
encouraged to load and test the software's suitability as regards their | ||
requirements in conditions enabling the security of their systems and/or | ||
data to be ensured and, more generally, to use and operate it in the | ||
same conditions as regards security. | ||
The fact that you are presently reading this means that you have had | ||
knowledge of the CeCILL license and that you accept its terms. | ||
*/ | ||
|
||
/** | ||
* LoginPlugin.interface.php file. | ||
* This file contains the sourcecode of the LoginPlugin interface. | ||
* @package FMB | ||
* @subpackage Plugins | ||
* @author Ziirish <ziirish@ziirish.info> | ||
* @version 0.1b | ||
*/ | ||
namespace FMB\Plugins; | ||
|
||
/** | ||
* LoginPlugin interface. | ||
* This file contains the LoginPlugin interface. | ||
* @package FMB | ||
* @subpackage Plugins | ||
* @author Ziirish <ziirish@ziirish.info> | ||
* @version 0.1b | ||
*/ | ||
interface LoginPluginInterface | ||
{ | ||
/** | ||
* Check if a login/password is valid | ||
* @param string $login Login to test. | ||
* @param string $password Password to test. | ||
* @return TRUE if login/password is valid. | ||
*/ | ||
public function checkLogin($login, $password); | ||
} | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters