Exemplo n.º 1
0
	});
});'."\r\n";

$shared_reports = "";
$private_reports = "";
$shared_charts = "";
$private_charts = "";

$arr_reports = array();
$arrPrivateReports = array();
$arrSharedReports = array();
$arr_charts = array();
$arrPrivateCharts = array();
$arrSharedCharts = array();

$arr_reports = GetReportsList();
foreach ( $arr_reports as $rpt ) {
	if ( (trim($rpt["owner"]) != trim(@$_SESSION["UserID"]) || trim($rpt["owner"]) == "") && $rpt["status"]=="public") {
		$arrSharedReports[] = $rpt;
	} elseif ( trim($rpt["owner"]) == trim(@$_SESSION["UserID"]) ) {
		$arrPrivateReports[] = $rpt;
	}
}

$arr_charts = GetChartsList();
foreach ( $arr_charts as $chart ) {
	if (( trim($chart["owner"]) != trim(@$_SESSION["UserID"]) || trim($chart["owner"]) == "" ) && $chart["status"]=="public") {
		$arrSharedCharts[] = $chart;
	} elseif ( trim($chart["owner"]) == trim(@$_SESSION["UserID"]) ) {
		$arrPrivateCharts[] = $chart;
	}
Exemplo n.º 2
0
						"FILE_RUN" => $strPath2Import.$file,
						"TITLE" => $rep_title
					);
				if (file_exists($_SERVER["DOCUMENT_ROOT"].$strPath2Import.$import_name."_setup.php"))
				{
					$arReports[$import_name]["FILE_SETUP"] = $strPath2Import.$import_name."_setup.php";
				}
			}
		}
	}
	closedir($handle);

	return $arReports;
}

$arReportsList = GetReportsList(CATALOG_PATH2IMPORTS);

/////////////////////////////////////////////////////////////////////
// In setup wizard
//	$FINITE = true  on the last step
//	$SETUP_FIELDS_LIST  the list of fields which are saved in pofile (coma-separated)
//	$STEP  current wizard step
//	$SETUP_PROFILE_NAME  profile name
//	$strImportErrorMessage  error messages
/////////////////////////////////////////////////////////////////////
if (($bCanEdit || $bCanExec) && check_bitrix_sessid())
{
	$strActFileName = trim(strval($_REQUEST["ACT_FILE"]));
	if (strlen($_REQUEST["ACTION"])>0 && strlen($strActFileName)<=0)
	{
		$strErrorMessage .= GetMessage("CES_ERROR_NO_FILE")."\n";