mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
e_DEVELOPER constant added. (developer mode active). DKIM and Multi-site install set to developer-mode only.
This commit is contained in:
@@ -700,7 +700,8 @@ define('SITEADMINEMAIL', $pref['siteadminemail']);
|
|||||||
define('SITEDISCLAIMER', $tp->toHTML($pref['sitedisclaimer'], '', 'emotes_off,defs'));
|
define('SITEDISCLAIMER', $tp->toHTML($pref['sitedisclaimer'], '', 'emotes_off,defs'));
|
||||||
define('SITECONTACTINFO', $tp->toHTML($pref['sitecontactinfo'], true, 'emotes_off,defs'));
|
define('SITECONTACTINFO', $tp->toHTML($pref['sitecontactinfo'], true, 'emotes_off,defs'));
|
||||||
define('SITEEMAIL', vartrue($pref['replyto_email'],$pref['siteadminemail']));
|
define('SITEEMAIL', vartrue($pref['replyto_email'],$pref['siteadminemail']));
|
||||||
define('USER_REGISTRATION', vartrue($pref['user_reg'],false)); // User Registration System Active or Not.
|
define('USER_REGISTRATION', vartrue($pref['user_reg'],false)); // User Registration System Active or Not.
|
||||||
|
define('e_DEVELOPER', vartrue($pref['developer'],false));
|
||||||
|
|
||||||
if(is_array($pref['xurl']))
|
if(is_array($pref['xurl']))
|
||||||
{
|
{
|
||||||
|
@@ -180,9 +180,9 @@ class system_tools
|
|||||||
'backup' => array('diz'=>DBLAN_68,'label'=>DBLAN_69)
|
'backup' => array('diz'=>DBLAN_68,'label'=>DBLAN_69)
|
||||||
);
|
);
|
||||||
|
|
||||||
if(vartrue($_SERVER['E_DEV']))
|
if(deftrue('e_DEVELOPER'))
|
||||||
{
|
{
|
||||||
$this->_options['multisite'] = array('diz'=>'', 'label'=> 'Multi-Site');
|
$this->_options['multisite'] = array('diz'=>"<span class='label label-warning'>Developer Mode Only</span>", 'label'=> 'Multi-Site' );
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_options = multiarray_sort($this->_options, 'label');
|
$this->_options = multiarray_sort($this->_options, 'label');
|
||||||
@@ -446,6 +446,12 @@ class system_tools
|
|||||||
|
|
||||||
private function multiSite()
|
private function multiSite()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(!deftrue('e_DEVELOPER'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$mes = e107::getMessage();
|
$mes = e107::getMessage();
|
||||||
$frm = e107::getForm();
|
$frm = e107::getForm();
|
||||||
|
|
||||||
|
@@ -1212,12 +1212,19 @@ class mailout_main_ui extends e_admin_ui
|
|||||||
"</td>
|
"</td>
|
||||||
</tr>\n";
|
</tr>\n";
|
||||||
*/
|
*/
|
||||||
if(function_exists('openssl_pkey_new'))
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if(function_exists('openssl_pkey_new') && deftrue('e_DEVELOPER'))
|
||||||
|
{
|
||||||
$text .= "<tr><td>DomainKeys Identified Mail (DKIM)</td><td class='form-inline'>".$frm->button('DKIM_generate',1,'primary','Generate Public/Private keys')."
|
$text .= "<tr><td>DomainKeys Identified Mail (DKIM)</td><td class='form-inline'>".$frm->button('DKIM_generate',1,'primary','Generate Public/Private keys')."
|
||||||
</td></tr>";
|
<span class='label label-warning'>Developer Mode Only</span></td></tr>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$text .= "</table></fieldset>
|
$text .= "</table></fieldset>
|
||||||
<fieldset id='core-mail-prefs-bounce'>
|
<fieldset id='core-mail-prefs-bounce'>
|
||||||
<legend>".LAN_MAILOUT_31."</legend>
|
<legend>".LAN_MAILOUT_31."</legend>
|
||||||
|
Reference in New Issue
Block a user