mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Issue #435 - More Bootstrap3 styling fixes. Login-menu shortcodes updated to v2 spec.
This commit is contained in:
7
e107_core/shortcodes/single/alerts.php
Normal file
7
e107_core/shortcodes/single/alerts.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
function alerts_shortcode($parm = '')
|
||||||
|
{
|
||||||
|
return e107::getMessage()->render();
|
||||||
|
}
|
@@ -76,12 +76,12 @@ function nextprev_shortcode($parm = '')
|
|||||||
$total_items = intval($parm['total']);
|
$total_items = intval($parm['total']);
|
||||||
$check_render = true;
|
$check_render = true;
|
||||||
|
|
||||||
if(vartrue($parm['glyphs']) && (BOOTSTRAP === true))
|
if(vartrue($parm['glyphs']) && (deftrue('BOOTSTRAP')))
|
||||||
{
|
{
|
||||||
$LAN_NP_FIRST = "<i class='icon-fast-backward'></i>";
|
$LAN_NP_FIRST = $tp->toGlyph("icon-fast-backward.glyph",false);
|
||||||
$LAN_NP_PREVIOUS = "<i class='icon-backward'></i>";
|
$LAN_NP_PREVIOUS = $tp->toGlyph("icon-backward.glyph",false);
|
||||||
$LAN_NP_NEXT = "<i class='icon-forward'></i>";
|
$LAN_NP_NEXT = $tp->toGlyph("icon-forward.glyph",false);
|
||||||
$LAN_NP_LAST = "<i class='icon-fast-forward'></i>";
|
$LAN_NP_LAST = $tp->toGlyph("icon-fast-forward.glyph",false);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -716,7 +716,7 @@ if ($e107_popup != 1) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//XXX TODO LAN in English.php
|
//XXX TODO LAN in English.php
|
||||||
echo "<noscript><div class='alert alert-block alert-error'><strong>This web site requires that javascript be enabled. <a rel='external' href='http://activatejavascript.org'>Click here for instructions.</a>.</strong></div></noscript>";
|
echo "<noscript><div class='alert alert-block alert-error alert-danger'><strong>This web site requires that javascript be enabled. <a rel='external' href='http://activatejavascript.org'>Click here for instructions.</a>.</strong></div></noscript>";
|
||||||
|
|
||||||
if(deftrue('BOOTSTRAP'))
|
if(deftrue('BOOTSTRAP'))
|
||||||
{
|
{
|
||||||
|
@@ -531,6 +531,8 @@ class userlogin
|
|||||||
$this->logNote('LAN_ROLL_LOG_10', $username);
|
$this->logNote('LAN_ROLL_LOG_10', $username);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
e107::getMessage()->addError(LOGINMESSAGE);
|
||||||
|
|
||||||
if ($doCheck)
|
if ($doCheck)
|
||||||
{ // See if ban required (formerly the checkibr() function)
|
{ // See if ban required (formerly the checkibr() function)
|
||||||
if($pref['autoban'] == 1 || $pref['autoban'] == 3)
|
if($pref['autoban'] == 1 || $pref['autoban'] == 3)
|
||||||
|
@@ -512,7 +512,7 @@ class eMessage
|
|||||||
*/
|
*/
|
||||||
public static function formatMessage($mstack, $type, $message)
|
public static function formatMessage($mstack, $type, $message)
|
||||||
{
|
{
|
||||||
$bstrap = array('info'=>'alert-info','error'=>'alert-error','warning'=>'alert-warning','success'=>'alert-success');
|
$bstrap = array('info'=>'alert-info','error'=>'alert-error alert-danger','warning'=>'alert-warning','success'=>'alert-success','debug'=>'alert-warning');
|
||||||
$bclass = vartrue($bstrap[$type]) ? " ".$bstrap[$type] : "";
|
$bclass = vartrue($bstrap[$type]) ? " ".$bstrap[$type] : "";
|
||||||
|
|
||||||
if (empty($message))
|
if (empty($message))
|
||||||
@@ -972,7 +972,7 @@ function show_emessage($mode, $message, $line = 0, $file = "") {
|
|||||||
require_once(e_THEME.'index.html');
|
require_once(e_THEME.'index.html');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
echo "<div class='alert alert-block alert-error' style='text-align:center; font: 11px verdana, tahoma, arial, helvetica, sans-serif;'><b>CRITICAL_ERROR: </b><br />Line $line $file<br /><br />Error reported as: ".$message."</div>";
|
echo "<div class='alert alert-block alert-error alert-danger' style='text-align:center; font: 11px verdana, tahoma, arial, helvetica, sans-serif;'><b>CRITICAL_ERROR: </b><br />Line $line $file<br /><br />Error reported as: ".$message."</div>";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "MESSAGE":
|
case "MESSAGE":
|
||||||
|
@@ -868,7 +868,7 @@ class download
|
|||||||
$errmsg = LAN_dl_61." ".$this->qry['error'];
|
$errmsg = LAN_dl_61." ".$this->qry['error'];
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ns->tablerender(LAN_dl_61, $header. "<div class='alert alert-error alert-block' style='text-align:center'>".$errmsg."</div>". $footer, 'download-error', true);
|
return $ns->tablerender(LAN_dl_61, $header. "<div class='alert alert-error alert-danger alert-block' style='text-align:center'>".$errmsg."</div>". $footer, 'download-error', true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -216,7 +216,7 @@ if (!isset($FORUM_MAIN_START))
|
|||||||
include(e_PLUGIN.'forum/templates/forum_template.php');
|
include(e_PLUGIN.'forum/templates/forum_template.php');
|
||||||
|
|
||||||
|
|
||||||
if(is_array($FORUM_TEMPLATE) && (BOOTSTRAP === true)) // new v2.x format.
|
if(is_array($FORUM_TEMPLATE) && deftrue('BOOTSTRAP',false)) // new v2.x format.
|
||||||
{
|
{
|
||||||
|
|
||||||
$FORUM_MAIN_START = $FORUM_TEMPLATE['main-start'];
|
$FORUM_MAIN_START = $FORUM_TEMPLATE['main-start'];
|
||||||
|
@@ -514,7 +514,7 @@ if (!vartrue($FORUMPOST))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($FORUMPOST_TEMPLATE) && (BOOTSTRAP === true))
|
if(isset($FORUMPOST_TEMPLATE) && (deftrue('BOOTSTRAP',false)))
|
||||||
{
|
{
|
||||||
$FORUMPOST = $FORUMPOST_TEMPLATE['form'];
|
$FORUMPOST = $FORUMPOST_TEMPLATE['form'];
|
||||||
$FORUMPOST_REPLY = $FORUMPOST_TEMPLATE['form'];
|
$FORUMPOST_REPLY = $FORUMPOST_TEMPLATE['form'];
|
||||||
|
@@ -88,7 +88,7 @@ if (!vartrue($FORUM_VIEW_START))
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if(is_array($FORUM_VIEWFORUM_TEMPLATE) && (BOOTSTRAP === true)) // New v2.x bootstrap Template.
|
if(is_array($FORUM_VIEWFORUM_TEMPLATE) && deftrue('BOOTSTRAP',false)) // New v2.x bootstrap Template.
|
||||||
{
|
{
|
||||||
|
|
||||||
$FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start'];
|
$FORUM_VIEW_START_CONTAINER = $FORUM_VIEWFORUM_TEMPLATE['start'];
|
||||||
|
@@ -180,7 +180,7 @@ if (!vartrue($FORUMSTART))
|
|||||||
|
|
||||||
|
|
||||||
// New in v2.x
|
// New in v2.x
|
||||||
if(is_array($FORUM_VIEWTOPIC_TEMPLATE) && (BOOTSTRAP === true))
|
if(is_array($FORUM_VIEWTOPIC_TEMPLATE) && deftrue('BOOTSTRAP',false))
|
||||||
{
|
{
|
||||||
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
|
$FORUMSTART = $FORUM_VIEWTOPIC_TEMPLATE['start'];
|
||||||
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
|
$FORUMTHREADSTYLE = $FORUM_VIEWTOPIC_TEMPLATE['thread'];
|
||||||
|
@@ -31,190 +31,244 @@
|
|||||||
|
|
||||||
if (!defined('e107_INIT')) { exit(); }
|
if (!defined('e107_INIT')) { exit(); }
|
||||||
global $tp;
|
global $tp;
|
||||||
$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
|
||||||
/*
|
|
||||||
SC_BEGIN LM_USERNAME_INPUT
|
|
||||||
global $pref;
|
|
||||||
return "<input class='form-control tbox login user' type='text' name='username' placeholder='Username' required='required' id='username' size='15' value='' maxlength='".varset($pref['loginname_maxlength'],30)."' />\n";
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
SC_BEGIN LM_USERNAME_LABEL
|
|
||||||
|
$login_menu_shortcodes = e107::getScBatch('login_menu',TRUE);
|
||||||
|
|
||||||
|
//$login_menu_shortcodes = $tp -> e_sc -> parse_scbatch(__FILE__);
|
||||||
|
|
||||||
|
class login_menu_shortcodes extends e_shortcode
|
||||||
|
{
|
||||||
|
|
||||||
|
private $use_imagecode =0;
|
||||||
|
private $sec;
|
||||||
|
private $usernameLabel = LOGIN_MENU_L1;
|
||||||
|
|
||||||
|
function __construct()
|
||||||
|
{
|
||||||
|
$pref = e107::getPref();
|
||||||
|
|
||||||
|
$this->use_imagecode = e107::getConfig()->get('logcode');
|
||||||
|
$this->sec = e107::getSecureImg();
|
||||||
|
$this->usernameLabel = '';
|
||||||
|
|
||||||
if($pref['allowEmailLogin']==1)
|
if($pref['allowEmailLogin']==1)
|
||||||
{
|
{
|
||||||
return LOGIN_MENU_L49;
|
$this->usernameLabel = LOGIN_MENU_L49;
|
||||||
}
|
}
|
||||||
|
|
||||||
if($pref['allowEmailLogin']==2)
|
if($pref['allowEmailLogin']==2)
|
||||||
{
|
{
|
||||||
return LOGIN_MENU_L50;
|
$this->usernameLabel = LOGIN_MENU_L50;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function sc_lm_username_input($parm='')
|
||||||
|
{
|
||||||
|
$pref = e107::getPref();
|
||||||
|
return "<input class='form-control tbox login user' type='text' name='username' placeholder='".$this->usernameLabel."' required='required' id='username' size='15' value='' maxlength='".varset($pref['loginname_maxlength'],30)."' />\n";
|
||||||
}
|
}
|
||||||
return LOGIN_MENU_L1;
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
|
|
||||||
SC_BEGIN LM_PASSWORD_INPUT
|
function sc_lm_username_label($parm='')
|
||||||
global $pref;
|
{
|
||||||
$t_password = "<input class='form-control tbox login pass' type='password' placeholder='Password' required='required' name='userpass' id='userpass' size='15' value='' maxlength='30' />\n";
|
return $this->usernameLabel;
|
||||||
if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'],0)) $t_password .= "<input type='hidden' name='hashchallenge' id='hashchallenge' value='".e107::getSession()->get('challenge')."' />\n\n";
|
}
|
||||||
return $t_password;
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
SC_BEGIN LM_PASSWORD_LABEL
|
|
||||||
return LOGIN_MENU_L2;
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
|
|
||||||
SC_BEGIN LM_IMAGECODE
|
function sc_lm_password_input($parm='')
|
||||||
global $use_imagecode, $sec_img;
|
{
|
||||||
//DEPRECATED - use LM_IMAGECODE_NUMBER, LM_IMAGECODE_BOX instead
|
$pref = e107::getPref();
|
||||||
if($use_imagecode) {
|
$t_password = "<input class='form-control tbox login pass' type='password' placeholder='Password' required='required' name='userpass' id='userpass' size='15' value='' maxlength='30' />\n";
|
||||||
return '<input type="hidden" name="rand_num" id="rand_num" value="'.$sec_img->random_number.'" />
|
if (!USER && e107::getSession()->is('challenge') && varset($pref['password_CHAP'],0)) $t_password .= "<input type='hidden' name='hashchallenge' id='hashchallenge' value='".e107::getSession()->get('challenge')."' />\n\n";
|
||||||
'.$sec_img->r_image().'
|
return $t_password;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_lm_password_label($parm='')
|
||||||
|
{
|
||||||
|
return LOGIN_MENU_L2;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_lm_imagecode($parm='')
|
||||||
|
{
|
||||||
|
//DEPRECATED - use LM_IMAGECODE_NUMBER, LM_IMAGECODE_BOX instead
|
||||||
|
if($this->use_imagecode)
|
||||||
|
{
|
||||||
|
return '<input type="hidden" name="rand_num" id="rand_num" value="'.$this->sec->random_number.'" />
|
||||||
|
'.$this->sec->r_image().'
|
||||||
<br /><input class="tbox login verify" type="text" name="code_verify" id="code_verify" size="15" maxlength="20" /><br />';
|
<br /><input class="tbox login verify" type="text" name="code_verify" id="code_verify" size="15" maxlength="20" /><br />';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_IMAGECODE_NUMBER
|
|
||||||
global $use_imagecode, $sec_img;
|
|
||||||
if($use_imagecode) {
|
|
||||||
return '<input type="hidden" name="rand_num" id="rand_num" value="'.$sec_img->random_number.'" />
|
|
||||||
'.$sec_img->r_image();
|
|
||||||
}
|
|
||||||
return '';
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
SC_BEGIN LM_IMAGECODE_BOX
|
function sc_lm_imagecode_number($parm='')
|
||||||
global $use_imagecode, $sec_img;
|
{
|
||||||
if($use_imagecode) {
|
if($this->use_imagecode)
|
||||||
return '<input class="tbox login verify" type="text" name="code_verify" id="code_verify" size="15" maxlength="20" />';
|
{
|
||||||
}
|
return '<input type="hidden" name="rand_num" id="rand_num" value="'.$this->sec->random_number.'" />
|
||||||
return '';
|
'.$this->sec->r_image();
|
||||||
SC_END
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_LOGINBUTTON
|
function sc_lm_imagecode_box($parm='')
|
||||||
return "<input class='button btn login' type='submit' name='userlogin' id='userlogin' value='".LOGIN_MENU_L28."' />";
|
{
|
||||||
SC_END
|
$placeholder = LAN_ENTER_CODE;
|
||||||
|
|
||||||
SC_BEGIN LM_REMEMBERME
|
if($this->use_imagecode)
|
||||||
global $pref;
|
{
|
||||||
if($parm == "hidden"){
|
return '<input class="form-control tbox login verify" type="text" name="code_verify" id="code_verify" size="15" maxlength="20" placeholder="'.$placeholder.'" />';
|
||||||
|
}
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
function sc_lm_loginbutton($parm='')
|
||||||
|
{
|
||||||
|
return "<input class='button btn login' type='submit' name='userlogin' id='userlogin' value='".LOGIN_MENU_L28."' />";
|
||||||
|
}
|
||||||
|
|
||||||
|
function sc_lm_rememberme($parm='')
|
||||||
|
{
|
||||||
|
$pref = e107::getPref();
|
||||||
|
if($parm == "hidden"){
|
||||||
return "<input type='hidden' name='autologin' id='autologin' value='1' />";
|
return "<input type='hidden' name='autologin' id='autologin' value='1' />";
|
||||||
}
|
}
|
||||||
if($pref['user_tracking'] != "session")
|
if($pref['user_tracking'] != "session")
|
||||||
{
|
{
|
||||||
return "<input type='checkbox' name='autologin' id='autologin' value='1' checked='checked' />".($parm ? $parm : "<label for='autologin'>".LOGIN_MENU_L6."</label>");
|
return "<input type='checkbox' name='autologin' id='autologin' value='1' checked='checked' />".($parm ? $parm : "<label for='autologin'>".LOGIN_MENU_L6."</label>");
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_SIGNUP_LINK
|
function sc_lm_signup_link($parm='')
|
||||||
global $pref;
|
{
|
||||||
if ($pref['user_reg'])
|
$pref = e107::getPref();
|
||||||
{
|
if ($pref['user_reg'])
|
||||||
|
{
|
||||||
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
||||||
{
|
{
|
||||||
return $parm == 'href' ? e_SIGNUP : "<a class='login_menu_link signup' id='login_menu_link_signup' href='".e_SIGNUP."' title=\"".LOGIN_MENU_L3."\">".LOGIN_MENU_L3."</a>";
|
return $parm == 'href' ? e_SIGNUP : "<a class='login_menu_link signup' id='login_menu_link_signup' href='".e_SIGNUP."' title=\"".LOGIN_MENU_L3."\">".LOGIN_MENU_L3."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_FPW_LINK
|
function sc_lm_fpw_link($parm='')
|
||||||
global $pref;
|
{
|
||||||
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
$pref = e107::getPref();
|
||||||
{
|
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107')
|
||||||
|
{
|
||||||
return $parm == 'href' ? SITEURL.'fpw.php' : "<a class='login_menu_link fpw' id='login_menu_link_fpw' href='".SITEURL."fpw.php' title=\"".LOGIN_MENU_L4."\">".LOGIN_MENU_L4."</a>";
|
return $parm == 'href' ? SITEURL.'fpw.php' : "<a class='login_menu_link fpw' id='login_menu_link_fpw' href='".SITEURL."fpw.php' title=\"".LOGIN_MENU_L4."\">".LOGIN_MENU_L4."</a>";
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_RESEND_LINK
|
function sc_lm_resend_link($parm='')
|
||||||
global $pref;
|
{
|
||||||
if ($pref['user_reg'])
|
$pref = e107::getPref();
|
||||||
{
|
|
||||||
if(isset($pref['user_reg_veri']) && $pref['user_reg_veri'] == 1){
|
if ($pref['user_reg'])
|
||||||
|
{
|
||||||
|
if(isset($pref['user_reg_veri']) && $pref['user_reg_veri'] == 1)
|
||||||
|
{
|
||||||
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107' )
|
if (!$pref['auth_method'] || $pref['auth_method'] == 'e107' )
|
||||||
{
|
{
|
||||||
return $parm == 'href' ? e_SIGNUP.'?resend' : "<a class='login_menu_link resend' id='login_menu_link_resend' href='".e_SIGNUP."?resend' title=\"".LOGIN_MENU_L40."\">".LOGIN_MENU_L40."</a>";
|
return $parm == 'href' ? e_SIGNUP.'?resend' : "<a class='login_menu_link resend' id='login_menu_link_resend' href='".e_SIGNUP."?resend' title=\"".LOGIN_MENU_L40."\">".LOGIN_MENU_L40."</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_MAINTENANCE
|
function sc_lm_maintenance($parm='')
|
||||||
global $pref;
|
{
|
||||||
if(ADMIN && varset($pref['maintainance_flag']))
|
$pref = e107::getPref();
|
||||||
{
|
|
||||||
|
if(ADMIN && varset($pref['maintainance_flag']))
|
||||||
|
{
|
||||||
return LOGIN_MENU_L10;
|
return LOGIN_MENU_L10;
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_ADMINLINK_BULLET
|
function sc_lm_adminlink_bullet($parm='')
|
||||||
if(ADMIN)
|
{
|
||||||
{
|
if(ADMIN)
|
||||||
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
$data = getcachedvars('login_menu_data');
|
||||||
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_ADMINLINK
|
function sc_lm_adminlink($parm='')
|
||||||
if(ADMIN == TRUE) {
|
{
|
||||||
|
if(ADMIN == TRUE) {
|
||||||
return $parm == 'href' ? e_ADMIN_ABS.'admin.php' : '<a class="login_menu_link admin" id="login_menu_link_admin" href="'.e_ADMIN_ABS.'admin.php">'.LOGIN_MENU_L11.'</a>';
|
return $parm == 'href' ? e_ADMIN_ABS.'admin.php' : '<a class="login_menu_link admin" id="login_menu_link_admin" href="'.e_ADMIN_ABS.'admin.php">'.LOGIN_MENU_L11.'</a>';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_ADMIN_CONFIGURE
|
function sc_lm_admin_configure($parm='')
|
||||||
if(ADMIN == TRUE) {
|
{
|
||||||
|
if(ADMIN == TRUE) {
|
||||||
return $parm == 'href' ? e_PLUGIN_ABS.'login_menu/config.php' : '<a class="login_menu_link config" id="login_menu_link_config" href="'.e_PLUGIN_ABS.'login_menu/config.php">'.LOGIN_MENU_L48.'</a>';
|
return $parm == 'href' ? e_PLUGIN_ABS.'login_menu/config.php' : '<a class="login_menu_link config" id="login_menu_link_config" href="'.e_PLUGIN_ABS.'login_menu/config.php">'.LOGIN_MENU_L48.'</a>';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_BULLET
|
function sc_lm_bullet($parm='')
|
||||||
$data = getcachedvars('login_menu_data');
|
{
|
||||||
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
$data = getcachedvars('login_menu_data');
|
||||||
SC_END
|
return $parm == 'src' ? $data['link_bullet_src'] : $data['link_bullet'];
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_USERSETTINGS
|
function sc_lm_usersettings($parm='')
|
||||||
$text = ($parm) ? $parm : LOGIN_MENU_L12;
|
{
|
||||||
return '<a class="login_menu_link usersettings" id="login_menu_link_usersettings" href="'.e_HTTP.'usersettings.php">'.$text.'</a>';
|
$text = ($parm) ? $parm : LOGIN_MENU_L12;
|
||||||
SC_END
|
return '<a class="login_menu_link usersettings" id="login_menu_link_usersettings" href="'.e_HTTP.'usersettings.php">'.$text.'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_USERSETTINGS_HREF
|
function sc_lm_usersettings_href($parm='')
|
||||||
return e_HTTP.'usersettings.php';
|
{
|
||||||
SC_END
|
return e_HTTP.'usersettings.php';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_PROFILE
|
function sc_lm_profile($parm='')
|
||||||
$text = ($parm) ? $parm : LOGIN_MENU_L13;
|
{
|
||||||
return '<a class="login_menu_link profile" id="login_menu_link_profile" href="'.e_HTTP.'user.php?id.'.USERID.'">'.$text.'</a>';
|
$text = ($parm) ? $parm : LOGIN_MENU_L13;
|
||||||
SC_END
|
return '<a class="login_menu_link profile" id="login_menu_link_profile" href="'.e_HTTP.'user.php?id.'.USERID.'">'.$text.'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_PROFILE_HREF
|
function sc_lm_profile_href($parm='')
|
||||||
return e_HTTP.'user.php?id.'.USERID;
|
{
|
||||||
SC_END
|
return e_HTTP.'user.php?id.'.USERID;
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_LOGOUT
|
function sc_lm_logout($parm='')
|
||||||
$text = ($parm) ? $parm : LOGIN_MENU_L8;
|
{
|
||||||
return '<a class="login_menu_link logout" id="login_menu_link_logout" href="'.e_HTTP.'index.php?logout">'.$text.'</a>';
|
$text = ($parm) ? $parm : LOGIN_MENU_L8;
|
||||||
SC_END
|
return '<a class="login_menu_link logout" id="login_menu_link_logout" href="'.e_HTTP.'index.php?logout">'.$text.'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_LOGOUT_HREF
|
function sc_lm_logout_href($parm='')
|
||||||
return e_HTTP.'index.php?logout';
|
{
|
||||||
SC_END
|
return e_HTTP.'index.php?logout';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_EXTERNAL_LINKS
|
function sc_lm_external_links($parm='')
|
||||||
global $tp, $menu_pref, $login_menu_shortcodes, $LOGIN_MENU_EXTERNAL_LINK;
|
{
|
||||||
if(!varsettrue($menu_pref['login_menu']['external_links'])) return '';
|
global $tp, $menu_pref, $login_menu_shortcodes, $LOGIN_MENU_EXTERNAL_LINK;
|
||||||
$lbox_infos = login_menu_class::parse_external_list(true, false);
|
if(!varsettrue($menu_pref['login_menu']['external_links'])) return '';
|
||||||
$lbox_active = $menu_pref['login_menu']['external_links'] ? explode(',', $menu_pref['login_menu']['external_links']) : array();
|
$lbox_infos = login_menu_class::parse_external_list(true, false);
|
||||||
if(!varsettrue($lbox_infos['links'])) return '';
|
$lbox_active = $menu_pref['login_menu']['external_links'] ? explode(',', $menu_pref['login_menu']['external_links']) : array();
|
||||||
$ret = '';
|
if(!varsettrue($lbox_infos['links'])) return '';
|
||||||
foreach ($lbox_active as $stackid) {
|
$ret = '';
|
||||||
|
foreach ($lbox_active as $stackid) {
|
||||||
$lbox_items = login_menu_class::clean_links(varset($lbox_infos['links'][$stackid]));
|
$lbox_items = login_menu_class::clean_links(varset($lbox_infos['links'][$stackid]));
|
||||||
if(!$lbox_items) continue;
|
if(!$lbox_items) continue;
|
||||||
foreach ($lbox_items as $num=>$lbox_item) {
|
foreach ($lbox_items as $num=>$lbox_item) {
|
||||||
@@ -222,87 +276,94 @@ foreach ($lbox_active as $stackid) {
|
|||||||
cachevars('login_menu_linkdata', $lbox_item);
|
cachevars('login_menu_linkdata', $lbox_item);
|
||||||
$ret .= $tp -> parseTemplate($LOGIN_MENU_EXTERNAL_LINK, false, $login_menu_shortcodes);
|
$ret .= $tp -> parseTemplate($LOGIN_MENU_EXTERNAL_LINK, false, $login_menu_shortcodes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ret;
|
return $ret;
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_EXTERNAL_LINK
|
function sc_lm_external_link($parm='')
|
||||||
$lbox_item = getcachedvars('login_menu_linkdata');
|
{
|
||||||
return $parm == 'href' ? $lbox_item['link_url'] : '<a href="'.$lbox_item['link_url'].'" class="login_menu_link external" id="login_menu_link_external_'.$lbox_item['link_id'].'">'.varsettrue($lbox_item['link_label'], '['.LOGIN_MENU_L44.']').'</a>';
|
$lbox_item = getcachedvars('login_menu_linkdata');
|
||||||
SC_END
|
return $parm == 'href' ? $lbox_item['link_url'] : '<a href="'.$lbox_item['link_url'].'" class="login_menu_link external" id="login_menu_link_external_'.$lbox_item['link_id'].'">'.varsettrue($lbox_item['link_label'], '['.LOGIN_MENU_L44.']').'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_EXTERNAL_LINK_LABEL
|
function sc_lm_external_link_label($parm='')
|
||||||
$lbox_item = getcachedvars('login_menu_linkdata');
|
{
|
||||||
return varsettrue($lbox_item['link_label'], '['.LOGIN_MENU_L44.']');
|
$lbox_item = getcachedvars('login_menu_linkdata');
|
||||||
SC_END
|
return varsettrue($lbox_item['link_label'], '['.LOGIN_MENU_L44.']');
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_STATS
|
function sc_lm_stats($parm='')
|
||||||
global $LOGIN_MENU_STATS, $tp, $login_menu_shortcodes;
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
global $LOGIN_MENU_STATS, $tp, $login_menu_shortcodes;
|
||||||
if(!$data['enable_stats']) return '';
|
$data = getcachedvars('login_menu_data');
|
||||||
return $tp -> parseTemplate($LOGIN_MENU_STATS, true, $login_menu_shortcodes);
|
if(!$data['enable_stats']) return '';
|
||||||
SC_END
|
return $tp -> parseTemplate($LOGIN_MENU_STATS, true, $login_menu_shortcodes);
|
||||||
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_NEW_NEWS
|
function sc_lm_new_news($parm='')
|
||||||
global $LOGIN_MENU_STATITEM, $tp;
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
global $LOGIN_MENU_STATITEM, $tp;
|
||||||
if(!isset($data['new_news'])) return '';
|
$data = getcachedvars('login_menu_data');
|
||||||
$tmp = array();
|
if(!isset($data['new_news'])) return '';
|
||||||
if($data['new_news']){
|
$tmp = array();
|
||||||
|
if($data['new_news']){
|
||||||
$tmp['LM_STAT_NEW'] = "return '".$data['new_news']."';";
|
$tmp['LM_STAT_NEW'] = "return '".$data['new_news']."';";
|
||||||
$tmp['LM_STAT_LABEL'] = $data['new_news'] == 1 ? "return '".LOGIN_MENU_L14."';" : "return '".LOGIN_MENU_L15."';";
|
$tmp['LM_STAT_LABEL'] = $data['new_news'] == 1 ? "return '".LOGIN_MENU_L14."';" : "return '".LOGIN_MENU_L15."';";
|
||||||
$tmp['LM_STAT_EMPTY'] = '';
|
$tmp['LM_STAT_EMPTY'] = '';
|
||||||
} else {
|
} else {
|
||||||
$tmp['LM_STAT_NEW'] = '';
|
$tmp['LM_STAT_NEW'] = '';
|
||||||
$tmp['LM_STAT_LABEL'] = '';
|
$tmp['LM_STAT_LABEL'] = '';
|
||||||
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L15."';";
|
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L15."';";
|
||||||
}
|
}
|
||||||
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_NEW_COMMENTS
|
function sc_lm_new_comments($parm='')
|
||||||
global $LOGIN_MENU_STATITEM, $tp;
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
global $LOGIN_MENU_STATITEM, $tp;
|
||||||
if(!isset($data['new_comments'])) return '';
|
$data = getcachedvars('login_menu_data');
|
||||||
$tmp = array();
|
if(!isset($data['new_comments'])) return '';
|
||||||
if($data['new_comments']){
|
$tmp = array();
|
||||||
|
if($data['new_comments']){
|
||||||
$tmp['LM_STAT_NEW'] = "return '".$data['new_comments']."';";
|
$tmp['LM_STAT_NEW'] = "return '".$data['new_comments']."';";
|
||||||
$tmp['LM_STAT_LABEL'] = $data['new_comments'] == 1 ? "return '".LOGIN_MENU_L18."';" : "return '".LOGIN_MENU_L19."';";
|
$tmp['LM_STAT_LABEL'] = $data['new_comments'] == 1 ? "return '".LOGIN_MENU_L18."';" : "return '".LOGIN_MENU_L19."';";
|
||||||
$tmp['LM_STAT_EMPTY'] = '';
|
$tmp['LM_STAT_EMPTY'] = '';
|
||||||
} else {
|
} else {
|
||||||
$tmp['LM_STAT_NEW'] = '';
|
$tmp['LM_STAT_NEW'] = '';
|
||||||
$tmp['LM_STAT_LABEL'] = '';
|
$tmp['LM_STAT_LABEL'] = '';
|
||||||
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L19."';";
|
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L19."';";
|
||||||
}
|
}
|
||||||
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_NEW_USERS
|
function sc_lm_new_users($parm='')
|
||||||
global $LOGIN_MENU_STATITEM, $tp;
|
{
|
||||||
$data = getcachedvars('login_menu_data');
|
global $LOGIN_MENU_STATITEM, $tp;
|
||||||
if(!isset($data['new_users'])) return '';
|
$data = getcachedvars('login_menu_data');
|
||||||
$tmp = array();
|
if(!isset($data['new_users'])) return '';
|
||||||
if($data['new_users']){
|
$tmp = array();
|
||||||
|
if($data['new_users']){
|
||||||
$tmp['LM_STAT_NEW'] = "return '".$data['new_users']."';";
|
$tmp['LM_STAT_NEW'] = "return '".$data['new_users']."';";
|
||||||
$tmp['LM_STAT_LABEL'] = $data['new_users'] == 1 ? "return '".LOGIN_MENU_L22."';" : "return '".LOGIN_MENU_L23."';";
|
$tmp['LM_STAT_LABEL'] = $data['new_users'] == 1 ? "return '".LOGIN_MENU_L22."';" : "return '".LOGIN_MENU_L23."';";
|
||||||
$tmp['LM_STAT_EMPTY'] = '';
|
$tmp['LM_STAT_EMPTY'] = '';
|
||||||
} else {
|
} else {
|
||||||
$tmp['LM_STAT_NEW'] = '';
|
$tmp['LM_STAT_NEW'] = '';
|
||||||
$tmp['LM_STAT_LABEL'] = '';
|
$tmp['LM_STAT_LABEL'] = '';
|
||||||
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L23."';";
|
$tmp['LM_STAT_EMPTY'] = "return '".LOGIN_MENU_L26." ".LOGIN_MENU_L23."';";
|
||||||
}
|
}
|
||||||
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
return $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_PLUGIN_STATS
|
function sc_lm_plugin_stats($parm='')
|
||||||
global $tp, $menu_pref, $new_total, $LOGIN_MENU_STATITEM, $LM_STATITEM_SEPARATOR;
|
{
|
||||||
if(!varsettrue($menu_pref['login_menu']['external_stats'])) return '';
|
global $tp, $menu_pref, $new_total, $LOGIN_MENU_STATITEM, $LM_STATITEM_SEPARATOR;
|
||||||
$lbox_infos = login_menu_class::parse_external_list(true, false);
|
if(!varsettrue($menu_pref['login_menu']['external_stats'])) return '';
|
||||||
if(!varsettrue($lbox_infos['stats'])) return '';
|
$lbox_infos = login_menu_class::parse_external_list(true, false);
|
||||||
$lbox_active_sorted = $menu_pref['login_menu']['external_stats'] ? explode(',', $menu_pref['login_menu']['external_stats']) : array();
|
if(!varsettrue($lbox_infos['stats'])) return '';
|
||||||
$ret = array();
|
$lbox_active_sorted = $menu_pref['login_menu']['external_stats'] ? explode(',', $menu_pref['login_menu']['external_stats']) : array();
|
||||||
$sep = varset($LM_STATITEM_SEPARATOR, '<br />');
|
$ret = array();
|
||||||
foreach ($lbox_active_sorted as $stackid) {
|
$sep = varset($LM_STATITEM_SEPARATOR, '<br />');
|
||||||
|
foreach ($lbox_active_sorted as $stackid) {
|
||||||
if(!varset($lbox_infos['stats'][$stackid])) continue;
|
if(!varset($lbox_infos['stats'][$stackid])) continue;
|
||||||
foreach ($lbox_infos['stats'][$stackid] as $lbox_item) {
|
foreach ($lbox_infos['stats'][$stackid] as $lbox_item) {
|
||||||
$tmp = array();
|
$tmp = array();
|
||||||
@@ -319,32 +380,42 @@ foreach ($lbox_active_sorted as $stackid) {
|
|||||||
}
|
}
|
||||||
$ret[] = $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
$ret[] = $tp -> parseTemplate($LOGIN_MENU_STATITEM, false, $tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ret ? implode($sep, $ret) : '';
|
return $ret ? implode($sep, $ret) : '';
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_LISTNEW_LINK
|
|
||||||
$data = getcachedvars('login_menu_data');
|
|
||||||
if($parm == 'href') return $data['listnew_link'];
|
|
||||||
return $data['listnew_link'] ? '<a href="'.$data['listnew_link'].'" class="login_menu_link listnew" id="login_menu_link_listnew">'.LOGIN_MENU_L24.'</a>' : '';
|
|
||||||
SC_END
|
|
||||||
|
|
||||||
SC_BEGIN LM_MESSAGE
|
function sc_lm_listnew_link($parm='')
|
||||||
global $tp, $LOGIN_MENU_MESSAGE;
|
{
|
||||||
if(!defsettrue('LOGINMESSAGE')) return '';
|
$data = getcachedvars('login_menu_data');
|
||||||
if($parm == "popup"){
|
if($parm == 'href') return $data['listnew_link'];
|
||||||
|
return $data['listnew_link'] ? '<a href="'.$data['listnew_link'].'" class="login_menu_link listnew" id="login_menu_link_listnew">'.LOGIN_MENU_L24.'</a>' : '';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_lm_message($parm='')
|
||||||
|
{
|
||||||
|
global $tp, $LOGIN_MENU_MESSAGE;
|
||||||
|
if(!defsettrue('LOGINMESSAGE')) return '';
|
||||||
|
if($parm == "popup"){
|
||||||
$srch = array("<br />","'");
|
$srch = array("<br />","'");
|
||||||
$rep = array("\\n","\'");
|
$rep = array("\\n","\'");
|
||||||
return "<script type='text/javascript'>
|
return "<script type='text/javascript'>
|
||||||
alert('".$tp->toJS(LOGINMESSAGE)."');
|
alert('".$tp->toJS(LOGINMESSAGE)."');
|
||||||
</script>";
|
</script>";
|
||||||
}else{
|
}else{
|
||||||
return $tp->parseTemplate($LOGIN_MENU_MESSAGE, true, $login_menu_shortcodes);
|
return $tp->parseTemplate($LOGIN_MENU_MESSAGE, true, $login_menu_shortcodes);
|
||||||
}
|
}
|
||||||
SC_END
|
}
|
||||||
|
|
||||||
SC_BEGIN LM_MESSAGE_TEXT
|
|
||||||
return defsettrue('LOGINMESSAGE', '');
|
function sc_lm_message_text($parm='')
|
||||||
SC_END
|
{
|
||||||
*/
|
return defsettrue('LOGINMESSAGE', '');
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
?>
|
?>
|
@@ -563,7 +563,7 @@ class poll
|
|||||||
|
|
||||||
function generateBar($perc)
|
function generateBar($perc)
|
||||||
{
|
{
|
||||||
if(BOOTSTRAP === true)
|
if(deftrue('BOOTSTRAP',false))
|
||||||
{
|
{
|
||||||
return "<div class='progress'>
|
return "<div class='progress'>
|
||||||
<div class='bar' style='width: ".intval($perc)."%;'></div>
|
<div class='bar' style='width: ".intval($perc)."%;'></div>
|
||||||
|
@@ -157,6 +157,8 @@ $LAYOUT['jumbotron'] = '
|
|||||||
{WMESSAGE}
|
{WMESSAGE}
|
||||||
{SETSTYLE=default}
|
{SETSTYLE=default}
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
{ALERTS}
|
||||||
|
|
||||||
{...}
|
{...}
|
||||||
</div>
|
</div>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
@@ -171,7 +173,7 @@ $LAYOUT['jumbotron'] = '
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
<p>© Company 2013</p>
|
{SITEDISCLAIMER}
|
||||||
</footer>
|
</footer>
|
||||||
</div> <!-- /container -->
|
</div> <!-- /container -->
|
||||||
|
|
||||||
|
@@ -13,6 +13,10 @@
|
|||||||
|
|
||||||
class theme_shortcodes extends e_shortcode
|
class theme_shortcodes extends e_shortcode
|
||||||
{
|
{
|
||||||
|
function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function sc_bootstrap_usernav()
|
function sc_bootstrap_usernav()
|
||||||
{
|
{
|
||||||
@@ -40,6 +44,9 @@ class theme_shortcodes extends e_shortcode
|
|||||||
<form method="post" onsubmit="hashLoginPassword(this);return true" action="'.e_REQUEST_HTTP.'" accept-charset="UTF-8">
|
<form method="post" onsubmit="hashLoginPassword(this);return true" action="'.e_REQUEST_HTTP.'" accept-charset="UTF-8">
|
||||||
{LM_USERNAME_INPUT}
|
{LM_USERNAME_INPUT}
|
||||||
{LM_PASSWORD_INPUT}
|
{LM_PASSWORD_INPUT}
|
||||||
|
{LM_IMAGECODE_NUMBER}
|
||||||
|
{LM_IMAGECODE_BOX}
|
||||||
|
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<input style="float: left; margin-right: 10px;" type="checkbox" name="autologin" id="autologin" value="1">
|
<input style="float: left; margin-right: 10px;" type="checkbox" name="autologin" id="autologin" value="1">
|
||||||
<label class="string optional" for="autologin"> Remember me</label>
|
<label class="string optional" for="autologin"> Remember me</label>
|
||||||
@@ -80,9 +87,6 @@ class theme_shortcodes extends e_shortcode
|
|||||||
// Logged in.
|
// Logged in.
|
||||||
//TODO Generic LANS. (not theme LANs)
|
//TODO Generic LANS. (not theme LANs)
|
||||||
|
|
||||||
$avatar = $tp->parseTemplate('{USER_AVATAR}',true);
|
|
||||||
|
|
||||||
|
|
||||||
$text = '
|
$text = '
|
||||||
|
|
||||||
<ul class="nav navbar-nav pull-right">
|
<ul class="nav navbar-nav pull-right">
|
||||||
|
@@ -93,7 +93,7 @@ if (!USER || getperms('0'))
|
|||||||
|
|
||||||
$sc = e107::getScBatch('login');
|
$sc = e107::getScBatch('login');
|
||||||
|
|
||||||
if((BOOTSTRAP === true) && isset($LOGIN_TEMPLATE['page']))
|
if((deftrue('BOOTSTRAP')) && isset($LOGIN_TEMPLATE['page']))
|
||||||
{
|
{
|
||||||
$LOGIN_TABLE_HEADER = $LOGIN_TEMPLATE['page']['header'];
|
$LOGIN_TABLE_HEADER = $LOGIN_TEMPLATE['page']['header'];
|
||||||
$LOGIN_TABLE = "<form class='form-signin' method='post' action='".e_SELF."' onsubmit='hashLoginPassword(this)' >".$LOGIN_TEMPLATE['page']['body']."</form>";
|
$LOGIN_TABLE = "<form class='form-signin' method='post' action='".e_SELF."' onsubmit='hashLoginPassword(this)' >".$LOGIN_TEMPLATE['page']['body']."</form>";
|
||||||
@@ -109,7 +109,7 @@ if (!USER || getperms('0'))
|
|||||||
|
|
||||||
if(getperms('0'))
|
if(getperms('0'))
|
||||||
{
|
{
|
||||||
echo "<div class='alert alert-block alert-error center'> You are currently logged in.</div>";
|
echo "<div class='alert alert-block alert-error alert-danger center'> You are currently logged in.</div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
// echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER);
|
// echo preg_replace("/\{(.*?)\}/e", 'varset($\1,"\1")', $LOGIN_TABLE_HEADER);
|
||||||
|
@@ -292,7 +292,7 @@ if(getperms('0')) // allow main admin to view signup page for design/testing.
|
|||||||
$adminMsg .= "<br />User registration is currently disabled";
|
$adminMsg .= "<br />User registration is currently disabled";
|
||||||
}
|
}
|
||||||
|
|
||||||
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error text-center'>".$adminMsg."</div>". $SIGNUP_BEGIN;
|
$SIGNUP_BEGIN = "<div class='alert alert-block alert-error alert-danger text-center'>".$adminMsg."</div>". $SIGNUP_BEGIN;
|
||||||
unset($adminMsg);
|
unset($adminMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user