remove getStarted from login
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
HOST: http://www.processmaker.com/api/1.0/{workspace}/
|
||||
--- ProcessMaker "Michelangelo" API v1 ---
|
||||
---
|
||||
Welcome to ProcessMaker API documentation.
|
||||
Welcome to API documentation.
|
||||
All comments can be written in (support [Markdown](http://daringfireball.net/projects/markdown/syntax) syntax)
|
||||
|
||||
*(This API is under development yet, please wait for a final v1 release)*
|
||||
|
||||
@@ -784,11 +784,18 @@ class IndicatorsCalculator
|
||||
$criteria->addAsColumn('average', 'ROUND(AVG(TOTAL_TIME_BY_TASK/TOTAL_CASES_OUT), 2)');
|
||||
$criteria->addAsColumn('sdv', 'ROUND(STDDEV(TOTAL_TIME_BY_TASK/TOTAL_CASES_OUT), 2)');
|
||||
$criteria->add(UsrReportingPeer::TAS_UID, $tasUid);
|
||||
// Add GROUP BY clause to avoid error 'missing GROUP BY clause in your SQL query'
|
||||
$criteria->addGroupByColumn(UsrReportingPeer::TOTAL_CASES_OUT);
|
||||
$dataset = UsrReportingPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
$dataset->next();
|
||||
$result = $dataset->getRow();
|
||||
|
||||
if (is_null($result)) {
|
||||
$result = [];
|
||||
$result['average'] = 0;
|
||||
$result['sdv'] = 0;
|
||||
}
|
||||
return $result;
|
||||
} catch (Exception $error) {
|
||||
throw $error;
|
||||
|
||||
@@ -39399,48 +39399,6 @@ msgstr "Login"
|
||||
msgid "[login/login.xml?FORGOT_PASWORD_LINK] Forgot Password"
|
||||
msgstr "Forgot Password"
|
||||
|
||||
# login/loginpm3.xml?TITLE
|
||||
# login/loginpm3.xml
|
||||
#: title - TITLE
|
||||
msgid "[login/loginpm3.xml?TITLE] Login"
|
||||
msgstr "Login"
|
||||
|
||||
# login/loginpm3.xml?USR_USERNAME
|
||||
# login/loginpm3.xml
|
||||
#: text - USR_USERNAME
|
||||
msgid "[login/loginpm3.xml?USR_USERNAME] User"
|
||||
msgstr "User"
|
||||
|
||||
# login/loginpm3.xml?USR_PASSWORD
|
||||
# login/loginpm3.xml
|
||||
#: text - USR_PASSWORD
|
||||
msgid "[login/loginpm3.xml?USR_PASSWORD] Password"
|
||||
msgstr "Password"
|
||||
|
||||
# login/loginpm3.xml?USR_PASSWORD_MASK
|
||||
# login/loginpm3.xml
|
||||
#: password - USR_PASSWORD_MASK
|
||||
msgid "[login/loginpm3.xml?USR_PASSWORD_MASK] Password"
|
||||
msgstr "Password"
|
||||
|
||||
# login/loginpm3.xml?USER_LANG
|
||||
# login/loginpm3.xml
|
||||
#: dropdown - USER_LANG
|
||||
msgid "[login/loginpm3.xml?USER_LANG] Language"
|
||||
msgstr "Language"
|
||||
|
||||
# login/loginpm3.xml?BSUBMIT
|
||||
# login/loginpm3.xml
|
||||
#: button - BSUBMIT
|
||||
msgid "[login/loginpm3.xml?BSUBMIT] Login"
|
||||
msgstr "Login"
|
||||
|
||||
# login/loginpm3.xml?FORGOT_PASWORD_LINK
|
||||
# login/loginpm3.xml
|
||||
#: link - FORGOT_PASWORD_LINK
|
||||
msgid "[login/loginpm3.xml?FORGOT_PASWORD_LINK] Forgot Password"
|
||||
msgstr "Forgot Password"
|
||||
|
||||
# login/newSite.xml?NEW_WORKSPACE
|
||||
# login/newSite.xml
|
||||
#: title - NEW_WORKSPACE
|
||||
@@ -47229,30 +47187,6 @@ msgstr "Pin"
|
||||
msgid "Enter"
|
||||
msgstr "Enter"
|
||||
|
||||
# tracker/loginpm3.xml?TITLE
|
||||
# tracker/loginpm3.xml
|
||||
#: title - TITLE
|
||||
msgid "[tracker/loginpm3.xml?TITLE] CASE TRACKER"
|
||||
msgstr "CASE TRACKER"
|
||||
|
||||
# tracker/loginpm3.xml?CASE
|
||||
# tracker/loginpm3.xml
|
||||
#: Text - CASE
|
||||
msgid "[tracker/loginpm3.xml?CASE] Case Code"
|
||||
msgstr "Case Code"
|
||||
|
||||
# tracker/loginpm3.xml?PIN
|
||||
# tracker/loginpm3.xml
|
||||
#: password - PIN
|
||||
msgid "[tracker/loginpm3.xml?PIN] Pin"
|
||||
msgstr "Pin"
|
||||
|
||||
# tracker/loginpm3.xml?BSUBMIT
|
||||
# tracker/loginpm3.xml
|
||||
#: submit - BSUBMIT
|
||||
msgid "[tracker/loginpm3.xml?BSUBMIT] Enter"
|
||||
msgstr "Enter"
|
||||
|
||||
# tracker/tracker_AvailableCaseTrackerObjects.xml?OBJECT_TITLE
|
||||
# tracker/tracker_AvailableCaseTrackerObjects.xml
|
||||
#: text - OBJECT_TITLE
|
||||
|
||||
@@ -175,9 +175,6 @@ $_SESSION["USERNAME_PREVIOUS2"] = $usernamePrevious2;
|
||||
$_SESSION['NW_PASSWORD'] = $pass;
|
||||
$_SESSION['NW_PASSWORD2'] = $pass1;
|
||||
|
||||
//translation
|
||||
//$Translations = G::getModel("Translation");
|
||||
//require_once "classes/model/Translation.php";
|
||||
$Translations = new Translation();
|
||||
$translationsTable = $Translations->getTranslationEnvironments();
|
||||
|
||||
@@ -214,51 +211,8 @@ $G_PUBLISH = new Publisher();
|
||||
$version = explode('.', trim(file_get_contents(PATH_GULLIVER . 'VERSION')));
|
||||
$version = isset($version[0]) ? intval($version[0]) : 0;
|
||||
Cache::put("FAILED_LOGINS{$usernamePrevious2}", $sFailedLogins, 1800); //this value will be lost after 30 minutes
|
||||
if ($version >= 3) {
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/loginpm3', '', $aFields, SYS_URI . 'login/authentication.php');
|
||||
} else {
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/login', '', $aFields, SYS_URI . 'login/authentication.php');
|
||||
}
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/login', '', $aFields, SYS_URI . 'login/authentication.php');
|
||||
|
||||
//get the serverconf singleton, and check if we can send the heartbeat
|
||||
$oServerConf = ServerConf::getSingleton();
|
||||
$partnerFlag = (defined('PARTNER_FLAG')) ? PARTNER_FLAG : false;
|
||||
if (!$partnerFlag) {
|
||||
$sflag = $oServerConf->getHeartbeatProperty('HB_OPTION', 'HEART_BEAT_CONF');
|
||||
$sflag = (trim($sflag) != '') ? $sflag : '1';
|
||||
|
||||
//get date of next beat
|
||||
$nextBeatDate = $oServerConf->getHeartbeatProperty('HB_NEXT_BEAT_DATE', 'HEART_BEAT_CONF');
|
||||
|
||||
//if flag to send heartbeat is enabled, and it is time to send heartbeat, sent it using asynchronous beat.
|
||||
if (($sflag == "1") && ((strtotime("now") > $nextBeatDate) || is_null($nextBeatDate))) {
|
||||
$oHeadPublisher = headPublisher::getSingleton();
|
||||
//To do: we need to change to ExtJs
|
||||
$oHeadPublisher->addScriptCode('var flagHeartBeat = 1;');
|
||||
} else {
|
||||
$oHeadPublisher->addScriptCode('var flagHeartBeat = 0;');
|
||||
}
|
||||
} else {
|
||||
$oHeadPublisher->addScriptCode('var flagHeartBeat = 0;');
|
||||
}
|
||||
|
||||
//check if we show the panel with the getting started info
|
||||
|
||||
require_once 'classes/model/Configuration.php';
|
||||
$oConfiguration = new Configuration();
|
||||
$oCriteria = new Criteria('workflow');
|
||||
$oCriteria->add(ConfigurationPeer::CFG_UID, 'getStarted');
|
||||
$oCriteria->add(ConfigurationPeer::OBJ_UID, '');
|
||||
$oCriteria->add(ConfigurationPeer::CFG_VALUE, '1');
|
||||
$oCriteria->add(ConfigurationPeer::PRO_UID, '');
|
||||
$oCriteria->add(ConfigurationPeer::USR_UID, '');
|
||||
$oCriteria->add(ConfigurationPeer::APP_UID, '');
|
||||
$flagGettingStarted = ConfigurationPeer::doCount($oCriteria);
|
||||
if ($flagGettingStarted == 0) {
|
||||
$oHeadPublisher->addScriptCode('var flagGettingStarted = 1;');
|
||||
} else {
|
||||
$oHeadPublisher->addScriptCode('var flagGettingStarted = 0;');
|
||||
}
|
||||
|
||||
$dummy = '';
|
||||
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* login_getStarted.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*/
|
||||
$G_PUBLISH = new Publisher();
|
||||
|
||||
$fileGetStart = PATH_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
|
||||
if (!file_exists($fileGetStart)) {
|
||||
$fileGetStart = PATH_SKIN_ENGINE . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
|
||||
if (!file_exists($fileGetStart)) {
|
||||
$fileGetStart = PATH_CUSTOM_SKINS . SYS_SKIN . PATH_SEP . 'login_getStarted.html';
|
||||
if (!file_exists($fileGetStart)) {
|
||||
$fileGetStart = PATH_TPL . 'services/login_getStarted.html';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$oTemplatePower = new TemplatePower( $fileGetStart );
|
||||
$oTemplatePower->prepare();
|
||||
/*
|
||||
$oTemplatePower->newBlock('users');
|
||||
$oTemplatePower->assign('USR_UID', $aUser['USR_UID']);
|
||||
$oTemplatePower->assign('USR_FULLNAME', $aData['USR_FIRSTNAME'] . ' ' . $aData['USR_LASTNAME'] . ' (' . $aData['USR_USERNAME'] . ')');
|
||||
*/
|
||||
$userName = 'admin';
|
||||
$userPass = "The password introduced at the time of installing the application. (If you did not change the password by default is $userName)";
|
||||
if(isset($_SESSION['NW_PASSWORD'])){
|
||||
if($_SESSION['NW_PASSWORD'] != ''){
|
||||
$userPass = $_SESSION['NW_PASSWORD'];
|
||||
}
|
||||
}
|
||||
require_once 'classes/model/Users.php';
|
||||
$oCriteria = new Criteria( 'workflow' );
|
||||
$oCriteria->addSelectColumn( UsersPeer::USR_USERNAME);
|
||||
$oCriteria->add( UsersPeer::USR_UID, '00000000000000000000000000000001', Criteria::IN );
|
||||
$oDataset = UsersPeer::doSelectRS( $oCriteria );
|
||||
$oDataset->setFetchmode( ResultSet::FETCHMODE_ASSOC );
|
||||
$aData = array ();
|
||||
if ($oDataset->next()) {
|
||||
$aData = $oDataset->getRow();
|
||||
$userName = $aData['USR_USERNAME'];
|
||||
}
|
||||
|
||||
$oTemplatePower->assign("URL_MABORAK_JS", G::browserCacheFilesUrl("/js/maborak/core/maborak.js"));
|
||||
$oTemplatePower->assign("name", $userName);
|
||||
$oTemplatePower->assign("pass", $userPass);
|
||||
|
||||
$G_PUBLISH->AddContent( 'template', '', '', '', $oTemplatePower );
|
||||
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
* @author Erik Amaru Ortiz <erik@colosa.com>
|
||||
*/
|
||||
|
||||
var loadMask = function(){
|
||||
var lo adMask = function(){
|
||||
return {
|
||||
init: function() {
|
||||
var loading = Ext.get('loading');
|
||||
@@ -69,9 +69,6 @@ var Login = function() {
|
||||
Ext.msgBoxSlider.msgTopCenter(flyNotify.type, flyNotify.title, flyNotify.text, flyNotify.time);
|
||||
}
|
||||
|
||||
if (flagGettingStarted) {
|
||||
this.gettingStartedWindow.show();
|
||||
}
|
||||
}
|
||||
}
|
||||
}();
|
||||
@@ -349,29 +346,6 @@ Login.initComponents = function()
|
||||
})
|
||||
});
|
||||
|
||||
this.gettingStartedWindow = new Ext.Window({
|
||||
id: 'gettingStartedWindow',
|
||||
layout: 'fit',
|
||||
title: '',
|
||||
width: 640,
|
||||
height: 500, //180,
|
||||
//iconCls: 'ux-auth-header-icon',
|
||||
closable: true,
|
||||
resizable: false,
|
||||
plain: true,
|
||||
draggable: false,
|
||||
modal:true,
|
||||
//autoLoad: '../services/login_getStarted.php'
|
||||
items: [
|
||||
{
|
||||
xtype: 'iframepanel',
|
||||
defaultSrc : '../services/login_getStarted.php',
|
||||
loadMask:{msg:_('ID_LOADING')},
|
||||
bodyStyle:{height: (PMExt.getBrowser().screen.height-60) + 'px', overflow:'auto'},
|
||||
width:588
|
||||
}
|
||||
]
|
||||
});
|
||||
//Ext.getCmp('login-form').hide();
|
||||
}
|
||||
|
||||
|
||||
@@ -1,145 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<script type="text/javascript" src="{URL_MABORAK_JS}"></script>
|
||||
<script type="text/javascript">
|
||||
var leimnud = new maborak();
|
||||
|
||||
leimnud.make({
|
||||
zip: true,
|
||||
inGulliver: true,
|
||||
modules: "dom,abbr,rpc,drag,drop,app,panel,fx,grid,xmlform,validator,dashboard",
|
||||
files: ""
|
||||
});
|
||||
|
||||
try {
|
||||
leimnud.exec(leimnud.fix.memoryLeak);
|
||||
|
||||
if (leimnud.browser.isIphone) {
|
||||
leimnud.iphone.make();
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
</script>
|
||||
|
||||
<style type="text/css">
|
||||
.panel_title___processmaker {
|
||||
background: #3D9DE4 !important;
|
||||
}
|
||||
|
||||
.panel_close___processmaker {
|
||||
background: url("/skins/lurana/images/icons_silk/calendar_x_button.png") no-repeat center right;
|
||||
}
|
||||
|
||||
.panel_content___processmaker {
|
||||
border-width: 0 !important;
|
||||
}
|
||||
|
||||
body, table {
|
||||
font-family: tahoma,arial,verdana,sans-serif;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 0.5em;
|
||||
}
|
||||
span.cMargLeft { padding-left: 20; }
|
||||
|
||||
.cell2 {
|
||||
vertical-align: middle;
|
||||
font-size: 13px;
|
||||
background: #fff;
|
||||
border-right: #fff 1px solid;
|
||||
padding-right: 10px;
|
||||
border-top: #fff 1px solid;
|
||||
padding-top: 5px;
|
||||
border-left: #fff 1px solid;
|
||||
padding-left: 10px;
|
||||
border-bottom: #fff 1px solid;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
span.cNeg {
|
||||
color: #002c72;
|
||||
font-weight: bold;
|
||||
}
|
||||
span.cLow {
|
||||
color: #002c72;
|
||||
}
|
||||
span.cLow-min {
|
||||
color: #002c72;
|
||||
font-size: 13px;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
span.cLow-autor {
|
||||
color: #002c72;
|
||||
font-size: 15px;
|
||||
line-height: 1.3em;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!--[if IE]>
|
||||
<style type="text/css">
|
||||
span.cMargLeft { padding-left: 9; }
|
||||
|
||||
.cell2 {
|
||||
font-size: 12px !important;
|
||||
padding-top: 1px !important;
|
||||
padding-bottom: 1px !important;
|
||||
}
|
||||
</style>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
||||
<tr>
|
||||
<td>
|
||||
<a target="_blank" href="http://www.processmaker.com"><img src="/images/get_started.png" border="0" width="163" height="438"></a>
|
||||
</td>
|
||||
<td class="cell2" valign="top" align="left">
|
||||
<p><b><span class="cLow">Welcome to ProcessMaker</span></b></p><br/>
|
||||
<p style="text-align: justify;"><span class="cLow-min">To get started log in using the following credentials:</span></p>
|
||||
<span class="cNeg">Username:</span><span class="cLow"> {name}</span><br>
|
||||
<span class="cNeg">Password:</span><span class="cLow"> {pass}</span><br><br>
|
||||
<p style="text-align: justify;"><span class="cLow-min">We suggest you follow our 7 easy videos to automate your workflow. You can see a demo of each step at <a target="_blank" href="http://www.processmaker.com/tutorials">http://www.processmaker.com/tutorials/</a></span></p>
|
||||
|
||||
<b><span class="cLow">Other Resources:</span></b><br/>
|
||||
<span class="cLow"><a target="_blank" href="http://wiki.processmaker.com">PM Wiki </a>- Manuals</span><br/>
|
||||
<span class="cLow"><a target="_blank" href="http://forum.processmaker.com">PM Forum </a>- Ask Questions</span><br/><br/>
|
||||
|
||||
<p style="text-align: justify;"><span class="cLow-min">We hope you enjoy using ProcessMaker. For more information about our enterprise support and consulting services <a target="_blank" href="http://www.processmaker.com/contact-us">contact us.</a></span></p>
|
||||
<p><b><span class="cLow-autor">The ProcessMaker Team</span></b></p>
|
||||
|
||||
<input type="checkbox" name="getStarted" id="getStarted" onclick="saveConfig();"><span class="cLow"> Don't show me again</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
var saveConfig = function()
|
||||
{
|
||||
if (document.getElementById("getStarted").checked == true) {
|
||||
var oRPC = new leimnud.module.rpc.xmlhttp({
|
||||
url : "../login/login_Ajax",
|
||||
async : false,
|
||||
method: "POST",
|
||||
args : "function=getStarted_save"
|
||||
});
|
||||
|
||||
oRPC.make();
|
||||
}
|
||||
|
||||
if (panel) {
|
||||
if (panel.remove) {
|
||||
panel.remove();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (window.parent) {
|
||||
if (parent.Ext) {
|
||||
parent.Ext.getCmp("gettingStartedWindow").close();
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -1,47 +1,38 @@
|
||||
<form id="{$form_id}" name="{$form_name}" action="{$form_action}" class="{$form_className}" method="post" encType="multipart/form-data" style="margin:0px;" onsubmit="return validateForm('{$form_objectRequiredFields}');"> <div class="borderForm" style="width:{$form_width}; padding-left:0; padding-right:0; border-width:{$form_border};">
|
||||
<div class="boxTop"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
<div class="content" style="height:{$form_height};" >
|
||||
<table width="99%">
|
||||
<tr>
|
||||
<td valign='top'>
|
||||
<div class="panel-default">
|
||||
<p>{php}echo G::LoadTranslation('ID_LOGIN_TITLE');{/php}</p>
|
||||
</div>
|
||||
|
||||
<form accept-charset="UTF-8" role="form" class="form-signin"
|
||||
id="{$form_id}" name="{$form_name}" action="{$form_action}" method="post" encType="multipart/form-data" onsubmit="return validateForm('{$form_objectRequiredFields}');">
|
||||
<input type="hidden" class="notValidateThisFields" name="__notValidateThisFields__" id="__notValidateThisFields__" value="{$form_objectRequiredFields}" />
|
||||
<input type="hidden" name="DynaformRequiredFields" id="DynaformRequiredFields" value="{$form_objectRequiredFields}" />
|
||||
{$form.BROWSER_TIME_ZONE_OFFSET}
|
||||
<div style="display: none;"> {$form.USR_PASSWORD}</div>
|
||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td class='FormTitle' colspan="2" align="">{$form.TITLE}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$USR_USERNAME}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.USR_USERNAME}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$USR_PASSWORD_MASK}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.USR_PASSWORD_MASK}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' width="{$form_labelWidth}">{$USER_LANG}</td>
|
||||
<td class='FormFieldContent' width='{$form_fieldContentWidth}' >{$form.USER_LANG}</td>
|
||||
</tr>
|
||||
<tr style="display: none">
|
||||
<td colspan="2">{$form.URL}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormButton' colspan="2" align="">{$form.BSUBMIT}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class='FormLabel' colspan="2" align="right">{$form.FORGOT_PASWORD_LINK}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div class="boxBottom"><div class="a"></div><div class="b"></div><div class="c"></div></div>
|
||||
</div></form>
|
||||
<fieldset>
|
||||
<label class="panel-login">
|
||||
<div class="login_result"></div>
|
||||
</label>
|
||||
{$form.USR_USERNAME}
|
||||
{$form.USR_PASSWORD_MASK}
|
||||
{$form.USER_LANG}
|
||||
{$form.URL}
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label class="panel-login">
|
||||
<div class="login_result"></div>
|
||||
</label>
|
||||
<br>
|
||||
{$form.BSUBMIT}
|
||||
{$form.FORGOT_PASWORD_LINK}
|
||||
|
||||
</fieldset>
|
||||
<script type="text/javascript">
|
||||
{$form.JS}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
</form>
|
||||
<script src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
<script src="/lib/pmdynaform/libs/html5shiv/html5shiv.js"></script>
|
||||
<script type="text/javascript">
|
||||
try {literal}{{/literal} dynaformSetFocus();}catch(e){literal}{{/literal}}
|
||||
</script>
|
||||
</script>
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<?x ml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="login" version="1.0" basedir="" xmlform_type="NORMAL" width="400px" enabletemplate="1">
|
||||
<BROWSER_TIME_ZONE_OFFSET type="hidden" />
|
||||
|
||||
<TITLE type="title">
|
||||
<en><![CDATA[Login]]></en>
|
||||
</TITLE>
|
||||
<USR_USERNAME type="text" size="30" maxlength="50" validate="Any" autocomplete="0">
|
||||
<USR_USERNAME type="text" size="30" maxlength="50" validate="Any" autocomplete="0">
|
||||
<en><![CDATA[User]]></en>
|
||||
</USR_USERNAME>
|
||||
<USR_PASSWORD type="text" size="30" maxlength="32" autocomplete="0">
|
||||
<en><![CDATA[Password]]></en>
|
||||
</USR_PASSWORD>
|
||||
<USR_PASSWORD_MASK type="password" size="30" maxlength="32" autocomplete="0">
|
||||
<USR_PASSWORD_MASK type="password" size="30" maxlength="100" autocomplete="0">
|
||||
<en><![CDATA[Password]]></en>
|
||||
</USR_PASSWORD_MASK>
|
||||
<USER_LANG type="dropdown" sqlconnection="dbarray">
|
||||
@@ -21,7 +23,7 @@ SELECT LANG_ID, LANG_NAME FROM langOptions
|
||||
<BSUBMIT type="button">
|
||||
<en><![CDATA[Login]]></en>
|
||||
</BSUBMIT>
|
||||
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135" style="display:none;">
|
||||
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135">
|
||||
<en><![CDATA[Forgot Password]]></en>
|
||||
</FORGOT_PASWORD_LINK>
|
||||
<JS type="javascript"><![CDATA[
|
||||
@@ -41,10 +43,61 @@ function inIframe () {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
function getElementsByClassNameIE8(node, classname) {
|
||||
var a = [];
|
||||
var re = new RegExp('(^| )'+classname+'( |$)');
|
||||
var els = node.getElementsByTagName("*");
|
||||
for(var i=0,j=els.length; i<j; i++)
|
||||
if(re.test(els[i].className))a.push(els[i]);
|
||||
return a;
|
||||
};
|
||||
|
||||
// enable/disable forgot password link
|
||||
if(flagForgotPassword == 'on' || flagForgotPassword == '1') {
|
||||
document.getElementById("form[FORGOT_PASWORD_LINK]").style.display = 'block';//hideRowById('FORGOT_PASWORD_LINK');
|
||||
window.onload= function(){
|
||||
var inputUser,
|
||||
inputPass;
|
||||
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
|
||||
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').value = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').className = "button-login-success";
|
||||
inputUser = document.getElementById('form[USR_USERNAME]');
|
||||
inputPass = document.getElementById('form[USR_PASSWORD_MASK]');
|
||||
|
||||
inputUser.attachEvent("onclick", function (){
|
||||
if(_('ID_USER') == inputUser.value){
|
||||
inputUser.value="";
|
||||
}
|
||||
});
|
||||
inputUser.attachEvent("onblur", function (){
|
||||
if(inputUser.value == ""){
|
||||
inputUser.value=_('ID_USER');
|
||||
}
|
||||
});
|
||||
|
||||
inputPass.attachEvent("onclick", function (){
|
||||
if(_('ID_PASSWORD') == inputPass.value){
|
||||
inputPass.value="";
|
||||
}
|
||||
});
|
||||
|
||||
inputPass.attachEvent("onblur", function (){
|
||||
if(inputPass.value == ""){
|
||||
inputPass.value = _('ID_PASSWORD');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}else{
|
||||
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
|
||||
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
||||
}
|
||||
};
|
||||
|
||||
// delete or not forgot password link
|
||||
if(flagForgotPassword != 'on' && flagForgotPassword != '1') {
|
||||
var element = document.getElementById("form[FORGOT_PASWORD_LINK]");
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
|
||||
var panel;
|
||||
@@ -54,7 +107,7 @@ function showGettingStarted() {
|
||||
panel.options = {
|
||||
size: {w:620,h:500},
|
||||
position: {x:50,y:50,center:true},
|
||||
control: {close:true,resize:false},fx:{modal:true},
|
||||
control: {close:true,resize:false, drag: false},fx:{modal:true},
|
||||
statusBar: false,
|
||||
fx: {shadow:true,modal:true}
|
||||
};
|
||||
@@ -106,12 +159,17 @@ leimnud.event.add(document.getElementById('form[USR_PASSWORD_MASK]'), 'keypress'
|
||||
});
|
||||
|
||||
leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() {
|
||||
document.getElementById('form[USR_PASSWORD]').value = document.getElementById('form[USR_PASSWORD_MASK]').value;
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').value = '';
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').setAttribute('type', 'text');
|
||||
setNestedProperty(this, Array("disabled"), "true");
|
||||
setNestedProperty(this, Array("value"), @@LOGIN_VERIFY_MSG);
|
||||
|
||||
document.getElementById("form[USR_PASSWORD]").value = document.getElementById("form[USR_PASSWORD_MASK]").value;
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").value = "";
|
||||
document.getElementById("form[BROWSER_TIME_ZONE_OFFSET]").value = getBrowserTimeZoneOffset();
|
||||
if(!navigator.userAgent.indexOf("MSIE 8.0")>0)
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").setAttribute("type", "text");
|
||||
document.login.submit();
|
||||
//return true;
|
||||
}.extend(document.getElementById('form[BSUBMIT]')));
|
||||
|
||||
]]></JS>
|
||||
</dynaForm>
|
||||
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
<div class="panel-default">
|
||||
<p>{php}echo G::LoadTranslation('ID_LOGIN_TITLE');{/php}</p>
|
||||
</div>
|
||||
|
||||
<form accept-charset="UTF-8" role="form" class="form-signin"
|
||||
id="{$form_id}" name="{$form_name}" action="{$form_action}" method="post" encType="multipart/form-data" onsubmit="return validateForm('{$form_objectRequiredFields}');">
|
||||
<input type="hidden" class="notValidateThisFields" name="__notValidateThisFields__" id="__notValidateThisFields__" value="{$form_objectRequiredFields}" />
|
||||
<input type="hidden" name="DynaformRequiredFields" id="DynaformRequiredFields" value="{$form_objectRequiredFields}" />
|
||||
{$form.BROWSER_TIME_ZONE_OFFSET}
|
||||
<div style="display: none;"> {$form.USR_PASSWORD}</div>
|
||||
<fieldset>
|
||||
<label class="panel-login">
|
||||
<div class="login_result"></div>
|
||||
</label>
|
||||
{$form.USR_USERNAME}
|
||||
{$form.USR_PASSWORD_MASK}
|
||||
{$form.USER_LANG}
|
||||
{$form.URL}
|
||||
</fieldset>
|
||||
<fieldset>
|
||||
<label class="panel-login">
|
||||
<div class="login_result"></div>
|
||||
</label>
|
||||
<br>
|
||||
{$form.BSUBMIT}
|
||||
{$form.FORGOT_PASWORD_LINK}
|
||||
|
||||
</fieldset>
|
||||
<script type="text/javascript">
|
||||
{$form.JS}
|
||||
</script>
|
||||
</form>
|
||||
<script src="/lib/pmdynaform/libs/respondjs/respond.min.js"></script>
|
||||
<script src="/lib/pmdynaform/libs/html5shiv/html5shiv.js"></script>
|
||||
<script type="text/javascript">
|
||||
try {literal}{{/literal} dynaformSetFocus();}catch(e){literal}{{/literal}}
|
||||
</script>
|
||||
|
||||
@@ -1,175 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="login" version="1.0" basedir="" xmlform_type="NORMAL" width="400px" enabletemplate="1">
|
||||
<BROWSER_TIME_ZONE_OFFSET type="hidden" />
|
||||
|
||||
<TITLE type="title">
|
||||
<en><![CDATA[Login]]></en>
|
||||
</TITLE>
|
||||
<USR_USERNAME type="text" size="30" maxlength="50" validate="Any" autocomplete="0">
|
||||
<en><![CDATA[User]]></en>
|
||||
</USR_USERNAME>
|
||||
<USR_PASSWORD type="text" size="30" maxlength="32" autocomplete="0">
|
||||
<en><![CDATA[Password]]></en>
|
||||
</USR_PASSWORD>
|
||||
<USR_PASSWORD_MASK type="password" size="30" maxlength="100" autocomplete="0">
|
||||
<en><![CDATA[Password]]></en>
|
||||
</USR_PASSWORD_MASK>
|
||||
<USER_LANG type="dropdown" sqlconnection="dbarray">
|
||||
SELECT LANG_ID, LANG_NAME FROM langOptions
|
||||
<en><![CDATA[Language]]></en>
|
||||
</USER_LANG>
|
||||
<URL type="hidden"/>
|
||||
<LOGIN_VERIFY_MSG type="private" showInTable="0"/>
|
||||
<BSUBMIT type="button">
|
||||
<en><![CDATA[Login]]></en>
|
||||
</BSUBMIT>
|
||||
<FORGOT_PASWORD_LINK type="link" link="forgotPassword" onclick="" colAlign="right" colWidth="135">
|
||||
<en><![CDATA[Forgot Password]]></en>
|
||||
</FORGOT_PASWORD_LINK>
|
||||
<JS type="javascript"><![CDATA[
|
||||
|
||||
//validate iframe login
|
||||
if(inIframe() && (window.location.search.indexOf("inIFrame=1")===-1)) {
|
||||
if (PM.Sessions.getCookie('PM-TabPrimary') !== '101010010'
|
||||
&& (window.location.pathname.indexOf("login/login") !== -1
|
||||
|| window.location.pathname.indexOf("sysLogin") !== -1)) {
|
||||
window.top.location.href = window.location.pathname;
|
||||
}
|
||||
}
|
||||
function inIframe () {
|
||||
try {
|
||||
return window.self !== window.top;
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
function getElementsByClassNameIE8(node, classname) {
|
||||
var a = [];
|
||||
var re = new RegExp('(^| )'+classname+'( |$)');
|
||||
var els = node.getElementsByTagName("*");
|
||||
for(var i=0,j=els.length; i<j; i++)
|
||||
if(re.test(els[i].className))a.push(els[i]);
|
||||
return a;
|
||||
};
|
||||
|
||||
window.onload= function(){
|
||||
var inputUser,
|
||||
inputPass;
|
||||
if(document.getElementById('form[USR_USERNAME]').placeholder == undefined && document.getElementById('form[BSUBMIT]').classList == undefined){
|
||||
document.getElementById('form[USR_USERNAME]').value = _('ID_USER');
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').value = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').className = "button-login-success";
|
||||
inputUser = document.getElementById('form[USR_USERNAME]');
|
||||
inputPass = document.getElementById('form[USR_PASSWORD_MASK]');
|
||||
|
||||
inputUser.attachEvent("onclick", function (){
|
||||
if(_('ID_USER') == inputUser.value){
|
||||
inputUser.value="";
|
||||
}
|
||||
});
|
||||
inputUser.attachEvent("onblur", function (){
|
||||
if(inputUser.value == ""){
|
||||
inputUser.value=_('ID_USER');
|
||||
}
|
||||
});
|
||||
|
||||
inputPass.attachEvent("onclick", function (){
|
||||
if(_('ID_PASSWORD') == inputPass.value){
|
||||
inputPass.value="";
|
||||
}
|
||||
});
|
||||
|
||||
inputPass.attachEvent("onblur", function (){
|
||||
if(inputPass.value == ""){
|
||||
inputPass.value = _('ID_PASSWORD');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
}else{
|
||||
document.getElementById('form[USR_USERNAME]').placeholder = _('ID_USER');
|
||||
document.getElementById('form[USR_PASSWORD_MASK]').placeholder = _('ID_PASSWORD');
|
||||
document.getElementById('form[BSUBMIT]').classList.remove('module_app_button___gray');
|
||||
document.getElementById('form[BSUBMIT]').classList.add('button-login-success');
|
||||
}
|
||||
};
|
||||
|
||||
// delete or not forgot password link
|
||||
if(flagForgotPassword != 'on' && flagForgotPassword != '1') {
|
||||
var element = document.getElementById("form[FORGOT_PASWORD_LINK]");
|
||||
element.parentNode.removeChild(element);
|
||||
}
|
||||
|
||||
var panel;
|
||||
|
||||
function showGettingStarted() {
|
||||
panel = new leimnud.module.panel();
|
||||
panel.options = {
|
||||
size: {w:620,h:500},
|
||||
position: {x:50,y:50,center:true},
|
||||
control: {close:true,resize:false, drag: false},fx:{modal:true},
|
||||
statusBar: false,
|
||||
fx: {shadow:true,modal:true}
|
||||
};
|
||||
panel.make();
|
||||
panel.loader.show();
|
||||
var r = new leimnud.module.rpc.xmlhttp({
|
||||
url:"../services/login_getStarted.php",
|
||||
method:"POST"
|
||||
});
|
||||
r.callback = function(rpc) {
|
||||
panel.loader.hide();
|
||||
panel.addContent(rpc.xmlhttp.responseText);
|
||||
};
|
||||
r.make();
|
||||
};
|
||||
|
||||
var saveConfig = function() {
|
||||
if (document.getElementById("getStarted").checked == true) {
|
||||
var oRPC = new leimnud.module.rpc.xmlhttp({
|
||||
url: '../login/login_Ajax',
|
||||
async: false,
|
||||
method: 'POST',
|
||||
args: 'function=getStarted_save'
|
||||
});
|
||||
oRPC.make();
|
||||
}
|
||||
panel.remove();
|
||||
}
|
||||
|
||||
var dynaformOnload = function() {
|
||||
setFocus(getField('USR_USERNAME'));
|
||||
if (flagGettingStarted) {
|
||||
showGettingStarted();
|
||||
}
|
||||
};
|
||||
|
||||
leimnud.event.add(document.getElementById('form[USR_PASSWORD_MASK]'), 'keypress', function(event) {
|
||||
var key;
|
||||
if(window.event)
|
||||
key = window.event.keyCode; //IE
|
||||
else
|
||||
key = event.which; //firefox
|
||||
if(key == 13) {
|
||||
document.getElementById('form[BSUBMIT]').click();
|
||||
return true;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
});
|
||||
|
||||
leimnud.event.add(document.getElementById('form[BSUBMIT]'), 'click', function() {
|
||||
setNestedProperty(this, Array("disabled"), "true");
|
||||
setNestedProperty(this, Array("value"), @@LOGIN_VERIFY_MSG);
|
||||
|
||||
document.getElementById("form[USR_PASSWORD]").value = document.getElementById("form[USR_PASSWORD_MASK]").value;
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").value = "";
|
||||
document.getElementById("form[BROWSER_TIME_ZONE_OFFSET]").value = getBrowserTimeZoneOffset();
|
||||
if(!navigator.userAgent.indexOf("MSIE 8.0")>0)
|
||||
document.getElementById("form[USR_PASSWORD_MASK]").setAttribute("type", "text");
|
||||
document.login.submit();
|
||||
}.extend(document.getElementById('form[BSUBMIT]')));
|
||||
|
||||
]]></JS>
|
||||
</dynaForm>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 102 KiB |
@@ -893,7 +893,8 @@ if (!defined('EXECUTE_BY_CRON')) {
|
||||
|
||||
global $G_PUBLISH;
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login' . PATH_SEP . 'TimeZoneAlert', '', $arrayData, SYS_URI . 'login/updateTimezone');
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/TimeZoneAlert', '', $arrayData, SYS_URI . 'login/updateTimezone');
|
||||
|
||||
G::RenderPage('publish');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user