添加到 trunk

+YUCHENG HU+

git-svn-id: https://svn.code.sf.net/p/hawebs/svn@247 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
YuCheng Hu
2010-06-13 04:47:28 +00:00
parent 7c1af5f559
commit ec7a75e6a4
12 changed files with 2357 additions and 0 deletions
File diff suppressed because it is too large Load Diff
+8
View File
@@ -0,0 +1,8 @@
#pkgvers relpath modified unmodifiedok extdepok dowloadurl
adodb-4.90 adodb true false unknown http://prdownloads.sf.net/adodb/adodb490.tgz
FCKeditor-2.2 include/fckeditor true unknown unknown http://prdownloads.sf.net/fckeditor/FCKeditor-2.2.gz.tar
fpdf-1.53 include/fpdf true unknown unknown http://www.fpdf.org/en/dl.php?v=153&f=tgz
Image_Canvas-0.3.0 include/Image true unknown unknown http://pear.php.net/get/Image_Canvas-0.3.0.tgz
Image_Color-1.0.2 include/Image true unknown unknown http://pear.php.net/get/Image_Color-1.0.2.tgz
Image_Graph-0.7.2 include/Image true unknown unknown http://pear.php.net/get/Image_Graph-0.7.2.tgz
log4php-0.9 log4php false true unknown http://www.vxr.it/log4php/log4php-0.9.tar.gz
+40
View File
@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- (c) Copyright HAWEBS. 2006, 2010 All Rights Reserved. -->
<!--
| HA WEBSYSTEMS
| http://www.hawebs.net
| https://www.hawebs.org/forums/computer/
|
| Contact
| [email protected] / [email protected]
| +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
|
| [A] GNU GENERAL PUBLIC LICENSE GNU/LGPL
| [B] Apache License, Version 2.0
|
* -->
<project name="vTiger" default="zh_cn.lang" basedir=".">
<!-- dita.dir should point to the toolkit's root directory -->
<property name="project.name" value="vTiger"/>
<property name="current.rev" value="5.1"/>
<property name="out.dir" value="Releases"/>
<tstamp prefix="hawebs">
<format property="nightly.build.number" pattern="yyyyMMdd"/>
</tstamp>
<target name="zh_cn.lang">
<zip zipfile="${basedir}${file.separator}${out.dir}${file.separator}${project.name}_zh_cn_${current.rev}_${hawebs.nightly.build.number}.zip"
basedir="${basedir}"
includes="**/zh_cn.lang.php,Readme_zh.txt"
/>
</target>
</project>
+18
View File
@@ -0,0 +1,18 @@
<?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.
********************************************************************************/
$dbconfig['db_server'] = '_DBC_SERVER_';
$dbconfig['db_port'] = '_DBC_PORT_';
$dbconfig['db_sockpath'] = '_DBC_SOCKPATH_';
$dbconfig['db_username'] = '_DBC_USER_';
$dbconfig['db_password'] = '_DBC_PASS_';
$dbconfig['db_name'] = '_DBC_NAME_';
$dbconfig['db_type'] = '_DBC_TYPE_';
$dbconfig['db_bundled'] = '_DBC_BUNDLED_';
?>
+212
View File
@@ -0,0 +1,212 @@
<?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): ______________________________________.
********************************************************************************/
include('vtigerversion.php');
// more than 8MB memory needed for graphics
// memory limit default value = 64M
ini_set('memory_limit','64M');
// show or hide calendar, world clock, calculator, chat and FCKEditor
// Do NOT remove the quotes if you set these to false!
$CALENDAR_DISPLAY = 'true';
$WORLD_CLOCK_DISPLAY = 'true';
$CALCULATOR_DISPLAY = 'true';
$CHAT_DISPLAY = 'true';
$FCKEDITOR_DISPLAY = 'true';
// url for customer portal (Example: http://vtiger.com/portal)
$PORTAL_URL = 'http://vtiger.com/customerportal';
// helpdesk support email id and support name (Example: '[email protected]' and 'vtiger support')
$HELPDESK_SUPPORT_EMAIL_ID = '[email protected]';
$HELPDESK_SUPPORT_NAME = 'your-support name';
$HELPDESK_SUPPORT_EMAIL_REPLY_ID = $HELPDESK_SUPPORT_EMAIL_ID;
/* database configuration
db_server
db_port
db_hostname
db_username
db_password
db_name
*/
$dbconfig['db_server'] = 'localhost';
$dbconfig['db_port'] = ':3306';
$dbconfig['db_username'] = 'hawebso1_lwwcrm';
$dbconfig['db_password'] = '7Z15R8HDCP16';
$dbconfig['db_name'] = 'hawebso1_lwwcrm';
$dbconfig['db_type'] = 'mysql';
$dbconfig['db_status'] = 'true';
// TODO: test if port is empty
// TODO: set db_hostname dependending on db_type
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
// log_sql default value = false
$dbconfig['log_sql'] = false;
// persistent default value = true
$dbconfigoption['persistent'] = true;
// autofree default value = false
$dbconfigoption['autofree'] = false;
// debug default value = 0
$dbconfigoption['debug'] = 0;
// seqname_format default value = '%s_seq'
$dbconfigoption['seqname_format'] = '%s_seq';
// portability default value = 0
$dbconfigoption['portability'] = 0;
// ssl default value = false
$dbconfigoption['ssl'] = false;
$host_name = $dbconfig['db_hostname'];
$site_URL = 'http://localhost/hawebs.net/vtiger';
// root directory path
$root_directory = 'D:\Dkits\Apache2.2\htdocs\hawebs.net\vtiger/';
// cache direcory path
$cache_dir = 'cache/';
// tmp_dir default value prepended by cache_dir = images/
$tmp_dir = 'cache/images/';
// import_dir default value prepended by cache_dir = import/
$import_dir = 'cache/import/';
// upload_dir default value prepended by cache_dir = upload/
$upload_dir = 'cache/upload/';
// maximum file size for uploaded files in bytes also used when uploading import files
// upload_maxsize default value = 3000000
$upload_maxsize = 3000000;
// flag to allow export functionality
// 'all' to allow anyone to use exports
// 'admin' to only allow admins to export
// 'none' to block exports completely
// allow_exports default value = all
$allow_exports = 'all';
// files with one of these extensions will have '.txt' appended to their filename on upload
// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'exe', 'bin', 'bat', 'sh', 'dll', 'phps');
// full path to include directory including the trailing slash
// includeDirectory default value = $root_directory..'include/
$includeDirectory = $root_directory.'include/';
// list_max_entries_per_page default value = 20
$list_max_entries_per_page = '20';
// limitpage_navigation default value = 5
$limitpage_navigation = '5';
// history_max_viewed default value = 5
$history_max_viewed = '5';
// define list of menu tabs
//$moduleList = Array('Home', 'Dashboard', 'Contacts', 'Accounts', 'Opportunities', 'Cases', 'Notes', 'Calls', 'Emails', 'Meetings', 'Tasks','MessageBoard');
// map sugar language codes to jscalendar language codes
// unimplemented until jscalendar language files are fixed
// $cal_codes = array('en_us'=>'en', 'ja'=>'jp', 'sp_ve'=>'sp', 'it_it'=>'it', 'tw_zh'=>'zh', 'pt_br'=>'pt', 'se'=>'sv', 'cn_zh'=>'zh', 'ge_ge'=>'de', 'ge_ch'=>'de', 'fr'=>'fr');
// default_module default value = Home
$default_module = 'Home';
// default_action default value = index
$default_action = 'index';
// set default theme
// default_theme default value = blue
$default_theme = 'hawebs';
// show or hide time to compose each page
// calculate_response_time default value = true
$calculate_response_time = true;
// default text that is placed initially in the login form for user name
// no default_user_name default value
$default_user_name = '';
// default text that is placed initially in the login form for password
// no default_password default value
$default_password = '';
// create user with default username and password
// create_default_user default value = false
$create_default_user = false;
// default_user_is_admin default value = false
$default_user_is_admin = false;
// if your MySQL/PHP configuration does not support persistent connections set this to true to avoid a large performance slowdown
// disable_persistent_connections default value = false
$disable_persistent_connections = false;
// defined languages available. the key must be the language file prefix. (Example 'en_us' is the prefix for every 'en_us.lang.php' file)
// languages default value = en_us=>US English
$languages = Array('en_us'=>'US nglish',
'zh_cn'=>'简体中文',);
//Master currency name
$currency_name = 'USA, Dollars';
// default charset
// default charset default value = 'UTF-8' or 'ISO-8859-1'
$default_charset = 'UTF-8';
// default language
// default_language default value = en_us
$default_language = 'zh_cn';
// add the language pack name to every translation string in the display.
// translation_string_prefix default value = false
$translation_string_prefix = false;
//Option to cache tabs permissions for speed.
$cache_tab_perms = true;
//Option to hide empty home blocks if no entries.
$display_empty_home_blocks = false;
//Disable Stat Tracking of vtiger CRM instance
$disable_stats_tracking = false;
// Generating Unique Application Key
$application_unique_key = 'bccba252f22d3c0e93937a75ed6b4baf';
// trim descriptions, titles in listviews to this value
$listview_max_textlength = 40;
// Maximum time limit for PHP script execution (in seconds)
$php_max_execution_time = 0;
// Set the default timezone as per your preference
$default_timezone = 'Asia/Shanghai';
/** If timezone is configured, try to set it */
if(isset($default_timezone) && function_exists('date_default_timezone_set')) {
@date_default_timezone_set($default_timezone);
}
?>
+40
View File
@@ -0,0 +1,40 @@
<?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.
************************************************************************************/
/* Performance paramters can be configured to fine tune vtiger CRM runtime */
$PERFORMANCE_CONFIG = Array(
// Enable log4php debugging only if requried
'LOG4PHP_DEBUG' => true,
// Should the caller information be captured in SQL Logging?
// It adds little overhead for performance but will be useful to debug
'SQL_LOG_INCLUDE_CALLER' => true,
// If database default charset is UTF-8, set this to true
// This avoids executing the SET NAMES SQL for each query!
'DB_DEFAULT_CHARSET_UTF8' => true,
// To avoid overshooting max_connections configured for database server
// it is preferable to have this parameter set to false
'ALLOW_MULTI_DB_CONNECTION_PER_REQUEST' => false,
// Compute record change indication for each record shown on listview
'LISTVIEW_RECORD_CHANGE_INDICATOR' => true,
// Turn-off default sorting in ListView, could eat up time as data grows
'LISTVIEW_DEFAULT_SORTING' => false,
// Compute list view record count while loading listview everytime.
// Recommended value false
'LISTVIEW_COMPUTE_PAGE_COUNT' => true,
// Control DetailView Record Navigation
'DETAILVIEW_RECORD_NAVIGATION' => true,
);
?>
+23
View File
@@ -0,0 +1,23 @@
<?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): ______________________________________.
********************************************************************************/
/**
* The configuration file for FHS system
* is located at /etc/vtigercrm directory.
*/
include('config.inc.php');
?>
+211
View File
@@ -0,0 +1,211 @@
<?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): ______________________________________.
********************************************************************************/
include('vtigerversion.php');
// more than 8MB memory needed for graphics
// memory limit default value = 64M
ini_set('memory_limit','64M');
// show or hide calendar, world clock, calculator, chat and FCKEditor
// Do NOT remove the quotes if you set these to false!
$CALENDAR_DISPLAY = 'true';
$WORLD_CLOCK_DISPLAY = 'true';
$CALCULATOR_DISPLAY = 'true';
$CHAT_DISPLAY = 'true';
$FCKEDITOR_DISPLAY = 'true';
// url for customer portal (Example: http://vtiger.com/portal)
$PORTAL_URL = 'http://vtiger.com/customerportal';
// helpdesk support email id and support name (Example: '[email protected]' and 'vtiger support')
$HELPDESK_SUPPORT_EMAIL_ID = '_USER_SUPPORT_EMAIL_';
$HELPDESK_SUPPORT_NAME = 'your-support name';
$HELPDESK_SUPPORT_EMAIL_REPLY_ID = $HELPDESK_SUPPORT_EMAIL_ID;
/* database configuration
db_server
db_port
db_hostname
db_username
db_password
db_name
*/
$dbconfig['db_server'] = '_DBC_SERVER_';
$dbconfig['db_port'] = ':_DBC_PORT_';
$dbconfig['db_username'] = '_DBC_USER_';
$dbconfig['db_password'] = '_DBC_PASS_';
$dbconfig['db_name'] = '_DBC_NAME_';
$dbconfig['db_type'] = '_DBC_TYPE_';
$dbconfig['db_status'] = '_DB_STAT_';
// TODO: test if port is empty
// TODO: set db_hostname dependending on db_type
$dbconfig['db_hostname'] = $dbconfig['db_server'].$dbconfig['db_port'];
// log_sql default value = false
$dbconfig['log_sql'] = false;
// persistent default value = true
$dbconfigoption['persistent'] = true;
// autofree default value = false
$dbconfigoption['autofree'] = false;
// debug default value = 0
$dbconfigoption['debug'] = 0;
// seqname_format default value = '%s_seq'
$dbconfigoption['seqname_format'] = '%s_seq';
// portability default value = 0
$dbconfigoption['portability'] = 0;
// ssl default value = false
$dbconfigoption['ssl'] = false;
$host_name = $dbconfig['db_hostname'];
$site_URL = '_SITE_URL_';
// root directory path
$root_directory = '_VT_ROOTDIR_';
// cache direcory path
$cache_dir = '_VT_CACHEDIR_';
// tmp_dir default value prepended by cache_dir = images/
$tmp_dir = '_VT_TMPDIR_';
// import_dir default value prepended by cache_dir = import/
$import_dir = 'cache/import/';
// upload_dir default value prepended by cache_dir = upload/
$upload_dir = '_VT_UPLOADDIR_';
// maximum file size for uploaded files in bytes also used when uploading import files
// upload_maxsize default value = 3000000
$upload_maxsize = 3000000;
// flag to allow export functionality
// 'all' to allow anyone to use exports
// 'admin' to only allow admins to export
// 'none' to block exports completely
// allow_exports default value = all
$allow_exports = 'all';
// files with one of these extensions will have '.txt' appended to their filename on upload
// upload_badext default value = php, php3, php4, php5, pl, cgi, py, asp, cfm, js, vbs, html, htm
$upload_badext = array('php', 'php3', 'php4', 'php5', 'pl', 'cgi', 'py', 'asp', 'cfm', 'js', 'vbs', 'html', 'htm', 'exe', 'bin', 'bat', 'sh', 'dll', 'phps');
// full path to include directory including the trailing slash
// includeDirectory default value = $root_directory..'include/
$includeDirectory = $root_directory.'include/';
// list_max_entries_per_page default value = 20
$list_max_entries_per_page = '20';
// limitpage_navigation default value = 5
$limitpage_navigation = '5';
// history_max_viewed default value = 5
$history_max_viewed = '5';
// define list of menu tabs
//$moduleList = Array('Home', 'Dashboard', 'Contacts', 'Accounts', 'Opportunities', 'Cases', 'Notes', 'Calls', 'Emails', 'Meetings', 'Tasks','MessageBoard');
// map sugar language codes to jscalendar language codes
// unimplemented until jscalendar language files are fixed
// $cal_codes = array('en_us'=>'en', 'ja'=>'jp', 'sp_ve'=>'sp', 'it_it'=>'it', 'tw_zh'=>'zh', 'pt_br'=>'pt', 'se'=>'sv', 'cn_zh'=>'zh', 'ge_ge'=>'de', 'ge_ch'=>'de', 'fr'=>'fr');
// default_module default value = Home
$default_module = 'Home';
// default_action default value = index
$default_action = 'index';
// set default theme
// default_theme default value = blue
$default_theme = 'softed';
// show or hide time to compose each page
// calculate_response_time default value = true
$calculate_response_time = true;
// default text that is placed initially in the login form for user name
// no default_user_name default value
$default_user_name = '';
// default text that is placed initially in the login form for password
// no default_password default value
$default_password = '';
// create user with default username and password
// create_default_user default value = false
$create_default_user = false;
// default_user_is_admin default value = false
$default_user_is_admin = false;
// if your MySQL/PHP configuration does not support persistent connections set this to true to avoid a large performance slowdown
// disable_persistent_connections default value = false
$disable_persistent_connections = false;
// defined languages available. the key must be the language file prefix. (Example 'en_us' is the prefix for every 'en_us.lang.php' file)
// languages default value = en_us=>US English
$languages = Array('en_us'=>'US English',);
//Master currency name
$currency_name = '_MASTER_CURRENCY_';
// default charset
// default charset default value = 'UTF-8' or 'ISO-8859-1'
$default_charset = '_VT_CHARSET_';
// default language
// default_language default value = en_us
$default_language = 'en_us';
// add the language pack name to every translation string in the display.
// translation_string_prefix default value = false
$translation_string_prefix = false;
//Option to cache tabs permissions for speed.
$cache_tab_perms = true;
//Option to hide empty home blocks if no entries.
$display_empty_home_blocks = false;
//Disable Stat Tracking of vtiger CRM instance
$disable_stats_tracking = false;
// Generating Unique Application Key
$application_unique_key = '_VT_APP_UNIQKEY_';
// trim descriptions, titles in listviews to this value
$listview_max_textlength = 40;
// Maximum time limit for PHP script execution (in seconds)
$php_max_execution_time = 0;
// Set the default timezone as per your preference
//$default_timezone = '';
/** If timezone is configured, try to set it */
if(isset($default_timezone) && function_exists('date_default_timezone_set')) {
@date_default_timezone_set($default_timezone);
}
?>
+20
View File
@@ -0,0 +1,20 @@
<?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.
********************************************************************************/
$mysql_dir = 'MYSQLINSTALLDIR';
$mysql_username = 'MYSQLUSERNAME';
$mysql_password = 'MYSQLPASSWORD';
$mysql_port = 'MYSQLPORT';
$mysql_bundled = 'MYSQLBUNDLEDSTATUS';
$apache_dir = 'APACHEINSTALLDIR';
$apache_bin = 'APACHEBIN';
$apache_conf = 'APACHECONF';
$apache_port = 'APACHEPORT';
$apache_bundled = 'APACHEBUNDLED';
?>
+27
View File
@@ -0,0 +1,27 @@
<html>
<!--
/*********************************************************************************
** 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.
*
********************************************************************************/
-->
<head>
<title>Copyright</title>
<style type="text/css">
</style>
</head>
<body >
<table style="border:1px solid #ccccccc; font-family:Arial;" ><tr><td><font size='2'>This software is a collective work consisting of the following major Open Source components:<br>
Apache software, MySQL server, PHP, SugarCRM, ADOdb, Smarty, PHPMailer, phpSysinfo, MagpieRSS and others, each licensed under a separate Open Source License.
vtiger.com is not affiliated with nor endorsed by any of the above providers. See <a href='http://www.vtiger.com/copyrights/LICENSE_AGREEMENT.txt' class="copy" target="_blank">Copyrights </a> for details.);</font></td>
</tr>
</table>
</body>
</html>
+42
View File
@@ -0,0 +1,42 @@
[14-Jan-2010 20:50:01] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /home/hawebso1/public_html/logoworld/crm/install/CreateTables.php:34) in /home/hawebso1/public_html/logoworld/crm/install/CreateTables.inc.php on line 31
[14-Jan-2010 20:54:04] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/vtlib/Vtiger/PackageImport.php on line 124
[14-Jan-2010 20:54:04] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/vtlib/Vtiger/PackageImport.php on line 124
[14-Jan-2010 20:54:22] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/vtlib/Vtiger/PackageImport.php on line 124
[14-Jan-2010 20:54:23] PHP Warning: unlink(/home/hawebso1/public_html/logoworld/crm//test/vtlib/HTML/_notes) [<a href='function.unlink'>function.unlink</a>]: Is a directory in /home/hawebso1/public_html/logoworld/crm/include/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer.php on line 61
[04-Feb-2010 14:46:31] PHP Warning: fsockopen() [<a href='function.fsockopen'>function.fsockopen</a>]: unable to connect to :0 (Failed to parse address &quot;&quot;) in /home/hawebso1/public_html/logoworld/crm/modules/PBXManager/StartCall.php on line 36
[04-Feb-2010 14:46:31] PHP Warning: stream_set_blocking(): supplied argument is not a valid stream resource in /home/hawebso1/public_html/logoworld/crm/modules/PBXManager/StartCall.php on line 37
[04-Feb-2010 19:13:20] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9212566 bytes) in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 5359
[04-Feb-2010 19:34:58] PHP Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 9603780 bytes) in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 15664
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:42] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:25:43] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php:2828) in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 4131
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:04] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php:2828) in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 4131
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 2 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Missing argument 3 for TCPDF::Text(), called in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/pdf.php on line 401 and defined in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 2828
[04-Feb-2010 21:28:52] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php:2828) in /home/hawebso1/public_html/logoworld/crm/include/tcpdf/tcpdf.php on line 4131
[09-Feb-2010 15:29:49] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 15:29:49] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 15:34:53] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 15:37:41] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 15:40:34] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 15:44:34] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:43:36] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:45:00] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:46:11] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:46:12] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:49:29] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
[09-Feb-2010 16:56:03] PHP Warning: Invalid argument supplied for foreach() in /home/hawebso1/public_html/logoworld/crm/include/utils/CommonUtils.php on line 2675
+102
View File
@@ -0,0 +1,102 @@
<?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('class_http/class_http.php');
/** Function to get data from the external site
* @param $url -- url:: Type string
* @param $variable -- variable:: Type string
* @returns $desc -- desc:: Type string array
*
*/
function getComdata($url,$variable="")
{
$h = new http();
$desc = array();
$h->dir = "class_http_dir/";
if (!$h->fetch($url, 2)) {
echo "<h2>There is a problem with the http request!</h2>";
echo $h->log;
exit();
}
if($variable != "")
{
$msft_stats = http::table_into_array($h->body, 'Find Symbol', 0, null);
if($msft_stats != '')
{
$desc=$msft_stats[0];
$data=getQuoteData($variable);
if(is_array($data))
{
foreach($data as $key=>$value)
array_push($desc,$value);
return $desc;
}
else
{
die;
}
}
else
return "Information on ".$variable." is not available or '".$variable."' is not a valid ticker symbol.";
}
else
{
$headlines = array();
$news = http::table_into_array($h->body, 'HEADLINES',0, null);
if(is_array($news))
{
$headlines[] = $news[35];
$headlines[] = $news[37];
$headlines[] = $news[39];
$headlines[] = $news[41];
return $headlines;
}
else
return "No headlines available";
}
}
/** Function to get company quotes from external site
* @param $var -- var:: Type string(company trickersymbol)
* @returns $quote_data -- quote_data:: Type string array
*
*/
function getQuoteData($var)
{
$url = "http://finance.yahoo.com/q?s=".$var;
$h = new http();
$h->dir = "class_http_dir/";
if (!$h->fetch($url, 2)) {
echo "<h2>There is a problem with the http request!</h2>";
echo $h->log;
exit();
}
$res_arr=array();
$quote_data = http::table_into_array($h->body, 'Delayed quote data', 0, null);
if(is_array($quote_data))
{
array_shift($quote_data);
array_shift($quote_data);
if($quote_data[0][0]!= 'Last Trade:')
array_shift($quote_data);
}
else
{
die;
}
for($i=0;$i<16;$i++)
{
if($quote_data !='')
$res_arr[]=$quote_data[$i];
}
return $res_arr;
}
?>