/*+******************************************************************************* * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. *********************************************************************************/ global $mod_strings, $app_strings, $theme, $current_user; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once 'include/home.php'; require_once 'Smarty_setup.php'; require_once 'include/freetag/freetag.class.php'; $homeObj = new Homestuff(); $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); if (!empty($_REQUEST['homestuffid'])) { $stuffid = $_REQUEST['homestuffid']; } if (!empty($_REQUEST['blockstufftype'])) { $stufftype = $_REQUEST['blockstufftype']; } if ($stufftype == 'Tag Cloud') { $freetag = new freetag(); $smarty->assign("ALL_TAG", $freetag->get_tag_cloud_html("", $current_user->id)); $smarty->display("Home/TagCloud.tpl");
<?php /*+******************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ********************************************************************************/ require_once 'include/home.php'; require_once 'modules/Rss/Rss.php'; $oHomestuff = new Homestuff(); if (!empty($_REQUEST['stufftype'])) { $oHomestuff->stufftype = $_REQUEST['stufftype']; } if (!empty($_REQUEST['stufftitle'])) { if (strlen($_REQUEST['stufftitle']) > 100) { $temp_str = substr($_REQUEST['stufftitle'], 0, 97) . "..."; $oHomestuff->stufftitle = $temp_str; } else { $oHomestuff->stufftitle = $_REQUEST['stufftitle']; } // Remove HTML/PHP tags from the input if (isset($oHomestuff->stufftitle)) { $oHomestuff->stufftitle = strip_tags($oHomestuff->stufftitle); } } if (!empty($_REQUEST['selmodule'])) { $oHomestuff->selmodule = $_REQUEST['selmodule']; }
require_once 'include/home.php'; require_once 'Smarty_setup.php'; require_once 'modules/Home/HomeBlock.php'; require_once 'include/database/PearDatabase.php'; require_once 'include/utils/UserInfoUtil.php'; require_once 'include/utils/CommonUtils.php'; require_once 'include/freetag/freetag.class.php'; require_once 'modules/Home/HomeUtils.php'; global $app_strings, $app_list_strings, $mod_strings; global $adb, $current_user; global $theme; global $current_language; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; $smarty = new vtigerCRM_Smarty(); $homeObj = new Homestuff(); // Performance Optimization $tabrows = vtlib_prefetchModuleActiveInfo(); // END //$query="select name,tabid from vtiger_tab where tabid in (select distinct(tabid) from vtiger_field where tabid <> 29 and tabid <> 16 and tabid <>10) order by name"; // Performance Optimization: Re-written to ignore extension and inactive modules $modulenamearr = array(); foreach ($tabrows as $resultrow) { if ($resultrow['isentitytype'] != '0') { // Eliminate: Events, Emails if ($resultrow['tabid'] == '16' || $resultrow['tabid'] == '10' || $resultrow['name'] == 'Webmails') { continue; } $modName = $resultrow['name']; if (isPermitted($modName, 'DetailView') == 'yes' && vtlib_isModuleActive($modName)) { $modulenamearr[$modName] = array($resultrow['tabid'], $modName);
<?php /*+********************************************************************************** * The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ************************************************************************************/ require_once 'include/home.php'; global $adb, $log; $reportid = vtlib_purify($_REQUEST['reportid']); $windowtitle = vtlib_purify($_REQUEST['windowtitle']); $charttype = vtlib_purify($_REQUEST['charttype']); $homeObj = new Homestuff(); $homeObj->stufftitle = $windowtitle; $homeObj->stufftype = "ReportCharts"; $homeObj->selreport = $reportid; $homeObj->selreportcharttype = $charttype; $homeObj->addStuff();
* Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. * *********************************************************************************/ /** * @author MAK */ global $mod_strings; global $app_strings; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once 'include/home.php'; require_once 'Smarty_setup.php'; require_once 'include/freetag/freetag.class.php'; $homeObj = new Homestuff(); Zend_Json::$useBuiltinEncoderDecoder = true; $widgetInfoList = Zend_Json::decode($_REQUEST['widgetInfoList']); $widgetInfoList = Zend_Json::decode($_REQUEST['widgetInfoList']); $widgetHTML = array(); $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); foreach ($widgetInfoList as $widgetInfo) { $widgetType = $widgetInfo['widgetType']; $widgetId = $widgetInfo['widgetId']; if ($widgetType == 'Tag Cloud') { $freetag = new freetag(); $smarty->assign("ALL_TAG", $freetag->get_tag_cloud_html("", $current_user->id));
* The contents of this file are subject to the vtiger CRM Public License Version 1.0 * ("License"); You may not use this file except in compliance with the License * The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ********************************************************************************/ /** * Created on 10-Oct-08 * this file saves the notebook contents to database */ Zend_Json::$useBuiltinEncoderDecoder = true; $status = SaveNotebookContents(); if ($status == true) { require_once 'include/home.php'; $homeObj = new Homestuff(); $contents = $homeObj->getNoteBookContents($_REQUEST['notebookid']); } $returnvalue = array('status' => $status, 'contents' => $contents); echo Zend_Json::encode($returnvalue); function SaveNotebookContents() { if (empty($_REQUEST['notebookid'])) { return false; } else { $notebookid = $_REQUEST['notebookid']; } global $adb, $current_user; $contents = $_REQUEST['contents']; $sql = "update vtiger_notebook_contents set contents=? where userid=? and notebookid=?"; $adb->pquery($sql, array($contents, $current_user->id, $notebookid));
* The Original Code is: vtiger CRM Open Source * The Initial Developer of the Original Code is vtiger. * Portions created by vtiger are Copyright (C) vtiger. * All Rights Reserved. ********************************************************************************/ /********************************************************************************* * $Header: /var/cvs/vtigercrm_aegon/modules/Home/NewBlock.php,v 1.2 2007/03/01 17:47:16 jerrydgeorge Exp $ * Description: Main file for the Home module. * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. * All Rights Reserved. * Contributor(s): ______________________________________.. ********************************************************************************/ global $mod_strings; global $app_strings; global $theme; $theme_path = "themes/" . $theme . "/"; $image_path = $theme_path . "images/"; require_once 'include/home.php'; require_once 'Smarty_setup.php'; $stuffid = $_REQUEST[stuffid]; $stufftype = $_REQUEST[stufftype]; $homeObj = new Homestuff(); $smarty = new vtigerCRM_Smarty(); $smarty->assign("MOD", $mod_strings); $smarty->assign("APP", $app_strings); $smarty->assign("THEME", $theme); $smarty->assign("IMAGE_PATH", $image_path); $homeselectedframe = $homeObj->getSelectedStuff($stuffid, $stufftype); $smarty->assign("tablestuff", $homeselectedframe); $smarty->assign("IMAGE_PATH", $image_path); $smarty->display("Home/MainHomeBlock.tpl");