public function process(Vtiger_Request $request) { ${"GLOBALS"}["kdeehlyv"] = "TMPworkflows"; $seemluoths = "viewer"; $iqrmjuou = "module"; $oonrwkg = "result"; $wnxmbyrsjd = "cu_model"; ${"GLOBALS"}["ujmqtir"] = "current_user"; $wmcoewcu = "sql"; ${"GLOBALS"}["sfolfu"] = "workflows"; $laqtnyra = "ImportWorkflows"; ${"GLOBALS"}["szyrcsxqnjwy"] = "adb"; ${"GLOBALS"}["cjryuofsmx"] = "result"; ${"GLOBALS"}["lyqxydcxb"] = "TMPworkflows"; $pkqxigbjog = "objWorkflow"; $nphxkxzqhk = "module"; ${"GLOBALS"}["awnfeqq"] = "currentLanguage"; ${${"GLOBALS"}["ujmqtir"]} = ${$wnxmbyrsjd} = Users_Record_Model::getCurrentUserModel(); ${${"GLOBALS"}["awnfeqq"]} = Vtiger_Language_Handler::getLanguage(); ${${"GLOBALS"}["szyrcsxqnjwy"]} = PearDatabase::getInstance(); ${$seemluoths} = $this->getViewer(${${"GLOBALS"}["uxdtkwefwwne"]}); ${${"GLOBALS"}["dfxtdqgbgfq"]} = $request->get("src_module"); ${${"GLOBALS"}["kdeehlyv"]} = Workflow2::getWorkflowsForModule(${${"GLOBALS"}["dfxtdqgbgfq"]}); ${${"GLOBALS"}["sfolfu"]} = array(); foreach (${${"GLOBALS"}["lyqxydcxb"]} as ${${"GLOBALS"}["gajgjhlo"]}) { $abvdowpqhmj = "crmid"; $ljtimwygf = "workflow"; ${${"GLOBALS"}["fdbmbwylgb"]} = new \Workflow\Main(${${"GLOBALS"}["gajgjhlo"]}["id"]); if ((${$ljtimwygf}["authmanagement"] == "0" || $objWorkflow->checkAuth("view")) && $objWorkflow->checkExecuteCondition(${$abvdowpqhmj})) { $cerwfumx = "workflows"; ${$cerwfumx}[] = ${${"GLOBALS"}["gajgjhlo"]}; } } ${$pkqxigbjog} = new Workflow2(); $cfnbmosu = "sql"; ${$laqtnyra} = $objWorkflow->getWorkflowsForModule(${$nphxkxzqhk}, 1, "WF2_IMPORTER"); $ksukmmns = "buttons"; if (count(${${"GLOBALS"}["fjfxaoqcd"]}) == 0) { $viewer->assign("hide_importer", true); } else { $viewer->assign("hide_importer", false); } $crjxzwpi = "module"; $viewer->assign("isAdmin", $current_user->is_admin == "on"); $viewer->assign("workflows", ${${"GLOBALS"}["ahtwyzverq"]}); $viewer->assign("source_module", ${${"GLOBALS"}["dfxtdqgbgfq"]}); $jspfvd = "viewer"; ${${"GLOBALS"}["kwlufmsfbzr"]} = new \Workflow\FrontendManager(); ${${"GLOBALS"}["pkuntpkws"]} = $frontendManager->getByPosition(${$iqrmjuou}, "sidebar", ${${"GLOBALS"}["ipaeblf"]}); ${$cfnbmosu} = "SELECT * FROM vtiger_wf_frontend_config WHERE module = ?"; ${$oonrwkg} = $adb->pquery(${$wmcoewcu}, array(${$crjxzwpi})); if ($adb->num_rows(${${"GLOBALS"}["cjryuofsmx"]}) > 0) { $zsffethlyc = "result"; ${"GLOBALS"}["bvsncmu"] = "frontendconfig"; ${${"GLOBALS"}["bvsncmu"]} = $adb->fetchByAssoc(${$zsffethlyc}); $viewer->assign("show_listview", ${${"GLOBALS"}["vwafnyh"]}["hide_listview"] == "0"); } else { $viewer->assign("show_listview", true); } $viewer->assign("buttons", ${$ksukmmns}); \Workflow\Sidebar::assignMessages(-1, ${$jspfvd}); $viewer->view("SidebarListWidget.tpl", "Workflow2"); }
public function process(Vtiger_Request $request) { $ovoodkiokzvf = "cu_model"; $reyhvptvyl = "sql"; ${"GLOBALS"}["tbhhwi"] = "current_user"; ${${"GLOBALS"}["tbhhwi"]} = ${$ovoodkiokzvf} = Users_Record_Model::getCurrentUserModel(); $fmivvfyl = "currentLanguage"; ${"GLOBALS"}["bhgpydrruuti"] = "module"; ${"GLOBALS"}["fvwjvmicvg"] = "viewer"; $bwydxjijyuko = "request"; $dtcicumpi = "row"; $zxuljoxze = "sql"; ${$fmivvfyl} = Vtiger_Language_Handler::getLanguage(); $ahuziprigd = "result"; $jfnnufy = "crmid"; ${"GLOBALS"}["oewskmjg"] = "module"; ${${"GLOBALS"}["bctcwzwr"]} = PearDatabase::getInstance(); $yvsdkkymncwr = "waitingRST"; ${"GLOBALS"}["jzipbnwt"] = "crmid"; $lylgtfgrnf = "waitingRST"; ${${"GLOBALS"}["fvwjvmicvg"]} = $this->getViewer(${$bwydxjijyuko}); ${${"GLOBALS"}["bhgpydrruuti"]} = $request->get("source_module"); ${${"GLOBALS"}["tjndrz"]} = (int) $request->get("record"); if (${${"GLOBALS"}["ouahvk"]} == "Events") { $ilvwhpykw = "module"; ${$ilvwhpykw} = "Calendar"; } $inyaxscqqtrd = "waiting"; ${"GLOBALS"}["dswhemd"] = "module"; ${${"GLOBALS"}["alvjlol"]} = Workflow2::getWorkflowsForModule(${${"GLOBALS"}["ouahvk"]}); $llkjiwsxj = "module"; $fnfyuskkd = "workflow"; ${${"GLOBALS"}["tndywt"]} = array(); foreach (${${"GLOBALS"}["alvjlol"]} as ${$fnfyuskkd}) { $iwogovyptmri = "workflow"; ${"GLOBALS"}["bctvoft"] = "workflow"; ${"GLOBALS"}["ghogwrdq"] = "objWorkflow"; ${${"GLOBALS"}["ghogwrdq"]} = new \Workflow\Main(${${"GLOBALS"}["bctvoft"]}["id"]); ${"GLOBALS"}["wlrgageide"] = "crmid"; if ((${$iwogovyptmri}["authmanagement"] == "0" || $objWorkflow->checkAuth("view")) && $objWorkflow->checkExecuteCondition(${${"GLOBALS"}["wlrgageide"]})) { ${"GLOBALS"}["dqmhkhkjgng"] = "workflow"; ${${"GLOBALS"}["tndywt"]}[] = ${${"GLOBALS"}["dqmhkhkjgng"]}; } } ${$zxuljoxze} = "SELECT vtiger_wf_settings.title, vtiger_wf_settings.authmanagement, vtiger_wfp_blocks.text, vtiger_wf_queue.nextStepTime, vtiger_wf_queue.workflow_id, vtiger_wf_queue.crmid, vtiger_wf_queue.execID, vtiger_wf_queue.block_id\n FROM\n vtiger_wf_queue\n INNER JOIN vtiger_wf_settings ON(vtiger_wf_settings.id = vtiger_wf_queue.workflow_id)\n INNER JOIN vtiger_wfp_blocks ON(vtiger_wfp_blocks.id = vtiger_wf_queue.block_id)\n WHERE vtiger_wf_queue.crmid = " . ${${"GLOBALS"}["jzipbnwt"]} . ""; ${$lylgtfgrnf} = $adb->query(${${"GLOBALS"}["ikjiyio"]}, true); ${$inyaxscqqtrd} = array(); $miablnvp = "sql"; ${"GLOBALS"}["gajholdtee"] = "buttons"; while (${$dtcicumpi} = $adb->fetchByAssoc(${$yvsdkkymncwr})) { ${${"GLOBALS"}["etweqtftj"]}[] = ${${"GLOBALS"}["pdmbilkwen"]}; } ${$reyhvptvyl} = "SELECT * FROM vtiger_wf_frontend_config WHERE module = ?"; ${$ahuziprigd} = $adb->pquery(${$miablnvp}, array(${${"GLOBALS"}["oewskmjg"]})); ${"GLOBALS"}["yeivnisennf"] = "frontendManager"; if ($adb->num_rows(${${"GLOBALS"}["bloomad"]}) > 0) { ${"GLOBALS"}["trovrelooyjo"] = "result"; ${"GLOBALS"}["hlrngfkuv"] = "frontendconfig"; ${${"GLOBALS"}["fkhbco"]} = $adb->fetchByAssoc(${${"GLOBALS"}["trovrelooyjo"]}); $viewer->assign("show_listview", ${${"GLOBALS"}["hlrngfkuv"]}["hide_listview"] == "0"); } else { $viewer->assign("show_listview", true); } \Workflow\Sidebar::assignMessages(${${"GLOBALS"}["tjndrz"]}, ${${"GLOBALS"}["vjuhfvsmt"]}); $viewer->assign("isAdmin", $current_user->is_admin == "on"); $viewer->assign("waiting", ${${"GLOBALS"}["etweqtftj"]}); $viewer->assign("workflows", ${${"GLOBALS"}["tndywt"]}); $viewer->assign("source_module", ${$llkjiwsxj}); $viewer->assign("crmid", ${${"GLOBALS"}["tjndrz"]}); ${${"GLOBALS"}["yeivnisennf"]} = new \Workflow\FrontendManager(); ${${"GLOBALS"}["gajholdtee"]} = $frontendManager->getByPosition(${${"GLOBALS"}["dswhemd"]}, "sidebar", ${$jfnnufy}); $viewer->assign("buttons", ${${"GLOBALS"}["cbmsxefyh"]}); $viewer->view("SidebarWidget.tpl", "Workflow2"); }