根目录文件。
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
|
||||
//This file contains the commonly used variables
|
||||
|
||||
$parent_tab_info_array=array(1=>'My Home Page',2=>'Marketing',3=>'Sales',4=>'Support',5=>'Analytics',6=>'Inventory',7=>'Tools',8=>'Settings');
|
||||
|
||||
|
||||
$parent_child_tab_rel_array=array(1=>array(3,9,28,),2=>array(26,6,4,28,7,9,8,),3=>array(7,6,4,2,20,22,23,19,8,9,),4=>array(13,15,6,4,8,28,9,37,46,47,48,),5=>array(25,1,),6=>array(14,18,19,21,22,20,23,38,41,),7=>array(24,27,8,32,33,36,45,49,50,),8=>array(),);
|
||||
|
||||
|
||||
|
||||
?>
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
/*********************************************************************************
|
||||
* The contents of this file are subject to the SugarCRM Public License Version 1.1.2
|
||||
* ("License"); You may not use this file except in compliance with the
|
||||
* License. You may obtain a copy of the License at http://www.sugarcrm.com/SPL
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
* The Original Code is: SugarCRM Open Source
|
||||
* The Initial Developer of the Original Code is SugarCRM, Inc.
|
||||
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.;
|
||||
* All Rights Reserved.
|
||||
* Contributor(s): ______________________________________.
|
||||
********************************************************************************/
|
||||
/*********************************************************************************
|
||||
* $Header: /advent/projects/wesat/vtiger_crm/sugarcrm/phprint.php,v 1.5 2005/03/14 07:50:04 samk Exp $
|
||||
* Description: Main file and starting point for the application. Calls the
|
||||
* theme header and footer files defined for the user as well as the module as
|
||||
* defined by the input parameters.
|
||||
********************************************************************************/
|
||||
|
||||
if (substr(phpversion(), 0, 1) == "5") {
|
||||
ini_set("zend.ze1_compatibility_mode", "1");
|
||||
}
|
||||
|
||||
if (ini_get("allow_url_fopen") != 1) {
|
||||
die("You must have the allow_url_fopen directive in your php.ini file enabled");
|
||||
}
|
||||
|
||||
$data_print['start_tag'] = "<!-- startscrmprint -->";
|
||||
$data_print['stop_tag'] = "<!-- stopscrmprint -->";
|
||||
$data_print['default_charset'] = "utf-8";
|
||||
|
||||
require_once("config.inc.php");
|
||||
require_once("include/utils/utils.php");
|
||||
|
||||
/** Function to set, character set in the header, as given in include/language/*_lang.php
|
||||
*/
|
||||
function insert_charset_header()
|
||||
{
|
||||
global $app_strings, $default_charset;
|
||||
$charset = $default_charset;
|
||||
|
||||
if(isset($app_strings['LBL_CHARSET']))
|
||||
{
|
||||
$charset = $app_strings['LBL_CHARSET'];
|
||||
}
|
||||
header('Content-Type: text/html; charset='. $charset);
|
||||
}
|
||||
|
||||
if (!isset($_GET['action']) || !isset($_GET['module'])) {
|
||||
die("Error: invalid print link");
|
||||
}
|
||||
$record = (isset($_GET['record'])) ? vtlib_purify($_GET['record']) : "";
|
||||
//Added activity mode for events or tasks for Back
|
||||
if($_GET['module'] == 'Activities')
|
||||
{
|
||||
$activity_mode = '&activity_mode='.vtlib_purify($_REQUEST['activity_mode']);
|
||||
}
|
||||
$url = $site_URL . "/index.php?module=".vtlib_purify($_GET['module'])."&action=".vtlib_purify($_GET['action'])."&record=$record$activity_mode";
|
||||
$lang_crm = (empty($_GET['lang_crm'])) ? $default_language : $_GET['lang_crm'];
|
||||
$app_strings = return_application_language($lang_crm);
|
||||
insert_charset_header();
|
||||
|
||||
$fp = @fopen($url . "&PHPSESSID=" . $_GET['jt'], "rb") or die("Error opening $url<br><br>Is your \$site_URL correct in config.php?");
|
||||
|
||||
$get = $page_str = FALSE;
|
||||
while ($data = fgets($fp, 4096)) {
|
||||
if (strpos($data, "<meta http-equiv=\"Content-Type") !== FALSE) {
|
||||
// Found character set to use
|
||||
$charset = $data;
|
||||
}
|
||||
if (strpos($data, $data_print['start_tag']) !== FALSE) {
|
||||
// Found start tag, begin collecting data
|
||||
$get = TRUE;
|
||||
}
|
||||
if ($get) {
|
||||
// Collect data into $page_str to be later processed
|
||||
$page_str .= $data;
|
||||
}
|
||||
if (strpos($data, $data_print['stop_tag']) !== FALSE) {
|
||||
// Found stop tag, stop collecting data
|
||||
$get = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
fclose($fp);
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<?php
|
||||
if (isset($charset)) {
|
||||
echo $charset . "\n";
|
||||
}
|
||||
else {
|
||||
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=" . $data_print['default_charset'] . "\">\n";
|
||||
}
|
||||
?>
|
||||
<style type="text/css" media="all">
|
||||
IMG { display: none; }
|
||||
.bodySmall{display: none;}
|
||||
input{ display:none; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<!--a href="<?php echo $url; ?>"><< <?php echo $app_strings['LBL_BACK']; ?></a><br><br-->
|
||||
<?php
|
||||
echo $page_str;
|
||||
?>
|
||||
<br><br><!--a href="<?php echo $url; ?>"><< <?php echo $app_strings['LBL_BACK']; ?></a-->
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?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.
|
||||
********************************************************************************/
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<title>vtiger CRM 5 - PHP Version Check</title>
|
||||
<link href="include/install/install.css" rel="stylesheet" type="text/css">
|
||||
</head>
|
||||
|
||||
<body class="small cwPageBg" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
|
||||
|
||||
<br><br><br>
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
<tr>
|
||||
<td class="cwHeadBg" align=left> </td>
|
||||
<td class="cwHeadBg" align=right><img src="include/install/images/vtigercrm5.gif" alt="vtiger CRM 5" title="vtiger CRM 5"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
<tr>
|
||||
<td background="include/install/images/topInnerShadow.gif" align=left><img src="include/install/images/topInnerShadow.gif" ></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table border=0 cellspacing=0 cellpadding=10 width=80% align=center>
|
||||
<tr>
|
||||
<td class="small" bgcolor="#FFFFFF" align=center>
|
||||
PHP 5.2.x or above is required. Your current PHP version is
|
||||
<?php
|
||||
if(isset($serverPhpVersion)) {
|
||||
echo $serverPhpVersion;
|
||||
} else {
|
||||
echo '???';
|
||||
}
|
||||
?> <br/>
|
||||
Kindly upgrade the PHP installation, and try again! <br/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
<tr>
|
||||
<td background="include/install/images/topInnerShadow.gif" align=left><img src="include/install/images/topInnerShadow.gif" ></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
<tr>
|
||||
<td background="include/install/images/bottomGradient.gif"><img src="include/install/images/bottomGradient.gif"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
<tr>
|
||||
<td align=center><img src="include/install/images/bottomShadow.jpg"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table border=0 cellspacing=0 cellpadding=0 width=80% align=center>
|
||||
|
||||
<tr>
|
||||
<td class=small align=center> <a href="http://www.vtiger.com" target="_blank">www.vtiger.com</a></td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user