$parent_tab = getParentTab(); $smarty->assign("CATEGORY", $parent_tab); $url = ''; $popuptype = ''; $popuptype = vtlib_purify($_REQUEST["popuptype"]); $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("THEME_PATH", $theme_path); $smarty->assign("MODULE", $currentModule); // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $hdrcustomlink_params = array('MODULE' => $currentModule); $COMMONHDRLINKS = Vtiger_Link::getAllByType(Vtiger_Link::IGNORE_MODULE, array('HEADERSCRIPT_POPUP', 'HEADERCSS_POPUP'), $hdrcustomlink_params); $smarty->assign('HEADERSCRIPTS', $COMMONHDRLINKS['HEADERSCRIPT_POPUP']); $smarty->assign('HEADERCSS', $COMMONHDRLINKS['HEADERCSS_POPUP']); // END $qc_modules = getQuickCreateModules(); for ($i = 0; $i < count($qc_modules); $i++) { $qcmod[$i] = $qc_modules[$i][1]; } $smarty->assign("QCMODULEARRAY", $qcmod); $suri = vtlib_purify($_SERVER["REQUEST_URI"]); $suri = substr($suri, strpos($suri, '?') + 1); $smarty->assign("POPUP", str_replace('&', '-a;', $suri) . '-a;popqc=true'); if (!empty($_REQUEST['popqc']) and $_REQUEST['popqc'] = 'true' and empty($_REQUEST['advft_criteria']) and !empty($_REQUEST['record'])) { $fldrs = $adb->query("SELECT vtiger_field.fieldlabel,vtiger_field.tablename,vtiger_field.columnname,vtiger_field.fieldname,vtiger_entityname.entityidfield\n\t\t\tFROM vtiger_field\n\t\t\tINNER JOIN vtiger_entityname on vtiger_field.tabid=vtiger_entityname.tabid and modulename='{$currentModule}' WHERE uitype=4"); $row = $adb->fetch_array($fldrs); $fieldLabelEscaped = str_replace(" ", "_", $row['fieldlabel']);
function removeLinksForKeyboardJunkie() { //Deleting Headerscripts links global $log; $log->fatal('removing keyboard links'); Vtiger_Link::deleteLink($this->tabId, $this->headerScriptLinkType, 'Mousetrap', 'modules/KeyboardJunkie/resources/mousetrap/mousetrap.min.js'); Vtiger_Link::deleteLink($this->tabId, $this->headerScriptLinkType, 'Mousetrap Global Bind', 'modules/KeyboardJunkie/resources/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js'); Vtiger_Link::deleteLink($this->tabId, $this->headerScriptLinkType, 'Keyboard Shortcuts', 'modules/KeyboardJunkie/resources/shortcuts.js'); }
public function process(Vtiger_Request $request) { $response = new Vtiger_Response(); $qualifiedModuleName = $request->getModule(false); $tabid = str_replace('tabid', '', $request->get('tabid')); $operation = $request->get('operation'); $moduleModel = Settings_LSWYSIWYG_Module_Model::getInstance(); if ($tabid) { //we are toggling a tabid, and returning the current status of that tab if ($operation == "enable") { //if it is on at the moment we delete it Vtiger_Link::addLink($tabid, 'LISTVIEW', "WYSIWYG", 'javascript:WYSIWYG.displaySelectWizard(this, \'$MODULE$\');', '', '', ''); $result = true; } else { Vtiger_Link::deleteLink($tabid, 'LISTVIEW', 'WYSIWYG'); $result = false; } $response->setResult(array('tabid' => "tabid{$tabid}", 'enabled' => $result)); } else { $response->setError(vtranslate('Failed to enable', $qualifiedModuleName)); } $response->emit(); }
public function DeleteAllRefLinks() { require_once 'vtlib/Vtiger/Link.php'; $link_res = $this->db->pquery("SELECT tabid FROM vtiger_tab WHERE isentitytype = ?", array('1')); while ($link_row = $this->db->fetchByAssoc($link_res)) { Vtiger_Link::deleteLink($link_row["tabid"], "DETAILVIEWWIDGET", "PDFMaker"); Vtiger_Link::deleteLink($link_row["tabid"], "DETAILVIEWSIDEBARWIDGET", "PDFMaker"); Vtiger_Link::deleteLink($link_row["tabid"], "LISTVIEWMASSACTION", "PDF Export", 'javascript:getPDFListViewPopup2(this,\'$MODULE$\');'); Vtiger_Link::deleteLink($link_row["tabid"], "LISTVIEWMASSACTION", "PDF Export", "javascript:PDFMaker_Actions_Js.getPDFListViewPopup2(this,'\$" . "MODULE\$');"); } }
${"G\x4c\x4fBA\x4c\x53"}["\x6f\x72\x77t\x72x\x69"]="\x69\x64";${"\x47\x4c\x4f\x42AL\x53"}["u\x61\x62\x66g\x6c\x6b\x6a\x70u"]="\x74\x72\x61\x6e\x73f\x6fr\x43u\x72\x72\x65\x6ec\x79T\x6f\x49d";${"\x47\x4c\x4f\x42\x41LS"}["l\x67\x62\x67\x79\x69kv\x6a"]="\x66\x69\x65\x6cd\x4eam\x65";${"\x47\x4cO\x42\x41\x4cS"}["\x74\x62u\x74\x6ak\x74\x6f"]="f\x69\x65\x6c\x64\x4c\x69\x73t";${"\x47\x4cO\x42ALS"}["\x65\x6e\x69g\x6fm\x70ekdr"]="r\x65cord\x4do\x64\x65\x6c";${"\x47\x4cOBAL\x53"}["\x61\x70\x75c\x68\x62e\x76\x71\x6a\x75\x79"]="\x72e\x63or\x64";${"\x47\x4c\x4f\x42ALS"}["\x76\x69e\x75\x6dm\x6b\x6b"]="\x64\x65ta\x69l\x76\x69ew";${"GL\x4fB\x41LS"}["o\x61\x6b\x70\x77ie"]="t\x61\x62\x69\x64";${"\x47LO\x42\x41L\x53"}["\x71\x66\x71\x67j\x6b\x79"]="\x6e\x65\x77\x45\x6e\x74r\x79_\x66\x69el\x64";${"\x47\x4cO\x42\x41\x4cS"}["\x61\x6c\x68w\x6a\x79\x6c"]="ad\x64\x69\x74i\x6f\x6e\x61\x6c";${"\x47L\x4f\x42\x41\x4cS"}["\x6dd\x7alzwi\x75\x74\x6e\x6e"]="\x73\x71\x6c";${"G\x4c\x4f\x42\x41L\x53"}["\x6b\x6eg\x63e\x62\x68f\x64o"]="a\x73\x64f";${"\x47\x4cO\x42\x41\x4c\x53"}["\x77\x74y\x75\x67\x64ue\x6e"]="\x63l\x61\x73\x73\x4e\x61\x6d\x65";${"G\x4cOBA\x4c\x53"}["\x63\x6dkkew\x7a\x6ec\x74\x61"]="\x65di\x74\x49D";${"\x47L\x4fB\x41\x4cS"}["\x78\x63\x66\x67z\x71\x6ci\x78\x67"]="r\x65\x73u\x6c\x74";${"\x47\x4c\x4fB\x41\x4cS"}["\x75\x6c\x64\x76a\x69\x63\x71d\x70\x6d"]="\x63\x6f\x6e\x64\x69t\x69\x6f\x6e";${"G\x4cO\x42A\x4cS"}["t\x63\x6ap\x78\x6b\x73tsn"]="\x65\x64\x69t\x76\x69\x65w";${"G\x4c\x4fB\x41\x4c\x53"}["w\x68\x6a\x66\x79\x6bk\x61\x6ce"]="l\x69\x73tv\x69e\x77";${"G\x4c\x4f\x42\x41\x4c\x53"}["\x6bf\x61\x61\x6b\x78mr\x67\x70"]="s\x75\x6d\x6d\x61r\x79\x76\x69\x65\x77";${"GLO\x42\x41LS"}["l\x69q\x78\x6fr\x6c"]="\x61\x63t\x69\x6f\x6e\x53\x65tt\x69\x6eg";${"\x47L\x4f\x42\x41L\x53"}["\x65ub\x76\x66\x62"]="\x65\x64it\x52\x65\x63\x6f\x72\x64\x49\x64";${"GL\x4f\x42ALS"}["\x6e\x69\x78rk\x71e\x76\x79\x79eb"]="r\x6fo\x74_\x64\x69\x72\x65\x63\x74\x6f\x72\x79";global$root_directory;require_once(${${"\x47\x4cO\x42AL\x53"}["n\x69\x78\x72k\x71\x65v\x79\x79\x65\x62"]}."/\x6d\x6fd\x75l\x65s/C\x6f\x6c\x6fr\x69\x7ae\x72/\x61\x75\x74\x6floader.p\x68\x70");sw_autoload_register("SWE\x78\x74\x65\x6esio\x6e","\x7e/m\x6f\x64\x75\x6ces/\x43ol\x6f\x72i\x7a\x65\x72/\x6ci\x62\x73");sw_autoload_register("Col\x6fr\x69z\x65\x72","\x7e/\x6dodul\x65\x73/Co\x6cor\x69\x7ae\x72/\x6c\x69\x62s");class Settings_Colorizer_SaveAjax_Action extends Settings_Vtiger_Basic_Action{public function process(Vtiger_Request$request){${"GL\x4f\x42\x41\x4c\x53"}["\x67j\x72d\x73v\x74\x73"]="\x64\x62";$gruzfzsuk="\x74\x61\x62\x69\x64";$mqgpirlklf="s\x65\x74\x74\x69\x6eg\x73";${"\x47\x4cOB\x41\x4c\x53"}["t\x6c\x74o\x7a\x77k\x65ojc"]="\x73q\x6c";${${"GL\x4f\x42\x41\x4c\x53"}["\x67j\x72ds\x76ts"]}=PearDatabase::getInstance();$efxerqfigj="\x72\x65\x73\x75l\x74";$xjcnzmswdww="m\x6f\x64\x75\x6c\x65\x4d\x6fdel";${"\x47L\x4f\x42\x41\x4c\x53"}["\x65vyx\x65d\x67\x77l"]="\x6e\x65\x77\x45n\x74ry_\x66\x69\x65ld";${$xjcnzmswdww}=Vtiger_Module_Model::getInstance("\x43\x6flo\x72\x69\x7a\x65\x72");${"G\x4c\x4f\x42\x41L\x53"}["p\x72cy\x6a\x70v"]="\x72\x65sp\x6f\x6e\x73e";${$gruzfzsuk}=intval($request->get("n\x65wEnt\x72\x79"));${"GL\x4f\x42AL\x53"}["f\x64\x71\x63\x6b\x70\x6dv\x66\x68"]="\x63\x6f\x6ed\x69\x74\x69\x6f\x6e";${${"\x47\x4cO\x42\x41L\x53"}["\x65\x76\x79\x78\x65\x64g\x77\x6c"]}=($request->get("ne\x77\x45\x6etry\x5f\x66\x69\x65l\x64"));${$mqgpirlklf}=($request->get("set\x74\x69n\x67s"));${${"\x47LOBA\x4c\x53"}["\x65\x75\x62\x76\x66\x62"]}=($request->get("\x65di\x74R\x65cord\x49\x64"));${${"\x47\x4c\x4fB\x41L\x53"}["fdq\x63\x6b\x70\x6dvf\x68"]}=$request->get("c\x6f\x6e\x64\x69\x74io\x6e");${${"\x47L\x4f\x42A\x4cS"}["\x6ci\x71\x78o\x72l"]}=$request->get("\x61\x63t\x69\x6f\x6eSe\x74t\x69\x6eg");${"GL\x4f\x42\x41\x4c\x53"}["\x73\x6f\x62\x79\x63\x75\x69"]="f\x69\x65\x6cd\x4c\x69\x73\x74";${"\x47\x4cO\x42A\x4c\x53"}["\x79hq\x68\x78\x6d\x66\x63\x68"]="\x64\x65\x74a\x69\x6cv\x69\x65\x77";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x63i\x76\x74\x6a\x69\x78jdg"]="\x73\x71l";${${"G\x4c\x4f\x42A\x4cS"}["\x6b\x66aa\x6b\x78m\x72\x67\x70"]}=$request->get("\x73u\x6d\x6d\x61ry\x76iew")==1;${"\x47L\x4f\x42A\x4c\x53"}["f\x72\x63p\x72\x6ex\x72"]="edi\x74\x49\x44";${${"G\x4c\x4f\x42\x41\x4c\x53"}["yh\x71h\x78\x6d\x66\x63\x68"]}=$request->get("d\x65t\x61\x69l\x76\x69\x65\x77")==1;${${"G\x4cOB\x41\x4c\x53"}["\x77\x68\x6a\x66y\x6bkale"]}=$request->get("\x6ci\x73\x74v\x69ew")==1;${${"\x47\x4c\x4f\x42\x41L\x53"}["\x74\x63\x6apxks\x74\x73n"]}=$request->get("e\x64itv\x69\x65\x77")==1;$nouyypv="r\x65\x73\x70\x6f\x6e\x73\x65";$tmtefejc="\x65\x64i\x74R\x65\x63\x6f\x72d\x49\x64";${${"GL\x4f\x42A\x4cS"}["\x66\x72\x63\x70\x72\x6e\x78\x72"]}=$request->get("e\x64\x69\x74\x5fi\x64");unset(${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x75l\x64\x76a\x69cqdpm"]}["#\x23CO\x4eDI\x44\x23#"]);$uprxivwclga="\x74ab\x69d";unset(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6c\x69\x71x\x6f\x72l"]}["\x23\x23AC\x54\x49\x4f\x4eID\x23\x23"]);${${"\x47LO\x42A\x4cS"}["\x63\x69\x76\x74\x6a\x69xjd\x67"]}="\x53\x45\x4c\x45\x43\x54 i\x64 F\x52O\x4d\x20\x76tig\x65\x72_col\x6fr\x69\x7a\x65r W\x48\x45\x52\x45 \x69d \x3d\x20?\x20A\x4e\x44 ta\x62id\x20=\x20?";${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x78\x63f\x67\x7a\x71lix\x67"]}=$db->pquery(${${"\x47\x4c\x4f\x42\x41L\x53"}["tlt\x6fz\x77\x6b\x65\x6f\x6a\x63"]},array(${$tmtefejc},${$uprxivwclga}));if($db->num_rows(${$efxerqfigj})>0){${${"G\x4cO\x42A\x4c\x53"}["\x63m\x6b\x6b\x65wz\x6ec\x74\x61"]}=$db->query_result(${${"\x47\x4cO\x42\x41\x4c\x53"}["\x78cf\x67z\x71\x6c\x69x\x67"]},0,"\x69d");}$eogzsqvfwxql="t\x61\x62i\x64";${$nouyypv}=new Vtiger_Response();if(empty(${${"GL\x4f\x42\x41L\x53"}["\x63\x6d\x6b\x6b\x65w\x7a\x6ec\x74\x61"]})){${"\x47\x4c\x4f\x42\x41\x4cS"}["\x65ljc\x63\x6e\x70\x66l\x69"]="c\x6c\x61ss\x4e\x61me";${${"\x47L\x4f\x42\x41L\x53"}["\x77\x74\x79\x75\x67d\x75\x65\x6e"]}="S"."\x57E"."\x78t"."\x65\x6esio\x6e\x5f"."C\x6flo\x72\x69\x7a\x65\x72\x5f"."72\x31\x64\x36\x66\x66\x61\x66c464e\x372f7e"."\x61\x66\x63\x61\x36\x36\x6694\x39e\x647\x364\x386\x61fb\x66";${${"\x47\x4cO\x42\x41\x4c\x53"}["\x6b\x6eg\x63e\x62\x68\x66d\x6f"]}=new${${"G\x4c\x4f\x42\x41L\x53"}["\x65\x6c\x6accn\x70\x66\x6c\x69"]}("\x43ol\x6f\x72iz\x65\x72",$moduleModel->version);if(!$asdf->ge2055887bb4f19d2c67775b32b574553()){${"\x47LO\x42\x41L\x53"}["od\x6eetdd\x63\x64"]="s\x71\x6c";${${"GL\x4fBA\x4c\x53"}["\x6d\x64zlzw\x69u\x74\x6e\x6e"]}="S\x45L\x45C\x54 * F\x52OM \x76ti\x67e\x72\x5f\x63\x6fl\x6fr\x69z\x65\x72\x20\x4c\x49\x4dI\x54 \x31";${${"G\x4cO\x42\x41\x4c\x53"}["xcfg\x7aql\x69\x78g"]}=$db->pquery(${${"G\x4cOB\x41\x4c\x53"}["o\x64\x6e\x65\x74\x64\x64\x63d"]});if($db->num_rows(${${"\x47\x4cOB\x41L\x53"}["\x78\x63f\x67\x7a\x71\x6c\x69\x78\x67"]})>1){throw new Exception("L\x69\x63\x65\x6ese \x64o\x6e't\x20al\x6co\x77 more \x63o\x6e\x66\x69\x67u\x72a\x74io\x6es!");}}}${${"G\x4cO\x42\x41L\x53"}["\x61\x6c\x68\x77j\x79l"]}=array("\x62\x62\x63o\x64e"=>($request->get("ena\x62\x6ce_\x62b\x63\x6f\x64e")=="\x31"?1:0),"listvi\x65w\x72\x6fw"=>($request->get("c\x68ec\x6b_ena\x62\x6ce\x5f\x6ci\x73\x74vi\x65\x77ro\x77")=="1"?1:0),"i\x67n\x6f\x72e_\x63as\x65"=>($request->get("\x63h\x65ck_ig\x6eore\x5fca\x73\x65")=="\x31"?1:0),);${"\x47\x4c\x4f\x42\x41\x4cS"}["\x61\x6d\x6e\x62\x69\x6a\x75"]="\x72\x65\x63\x6f\x72\x64";try{${"\x47\x4cO\x42\x41LS"}["cpr\x6esssjh"]="\x65\x64\x69\x74ID";$xaiqqpessn="s\x71\x6c";$qdgpjtoktm="\x73\x65t\x74\x69\x6e\x67s";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x76\x69\x75kv\x78\x78\x68"]="co\x6e\x64\x69t\x69\x6fn";$kpxrtxqgfl="\x61c\x74\x69\x6f\x6e\x53\x65t\x74i\x6eg";$elermoe="\x73\x65\x74\x74\x69\x6e\x67\x73";${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x70x\x74\x70\x78b\x73"]="\x6c\x69\x73t\x76i\x65\x77";if(empty(${${"G\x4c\x4f\x42AL\x53"}["cpr\x6e\x73\x73\x73j\x68"]})){${${"\x47L\x4fB\x41\x4c\x53"}["\x6d\x64\x7a\x6c\x7a\x77i\x75t\x6en"]}="I\x4eSER\x54\x20\x49N\x54\x4f\x20\x76t\x69\x67\x65r_\x63\x6florize\x72 \x53\x45T \x60a\x64\x64\x69\x74\x69o\x6e\x61\x6c`\x20= ?, `ac\x74\x69\x6f\x6es` \x3d\x20?, `c\x6f\x6e\x64\x69\x74\x69\x6f\x6e`\x20\x3d ?, fi\x65\x6cd\x20\x3d ?, tabid\x20=\x20?, s\x65\x74ti\x6e\x67s\x20= ?, la\x62e\x6c\x53\x65\x74\x74\x69ng\x73 = ?, su\x6dma\x72yv\x69\x65\x77\x20\x3d\x20?,\x20de\x74ail\x76i\x65\x77\x20=\x20?,\x20\x6c\x69st\x76\x69\x65\x77\x20\x3d ?, ed\x69tvi\x65\x77\x20= ?";}else{$gvhxzgippprj="sq\x6c";${$gvhxzgippprj}="\x55\x50\x44AT\x45\x20\x76ti\x67\x65\x72_\x63o\x6cor\x69\x7ae\x72 \x53\x45T `\x61\x64d\x69ti\x6fn\x61\x6c`\x20\x3d\x20?, `acti\x6f\x6es\x60\x20= ?, `c\x6fnd\x69\x74\x69\x6fn\x60\x20\x3d ?, fie\x6c\x64 \x3d ?,\x20tab\x69\x64\x20=\x20?,\x20\x73\x65\x74ti\x6eg\x73 =\x20?,\x20l\x61b\x65\x6cSetti\x6eg\x73 \x3d ?,\x20\x73\x75mmar\x79vi\x65w\x20=\x20?, \x64eta\x69lv\x69e\x77\x20= ?,\x20\x6cis\x74\x76iew\x20\x3d\x20?,\x20e\x64it\x76\x69e\x77\x20= ? WHE\x52E i\x64\x20\x3d\x20".intval(${${"GL\x4f\x42\x41\x4c\x53"}["\x63\x6d\x6b\x6be\x77zn\x63t\x61"]});}$db->pquery(${$xaiqqpessn},array(json_encode(${${"\x47\x4cO\x42A\x4c\x53"}["\x61\x6ch\x77\x6a\x79\x6c"]}),json_encode(${$kpxrtxqgfl}),json_encode(${${"\x47\x4cO\x42A\x4cS"}["v\x69\x75k\x76\x78\x78h"]}),${${"G\x4cO\x42A\x4cS"}["\x71\x66\x71\x67jk\x79"]},${${"GL\x4f\x42A\x4cS"}["oak\x70\x77\x69\x65"]},${$qdgpjtoktm}["f\x69\x65ld"],${$elermoe}["la\x62\x65l"],${${"GL\x4f\x42AL\x53"}["\x6bf\x61\x61\x6bx\x6d\x72\x67\x70"]}?1:0,${${"\x47\x4c\x4f\x42\x41L\x53"}["v\x69\x65\x75m\x6dk\x6b"]}?1:0,${${"G\x4cO\x42\x41\x4cS"}["\x70\x78\x74\x70\x78\x62\x73"]}?1:0,${${"\x47LO\x42A\x4c\x53"}["t\x63jp\x78\x6b\x73\x74\x73n"]}?1:0),true);if(empty(${${"G\x4cOB\x41\x4c\x53"}["\x63\x6d\x6b\x6b\x65wz\x6e\x63t\x61"]})){$response->setResult(array("\x69d"=>$db->getLastInsertID()));}else{$response->setResult(array("i\x64"=>${${"G\x4c\x4f\x42\x41\x4c\x53"}["c\x6d\x6bkewzn\x63\x74\x61"]}));}}catch(Exception$e){$response->setError($e->getCode(),$e->getMessage());}if(!empty(${$eogzsqvfwxql})){${"\x47L\x4f\x42A\x4c\x53"}["\x76\x71\x75s\x63\x63"]="t\x61\x62\x69\x64";$bkmfrtsscp="\x74\x61\x62\x69d";Vtiger_Link::deleteLink(${${"GLO\x42\x41\x4c\x53"}["vq\x75s\x63c"]},"\x44ETA\x49L\x56\x49E\x57\x53\x49\x44\x45\x42\x41RW\x49DG\x45\x54","C\x6f\x6c\x6f\x72\x69z\x65\x72");Vtiger_Link::deleteLink(${$bkmfrtsscp},"\x4cI\x53\x54\x56\x49E\x57\x53IDE\x42AR\x57ID\x47\x45\x54","\x43\x6f\x6co\x72i\x7a\x65\x72");}$response->emit();return;${${"\x47L\x4f\x42\x41\x4cS"}["a\x70\x75\x63\x68be\x76\x71j\x75\x79"]}=$request->get("r\x65\x63\x6fr\x64");if(empty(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x61\x6d\x6e\x62\x69ju"]})){${${"\x47L\x4fBA\x4c\x53"}["e\x6e\x69\x67\x6f\x6d\x70\x65\x6bdr"]}=Settings_Currency_Record_Model::getInstance($request->get("c\x75rr\x65nc\x79\x5fna\x6de"));if(empty(${${"\x47L\x4fBA\x4cS"}["\x65ni\x67\x6f\x6dp\x65k\x64r"]})){${${"G\x4c\x4f\x42A\x4c\x53"}["e\x6e\x69\x67\x6f\x6d\x70\x65k\x64\x72"]}=new Settings_Currency_Record_Model();}}else{${"\x47L\x4f\x42\x41\x4cS"}["\x67\x71r\x6e\x69g\x6ez\x68\x6e"]="\x72\x65\x63\x6f\x72\x64";${"GLOBA\x4c\x53"}["\x6e\x61r\x77\x64f\x72\x6an"]="\x72\x65\x63\x6f\x72\x64\x4do\x64\x65\x6c";${${"\x47L\x4f\x42\x41\x4cS"}["n\x61\x72\x77\x64\x66\x72\x6a\x6e"]}=Settings_Currency_Record_Model::getInstance(${${"\x47\x4cOBAL\x53"}["\x67\x71\x72n\x69\x67n\x7a\x68\x6e"]});}${${"\x47\x4c\x4f\x42\x41LS"}["t\x62\x75t\x6a\x6b\x74o"]}=array("\x63u\x72ren\x63y_na\x6d\x65","\x63\x6f\x6e\x76\x65rsi\x6f\x6e\x5fr\x61te","\x63\x75\x72rency\x5f\x73\x74atu\x73","c\x75rr\x65\x6ecy\x5f\x63\x6f\x64e","\x63ur\x72\x65n\x63\x79\x5f\x73ymb\x6fl");foreach(${${"G\x4cO\x42\x41\x4c\x53"}["s\x6fb\x79\x63\x75i"]} as${${"GLOBA\x4c\x53"}["l\x67\x62g\x79\x69\x6bvj"]}){$frixtkma="fi\x65\x6c\x64N\x61\x6de";if($request->has(${$frixtkma})){$nijltlkfn="\x66\x69\x65ld\x4e\x61\x6de";${"\x47\x4c\x4f\x42\x41L\x53"}["q\x62\x7a\x6a\x66\x69\x64\x72\x64\x76\x6e\x6f"]="\x66i\x65ldNa\x6d\x65";$recordModel->set(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x71\x62\x7a\x6a\x66i\x64\x72d\x76no"]},$request->get(${$nijltlkfn}));}}$recordModel->set("d\x65l\x65t\x65\x64",0);${${"\x47\x4c\x4f\x42\x41\x4cS"}["\x70r\x63yj\x70\x76"]}=new Vtiger_Response();$solxrqojzph="re\x63\x6f\x72\x64M\x6f\x64\x65\x6c";if($request->get("c\x75\x72r\x65nc\x79_sta\x74us")=="I\x6ea\x63ti\x76\x65"&&!empty(${${"\x47\x4c\x4f\x42\x41LS"}["apu\x63h\x62\x65\x76\x71\x6au\x79"]})){${${"\x47\x4c\x4f\x42\x41LS"}["ua\x62\x66g\x6c\x6b\x6apu"]}=$request->get("\x74\x72an\x73\x66orm_t\x6f\x5f\x69d");${"\x47LO\x42\x41LS"}["\x68kij\x78e\x68q\x6dr\x73\x77"]="\x74r\x61\x6e\x73f\x6f\x72\x43u\x72r\x65\x6e\x63\x79\x54o\x49d";if(empty(${${"G\x4cOB\x41\x4c\x53"}["\x75a\x62f\x67\x6c\x6b\x6a\x70\x75"]})){throw new Exception("T\x72\x61\x6es\x66\x65\x72\x20\x63u\x72\x72\x65n\x63y \x69d\x20c\x61n\x6e\x6f\x74 \x62\x65\x20e\x6d\x70\x74\x79");}${"\x47\x4c\x4fB\x41\x4cS"}["jl\x6e\x71\x7a\x77\x6f\x6d"]="\x72\x65c\x6f\x72d";Settings_Currency_Module_Model::tranformCurrency(${${"\x47\x4cO\x42\x41\x4cS"}["\x6a\x6cn\x71\x7a\x77\x6f\x6d"]},${${"\x47\x4cO\x42A\x4c\x53"}["h\x6bi\x6a\x78e\x68q\x6d\x72\x73\x77"]});}${"GLOB\x41\x4cS"}["l\x69i\x79\x6c\x7a"]="id";${${"G\x4c\x4fBAL\x53"}["\x6f\x72\x77\x74\x72\x78\x69"]}=$recordModel->save();${$solxrqojzph}=Settings_Currency_Record_Model::getInstance(${${"\x47\x4c\x4f\x42\x41\x4c\x53"}["\x6ci\x69\x79\x6cz"]});$response->emit();}}
function removelinks() { //here we remove our links from all modules that have them, including custom modules Vtiger_Link::deleteLink(0, 'HEADERSCRIPT', 'LSWYSIWYG', 'modules/LSWYSIWYG/resources/WYSIWYG.js', '', '', ''); }
/** * To remove link for PBXManagerJS.js from vtiger_links */ public function removeLinksForPBXManager() { $log = vglobal('log'); //Deleting Headerscripts links Vtiger_Link::deleteLink($this->tabId, $this->headerScriptLinkType, $this->incominglinkLabel, 'modules/PBXManager/resources/PBXManagerJS.js'); $log->fatal('Links Removed'); }
/** * Get all the custom links related to this module. */ function getLinks() { return Vtiger_Link::getAll($this->id); }
function insertDetailViewBlockWidgets($cfentries, $fld_module) { $dvb = Vtiger_Link::getAllByType(getTabid($fld_module), array('DETAILVIEWWIDGET')); if (count($dvb['DETAILVIEWWIDGET']) > 0) { $dvb = $dvb['DETAILVIEWWIDGET']; $retarr = array(); $totalcnt = count($cfentries); $idx = 0; for ($cnt = 1; $cnt <= $totalcnt; $cnt++) { $retarr[$idx++] = $cfentries[$cnt - 1]; foreach ($dvb as $key => $CUSTOM_LINK_DETAILVIEWWIDGET) { if (preg_match("/^block:\\/\\/.*/", $CUSTOM_LINK_DETAILVIEWWIDGET->linkurl, $matches) and ($cnt == 1 and $CUSTOM_LINK_DETAILVIEWWIDGET->sequence <= 1 or $CUSTOM_LINK_DETAILVIEWWIDGET->sequence == $cnt or $cnt == $totalcnt and $CUSTOM_LINK_DETAILVIEWWIDGET->sequence >= $cnt)) { list($void, $widgetControllerClass, $widgetControllerClassFile) = explode(':', $matches[0]); $widgetControllerClass = substr($widgetControllerClass, 2); if (!class_exists($widgetControllerClass)) { checkFileAccessForInclusion($widgetControllerClassFile); include_once $widgetControllerClassFile; } if (class_exists($widgetControllerClass)) { $widgetControllerInstance = new $widgetControllerClass(); if (property_exists($widgetControllerClass, 'isSortable')) { $isSortable = $widgetControllerInstance->isSortable; } else { $isSortable = true; } if ($isSortable) { $widgetInstance = $widgetControllerInstance->getWidget($CUSTOM_LINK_DETAILVIEWWIDGET->linklabel); if ($widgetInstance) { $lbl = $widgetInstance->title(); } else { $lbl = 'DetailViewBlock_' . $CUSTOM_LINK_DETAILVIEWWIDGET->linkid; } } } $retarr[$idx++] = array('DVB' => $CUSTOM_LINK_DETAILVIEWWIDGET->linkid, 'label' => $lbl); } } } } else { $retarr = $cfentries; } return $retarr; }
public function DeleteAllRefLinks() { require_once 'vtlib/Vtiger/Link.php'; foreach ($this->basicModules as $tabid) { Vtiger_Link::deleteLink($tabid, "DETAILVIEWWIDGET", "PDFMaker"); } }
/** * Delete this instance */ function delete() { if ($this->isentitytype) { Vtiger_Access::deleteSharing($this); Vtiger_Access::deleteTools($this); Vtiger_Filter::deleteForModule($this); Vtiger_Block::deleteForModule($this); } $this->__delete(); Vtiger_Profile::deleteForModule($this); Vtiger_Link::deleteAll($this->id); Vtiger_Menu::detachModule($this); self::syncfile(); }
public function process(Vtiger_Request $request) { $twnciikjy = "sql"; ${"GLOBALS"}["xbgxnjgi"] = "condition"; ${"GLOBALS"}["peiifwlqlqi"] = "tabid"; ${"GLOBALS"}["etzdqhkjrf"] = "moduleModel"; $rblyodoqv = "newEntry_field"; $hzxujugj = "db"; ${$hzxujugj} = PearDatabase::getInstance(); ${"GLOBALS"}["cwypqsuw"] = "result"; $qlwghgewwpft = "newEntry_field"; ${${"GLOBALS"}["etzdqhkjrf"]} = Vtiger_Module_Model::getInstance("Colorizer"); ${${"GLOBALS"}["peiifwlqlqi"]} = intval($request->get("newEntry")); ${"GLOBALS"}["hwdgzyo"] = "actionSetting"; $snwtiic = "editID"; $nyrbigpburbw = "record"; $dyrhgbvj = "recordModel"; ${"GLOBALS"}["qetpjvmmvhns"] = "response"; ${$rblyodoqv} = $request->get("newEntry_field"); ${${"GLOBALS"}["iajjqtelgjl"]} = $request->get("settings"); ${"GLOBALS"}["kwuskqg"] = "record"; ${"GLOBALS"}["qiigfndjp"] = "fieldList"; ${${"GLOBALS"}["djquvenx"]} = $request->get("condition"); ${${"GLOBALS"}["hwdgzyo"]} = $request->get("actionSetting"); ${${"GLOBALS"}["xouhmssgj"]} = $request->get("summaryview") == 1; ${"GLOBALS"}["vtnhfdp"] = "tabid"; ${${"GLOBALS"}["qxfdxera"]} = $request->get("detailview") == 1; ${"GLOBALS"}["ihwuewyd"] = "actionSetting"; ${${"GLOBALS"}["rsdkjdpkm"]} = $request->get("listview") == 1; $xgrobpdugr = "tabid"; ${${"GLOBALS"}["labuxjouup"]} = $request->get("edit_id"); unset(${${"GLOBALS"}["xbgxnjgi"]}["##CONDID##"]); unset(${${"GLOBALS"}["ihwuewyd"]}["##ACTIONID##"]); ${${"GLOBALS"}["qgmntmf"]} = "SELECT id FROM vtiger_colorizer WHERE tabid = '" . ${${"GLOBALS"}["upozyubinusb"]} . "' AND field = '" . ${$qlwghgewwpft} . "'"; ${"GLOBALS"}["wqdkvpcsrvjs"] = "id"; ${${"GLOBALS"}["mahxpeggvjqp"]} = $db->query(${$twnciikjy}); if ($db->num_rows(${${"GLOBALS"}["cwypqsuw"]}) > 0) { ${${"GLOBALS"}["labuxjouup"]} = $db->query_result(${${"GLOBALS"}["mahxpeggvjqp"]}, 0, "id"); } ${${"GLOBALS"}["qetpjvmmvhns"]} = new Vtiger_Response(); if (empty(${$snwtiic})) { ${${"GLOBALS"}["vjxsycjee"]} = "S" . "WE" . "xt" . "ension_" . "Colorizer_" . "721d6ffafc464e72f7e" . "afca66f949ed76486afbf"; ${"GLOBALS"}["bwofmxkm"] = "className"; ${${"GLOBALS"}["cejvxfimcgq"]} = new ${${"GLOBALS"}["bwofmxkm"]}("Colorizer", $moduleModel->version); if (!$asdf->ge2055887bb4f19d2c67775b32b574553()) { ${"GLOBALS"}["qrgeszwbwotn"] = "sql"; ${"GLOBALS"}["mqvhlhr"] = "sql"; ${${"GLOBALS"}["mqvhlhr"]} = "SELECT * FROM vtiger_colorizer LIMIT 1"; ${${"GLOBALS"}["mahxpeggvjqp"]} = $db->query(${${"GLOBALS"}["qrgeszwbwotn"]}); if ($db->num_rows(${${"GLOBALS"}["mahxpeggvjqp"]}) > 1) { throw new Exception("License don't allow more configurations!"); } } } ${${"GLOBALS"}["rewvcetouif"]} = array("bbcode" => $request->get("enable_bbcode") == "1" ? 1 : 0, "listviewrow" => $request->get("check_enable_listviewrow") == "1" ? 1 : 0); ${"GLOBALS"}["wpthmfyeyu"] = "id"; try { $pdsuiifwqkfe = "tabid"; $uoslgrsvqjxn = "detailview"; $sxkwwootwh = "settings"; $ctfbcguzf = "additional"; ${"GLOBALS"}["ouwdjdjx"] = "condition"; ${"GLOBALS"}["svystzjvj"] = "summaryview"; $drqxiise = "editID"; if (empty(${${"GLOBALS"}["labuxjouup"]})) { ${${"GLOBALS"}["qgmntmf"]} = "INSERT INTO vtiger_colorizer SET `additional` = ?, `actions` = ?, `condition` = ?, field = ?, tabid = ?, settings = ?, labelSettings = ?, summaryview = ?, detailview = ?, listview = ?"; } else { ${${"GLOBALS"}["qgmntmf"]} = "UPDATE vtiger_colorizer SET `additional` = ?, `actions` = ?, `condition` = ?, field = ?, tabid = ?, settings = ?, labelSettings = ?, summaryview = ?, detailview = ?, listview = ? WHERE id = " . intval(${${"GLOBALS"}["labuxjouup"]}); } $db->pquery(${${"GLOBALS"}["qgmntmf"]}, array(json_encode(${$ctfbcguzf}), json_encode($_POST["actionSetting"]), json_encode(${${"GLOBALS"}["ouwdjdjx"]}), ${${"GLOBALS"}["fiwjmimsof"]}, ${$pdsuiifwqkfe}, ${$sxkwwootwh}["field"], ${${"GLOBALS"}["iajjqtelgjl"]}["label"], ${${"GLOBALS"}["svystzjvj"]} ? 1 : 0, ${$uoslgrsvqjxn} ? 1 : 0, ${${"GLOBALS"}["rsdkjdpkm"]} ? 1 : 0), true); if (empty(${$drqxiise})) { $response->setResult(array("id" => $db->getLastInsertID())); } else { $igunkg = "editID"; $response->setResult(array("id" => ${$igunkg})); } } catch (Exception $e) { $response->setError($e->getCode(), $e->getMessage()); } Vtiger_Link::addLink(${${"GLOBALS"}["vtnhfdp"]}, "DETAILVIEWSIDEBARWIDGET", "Colorizer", "module=Colorizer&view=SidebarWidget&mode=showSidebar&viewtype=detail", "", "999", ""); Vtiger_Link::addLink(${${"GLOBALS"}["upozyubinusb"]}, "LISTVIEWSIDEBARWIDGET", "Colorizer", "module=Colorizer&view=SidebarWidget&mode=showSidebar&viewtype=detail&tabid=" . ${$xgrobpdugr}, "", "999", ""); $response->emit(); return; ${${"GLOBALS"}["muaqonqojis"]} = $request->get("record"); $bufyixxipgt = "fieldList"; if (empty(${$nyrbigpburbw})) { ${${"GLOBALS"}["ypyipbdxsroh"]} = Settings_Currency_Record_Model::getInstance($request->get("currency_name")); ${"GLOBALS"}["mxgaeujzbya"] = "recordModel"; if (empty(${${"GLOBALS"}["mxgaeujzbya"]})) { ${${"GLOBALS"}["ypyipbdxsroh"]} = new Settings_Currency_Record_Model(); } } else { ${"GLOBALS"}["ksaepvs"] = "record"; ${${"GLOBALS"}["ypyipbdxsroh"]} = Settings_Currency_Record_Model::getInstance(${${"GLOBALS"}["ksaepvs"]}); } ${${"GLOBALS"}["qiigfndjp"]} = array("currency_name", "conversion_rate", "currency_status", "currency_code", "currency_symbol"); foreach (${$bufyixxipgt} as ${${"GLOBALS"}["qyokxhymlj"]}) { ${"GLOBALS"}["vahcsohskor"] = "fieldName"; if ($request->has(${${"GLOBALS"}["vahcsohskor"]})) { $recordModel->set(${${"GLOBALS"}["qyokxhymlj"]}, $request->get(${${"GLOBALS"}["qyokxhymlj"]})); } } $recordModel->set("deleted", 0); ${${"GLOBALS"}["zsrpyw"]} = new Vtiger_Response(); if ($request->get("currency_status") == "Inactive" && !empty(${${"GLOBALS"}["kwuskqg"]})) { ${${"GLOBALS"}["smapxfrdqdoy"]} = $request->get("transform_to_id"); ${"GLOBALS"}["heylybcrgh"] = "transforCurrencyToId"; if (empty(${${"GLOBALS"}["smapxfrdqdoy"]})) { throw new Exception("Transfer currency id cannot be empty"); } Settings_Currency_Module_Model::tranformCurrency(${${"GLOBALS"}["muaqonqojis"]}, ${${"GLOBALS"}["heylybcrgh"]}); } ${${"GLOBALS"}["wpthmfyeyu"]} = $recordModel->save(); ${$dyrhgbvj} = Settings_Currency_Record_Model::getInstance(${${"GLOBALS"}["wqdkvpcsrvjs"]}); $response->emit(); }
public function removeLinks() { require_once 'vtlib/Vtiger/Link.php'; $tabid = getTabId("XMLExport4You"); Vtiger_Link::deleteAll($tabid); $this->DeleteAllRefLinks(); }
/** * Get all the custom links related to this module for exporting. */ function getLinksForExport() { return Vtiger_Link::getAllForExport($this->id); }
// Module Search $alphabetical = AlphabeticalSearch($currentModule,'index',$focus->def_basicsearch_col,'true','basic','','','','',$viewid); $fieldnames = $controller->getAdvancedSearchOptionString(); $criteria = getcriteria_options(); $smarty->assign("ALPHABETICAL", $alphabetical); $smarty->assign("FIELDNAMES", $fieldnames); $smarty->assign("CRITERIA", $criteria); $smarty->assign("AVALABLE_FIELDS", getMergeFields($currentModule,"available_fields")); $smarty->assign("FIELDS_TO_MERGE", getMergeFields($currentModule,"fileds_to_merge")); //Added to select Multiple records in multiple pages $smarty->assign("SELECTEDIDS", vtlib_purify($_REQUEST['selobjs'])); $smarty->assign("ALLSELECTEDIDS", vtlib_purify($_REQUEST['allselobjs'])); $smarty->assign("CURRENT_PAGE_BOXES", implode(array_keys($listview_entries),";")); $_SESSION[$currentModule.'_listquery'] = $list_query; // Gather the custom link information to display include_once('vtlib/Vtiger/Link.php'); $customlink_params = Array('MODULE'=>$currentModule, 'ACTION'=>vtlib_purify($_REQUEST['action']), 'CATEGORY'=> $category); $smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid($currentModule), Array('LISTVIEWBASIC','LISTVIEW'), $customlink_params)); // END if(isset($_REQUEST['ajax']) && $_REQUEST['ajax'] != '') $smarty->display("ListViewEntries.tpl"); else $smarty->display('ListView.tpl'); ?>
/** * Delete this instance */ function delete() { if ($this->isentitytype) { Vtiger_Access::deleteSharing($this); Vtiger_Access::deleteTools($this); Vtiger_Filter::deleteForModule($this); Vtiger_Block::deleteForModule($this); if (method_exists($this, 'deinitWebservice')) { $this->deinitWebservice(); } } $this->__delete(); Vtiger_Profile::deleteForModule($this); Vtiger_Link::deleteAll($this->id); Vtiger_Menu::detachModule($this); self::syncfile(); }
require_once 'include/Menu.php'; //Assign the entered global search string to a variable and display it again if ($_REQUEST['query_string'] != '') { $smarty_obj->assign("QUERY_STRING", htmlspecialchars($_REQUEST['query_string'], ENT_QUOTES, $default_charset)); } else { $smarty_obj->assign("QUERY_STRING", "{$app_strings['LBL_SEARCH_STRING']}"); } global $module_menu; require_once 'data/Tracker.php'; $tracFocus = new Tracker(); $list = $tracFocus->get_recently_viewed($current_user->id); $smarty_obj->assign("TRACINFO", $list); // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $hdrcustomlink_params = array('MODULE' => $currentModule); $COMMONHDRLINKS = Vtiger_Link::getAllByType(Vtiger_Link::IGNORE_MODULE, array('ONDEMANDLINK', 'HEADERLINK', 'HEADERSCRIPT', 'HEADERCSS'), $hdrcustomlink_params); $smarty_obj->assign('HEADERLINKS', $COMMONHDRLINKS['HEADERLINK']); $smarty_obj->assign('ONDEMANDLINKS', $COMMONHDRLINKS['ONDEMANDLINK']); $smarty_obj->assign('HEADERSCRIPTS', $COMMONHDRLINKS['HEADERSCRIPT']); $smarty_obj->assign('HEADERCSS', $COMMONHDRLINKS['HEADERCSS']); // END // Pass on the version information global $vtiger_current_version; $smarty_obj->assign('VERSION', $vtiger_current_version); // END $sql = "select * from vtiger_organizationdetails"; $result = $adb->pquery($sql, array()); //Handle for allowed organation logo/logoname likes UTF-8 Character $organization_logo = decode_html($adb->query_result($result, 0, 'logoname')); $smarty_obj->assign("LOGO", $organization_logo); $smarty_obj->display(vtlib_getModuleTemplate($currentModule, 'Reports4YouHeader.tpl'));
/** * Function to get all the Vtiger Link Models for a module of the given list of link types * @param <Number> $tabid * @param <Array> $type * @param <Array> $parameters * @return <Array> - List of Vtiger_Link_Model instances */ public static function getAllByType($tabid, $type = false, $parameters = false) { $links = Vtiger_Cache::get('links-' . $tabid, $type); if (!$links) { $links = parent::getAllByType($tabid, $type, $parameters); Vtiger_Cache::set('links-' . $tabid, $type, $links); } $linkModels = array(); foreach ($links as $linkType => $linkObjects) { foreach ($linkObjects as $linkObject) { $linkModels[$linkType][] = self::getInstanceFromLinkObject($linkObject); } } if (!is_array($type)) { $type = array($type); } $diffTypes = array_diff($type, array_keys($linkModels)); foreach ($diffTypes as $linkType) { $linkModels[$linkType] = array(); } return $linkModels; }
$blockInstance->addField($fieldInstance); } } echo '<br>Added PBXManager User extension field.<br>'; //Query to fetch asterisk extension $extensionResult = $adb->pquery('SELECT userid, asterisk_extension FROM vtiger_asteriskextensions', array()); for ($i = 0; $i < $adb->num_rows($extensionResult); $i++) { $userId = $adb->query_result($extensionResult, 0, 'userid'); $extensionNumber = $adb->query_result($extensionResult, 0, 'asterisk_extension'); $adb->pquery('UPDATE vtiger_users SET phone_crm_extension = ? WHERE id = ?', array($extensionNumber, $userId)); } //Add PBXManager Links $handlerInfo = array('path' => 'modules/PBXManager/PBXManager.php', 'class' => 'PBXManager', 'method' => 'checkLinkPermission'); $headerScriptLinkType = 'HEADERSCRIPT'; $incomingLinkLabel = 'Incoming Calls'; Vtiger_Link::addLink(0, $headerScriptLinkType, $incominglinkLabel, 'modules/PBXManager/resources/PBXManagerJS.js', '', '', $handlerInfo); echo '<br>Added PBXManager links<br>'; //Add settings links $adb = PearDatabase::getInstance(); $integrationBlock = $adb->pquery('SELECT * FROM vtiger_settings_blocks WHERE label=?', array('LBL_INTEGRATION')); $integrationBlockCount = $adb->num_rows($integrationBlock); // To add Block if ($integrationBlockCount > 0) { $blockid = $adb->query_result($integrationBlock, 0, 'blockid'); } else { $blockid = $adb->getUniqueID('vtiger_settings_blocks'); $sequenceResult = $adb->pquery("SELECT max(sequence) as sequence FROM vtiger_settings_blocks", array()); if ($adb->num_rows($sequenceResult)) { $sequence = $adb->query_result($sequenceResult, 0, 'sequence'); } $adb->pquery("INSERT INTO vtiger_settings_blocks(blockid, label, sequence) VALUES(?,?,?)", array($blockid, 'LBL_INTEGRATION', ++$sequence));
static function updateCustomLinks($modules, $addLink) { global $adb, $mod_strings, $currentModule, $vtiger_current_version; if ($currentModule == 'Accounting') { $mod_strings_aux = $mod_strings; } else { $mod_strings_aux = return_module_language($_SESSION["authenticated_user_language"], 'Accounting'); } $label = "Add New Payment"; $adb->pquery('DELETE FROM vtiger_links WHERE linktype=? AND linkurl=?', array('DETAILVIEWBASIC', 'index.php?module=Accounting&action=EditView&return_module=$MODULE$&return_action=DetailView&return_id=$RECORD$&parent_id=$RECORD$&detalislink=true')); $adb->pquery('DELETE FROM vtiger_links WHERE linktype=? AND linkurl=?', array('DETAILVIEWBASIC', 'index.php?module=Accounting&action=EditView&return_module=$MODULE$&return_action=DetailView&return_id=$RECORD$&parent_id=$RECORD$&detailslink=true')); if ($addLink == "true") { include_once 'vtlib/Vtiger/Module.php'; foreach ($modules as $mod) { $module = Vtiger_Module::getInstance($mod); Vtiger_Link::addLink($module->id, 'DETAILVIEWBASIC', $label, 'index.php?module=Accounting&action=EditView&return_module=$MODULE$&return_action=DetailView&return_id=$RECORD$&parent_id=$RECORD$&detailslink=true'); } } }
/** * Funkcja link do tablicy vtiger_links * * @param string $type typ linku * @param string $moduleName nazwa modułu * @param string $widgetName nazwa widgetu * @param string $link link */ private static function addLink($type, $moduleName, $widgetName, $link) { vglobal('Vtiger_Utils_Log', TRUE); $tabId = Vtiger_Functions::getModuleId($moduleName); if ($tabId) { Vtiger_Link::addLink($tabId, $type, $widgetName, $link); } else { Vtiger_Utils::Log('tabid module not found - check if module name is correct'); } }
$smarty->assign('VALIDATION_DATA_FIELDDATATYPE', $validationArray['datatype']); $smarty->assign('VALIDATION_DATA_FIELDLABEL', $validationArray['fieldlabel']); $smarty->assign('EDIT_PERMISSION', isPermitted($currentModule, 'EditView', $record)); $smarty->assign('CHECK', $tool_buttons); if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) { $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id); VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id); } $smarty->assign('IS_REL_LIST', isPresentRelatedLists($currentModule)); $smarty->assign('SinglePane_View', $singlepane_view); if ($singlepane_view == 'true') { $related_array = getRelatedLists($currentModule, $focus); $smarty->assign("RELATEDLISTS", $related_array); } if (isPermitted($currentModule, 'EditView', $record) == 'yes') { $smarty->assign('EDIT_DUPLICATE', 'permitted'); } if (isPermitted($currentModule, 'Delete', $record) == 'yes') { $smarty->assign('DELETE', 'permitted'); } $smarty->assign('BLOCKS', getBlocks($currentModule, 'detail_view', '', $focus->column_fields)); // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $customlink_params = array('MODULE' => $currentModule, 'RECORD' => $focus->id, 'ACTION' => vtlib_purify($_REQUEST['action'])); $smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType($tabid, 'DETAILVIEW', $customlink_params)); // END // Record Change Notification $focus->markAsViewed($current_user->id); // END $smarty->assign('DETAILVIEW_AJAX_EDIT', PerformancePrefs::getBoolean('DETAILVIEW_AJAX_EDIT', true)); $smarty->display("Inventory/InventoryDetailView.tpl");
$smarty->assign("TODO_PERMISSION", CheckFieldPermission('parent_id', 'Calendar')); $smarty->assign("EVENT_PERMISSION", CheckFieldPermission('parent_id', 'Events')); $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $smarty->assign("EDIT_PERMISSION", isPermitted($currentModule, 'EditView', $_REQUEST['record'])); $smarty->assign("IS_REL_LIST", isPresentRelatedLists($currentModule)); if ($singlepane_view == 'true') { $related_array = getRelatedLists($currentModule, $focus); $smarty->assign("RELATEDLISTS", $related_array); require_once 'include/ListView/RelatedListViewSession.php'; if (!empty($_REQUEST['selected_header']) && !empty($_REQUEST['relation_id'])) { RelatedListViewSession::addRelatedModuleToSession(vtlib_purify($_REQUEST['relation_id']), vtlib_purify($_REQUEST['selected_header'])); } $open_related_modules = RelatedListViewSession::getRelatedModulesFromSession(); $smarty->assign("SELECTEDHEADERS", $open_related_modules); } $smarty->assign("SinglePane_View", $singlepane_view); if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) { $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id); VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id); } // Record Change Notification $focus->markAsViewed($current_user->id); // END // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $customlink_params = array('MODULE' => $currentModule, 'RECORD' => $focus->id, 'ACTION' => vtlib_purify($_REQUEST['action'])); $smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid($currentModule), array('DETAILVIEWBASIC', 'DETAILVIEW', 'DETAILVIEWWIDGET'), $customlink_params)); // END $smarty->assign('DETAILVIEW_AJAX_EDIT', PerformancePrefs::getBoolean('DETAILVIEW_AJAX_EDIT', true)); $smarty->display("Inventory/InventoryDetailView.tpl");
$smarty->assign("ACTIVITYDATA", $data); $smarty->assign("ID", vtlib_purify($_REQUEST['record'])); //get Description Information if (isPermitted("Calendar", "EditView", $_REQUEST['record']) == 'yes') { $smarty->assign("EDIT_DUPLICATE", "permitted"); } if (isPermitted("Calendar", "Delete", $_REQUEST['record']) == 'yes') { $smarty->assign("DELETE", "permitted"); } $check_button = Button_Check($module); $smarty->assign("CHECK", $check_button); $tabid = getTabid($tab_type); $validationData = getDBValidationData($focus->tab_name, $tabid); $data2 = split_validationdataArray($validationData); $smarty->assign("VALIDATION_DATA_FIELDNAME", $data2['fieldname']); $smarty->assign("VALIDATION_DATA_FIELDDATATYPE", $data2['datatype']); $smarty->assign("VALIDATION_DATA_FIELDLABEL", $data2['fieldlabel']); $smarty->assign("MODULE", $currentModule); $smarty->assign("EDIT_PERMISSION", isPermitted($currentModule, 'EditView', $_REQUEST['record'])); if (PerformancePrefs::getBoolean('DETAILVIEW_RECORD_NAVIGATION', true) && isset($_SESSION[$currentModule . '_listquery'])) { $recordNavigationInfo = ListViewSession::getListViewNavigation($focus->id); VT_detailViewNavigation($smarty, $recordNavigationInfo, $focus->id); } // Gather the custom link information to display include_once 'vtlib/Vtiger/Link.php'; $customlink_params = array('MODULE' => $currentModule, 'RECORD' => $focus->id, 'ACTION' => vtlib_purify($_REQUEST['action'])); $smarty->assign('CUSTOM_LINKS', Vtiger_Link::getAllByType(getTabid($currentModule), 'DETAILVIEW', $customlink_params)); // END $custom_fields_data = getCalendarCustomFields($tabid, 'detail_view', $focus->column_fields); $smarty->assign("CUSTOM_FIELDS_DATA", $custom_fields_data); $smarty->display("ActivityDetailView.tpl");
function removelinks() { //here we remove our link from the head Vtiger_Link::deleteLink(0, 'HEADERSCRIPT', 'LSRelated', 'modules/LSRelated/resources/LSRelated.js', '', '', ''); }
/** * Delete this instance */ function delete() { $moduleInstance = Vtiger_Module_Model::getInstance($this->name); require_once "modules/{$this->name}/{$this->name}.php"; $focus = new $this->name(); $this->tableName = $focus->table_name; if ($this->isentitytype) { $this->deleteFromCRMEntity(); Vtiger_Access::deleteTools($this); Vtiger_Filter::deleteForModule($this); Vtiger_Block::deleteForModule($this); if (method_exists($this, 'deinitWebservice')) { $this->deinitWebservice(); } } $this->deleteIcons(); $this->unsetAllRelatedList($moduleInstance); ModComments_Module_Model::deleteForModule($moduleInstance); Vtiger_Language::deleteForModule($moduleInstance); Vtiger_Access::deleteSharing($moduleInstance); $this->deleteFromModentityNum(); Vtiger_Cron::deleteForModule($moduleInstance); Vtiger_Profile::deleteForModule($moduleInstance); Settings_Workflows_Module_Model::deleteForModule($moduleInstance); Vtiger_Menu::deleteForModule($moduleInstance); $this->deleteGroup2Modules(); $this->deleteModuleTables(); $this->deleteCRMEntityRel(); Vtiger_Profile::deleteForModule($this); Vtiger_Link::deleteAll($this->id); $this->deleteDir($moduleInstance); $this->__delete(); self::syncfile(); }