-
Notifications
You must be signed in to change notification settings - Fork 6
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
16 additions
and
16 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* i-MSCP LetsEncrypt plugin | ||
* i-MSCP SGW_LetsEncrypt plugin | ||
* Copyright (C) 2017 Cambell Prince <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
|
@@ -18,11 +18,11 @@ | |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
namespace LetsEncrypt; | ||
namespace SGW_LetsEncrypt; | ||
|
||
use iMSCP_Events as Events; | ||
use iMSCP_Events_Aggregator as EventManager; | ||
use iMSCP_Plugin_LetsEncrypt as LetsEncrypt; | ||
use iMSCP_Plugin_SGW_LetsEncrypt as SGW_LetsEncrypt; | ||
use iMSCP_pTemplate as TemplateEngine; | ||
use PDO; | ||
|
||
|
@@ -203,14 +203,14 @@ function letsencrypt_generateSubdomains($tpl) | |
EventManager::getInstance()->dispatch(Events::onClientScriptStart); | ||
check_login('user'); | ||
|
||
if (!LetsEncrypt::customerHasLetsEncrypt(intval($_SESSION['user_id']))) { | ||
if (!SGW_LetsEncrypt::customerHasLetsEncrypt(intval($_SESSION['user_id']))) { | ||
showBadRequestErrorPage(); | ||
} | ||
|
||
$tpl = new TemplateEngine(); | ||
$tpl->define_dynamic(array( | ||
'layout' => 'shared/layouts/ui.tpl', | ||
'page' => '../../plugins/LetsEncrypt/themes/default/view/client/letsencrypt.tpl', | ||
'page' => '../../plugins/SGW_LetsEncrypt/themes/default/view/client/letsencrypt.tpl', | ||
'page_message' => 'layout', | ||
'domain_list' => 'page', | ||
'domain_item' => 'domain_list', | ||
|
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
/** | ||
* i-MSCP - internet Multi Server Control Panel | ||
* Copyright (C) 2010-2017 by i-MSCP Team | ||
* i-MSCP SGW_LetsEncrypt plugin | ||
* Copyright (C) 2017 Cambell Prince <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public License | ||
|
@@ -18,11 +18,11 @@ | |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
*/ | ||
|
||
namespace LetsEncrypt; | ||
namespace SGW_LetsEncrypt; | ||
|
||
use iMSCP_Events as Events; | ||
use iMSCP_Events_Aggregator as EventManager; | ||
use iMSCP_Plugin_LetsEncrypt as LetsEncrypt; | ||
use iMSCP_Plugin_SGW_LetsEncrypt as SGW_LetsEncrypt; | ||
use iMSCP_pTemplate as TemplateEngine; | ||
use iMSCP_Database; | ||
use PDO; | ||
|
@@ -244,7 +244,7 @@ function client_editLetsEncrypt() | |
EventManager::getInstance()->dispatch(Events::onClientScriptStart); | ||
check_login('user'); | ||
|
||
if (!LetsEncrypt::customerHasLetsEncrypt(intval($_SESSION['user_id']))) { | ||
if (!SGW_LetsEncrypt::customerHasLetsEncrypt(intval($_SESSION['user_id']))) { | ||
showBadRequestErrorPage(); | ||
} | ||
|
||
|
@@ -256,7 +256,7 @@ function client_editLetsEncrypt() | |
$tpl = new TemplateEngine(); | ||
$tpl->define_dynamic(array( | ||
'layout' => 'shared/layouts/ui.tpl', | ||
'page' => '../../plugins/LetsEncrypt/themes/default/view/client/letsencrypt_edit.tpl', | ||
'page' => '../../plugins/SGW_LetsEncrypt/themes/default/view/client/letsencrypt_edit.tpl', | ||
'page_message' => 'layout' | ||
)); | ||
$tpl->assign(array( | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* i-MSCP LetsEncrypt plugin | ||
* i-MSCP SGW_LetsEncrypt plugin | ||
* Copyright (C) 2017 Cambell Prince <[email protected]> | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
|
@@ -21,9 +21,9 @@ | |
return array( | ||
'author' => 'Cambell Prince', | ||
'email' => '[email protected]', | ||
'version' => '1.5.0', | ||
'version' => '1.5.1', | ||
'require_api' => '1.0.5', | ||
'date' => '2019-03-25', | ||
'date' => '2019-06-24', | ||
'name' => 'SGW_LetsEncrypt', | ||
'desc' => 'Plugin that provides LetsEncrypt SSL certificates.', | ||
'url' => 'https://github.com/saygoweb/imscp-plugin-letsencrypt' | ||
|