mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Some LAN cleanup. Admin Area caption issue (on legacy plugins) corrected.
This commit is contained in:
@@ -321,7 +321,7 @@ class eurl_admin_ui extends e_admin_controller_ui
|
|||||||
|
|
||||||
public function SettingsPage()
|
public function SettingsPage()
|
||||||
{
|
{
|
||||||
$this->addTitle(LAN_EURL_NAME_SETTINGS);
|
//$this->addTitle(LAN_EURL_NAME_SETTINGS);
|
||||||
return $this->getUI()->urlSettings();
|
return $this->getUI()->urlSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -357,7 +357,7 @@ class eurl_admin_ui extends e_admin_controller_ui
|
|||||||
|
|
||||||
public function AliasPage()
|
public function AliasPage()
|
||||||
{
|
{
|
||||||
$this->addTitle(LAN_EURL_NAME_ALIASES);
|
// $this->addTitle(LAN_EURL_NAME_ALIASES);
|
||||||
|
|
||||||
$aliases = e107::getPref('url_aliases', array());
|
$aliases = e107::getPref('url_aliases', array());
|
||||||
|
|
||||||
@@ -412,7 +412,7 @@ class eurl_admin_ui extends e_admin_controller_ui
|
|||||||
|
|
||||||
public function ConfigPage()
|
public function ConfigPage()
|
||||||
{
|
{
|
||||||
$this->addTitle(LAN_EURL_NAME_CONFIG);
|
// $this->addTitle(LAN_EURL_NAME_CONFIG);
|
||||||
$active = e107::getPref('url_config');
|
$active = e107::getPref('url_config');
|
||||||
|
|
||||||
$set = array();
|
$set = array();
|
||||||
|
@@ -60,7 +60,7 @@ $CONTACT_TEMPLATE['menu'] = '
|
|||||||
// In this case (see contact.php) e107::getScBatch('contact')->wrapper('contact/form')
|
// In this case (see contact.php) e107::getScBatch('contact')->wrapper('contact/form')
|
||||||
// Only one Option is used - WRAPPER > SC_STYLE
|
// Only one Option is used - WRAPPER > SC_STYLE
|
||||||
|
|
||||||
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE'] = "<tr><td>".LANCONTACT_16."<br />{---}";
|
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE'] = "<tr><td>".LAN_ENTER_CODE."<br />{---}";
|
||||||
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE_INPUT'] = "{---}</td></tr>";
|
$CONTACT_WRAPPER['form']['CONTACT_IMAGECODE_INPUT'] = "{---}</td></tr>";
|
||||||
$CONTACT_WRAPPER['form']['CONTACT_EMAIL_COPY'] = "<tr><td>{---}".LANCONTACT_07."</td></tr>";
|
$CONTACT_WRAPPER['form']['CONTACT_EMAIL_COPY'] = "<tr><td>{---}".LANCONTACT_07."</td></tr>";
|
||||||
$CONTACT_WRAPPER['form']['CONTACT_PERSON'] = "<tr><td>".LANCONTACT_14."<br />{---}</td></tr>";
|
$CONTACT_WRAPPER['form']['CONTACT_PERSON'] = "<tr><td>".LANCONTACT_14."<br />{---}</td></tr>";
|
||||||
|
@@ -2811,6 +2811,7 @@ class e_parser
|
|||||||
* @param $lan - string LAN
|
* @param $lan - string LAN
|
||||||
* @param string | array $vals - either a single value, which will replace '[x]' or an array with key=>value pairs.
|
* @param string | array $vals - either a single value, which will replace '[x]' or an array with key=>value pairs.
|
||||||
* @example $tp->lanVars("My name is [x] and I own a [y]", array('x'=>"John", 'y'=>"Cat"));
|
* @example $tp->lanVars("My name is [x] and I own a [y]", array('x'=>"John", 'y'=>"Cat"));
|
||||||
|
* @example $tp->lanVars("My name is [x] and I own a [y]", array("John","Cat"));
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
function lanVars($lan, $vals, $bold=false)
|
function lanVars($lan, $vals, $bold=false)
|
||||||
@@ -2821,8 +2822,15 @@ class e_parser
|
|||||||
$search = array();
|
$search = array();
|
||||||
$replace = array();
|
$replace = array();
|
||||||
|
|
||||||
|
$defaults = array('x', 'y', 'z');
|
||||||
|
|
||||||
foreach($array as $k=>$v)
|
foreach($array as $k=>$v)
|
||||||
{
|
{
|
||||||
|
if(is_numeric($k)) // convert array of numeric to x,y,z
|
||||||
|
{
|
||||||
|
$k = $defaults[$k];
|
||||||
|
}
|
||||||
|
|
||||||
$search[] = "[".$k."]";
|
$search[] = "[".$k."]";
|
||||||
$replace[] = ($bold===true) ? "<strong>".$v."</strong>" : $v;
|
$replace[] = ($bold===true) ? "<strong>".$v."</strong>" : $v;
|
||||||
}
|
}
|
||||||
|
@@ -31,4 +31,4 @@ define("LANCONTACT_13", "Please include a subject.");
|
|||||||
|
|
||||||
define("LANCONTACT_14", "Send message to:");
|
define("LANCONTACT_14", "Send message to:");
|
||||||
define("LANCONTACT_15", "Incorrect code entered");
|
define("LANCONTACT_15", "Incorrect code entered");
|
||||||
define("LANCONTACT_16", "Enter Code");
|
|
||||||
|
@@ -23,9 +23,9 @@ define("PAGE_NAME", "Register");
|
|||||||
//define("LAN_106", "That doesn't appear to be a valid email address");
|
//define("LAN_106", "That doesn't appear to be a valid email address");
|
||||||
define("LAN_108", "Registration complete");
|
define("LAN_108", "Registration complete");
|
||||||
define("LAN_185", "You left required field(s) blank");
|
define("LAN_185", "You left required field(s) blank");
|
||||||
define("LAN_201", "Yes");
|
// define("LAN_201", "Yes");
|
||||||
define("LAN_200", "No");
|
// define("LAN_200", "No");
|
||||||
define("LAN_399", "Continue");
|
// define("LAN_399", "Continue");
|
||||||
define("LAN_407", "Please keep this email for your own information. Your password has been encrypted and cannot be retrieved if you misplace or forget it. You can however request a new password if this happens.\n\nThanks for your registration.\n\nFrom");
|
define("LAN_407", "Please keep this email for your own information. Your password has been encrypted and cannot be retrieved if you misplace or forget it. You can however request a new password if this happens.\n\nThanks for your registration.\n\nFrom");
|
||||||
//define("LAN_408", "A user with that email address already exists. Please use the 'forgot password' screen to retrieve your password.");
|
//define("LAN_408", "A user with that email address already exists. Please use the 'forgot password' screen to retrieve your password.");
|
||||||
|
|
||||||
|
@@ -71,12 +71,8 @@ define('LAN_PM_67', 'No users blocked');
|
|||||||
define('LAN_PM_68', 'User Name');
|
define('LAN_PM_68', 'User Name');
|
||||||
define('LAN_PM_69', 'Date blocked');
|
define('LAN_PM_69', 'Date blocked');
|
||||||
define('LAN_PM_70', 'Deleting block on user');
|
define('LAN_PM_70', 'Deleting block on user');
|
||||||
define('LAN_PM_71', '--GOOD-- attachment(s) deleted. --FAIL-- failure(s)');
|
define('LAN_PM_71', '[x] attachment(s) deleted. [y] failure(s)');
|
||||||
define('LAN_PM_72', '');
|
|
||||||
define('LAN_PM_73', '');
|
|
||||||
define('LAN_PM_74', '');
|
|
||||||
define('LAN_PM_75', '');
|
|
||||||
define('LAN_PM_76', '');
|
|
||||||
|
|
||||||
define("LAN_PM_100", "New PM from ");
|
define("LAN_PM_100", "New PM from ");
|
||||||
define("LAN_PM_101", "You have received a new Private Message from ");
|
define("LAN_PM_101", "You have received a new Private Message from ");
|
||||||
@@ -88,6 +84,5 @@ define("LAN_PM_106", "PM read by ");
|
|||||||
define("LAN_PM_107", "The Private Message you sent to {UNAME} was read on ");
|
define("LAN_PM_107", "The Private Message you sent to {UNAME} was read on ");
|
||||||
define("LAN_PM_108", "Message sent on: ");
|
define("LAN_PM_108", "Message sent on: ");
|
||||||
define("LAN_PM_109", "New Message(s)");
|
define("LAN_PM_109", "New Message(s)");
|
||||||
define("LAN_PM_110", "ok");
|
|
||||||
define("LAN_PM_111", "Read");
|
define("LAN_PM_111", "Read");
|
||||||
?>
|
?>
|
@@ -316,7 +316,9 @@ class private_message
|
|||||||
}
|
}
|
||||||
if ($aCount[0] || $aCount[1])
|
if ($aCount[0] || $aCount[1])
|
||||||
{
|
{
|
||||||
$ret .= str_replace(array('--GOOD--', '--FAIL--'), $aCount, LAN_PM_71).'<br />';
|
|
||||||
|
// $ret .= str_replace(array('--GOOD--', '--FAIL--'), $aCount, LAN_PM_71).'<br />';
|
||||||
|
$ret .= e107::getParser()->lanVars(LAN_PM_71, $aCount);
|
||||||
}
|
}
|
||||||
$sql->delete('private_msg', 'pm_id = '.$pmid);
|
$sql->delete('private_msg', 'pm_id = '.$pmid);
|
||||||
}
|
}
|
||||||
|
@@ -54,7 +54,7 @@ if(!function_exists('pm_show_popup'))
|
|||||||
<td width=100% style='text-align:center'>
|
<td width=100% style='text-align:center'>
|
||||||
<b>--- ".LAN_PM." ---</b><br />".$pm_inbox['inbox']['new'].' '.LAN_PM_109."<br />".$pm_inbox['inbox']['unread'].' '.LAN_PM_37."<br /><br />
|
<b>--- ".LAN_PM." ---</b><br />".$pm_inbox['inbox']['new'].' '.LAN_PM_109."<br />".$pm_inbox['inbox']['unread'].' '.LAN_PM_37."<br /><br />
|
||||||
<form>
|
<form>
|
||||||
<input class=\'button\' type=\'submit\' onclick=\'self.close();\' value = \'".LAN_PM_110."\' />
|
<input class=\'button\' type=\'submit\' onclick=\'self.close();\' value = \'".LAN_OK."\' />
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -199,7 +199,7 @@ $ADMIN_HEADER .= '<div class="container-fluid">
|
|||||||
{ADMIN_MENU}
|
{ADMIN_MENU}
|
||||||
{ADMIN_MENUMANAGER}
|
{ADMIN_MENUMANAGER}
|
||||||
|
|
||||||
|
|
||||||
{ADMIN_PWORD}
|
{ADMIN_PWORD}
|
||||||
{SETSTYLE=site_info}
|
{SETSTYLE=site_info}
|
||||||
|
|
||||||
@@ -216,11 +216,10 @@ $ADMIN_HEADER .= '<div class="container-fluid">
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{SETSTYLE=none}
|
{SETSTYLE=default}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="span10" id="right-panel" >
|
<div class="span10" id="right-panel" >
|
||||||
|
|
||||||
';
|
';
|
||||||
|
|
||||||
|
|
||||||
@@ -231,7 +230,7 @@ $ADMIN_FOOTER = '
|
|||||||
|
|
||||||
</div><!--/.fluid-container-->
|
</div><!--/.fluid-container-->
|
||||||
<footer class="center mute">
|
<footer class="center mute">
|
||||||
Copyright © 2008-2013 e107 Inc (e107.org)<br />
|
Copyright © 2008-2015 e107 Inc (e107.org)<br />
|
||||||
</footer>';
|
</footer>';
|
||||||
|
|
||||||
|
|
||||||
|
@@ -54,15 +54,15 @@ $no_core_css = TRUE;
|
|||||||
class bootstrap_admintheme
|
class bootstrap_admintheme
|
||||||
{
|
{
|
||||||
|
|
||||||
function tablestyle($caption, $text, $mode)
|
function tablestyle($caption, $text, $mode, $data)
|
||||||
{
|
{
|
||||||
global $style;
|
// global $style;
|
||||||
|
|
||||||
|
$style = $data['setStyle'];
|
||||||
|
|
||||||
|
// echo "Style: ".$style;
|
||||||
$class = '';
|
$class = '';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(is_string($mode) && $mode == 'admin_help') $class = ' '.str_replace('_', '-', $mode);
|
if(is_string($mode) && $mode == 'admin_help') $class = ' '.str_replace('_', '-', $mode);
|
||||||
|
|
||||||
if($mode == 'e_help')
|
if($mode == 'e_help')
|
||||||
|
Reference in New Issue
Block a user