当前位置: 首页>>代码示例>>PHP>>正文


PHP G::decrypt方法代码示例

本文整理汇总了PHP中G::decrypt方法的典型用法代码示例。如果您正苦于以下问题:PHP G::decrypt方法的具体用法?PHP G::decrypt怎么用?PHP G::decrypt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在G的用法示例。


在下文中一共展示了G::decrypt方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: create_site

 /**
  * create_site
  *
  * @param array $config
  * @param boolean $confirmed
  * @return void
  */
 public function create_site($config = array(), $confirmed = false)
 {
     $this->options = G::array_concat(array('isset' => false, 'password' => G::generate_password(12), 'path_data' => @PATH_DATA, 'path_compiled' => @PATH_C, 'name' => $config['name'], 'database' => array(), 'admin' => array('username' => 'admin', 'password' => 'admin'), 'advanced' => array('ao_db_wf' => 'wf_' . $config['name'], 'ao_db_rb' => 'rb_' . $config['name'], 'ao_db_rp' => 'rp_' . $config['name'], 'ao_db_drop' => false)), $config);
     $a = @explode(SYSTEM_HASH, G::decrypt(HASH_INSTALLATION, SYSTEM_HASH));
     $this->options['database'] = G::array_concat(array('username' => @$a[1], 'password' => @$a[2], 'hostname' => @$a[0]), $this->options['database']);
     return $confirmed === true ? $this->make_site() : $this->create_site_test();
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:14,代码来源:class.Installer.php

示例2: pagedTable_BeforeQuery

function pagedTable_BeforeQuery(&$ntable)
{
    $file = G::decrypt($ntable->xmlForm->values['URL'], URL_KEY);
    /* Start Block: Defines the virtual XMLDB*/
    G::LoadClass('xmlDb');
    define('DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml');
    define('DB_XMLDB_USER', '');
    define('DB_XMLDB_PASS', '');
    define('DB_XMLDB_NAME', '');
    define('DB_XMLDB_TYPE', 'myxml');
    /* End Block*/
}
开发者ID:emildev35,项目名称:processmaker,代码行数:12,代码来源:dynaforms_PagedTableAjax.php

示例3: sendMail

 /**
  * Send a mail using phpmailer
  * this method use the global smtp server connection stored on Configuration table
  * this information is retrieved by the PMFunction getEmailConfiguration()
  *
  * @author Erik Amaru Ortiz <erik@colosa.com>
  * @param string $from address that is sending the email
  * @param string $fromName name of sender
  * @param mixed $address the possibles values are:
  *        string
  *        array('email1', 'some name <email2>')
  *        array('to'=>array('email1', 'some name <email2>'), 'cc'=>array(...), 'bcc'=>array(...))
  * @param string $subject contains the email subject
  * @param string $body contains the email body (text plain or html)
  * @return mixed boolean or string : if the email was sent successfully returns true, otherwise returns a string within error message
  */
 public function sendMail($from, $fromName, $address, $subject, $body)
 {
     // require_once "classes/class.pmFunctions.php";
     G::LoadClass("pmFunctions");
     G::LoadThirdParty('phpmailer', 'class.phpmailer');
     $setup = getEmailConfiguration();
     if ($setup['MESS_RAUTH'] == false || is_string($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] == 'false') {
         $setup['MESS_RAUTH'] = 0;
     } else {
         $setup['MESS_RAUTH'] = 1;
     }
     if (count($setup) == 0 || !isset($setup['MESS_ENGINE']) || !isset($setup['MESS_SERVER']) || !isset($setup['MESS_ENABLED']) || !isset($setup['MESS_RAUTH']) || $setup['MESS_SERVER'] == '') {
         return G::LoadTranslation('ID_EMAIL_ENGINE_IS_NOT_CONFIGURED');
     }
     if (!$setup['MESS_ENABLED']) {
         return G::LoadTranslation('ID_EMAIL_ENGINE_IS_NOT_ENABLED');
     }
     $passwd = $setup['MESS_PASSWORD'];
     $passwdDec = G::decrypt($passwd, 'EMAILENCRYPT');
     $auxPass = explode('hash:', $passwdDec);
     if (count($auxPass) > 1) {
         if (count($auxPass) == 2) {
             $passwd = $auxPass[1];
         } else {
             array_shift($auxPass);
             $passwd = implode('', $auxPass);
         }
     }
     $setup['MESS_PASSWORD'] = $passwd;
     $mail = new PHPMailer(true);
     $mail->From = $from != '' && $from ? $from : $setup['MESS_ACCOUNT'];
     $mail->FromName = $fromName;
     $mail->Subject = $subject;
     $mail->Body = $body;
     $mail->IsHTML(true);
     $mail->IsSMTP();
     $mail->Host = $setup['MESS_SERVER'];
     $mail->Port = $setup['MESS_PORT'];
     $mail->SMTPAuth = isset($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] ? true : false;
     $mail->Username = $setup['MESS_ACCOUNT'];
     $mail->Password = $setup['MESS_PASSWORD'];
     $mail->SMTPSecure = $setup['SMTPSecure'];
     $emailAddressList = G::envelopEmailAddresses($address);
     foreach ($emailAddressList['to'] as $emails) {
         $mail->AddAddress($emails[0], $emails[1]);
     }
     foreach ($emailAddressList['cc'] as $emails) {
         $mail->AddCC($emails[0], $emails[1]);
     }
     foreach ($emailAddressList['bcc'] as $emails) {
         $mail->AddBCC($emails[0], $emails[1]);
     }
     return $mail->Send() ? true : $mail->ErrorInfo;
 }
开发者ID:nhenderson,项目名称:processmaker,代码行数:70,代码来源:class.g.php

示例4: is_modified

 /**
  * Checks if a dynaform was changed
  *
  * @param file $A
  * @param string $DYN_UID
  * @return array
  */
 public function is_modified($A, $DYN_UID)
 {
     $file = G::decrypt($A, URL_KEY);
     try {
         /* Compare Properties */
         $dynaform = new dynaform();
         $dynaform->load($DYN_UID);
         $form = new Form($file, PATH_DYNAFORM, SYS_LANG, true);
         $sp = array('A' => $A, 'DYN_UID' => $dynaform->getDynUid(), 'PRO_UID' => $dynaform->getProUid(), 'DYN_TITLE' => $dynaform->getDynTitle(), 'DYN_TYPE' => $dynaform->getDynType(), 'DYN_DESCRIPTION' => $dynaform->getDynDescription(), 'WIDTH' => $form->width, 'ENABLETEMPLATE' => $form->enableTemplate, 'MODE' => $form->mode);
         $P = self::get_properties($A, $DYN_UID);
         if (!isset($P['DYN_TITLE'])) {
             $P['DYN_TITLE'] = $sp['DYN_TITLE'];
         }
         if (!isset($P['DYN_TYPE'])) {
             $P['DYN_TYPE'] = $sp['DYN_TYPE'];
         }
         if (!isset($P['DYN_DESCRIPTION'])) {
             $P['DYN_DESCRIPTION'] = $sp['DYN_DESCRIPTION'];
         }
         if (!isset($P['WIDTH'])) {
             $P['WIDTH'] = $sp['WIDTH'];
         }
         if (!isset($P['ENABLETEMPLATE'])) {
             $P['ENABLETEMPLATE'] = $sp['ENABLETEMPLATE'];
         }
         if (!isset($P['MODE'])) {
             $P['MODE'] = $sp['MODE'];
         }
         $modPro = $sp['DYN_TITLE'] != $P['DYN_TITLE'] || $sp['DYN_TYPE'] != $P['DYN_TYPE'] || $sp['DYN_DESCRIPTION'] != $P['DYN_DESCRIPTION'];
         /* ||
            ($sp['WIDTH']!=$P['WIDTH']) ||
            ($sp['ENABLETEMPLATE']!=$P['ENABLETEMPLATE']) ||
            ($sp['MODE']!=$P['MODE']) */
         /* Compare copies */
         $fileOrigen = dynaformEditor::_getFilename($file);
         $copy = implode('', file(PATH_DYNAFORM . $file . '.xml'));
         $origen = implode('', file(PATH_DYNAFORM . $fileOrigen . '.xml'));
         $copyHTML = file_exists(PATH_DYNAFORM . $file . '.html') ? implode('', file(PATH_DYNAFORM . $file . '.html')) : false;
         $origenHTML = file_exists(PATH_DYNAFORM . $fileOrigen . '.html') ? implode('', file(PATH_DYNAFORM . $fileOrigen . '.html')) : false;
         $modFile = $copy !== $origen || $origenHTML && $copyHTML !== $origenHTML;
         //Return
         //return array("*message"=>sprintf("%s, (%s= %s %s):", $modPro?"1":"0" , $modFile?"1":"0", ($copy!==$origen)?"1":"0" , ($origenHTML && ($copyHTML!==$origenHTML))?"1":"0" ));
         //die("c'est fini");
         return $modPro || $modFile;
     } catch (Exception $e) {
         return (array) $e;
     }
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:55,代码来源:class.dynaformEditor.php

示例5: DBConnection

 * Coral Gables, FL, 33134, USA, or email info@colosa.com.
 */
if (($RBAC_Response = $RBAC->userCanAccess("PM_FACTORY")) != 1) {
    return $RBAC_Response;
    //G::genericForceLogin( 'WF_MYINFO' , 'login/noViewPage', $urlLogin = 'login/login' );
}
G::LoadInclude('ajax');
G::LoadClass('dynaform');
G::LoadClass('xmlDb');
$dbc = new DBConnection();
$ses = new DBSession($dbc);
//$dynaform = new dynaform( $dbc );
if ($_POST['form']['DYN_UID'] === '') {
    unset($_POST['form']['DYN_UID']);
}
$Fields = $_POST['form'];
if (!isset($Fields['DYN_UID'])) {
    return;
}
$file = G::decrypt($Fields['A'], URL_KEY);
$Fields['DYN_FILENAME'] = strcasecmp(substr($file, -5), '_tmp0') == 0 ? substr($file, 0, strlen($file) - 5) : $file;
$_SESSION['CURRENT_DYNAFORM'] = $Fields;
//$dynaform->Save( $Fields );
$dbc2 = new DBConnection(PATH_DYNAFORM . $file . '.xml', '', '', '', 'myxml');
$ses2 = new DBSession($dbc2);
if (!isset($Fields['ENABLETEMPLATE'])) {
    $Fields['ENABLETEMPLATE'] = "0";
}
$ses2->execute(G::replaceDataField("UPDATE . SET WIDTH = @@WIDTH WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
$ses2->execute(G::replaceDataField("UPDATE . SET ENABLETEMPLATE = @@ENABLETEMPLATE WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
$ses2->execute(G::replaceDataField("UPDATE . SET MODE = @@MODE WHERE XMLNODE_NAME = 'dynaForm' ", $Fields));
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:dynaforms_SaveProperties.php

示例6: Criteria

        $caseFields = $cases->loadCase(G::decrypt($_REQUEST['APP_UID'], URL_KEY),G::decrypt($_REQUEST['DEL_INDEX'], URL_KEY));
    
        //
        $criteria = new Criteria();
        $criteria->addSelectColumn(DynaformPeer::DYN_CONTENT);
        $criteria->addSelectColumn(DynaformPeer::PRO_UID);
        $criteria->add(DynaformPeer::DYN_UID, G::decrypt($_REQUEST['DYN_UID'], URL_KEY));
        $result = DynaformPeer::doSelectRS($criteria);
        $result->setFetchmode(ResultSet::FETCHMODE_ASSOC);
        $result->next();
        $configuration = $result->getRow();
        
        $action = 'ActionsByEmailDataFormPost.php?APP_UID=' . $_REQUEST['APP_UID'] . '&DEL_INDEX=' . $_REQUEST['DEL_INDEX'] . '&ABER=' . $_REQUEST['ABER'];
        $record['DYN_CONTENT'] = $configuration['DYN_CONTENT'];
        $record['PRO_UID']     = $configuration['PRO_UID'];
        $record['CURRENT_DYNAFORM'] = G::decrypt($_REQUEST['DYN_UID'], URL_KEY);
        $record['APP_UID'] = $_REQUEST['APP_UID'];
        $record['DEL_INDEX'] = $_REQUEST['DEL_INDEX'];
        $record['ABER'] = $_REQUEST['ABER'];
        if (is_null($caseFields['DEL_FINISH_DATE'])) {
            $a = new pmDynaform($record);
            $a->printABE($action,$record);
        } else {
            $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showInfo', '', array('MESSAGE' => '<strong>The form has already been filled and sent.</strong>'));
        }
    } catch (Exception $error) {
        $G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/showInfo', '', array('MESSAGE' => $error->getMessage()));
    }
    
    G::RenderPage('publish', 'blank');
}
开发者ID:nhenderson,项目名称:processmaker,代码行数:31,代码来源:ActionsByEmailDataForm.php

示例7: array

 if (isset($_GET['OUT_DOC_UID'])) {
     $aFields = $ooutputDocument->load($_GET['OUT_DOC_UID']);
 } else {
     $aFields = array();
     $aFields['PRO_UID'] = $_GET['PRO_UID'];
 }
 $type = isset($aFields['OUT_DOC_TYPE']) ? $aFields['OUT_DOC_TYPE'] : 'HTML';
 $aFields['OUT_DOC_TAGS'] = isset($aFields['OUT_DOC_TAGS']) ? $aFields['OUT_DOC_TAGS'] : 'OUTPUT';
 $aFields['OUT_DOC_VERSIONING'] = strval($aFields['OUT_DOC_VERSIONING']);
 $aFields['OUT_DOC_LANDSCAPE'] = strval($aFields['OUT_DOC_LANDSCAPE']);
 if (isset($aFields['OUT_DOC_PDF_SECURITY_ENABLED'])) {
     $aFields['OUT_DOC_PDF_SECURITY_ENABLED'] = strval($aFields['OUT_DOC_PDF_SECURITY_ENABLED']);
 }
 if (isset($aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD']) && $aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] != "") {
     $aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = G::decrypt($aFields['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'], $_GET['OUT_DOC_UID']);
     $aFields['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = G::decrypt($aFields['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'], $_GET['OUT_DOC_UID']);
 }
 G::LoadClass('xmlfield_InputPM');
 $G_PUBLISH = new Publisher();
 switch ($type) {
     case 'HTML':
         $G_PUBLISH->AddContent('xmlform', 'xmlform', 'outputdocs/outputdocs_Properties', '', $aFields, '../outputdocs/outputdocs_Save');
         break;
     case 'JRXML':
         $G_PUBLISH->AddContent('xmlform', 'xmlform', 'outputdocs/outputdocs_Properties', '', $aFields, '../outputdocs/outputdocs_Save');
         /*
         //  	     $G_PUBLISH->AddContent('xmlform', 'xmlform', 'outputdocs/outputdocsDynaformList', '', $aFields , '../outputdocs/outputdocs_Save');
         require_once 'classes/model/Process.php';
         G::LoadClass( 'processMap');
         $sProcessUID = $aFields['PRO_UID'];
         $oProcess = new Process();
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:outputdocs_Properties.php

示例8: sendNoteNotification

 public function sendNoteNotification($appUid, $usrUid, $noteContent, $noteRecipients, $sFrom = "")
 {
     try {
         require_once 'classes/model/Configuration.php';
         $oConfiguration = new Configuration();
         $sDelimiter = DBAdapter::getStringDelimiter();
         $oCriteria = new Criteria('workflow');
         $oCriteria->add(ConfigurationPeer::CFG_UID, 'Emails');
         $oCriteria->add(ConfigurationPeer::OBJ_UID, '');
         $oCriteria->add(ConfigurationPeer::PRO_UID, '');
         $oCriteria->add(ConfigurationPeer::USR_UID, '');
         $oCriteria->add(ConfigurationPeer::APP_UID, '');
         if (ConfigurationPeer::doCount($oCriteria) == 0) {
             $oConfiguration->create(array('CFG_UID' => 'Emails', 'OBJ_UID' => '', 'CFG_VALUE' => '', 'PRO_UID' => '', 'USR_UID' => '', 'APP_UID' => ''));
             $aConfiguration = array();
         } else {
             $aConfiguration = $oConfiguration->load('Emails', '', '', '', '');
             if ($aConfiguration['CFG_VALUE'] != '') {
                 $aConfiguration = unserialize($aConfiguration['CFG_VALUE']);
                 $passwd = $aConfiguration['MESS_PASSWORD'];
                 $passwdDec = G::decrypt($passwd, 'EMAILENCRYPT');
                 $auxPass = explode('hash:', $passwdDec);
                 if (count($auxPass) > 1) {
                     if (count($auxPass) == 2) {
                         $passwd = $auxPass[1];
                     } else {
                         array_shift($auxPass);
                         $passwd = implode('', $auxPass);
                     }
                 }
                 $aConfiguration['MESS_PASSWORD'] = $passwd;
             } else {
                 $aConfiguration = array();
             }
         }
         if (!isset($aConfiguration['MESS_ENABLED']) || $aConfiguration['MESS_ENABLED'] != '1') {
             return false;
         }
         $oUser = new Users();
         $aUser = $oUser->load($usrUid);
         $authorName = ($aUser['USR_FIRSTNAME'] != '' || $aUser['USR_LASTNAME'] != '' ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>';
         G::LoadClass('case');
         $oCase = new Cases();
         $aFields = $oCase->loadCase($appUid);
         $configNoteNotification['subject'] = G::LoadTranslation('ID_MESSAGE_SUBJECT_NOTE_NOTIFICATION') . " @#APP_TITLE ";
         $configNoteNotification['body'] = G::LoadTranslation('ID_CASE') . ": @#APP_TITLE<br />" . G::LoadTranslation('ID_AUTHOR') . ": {$authorName}<br /><br />{$noteContent}";
         /*
         if ($sFrom == '') {
             $sFrom = '"ProcessMaker"';
         }
         */
         if (isset($aConfiguration['MESS_FROM_NAME']) && $aConfiguration['MESS_FROM_NAME'] != '') {
             $sFrom = $aConfiguration['MESS_FROM_NAME'];
         }
         $hasEmailFrom = preg_match('/(.+)@(.+)\\.(.+)/', $sFrom, $match);
         if (!$hasEmailFrom || strpos($sFrom, $aConfiguration['MESS_ACCOUNT']) === false) {
             if ($aConfiguration['MESS_ENGINE'] != 'MAIL' && $aConfiguration['MESS_ACCOUNT'] != '') {
                 $sFrom .= ' <' . $aConfiguration['MESS_ACCOUNT'] . '>';
             } else {
                 if ($aConfiguration['MESS_ENGINE'] == 'MAIL') {
                     $sFrom .= ' <info@' . gethostbyaddr('127.0.0.1') . '>';
                 } else {
                     if ($aConfiguration['MESS_SERVER'] != '') {
                         if ($sAux = @gethostbyaddr($aConfiguration['MESS_SERVER'])) {
                             $sFrom .= ' <info@' . $sAux . '>';
                         } else {
                             $sFrom .= ' <info@' . $aConfiguration['MESS_SERVER'] . '>';
                         }
                     } else {
                         $sFrom .= ' <info@processmaker.com>';
                     }
                 }
             }
         }
         $sSubject = G::replaceDataField($configNoteNotification['subject'], $aFields);
         $sBody = nl2br(G::replaceDataField($configNoteNotification['body'], $aFields));
         G::LoadClass('spool');
         $oUser = new Users();
         $recipientsArray = explode(",", $noteRecipients);
         foreach ($recipientsArray as $recipientUid) {
             $aUser = $oUser->load($recipientUid);
             $sTo = ($aUser['USR_FIRSTNAME'] != '' || $aUser['USR_LASTNAME'] != '' ? $aUser['USR_FIRSTNAME'] . ' ' . $aUser['USR_LASTNAME'] . ' ' : '') . '<' . $aUser['USR_EMAIL'] . '>';
             $oSpool = new spoolRun();
             if ($aConfiguration['MESS_RAUTH'] == false || is_string($aConfiguration['MESS_RAUTH']) && $aConfiguration['MESS_RAUTH'] == 'false') {
                 $aConfiguration['MESS_RAUTH'] = 0;
             } else {
                 $aConfiguration['MESS_RAUTH'] = 1;
             }
             $oSpool->setConfig(array('MESS_ENGINE' => $aConfiguration['MESS_ENGINE'], 'MESS_SERVER' => $aConfiguration['MESS_SERVER'], 'MESS_PORT' => $aConfiguration['MESS_PORT'], 'MESS_ACCOUNT' => $aConfiguration['MESS_ACCOUNT'], 'MESS_PASSWORD' => $aConfiguration['MESS_PASSWORD'], 'SMTPAuth' => $aConfiguration['MESS_RAUTH'] == '1' ? true : false, 'SMTPSecure' => isset($aConfiguration['SMTPSecure']) ? $aConfiguration['SMTPSecure'] : ''));
             $oSpool->create(array('msg_uid' => '', 'app_uid' => $appUid, 'del_index' => 0, 'app_msg_type' => 'DERIVATION', 'app_msg_subject' => $sSubject, 'app_msg_from' => $sFrom, 'app_msg_to' => $sTo, 'app_msg_body' => $sBody, 'app_msg_cc' => '', 'app_msg_bcc' => '', 'app_msg_attach' => '', 'app_msg_template' => '', 'app_msg_status' => 'pending'));
             if ($aConfiguration['MESS_BACKGROUND'] == '' || $aConfiguration['MESS_TRY_SEND_INMEDIATLY'] == '1') {
                 $oSpool->sendMail();
             }
         }
         //Send derivation notification - End
     } catch (Exception $oException) {
         throw $oException;
     }
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:99,代码来源:AppNotes.php

示例9: getPassWithoutEncrypt

 /**
  * Function getPassWithoutEncrypt
  *
  * @author krlos Pacha C. <carlos@colosa.com>
  * @access public
  * @param string passw
  * @return string
  */
 public function getPassWithoutEncrypt($aInfoCon)
 {
     $passw = '';
     if ($aInfoCon['DBS_PASSWORD'] != '') {
         $aPassw = explode('_', $aInfoCon['DBS_PASSWORD']);
         $passw = $aPassw[0];
         $flagTns = $aInfoCon["DBS_TYPE"] == "oracle" && $aInfoCon["DBS_CONNECTION_TYPE"] == "TNS" ? 1 : 0;
         if (sizeof($aPassw) > 1 && $flagTns == 0) {
             $passw = $passw == "none" ? "" : G::decrypt($passw, $aInfoCon["DBS_DATABASE_NAME"]);
         } else {
             $passw = $passw == "none" ? "" : G::decrypt($passw, $aInfoCon["DBS_TNS"]);
         }
     }
     return $passw;
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:23,代码来源:class.dbConnections.php

示例10: Exception

 
     if ($_REQUEST['DEL_INDEX'] == '') {
         throw new Exception('The parameter DEL_INDEX is empty.');
     }
 
     if ($_REQUEST['ABER'] == '') {
         throw new Exception('The parameter ABER is empty.');
     }
 
     if (!isset($_REQUEST['form'])) {
         $_REQUEST['form'] = array();
     }
 
     $_REQUEST['APP_UID']   = G::decrypt($_REQUEST['APP_UID'],   URL_KEY);
     $_REQUEST['DEL_INDEX'] = G::decrypt($_REQUEST['DEL_INDEX'], URL_KEY);
     $_REQUEST['ABER']      = G::decrypt($_REQUEST['ABER'],      URL_KEY);
     G::LoadClass('case');
 
     $case = new Cases();
     $casesFields = $case->loadCase($_REQUEST['APP_UID'], $_REQUEST['DEL_INDEX']);
 
     $casesFields['APP_DATA'] = array_merge($casesFields['APP_DATA'], $_REQUEST['form']);
 
     //Get user info
     $current_user_uid = null;
     $currentUsrName   = null;
 
     $criteria = new Criteria("workflow");
 
     $criteria->addSelectColumn(AppDelegationPeer::USR_UID);
     $criteria->add(AppDelegationPeer::APP_UID, $_REQUEST["APP_UID"]);
开发者ID:rrsc,项目名称:processmaker,代码行数:30,代码来源:ActionsByEmailDataFormPost.php

示例11: Exception

     $_REQUEST['APP_UID'] = '';
 }
 if (!isset($_REQUEST['DEL_INDEX'])) {
     $_REQUEST['DEL_INDEX'] = '';
 }
 if ($_REQUEST['APP_UID'] == '') {
     throw new Exception('The parameter APP_UID is empty.');
 }
 if ($_REQUEST['DEL_INDEX'] == '') {
     throw new Exception('The parameter DEL_INDEX is empty.');
 }
 $_REQUEST['APP_UID'] = G::decrypt(urldecode(utf8_encode($_REQUEST['APP_UID'])), URL_KEY);
 $_REQUEST['DEL_INDEX'] = G::decrypt(urldecode(utf8_encode($_REQUEST['DEL_INDEX'])), URL_KEY);
 $_REQUEST['FIELD'] = G::decrypt(urldecode(utf8_encode($_REQUEST['FIELD'])), URL_KEY);
 $_REQUEST['VALUE'] = G::decrypt(urldecode(utf8_encode($_REQUEST['VALUE'])), URL_KEY);
 $_REQUEST['ABER'] = G::decrypt(urldecode(utf8_encode($_REQUEST['ABER'])), URL_KEY);
 G::LoadClass('case');
 $cases = new Cases();
 $caseFieldsABE = $cases->loadCase($_REQUEST['APP_UID'], $_REQUEST['DEL_INDEX']);
 if (is_null($caseFieldsABE['DEL_FINISH_DATE'])) {
     $dataField = array();
     $dataField[$_REQUEST['FIELD']] = $_REQUEST['VALUE'];
     $caseFieldsABE['APP_DATA'] = array_merge($caseFieldsABE['APP_DATA'], $dataField);
     $dataResponses = array();
     $dataResponses['ABE_REQ_UID'] = $_REQUEST['ABER'];
     $dataResponses['ABE_RES_CLIENT_IP'] = $_SERVER['REMOTE_ADDR'];
     $dataResponses['ABE_RES_DATA'] = serialize($_REQUEST['VALUE']);
     $dataResponses['ABE_RES_STATUS'] = 'PENDING';
     $dataResponses['ABE_RES_MESSAGE'] = '';
     try {
         require_once 'classes/model/AbeResponses.php';
开发者ID:emildev35,项目名称:processmaker,代码行数:31,代码来源:ActionsByEmail.php

示例12: loadFields

 /**
  * loadFields for email configuration
  * @autor Alvaro  <alvaro@colosa.com>
  */
 public function loadFields()
 {
     G::loadClass('configuration');
     $oConfiguration = new Configurations();
     $oConfiguration->loadConfig($x, 'Emails', '', '', '', '');
     $fields = $oConfiguration->aConfig;
     if (count($fields) > 0) {
         $this->success = count($fields) > 0;
         $passwd = $fields['MESS_PASSWORD'];
         $passwdDec = G::decrypt($passwd, 'EMAILENCRYPT');
         $auxPass = explode('hash:', $passwdDec);
         if (count($auxPass) > 1) {
             if (count($auxPass) == 2) {
                 $passwd = $auxPass[1];
             } else {
                 array_shift($auxPass);
                 $passwd = implode('', $auxPass);
             }
         }
         $fields['MESS_PASSWORD'] = $passwd;
     }
     $this->data = $fields;
 }
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:27,代码来源:adminProxy.php

示例13: getActiveFeatures

 public function getActiveFeatures()
 {
     if (file_exists(PATH_PLUGINS . 'enterprise/data/default')) {
         return array();
     }
     return unserialize(G::decrypt($this->serial, file_get_contents(PATH_PLUGINS . 'enterprise/data/default')));
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:7,代码来源:class.pmLicenseManager.php

示例14: foreach

    ?>
	</div>
	<script>
        parent.document.getElementById('light').style.display='none';
        parent.document.getElementById('fade').style.display='none';
	</script>
<?php 
    die;
}
$elements = $oXxml->result['dynaForm']['__CONTENT__'];
$dynaformAttributes = $oXxml->result['dynaForm']['__ATTRIBUTES__'];
$dynaformType = $dynaformAttributes['type'];
foreach ($elements as $node_name => $node) {
    if ($node_name == "___pm_boot_strap___") {
        $boot_strap = $elements[$node_name];
        $hidden_fields = G::decrypt($boot_strap['__ATTRIBUTES__']['meta'], 'dynafieldsHandler');
        //echo $hidden_fields;
        $hidden_fields_list = explode(',', $hidden_fields);
        unset($elements[$node_name]);
        ?>
      <script>
        parent.jsMeta = "<?php 
        echo $boot_strap['__ATTRIBUTES__']['meta'];
        ?>
";
      </script>
      <?php 
    }
}
?>
	<body>
开发者ID:rodrigoivan,项目名称:processmaker,代码行数:31,代码来源:fieldsHandler.php

示例15: Form

    }
} else {
    $_POST['form']['PME_SAVELABEL'] = 0;
}
if (isset($_POST['form']['PME_SAVELABEL']) && isset($_POST['form']['PME_CODE']) && $_POST['form']['PME_TYPE'] === 'javascript') {
    $sType = $_POST['form']['PME_TYPE'];
    $A = $_POST['form']['PME_A'];
    $fieldName = $_POST['form']['PME_XMLNODE_NAME'];
    $pmeCode = $_POST['form']['PME_CODE'];
    $_POST['form']['PME_CODE'] = '';
    //    $pmeCode = str_replace("'", "''", $pmeCode);
    //    $pmeCode = str_replace('"', '""', $pmeCode);
    //    $pmeCode = preg_replace("/\)\s*\n/", ") //\n", $pmeCode);
    //    $_POST['form']['PME_CODE'] = $pmeCode;
}
$file = G::decrypt($_POST['form']['PME_A'], URL_KEY);
define('DB_XMLDB_HOST', PATH_DYNAFORM . $file . '.xml');
define('DB_XMLDB_USER', '');
define('DB_XMLDB_PASS', '');
define('DB_XMLDB_NAME', '');
define('DB_XMLDB_TYPE', 'myxml');
if (isset($_POST['form']['PME_XMLNODE_VALUE'])) {
    $_POST['form']['PME_XMLNODE_VALUE'] = str_replace("'", "''", $_POST['form']['PME_XMLNODE_VALUE']);
}
if (file_exists(PATH_XMLFORM . 'dynaforms/fields/' . $type . '.xml')) {
    $form = new Form('dynaforms/fields/' . $type, PATH_XMLFORM);
    //TODO: Verify why validatePost removes PME_XMLGRID.
    $isGrid = isset($_POST['form']['PME_XMLGRID']);
    if ($isGrid) {
        $xmlGrid = $_POST['form']['PME_XMLGRID'];
    }
开发者ID:nshong,项目名称:processmaker,代码行数:31,代码来源:fields_Save.php


注:本文中的G::decrypt方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。