[Vtigercrm-commits] [vtiger-commits] r4334 - in /vtigercrm/trunk/modules/Dashboard: Chart_lead_source_by_outcome.php Chart_pipeline_by_lead_source.php Chart_pipeline_by_sales_stage.php language/en_us.lang.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Mar 20 08:30:54 EST 2006
Author: saraj
Date: Mon Mar 20 06:30:39 2006
New Revision: 4334
Log:
Changes made for security support
Modified:
vtigercrm/trunk/modules/Dashboard/Chart_lead_source_by_outcome.php
vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_lead_source.php
vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_sales_stage.php
vtigercrm/trunk/modules/Dashboard/language/en_us.lang.php
Modified: vtigercrm/trunk/modules/Dashboard/Chart_lead_source_by_outcome.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Chart_lead_source_by_outcome.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Chart_lead_source_by_outcome.php Mon Mar 20 06:30:39 2006
@@ -105,6 +105,8 @@
echo "<em>Charts not supported in PHP 5.</em>";
}
else {
+if(isPermitted('Potentials','index')=="yes")
+{
$draw_this = new jpgraph();
echo $draw_this->lead_source_by_outcome($datax, $ids, $tmp_dir.$cache_file_name, $refresh);
echo "<P><font size='1'><em>".$current_module_strings['LBL_LEAD_SOURCE_BY_OUTCOME_DESC']."</em></font></P>";
@@ -140,4 +142,9 @@
[<a href="index.php?module=<?php echo $currentModule;?>&action=<?php echo $action;?>&lsbo_edit=true"><?php echo $current_module_strings['LBL_EDIT'];?></a>]
</FONT></div>
<?php }
+}
+else
+{
+ echo $mod_strings['LBL_NO_PERMISSION'];
+}
}?>
Modified: vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_lead_source.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_lead_source.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_lead_source.php Mon Mar 20 06:30:39 2006
@@ -105,6 +105,8 @@
echo "<em>Charts not supported in PHP 5.</em>";
}
else {
+if(isPermitted('Potentials','index')=="yes")
+{
$draw_this = new jpgraph();
echo $draw_this->pipeline_by_lead_source($datax, $ids, $tmp_dir.$cache_file_name, $refresh);
echo "<P><font size='1'><em>".$current_module_strings['LBL_LEAD_SOURCE_FORM_DESC']."</em></font></P>";
@@ -140,4 +142,9 @@
[<a href="index.php?module=<?php echo $currentModule;?>&action=<?php echo $action;?>&pbls_edit=true"><?php echo $current_module_strings['LBL_EDIT'];?></a>]
</FONT></div>
<?php }
+}
+else
+{
+ echo $mod_strings['LBL_NO_PERMISSION'];
+}
}?>
Modified: vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_sales_stage.php
==============================================================================
--- vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_sales_stage.php (original)
+++ vtigercrm/trunk/modules/Dashboard/Chart_pipeline_by_sales_stage.php Mon Mar 20 06:30:39 2006
@@ -140,6 +140,8 @@
echo "<em>Charts not supported in PHP 5.</em>";
}
else {
+if(isPermitted('Potentials','index')=="yes")
+{
$draw_this = new jpgraph();
echo $draw_this->pipeline_by_sales_stage($datax, $date_start, $date_end, $ids, $tmp_dir.$cache_file_name, $refresh);
echo "<P><font size='1'><em>".$current_module_strings['LBL_SALES_STAGE_FORM_DESC']."</em></font></P>";
@@ -201,6 +203,11 @@
</em>[<a href="index.php?module=<?php echo $currentModule;?>&action=<?php echo $action;?>&pbss_refresh=true"><?php echo $current_module_strings['LBL_REFRESH'];?></a>]
[<a href="index.php?module=<?php echo $currentModule;?>&action=<?php echo $action;?>&pbss_edit=true"><?php echo $current_module_strings['LBL_EDIT'];?></a>]
</FONT></div>
-<?php }
+<?php }
+}
+else
+{
+ echo $mod_strings['LBL_NO_PERMISSION'];
+}
//echo get_validate_chart_js();
}?>
Modified: vtigercrm/trunk/modules/Dashboard/language/en_us.lang.php
==============================================================================
Binary files - no diff available.
More information about the vtigercrm-commits
mailing list