<?php
	error_reporting(E_ALL ^ E_NOTICE);
	ini_set('date.timezone','Asia/Shanghai'); 
	//设置上海时间
	
	//----版本号参数
	$lsVer=2.55;
	$date="2013-02-25   19:02:01";
	
	//----SEO参数
	$seoFrefix2="Chinese";
	$seoFrefix1="China";
	$seoSufix2="Suppliers";
	$seoSufix1="Manufacture";
	$awstatsUrl="http://50.116.98.186:2082/awstats.pl?config=pma.lanscend.cn&ssl=&lang=cn";
	//----SEO参数end	
	
	//----控制参数
	$mainMenuStyle="Vertical";
	//主菜单风格可取值为：Vertical，Horizontal
	$proCateStytle="Full Expanded Vertical";	
	//产品菜单风格可取值为：Full Expanded Vertical, Popup Expanded Vertical, Hover Expended Vertical, Hover Drawer Horizontal, Icon List

	$titlePicW=900;												
	//主题图宽
	$titlePicH=300;												
	//主题图高

	$ls_classproType="selectPic";
	//  picIntro    product 菜单项链接文件{$ls_classpro} productlist.html 标签控制参数：pic 默认图片列表，picIntro: 图片加说明， cateList：产品分类展开列表，  selectPic 或者默认 后台每类选择图片 文字水命并排序
	$ls_classproPicW=180;
	//$ls_class缩略图宽
	$ls_classproPicH=180;
	//$ls_class缩略图高
	
	$ls_catepicsPicW=302;
	//首页多类产品滚动图片宽 function get_product_cate_pics in temp_index.php
	$ls_catepicsPicH=203;
	//首页多类产品滚动图片高
	
	$codeRetryTimes=2;
	//验证码出现前允许重试次数

	$cateDetailPageCreate=true;
	//类别介绍详细页面生成控制参数，是否生成还取决于是否有类别详细模版：true，false
	
	//定义新闻内容关联产品是否开启
	define(NEWS_CONNECTION,true);
	
	// 网站类型： 1、宣传型; 2、优化型; 3、营销型
	$vertype = 2;
	
	//----控制参数End
	
	$productSort="Num";    //产品排序
	$newsSort="Num";      //新闻的排序方式 按ID和Num
	//---- 产品管理参数
	$productshowstyle="list";
	//产品列表形式： gallary 相册方式(默认) 9 ，list 图片、产品和简要说明列表 6， name 只列产品名字 12， style4,style5
	$PageNum=9;														
	//每页产品数量
	$PageNum_pro_m =6;
	//手机产品每页数量
	$productBrowerNoOffset=3;							
	// 产品页数字导航偏移量
	$aboutLength = 650;  									
	//生成About us截取的长度
	$NewPageNum = 15;											
	//每页新闻数量
	$CertificatePageNum = 6;							
	//每页证书数量
	$WorkshopPageNum = 6;							
	//每页工厂数量
	$PageNumNews=20;											
	//每页新闻列表数量
	$PageNumDowbloads=20;									
	//每页下载列表数量
	$subFolder=false;											
	//默认不在子目录
	$FolderLength = 50;  									
	//生成文件夹名字截取的长度
	$SortingNum = 100;   									
	//排序初始值
	$PicSize =6000000;											
	//上传图片大小 单位为字节
	$BigFoldersProducts="images";						
	//上传产品图片大图文件夹名
	$SmallFoldersProducts="thumbnails";			
	//上传产品图片小图文件夹名
	$SmallPicW="188";
	//缩略图宽
	$SmallPicH="188";
	//缩略图高
	$showSmallPicW="188";
	//输出样式缩略图宽
	$showSmallPicH="188";
	//输出样式缩略图高
	$BigPicW="600";
	//大图宽
	$BigPicH="600";
	//大图高
	$showBigPicW="530";													
	//productsshow显示大图宽
	$showBigPicH="530";													
	//productsshow显示大图高
	$productPicsQuality=9;								
	//产品大图的图像质量
	$related_products_num = 10;
	//相关产品--前N个产品与后N个产品
	$autoPaddingProductPics=false;				
	//是否对产品大图进行自动补白
	$thumbnailQuality=9;									
	//缩略图的图像质量
	$autoPaddingThumbnails=true;					
	//是否自动对缩略图进行补白
	$autoPaddingColor=array("red"=>255,"green"=>255,"blue"=>255);		
	//自动补白的颜色
	$MotifFolders="motif";								
	//主题图片上传文件夹名
	$defaultMotifFolders="../ima/default.png";								
	//默认主题图片上传文件夹名
	$WorkShopFolders="workshop";
	//工厂图片上传文件夹名
	$videoFolders="video";
	//视频上传文件夹
	$QualitycateFolders="qualitycontrol";					
	//认证证书上传文件夹名
	$CertificateFolders="certificate";					
	//认证证书上传文件夹名
	$downloadFolders="download";								
	//下载文件上传文件夹名
	$downloadSize =20;											
	//下载文件大小 单位M为字节
	$qualitycontrolFolders="qualitycontrol";								
	//下载文件上传文件夹名
	$packingFolders="packing";	 							
	//下载文件上传文件夹名
	$rdFolders="rd";	 						
	//下载文件上传文件夹名
	$brandFolders="brand";	 						
	//下载文件上传文件夹名
	$managementFolders="management";	 						
	//下载文件上传文件夹名
	
	$revolvingpicsFolders="revolvingpics";
	$revolvingPicW=60;
	$revolvingPicH=60;
	//下载文件上传文件夹名
	
	$mainMenuSpliter="　|　";									
	//主菜单项之间分割符
	$SubCateMenuPrefix="&nbsp;&nbsp;&nbsp;";	
	//小类菜单前缀						
	$midCateMenuPrefix="&nbsp;";							
	//中类菜单前缀
	$minCateDetailLength=0;		
	//详细说明长度，大于此长度将显示，否则显示正常产品小图页面
	$CateMenuPrefix="";				
	//大类菜单前缀						
	$CateLength=500;					
	//类别描述长度 decription
	$cateIconPicW=180;				
	//图标宽度
	$cateIconPicH=60;					
	//图标高度
	$itemsLines=1;
	//货号行数
	$nameLines=1;
	//产品名行数
//	$specNames="CAS number,E number,EC number";
//	$specValue="0000-00-0,E000,000-000-0";
	$specNames="";
	$specValue="";
	//默认属性
	
	$linkIconPicWidth=240;
	$linkIconPicHeight=50;
	$BatchFiles=25;					
	// 批处理文件一次的数量
	$newsNum="12";
	//生成首页new 和problem 截取的个数
	$proNum=6;													
	//生成首页hot products 截取的个数
	$showproductsFolders="page";					
	//生成产品大图文件夹
	$newsshowFolders="newspage";					
	//生成新闻文件夹
	
	$problemshowFolders="problempage";					
	//生成新闻文件夹
					
	//生成移动新闻文件夹
	$pathuploadfiles="uploadfiles/";		
	//上传文件目录
	$Pagemessage=12;
	//反馈信息数量
	$usersNum=20; 
	//每页用户数量
	$teleNum=20; 
	//每页通信公司数量
	$productDescriptionTitle="Product Description";
	//产品详细标题

	//----水印参数
	$waterMarkPic="images/watermark";		
	//相对于ls_admin的水印图片的目录和文件名
	$waterMarkPicSmall="images/watermarksmall";	
	//相对于ls_admin的水印小图片的目录和文件名
	
	$logosPicFolder="images\logos";			
	//电信公司logo图片的目
	$waterMarkThumbnails=true;					
	//默认小图片输出
	//$waterMarkThumbnails=FALSE;				
	//默认小图片不输出
	//----水印参数end

	$relativeNewNum = 10;
	//相关新闻数量

	//----备份参数
	$backupSQLFile="backupdb/backup_db.sql";	
	//备份数据库生成的文件名
	$maxLenSQLStr=6400000;						
	//备份、恢复数据库时最大SQL串长度
	//----备份参数end

	//多语种翻译
	$current_url = $_SERVER['HTTP_HOST'];
	$language_array = array();
	$language_array['french'] = "http://translate.google.com/translate?langpair=en%7Cfr&u=".$current_url;
	$language_array['russian'] = "http://translate.google.com/translate?langpair=en%7Cru&u=".$current_url;
	$language_array['german'] = "http://translate.google.com/translate?langpair=en%7Cge&u=".$current_url;
	$language_array['spanish'] = "http://translate.google.com/translate?langpair=en%7Csp&u=".$current_url;
	$language_array['portuguese'] = "http://translate.google.com/translate?langpair=en%7Cpo&u=".$current_url;
	$language_array['italian'] = "http://translate.google.com/translate?langpair=en%7Cit&u=".$current_url;
	$language_array['japanese'] = "http://translate.google.com/translate?langpair=en%7Cja&u=".$current_url;
	$language_array['korean'] = "http://translate.google.com/translate?langpair=en%7Cko&u=".$current_url;
	$language_array['arabic'] = "http://translate.google.com/translate?langpair=en%7Car&u=".$current_url;
	$language_array['vietnamese'] = "http://translate.google.com/translate?langpair=en%7Cvi&u=".$current_url;
	$language_array['belarus'] = "http://translate.google.com/translate?langpair=en%7Cbe&u=".$current_url;
	$language_array['ukraine'] = "http://translate.google.com/translate?langpair=en%7Cuk&u=".$current_url;
	$language_array['poland'] = "http://translate.google.com/translate?langpair=en%7Cpo&u=".$current_url;

	//需要进行一般性（比如 singnup, indexuser.htm）生成的文件
	$generalCreateFiles=array("select.php","search.php","sendmail.php","checkbox.html","checkbox.php");
	//另外生成的页面
	$m_generalCreateFiles=array("map.html");
	//移动端另外生成的页面
	$generalCreateFilesMembers=array();
	//生成到member 文件夹下
	$generalCreateFilesAgents=array();		
	//生成到agnet 文件夹下

	//---facebook twitter 微博代码  <div class=\"addthis_toolbox addthis_default_style\"> 小图标  <div class=\"addthis_toolbox addthis_32x32_style addthis_default_style\">  大图标
	$facebook_twitter = "<div class='social'>
	<ul>
		<li><a href='YOUR-FACEBOOK' target=\"_blank\" ><img src='../ls_admin/images/social_ico/facebook.jpg' width='24' title='Follow on Facebook'/></a></li>
		<li><a href='YOUR-TWITTER' target=\"_blank\" ><img src='../ls_admin/images/social_ico/twitter.jpg'  width='24' title='Tweet'/></a></li>
		<li><a href='YOUR-LINKEDIN' target=\"_blank\" ><img src='../ls_admin/images/social_ico/linkedin.jpg'  width='24' title='Follow on LinkedIn'/></a></li>
		<li><a href='YOUR-GOOGLE' target=\"_blank\" ><img src='../ls_admin/images/social_ico/google+.jpg'  width='24' title='Follow on Google'/></a></li>
	</ul>
	</div>";

	//---facebook twitter 分享代码
	$facebook_twitter_share = "
<script type=\"text/javascript\">var switchTo5x=false;</script>
<script type=\"text/javascript\" src=\"http://w.sharethis.com/button/buttons.js\"></script>
<script type=\"text/javascript\">stLight.options({publisher: \"ur-e7ce4f47-f73f-369b-e701-8ed780e1437e\", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<span class='st_digg_large' displayText='Digg'></span>
<span class='st_reddit_large' displayText='Reddit'></span>
<span class='st_tumblr_large' displayText='Tumblr'></span>
<span class='st_mail_ru_large' displayText='mail.ru'></span>
<span class='st_myspace_large' displayText='MySpace'></span>";

	//----联系我们参数
	$sendmailFailMsg="SORRY, YOUR MESSAGE SENDING FAILURE.";
	$sendmailFailMsgcn="抱歉，您的反馈信息未能发出。";
	$sendmailOKMsg=" THANK YOU FOR CONTACTING US, OUR CUSTOMER SERVICE REPRESENTATIVE WILL CONTACT YOU WITHIN 24 HOURS. THANK YOU AGAIN! ";
	$sendmailOKMsgcn="谢谢，给我们的反馈信息已经发送，我们尽快和您取得联系。";
	
	$engineName="Lanscend WebMotor";
	$ls_designBy="<a href=\"http://www.lanscend.com\" target=\"_blank\"> Designed by lanscend</a>";

	$ContactAttach='
		<div><br><iframe width="650" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;hl=en&amp;geocode=&amp;time=&amp;date=&amp;ttype=&amp;q=shijiazhuang&amp;ie=UTF8&amp;om=0&amp;ll=40.010787,115.576172&amp;spn=4.057083,9.887695&amp;z=6&amp;output=embed&amp;s=AARTsJqjog8iSBSLNjlPFxYG9xF3Pr6KtA"></iframe>
</div><div>
		It is about 270 Kilomaters from Beijing to Shijiazhuang, 3 hours by car. <br>
		It is about 280 Kilomaters from Tianjin to Shijiazhuang, 4 hours by car. <br><br>
		Shijiazhuang, capital of Hebei Province, is situated 270 kilometers southwest 
		of Beijing. Bordering the Taihang Mountains in the west, it faces 
		the vast and rich North China Plain on its three other sides. It 
		is the intersection of the Beijing-Guangzhou, Shijiazhuang -Dezhou, 
		and Shijiazhuang-Taiyuan railway lines and one of the centers of 
		communications in China. It encompasses 15,653 square kilometres, 
		has a population of 8.75 million.</div>	';
	$ContactAttach_m='<div><br><img src="images/map.jpg" />
</div><div>
		It is about 270 Kilomaters from Beijing to Shijiazhuang, 3 hours by car. <br>
		It is about 280 Kilomaters from Tianjin to Shijiazhuang, 4 hours by car. <br><br>
		Shijiazhuang, capital of Hebei Province, is situated 270 kilometers southwest 
		of Beijing. Bordering the Taihang Mountains in the west, it faces 
		the vast and rich North China Plain on its three other sides. It 
		is the intersection of the Beijing-Guangzhou, Shijiazhuang -Dezhou, 
		and Shijiazhuang-Taiyuan railway lines and one of the centers of 
		communications in China. It encompasses 15,653 square kilometres, 
		has a population of 8.75 million.</div>	';
	//----联系我们参数end

	//----安装参数
	$generalCreateFiles1=array("links.html");	
	// 没有用户管理时一般性生成
	$generalCreateFiles2=array();							
	// 有用户管理时需要增加
	$initHost='localhost';
	$initDBName='test';
	$initDBUserName='root';
	$initDBPassword='ls8723';
	$initAdminPassword='admin';
	
	$initSmallPicHeight=150;
	$initSmallPicWidth=150;
	$initBigPicHigh=600;
	$initBigPicWidth=600;
	//----安装参数end
	
	
	//----日志参数
	$logStat='start';
	$logSpace=20000;
	$logPage=20;	
	$maxLogSpace=20000;
	//----日志参数end
	
	//----ls_mantain参数
	$initCreatTypeHost='192.168.2.20';
	//数据库主机
	//----ls_mantain参数end
	$templates_var="Templates1";
	
	$awstatsUrl="http://50.116.98.186:2082/awstats.pl?config=pma.lanscend.cn&ssl=&lang=cn";
	//访问统计网址
	
	//----移动终端参数设置
	$PageNum_m=5;    
	//移动客户端news分页控制页数
	$newsshowFolders_m="m/newspage_m";	
	$mobi_templates = "m/Templates_m1";
	$mobi_path = "m/";
	
	//----移动终端end
	
	//----insert flag9
	$localIp=$initCreatTypeHost;


	//----insert proNum
	$proplace="last";
?>