Edit File by line
/home/barbar84/www/wp-conte.../plugins/worker/src/MWP/Crypter
File: Factory.php
<?php
[0] Fix | Delete
/*
[1] Fix | Delete
* This file is part of the ManageWP Worker plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* (c) ManageWP LLC <contact@managewp.com>
[4] Fix | Delete
*
[5] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[6] Fix | Delete
* file that was distributed with this source code.
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
class MWP_Crypter_Factory
[10] Fix | Delete
{
[11] Fix | Delete
public static function createCrypter()
[12] Fix | Delete
{
[13] Fix | Delete
if (extension_loaded('openssl')) {
[14] Fix | Delete
return self::createOpenSslCrypter();
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
return self::createPhpSecLibCrypter();
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
public static function createOpenSslCrypter()
[21] Fix | Delete
{
[22] Fix | Delete
return new MWP_Crypter_OpenSslCrypter();
[23] Fix | Delete
}
[24] Fix | Delete
[25] Fix | Delete
public static function createPhpSecLibCrypter()
[26] Fix | Delete
{
[27] Fix | Delete
return new MWP_Crypter_PhpSecLibCrypter();
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function