Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -60,6 +60,9 @@ $sFailedLogins = $_SESSION['FAILED_LOGINS'];
|
||||
$usernamePrevious1 = $_SESSION["USERNAME_PREVIOUS1"];
|
||||
$usernamePrevious2 = $_SESSION["USERNAME_PREVIOUS2"];
|
||||
|
||||
$pass = (isset($_SESSION['NW_PASSWORD'])) ? $_SESSION['NW_PASSWORD'] : '';
|
||||
$pass1 = (isset($_SESSION['NW_PASSWORD2'])) ? $_SESSION['NW_PASSWORD2'] : '';
|
||||
|
||||
$aFields['LOGIN_VERIFY_MSG'] = G::loadTranslation('LOGIN_VERIFY_MSG');
|
||||
//$aFields['LOGIN_VERIFY_MSG'] = Bootstrap::loadTranslation('LOGIN_VERIFY_MSG');
|
||||
|
||||
@@ -135,6 +138,9 @@ $_SESSION['FAILED_LOGINS'] = $sFailedLogins;
|
||||
$_SESSION["USERNAME_PREVIOUS1"] = $usernamePrevious1;
|
||||
$_SESSION["USERNAME_PREVIOUS2"] = $usernamePrevious2;
|
||||
|
||||
$_SESSION['NW_PASSWORD'] = $pass;
|
||||
$_SESSION['NW_PASSWORD2'] = $pass1;
|
||||
|
||||
/*----------------------------------********---------------------------------*/
|
||||
if (!class_exists('pmLicenseManager')) {
|
||||
G::LoadClass('pmLicenseManager');
|
||||
|
||||
@@ -15,7 +15,6 @@ if (isset($_FILES["PROCESS_FILENAME"]) &&
|
||||
"PRO_CATEGORY" => "",
|
||||
"PRO_CREATE_USER" => $_SESSION['USER_LOGGED']
|
||||
);
|
||||
$stringBpmn = base64_encode(file_get_contents($_FILES["PROCESS_FILENAME"]["tmp_name"]));
|
||||
if ($createMode === "overwrite") {
|
||||
$process = Process::getByProTitle($data["PRO_TITLE"]);
|
||||
if ($process !== null) {
|
||||
@@ -27,11 +26,11 @@ if (isset($_FILES["PROCESS_FILENAME"]) &&
|
||||
$data["PRO_TITLE"] = Process::getNextTitle($data["PRO_TITLE"]);
|
||||
}
|
||||
$project = new \ProcessMaker\Project\Adapter\WorkflowBpmn($data);
|
||||
copy($_FILES["PROCESS_FILENAME"]["tmp_name"], PATH_DOCUMENT . $project->getUid());
|
||||
$result = array(
|
||||
"success" => true,
|
||||
"catchMessage" => "",
|
||||
"prj_uid" => $project->getUid(),
|
||||
"stringBpmn" => $stringBpmn,
|
||||
"createMode" => $createMode
|
||||
);
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -42,6 +42,12 @@ $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(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);
|
||||
@@ -56,6 +62,7 @@ if ($oDataset->next()) {
|
||||
|
||||
$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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user