renaming the fork to PrivateBin

This commit is contained in:
El RIDO
2016-07-11 11:58:15 +02:00
parent 6a663ba07f
commit 79509ad48a
48 changed files with 320 additions and 315 deletions

View File

@@ -1,10 +1,10 @@
<?php
/**
* ZeroBin
* PrivateBin
*
* a zero-knowledge paste bin
*
* @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
* @link https://github.com/PrivateBin/PrivateBin
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
* @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
* @version 0.22
@@ -13,7 +13,7 @@
/**
* model
*
* Factory of ZeroBin instance models.
* Factory of PrivateBin instance models.
*/
class model
{
@@ -27,7 +27,7 @@ class model
/**
* Data storage.
*
* @var zerobin_abstract
* @var privatebin_abstract
*/
private $_store = null;
@@ -61,11 +61,16 @@ class model
{
if ($this->_store === null)
{
// added option to support old config file format
$model = str_replace(
'zerobin_', 'privatebin_',
$this->_conf->getKey('class', 'model')
);
$this->_store = forward_static_call(
array($this->_conf->getKey('class', 'model'), 'getInstance'),
array($model, 'getInstance'),
$this->_conf->getSection('model_options')
);
}
return $this->_store;
}
}
}