<?php
/*
$Id: nusoap.php,v 1.75 2004/05/05 12:15:04 snichol Exp $
NuSOAP - Web Services Toolkit for PHP
Copyright (c) 2002 NuSphere Corporation
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
If you have any questions or comments, please email:
Dietrich Ayala
dietrich@ganx4.com
http://dietrich.ganx4.com/nusoap
NuSphere Corporation
http://www.nusphere.com
*/
/* load classes
// necessary classes
require_once('class.soapclient.php');
require_once('class.soap_val.php');
require_once('class.soap_parser.php');
require_once('class.soap_fault.php');
// transport classes
require_once('class.soap_transport_http.php');
// optional add-on classes
require_once('class.xmlschema.php');
require_once('class.wsdl.php');
// server class
require_once('class.soap_server.php');*/
/**
*
* nusoap_base
*
* @author Dietrich Ayala <dietrich@ganx4.com>
* @version $Id: nusoap.php,v 1.75 2004/05/05 12:15:04 snichol Exp $
* @access public
*/
class nusoap_base {
var $title = 'NuSOAP';
var $version = '0.6.7';
var $revision = '$Revision: 1.75 $';
var $error_str = false;
var $debug_str = '';
// toggles automatic encoding of special characters as entities
// (should always be true, I think)
var $charencoding = true;
/**
* set schema version
*
* @var XMLSchemaVersion
* @access public
*/
var $XMLSchemaVersion = 'http://www.w3.org/2001/XMLSchema';
/**
* set charset encoding for outgoing messages
*
* @var soap_defencoding
* @access public
*/
//var $soap_defencoding = 'UTF-8';
var $soap_defencoding = 'ISO-8859-1';
/**
* load namespace uris into an array of uri => prefix
*
* @var namespaces
* @access public
*/
var $namespaces = array(
'SOAP-ENV' => 'http://schemas.xmlsoap.org/soap/envelope/',
'xsd' => 'http://www.w3.org/2001/XMLSchema',
'xsi' => 'http://www.w3.org/2001/XMLSchema-instance',
'SOAP-ENC' => 'http://schemas.xmlsoap.org/soap/encoding/',
'si' => 'http://soapinterop.org/xsd');
var $usedNamespaces = array();
/**
* load types into typemap array
* is this legacy yet?
* no, this is used by the xmlschema class to verify type => namespace mappings.
* @var typemap
* @access public
*/
var $typemap = array(
'http://www.w3.org/2001/XMLSchema' => array(
'string'=>'string','boolean'=>'boolean','float'=>'double','double'=>'double','decimal'=>'double',
'duration'=>'','dateTime'=>'string','time'=>'string','date'=>'string','gYearMonth'=>'',
'gYear'=>'','gMonthDay'=>'','gDay'=>'','gMonth'=>'','hexBinary'=>'string','base64Binary'=>'string',
// derived datatypes
'normalizedString'=>'string','token'=>'string','language'=>'','NMTOKEN'=>'','NMTOKENS'=>'','Name'=>'','NCName'=>'','ID'=>'',
'IDREF'=>'','IDREFS'=>'','ENTITY'=>'','ENTITIES'=>'','integer'=>'integer','nonPositiveInteger'=>'integer',
'negativeInteger'=>'integer','long'=>'integer','int'=>'integer','short'=>'integer','byte'=>'integer','nonNegativeInteger'=>'integer',
'unsignedLong'=>'','unsignedInt'=>'','unsignedShort'=>'','unsignedByte'=>'','positiveInteger'=>''),
'http://www.w3.org/1999/XMLSchema' => array(
'i4'=>'','int'=>'integer','boolean'=>'boolean','string'=>'string','double'=>'double',
'float'=>'double','dateTime'=>'string',
'timeInstant'=>'string','base64Binary'=>'string','base64'=>'string','ur-type'=>'array'),
'http://soapinterop.org/xsd' => array('SOAPStruct'=>'struct'),
'http://schemas.xmlsoap.org/soap/encoding/' => array('base64'=>'string','array'=>'array','Array'=>'array'),
'http://xml.apache.org/xml-soap' => array('Map')
);
/**
* entities to convert
*
* @var xmlEntities
* @access public
*/
var $xmlEntities = array('quot' => '"','amp' => '&',
'lt' => '<','gt' => '>','apos' => "'");
/**
* adds debug data to the class level debug string
*
* @param string $string debug data
* @access private
*/
function debug($string){
$this->debug_str .= get_class($this).": $string\n";
}
/**
* expands entities, e.g. changes '<' to '<'.
*
* @param string $val The string in which to expand entities.
* @access private
*/
function expandEntities($val) {
if ($this->charencoding) {
$val = str_replace('&', '&', $val);
$val = str_replace("'", ''', $val);
$val = str_replace('"', '"', $val);
$val = str_replace('<', '<', $val);
$val = str_replace('>', '>', $val);
}
return $val;
}
/**
* returns error string if present
*
* @return boolean $string error string
* @access public
*/
function getError(){
if($this->error_str != ''){
return $this->error_str;
}
return false;
}
/**
* sets error string
*
* @return boolean $string error string
* @access private
*/
function setError($str){
$this->error_str = $str;
}
/**
* detect if array is a simple array or a struct (associative array)
*
* @param $val The PHP array
* @return string (arraySimple|arrayStruct)
* @access private
*/
function isArraySimpleOrStruct($val) {
$keyList = array_keys($val);
foreach ($keyList as $keyListValue) {
if (!is_int($keyListValue)) {
return 'arrayStruct';
}
}
return 'arraySimple';
}
/**
* serializes PHP values in accordance w/ section 5. Type information is
* not serialized if $use == 'literal'.
*
* @return string
* @access public
*/
function serialize_val($val,$name=false,$type=false,$name_ns=false,$type_ns=false,$attributes=false,$use='encoded'){
if(is_object($val) && get_class($val) == 'soapval'){
return $val->serialize($use);
}
$this->debug( "in serialize_val: $val, $name, $type, $name_ns, $type_ns, $attributes, $use");
// if no name, use item
$name = (!$name|| is_numeric($name)) ? 'soapVal' : $name;
// if name has ns, add ns prefix to name
$xmlns = '';
if($name_ns){
$prefix = 'nu'.rand(1000,9999);
$name = $prefix.':'.$name;
$xmlns .= " xmlns:$prefix=\"$name_ns\"";
}
// if type is prefixed, create type prefix
if($type_ns != '' && $type_ns == $this->namespaces['xsd']){
// need to fix this. shouldn't default to xsd if no ns specified
// w/o checking against typemap
$type_prefix = 'xsd';
} elseif($type_ns){
$type_prefix = 'ns'.rand(1000,9999);
$xmlns .= " xmlns:$type_prefix=\"$type_ns\"";
}
// serialize attributes if present
$atts = '';
if($attributes){
foreach($attributes as $k => $v){
$atts .= " $k=\"$v\"";
}
}
// serialize if an xsd built-in primitive type
if($type != '' && isset($this->typemap[$this->XMLSchemaVersion][$type])){
if (is_bool($val)) {
if ($type == 'boolean') {
$val = $val ? 'true' : 'false';
} elseif (! $val) {
$val = 0;
}
} else if (is_string($val)) {
$val = $this->expandEntities($val);
}
if ($use == 'literal') {
return "<$name$xmlns>$val</$name>";
} else {
return "<$name$xmlns xsi:type=\"xsd:$type\">$val</$name>";
}
}
// detect type and serialize
$xml = '';
switch(true) {
case ($type == '' && is_null($val)):
if ($use == 'literal') {
// TODO: depends on nillable
$xml .= "<$name$xmlns/>";
} else {
$xml .= "<$name$xmlns xsi:nil=\"true\"/>";
}
break;
case (is_bool($val) || $type == 'boolean'):
if ($type == 'boolean') {
$
4069黑色宽屏响应式商业服务公司bootstrap模板5274_企业网站模板PHP整站源码.zip.7z
需积分: 0 43 浏览量
更新于2023-08-01
收藏 2.33MB 7Z 举报
标题中的“4069黑色宽屏响应式商业服务公司bootstrap模板5274_企业网站模板PHP整站源码.zip.7z”表明这是一个基于Bootstrap框架设计的商业服务公司网站模板,整体风格为黑色,并且是宽屏设计,具备响应式特性,能够适应不同设备的屏幕尺寸,提供良好的用户体验。此模板还包含了PHP整站源码,意味着它不仅有前端展示部分,还有后端逻辑代码,可以用于构建一个完整的网站。
描述中的内容与标题相同,进一步强调了这个资源的特性,即是一个响应式的商业服务公司网站模板,使用了Bootstrap框架,并且包含PHP整站源码。
标签“php 整站源码”揭示了这个模板的核心技术栈,PHP是一种广泛使用的服务器端脚本语言,尤其适合于Web开发,能与各种数据库连接。整站源码意味着用户获取到的是整个网站的所有代码,可以自由定制和修改,而不只是预览效果。
在压缩包子文件的文件名称列表中,只给出了“4069”,这可能是该模板的内部文件夹名或者序号,具体的内容和结构没有详细列出。通常情况下,一个完整的PHP整站源码会包含以下几个关键部分:
1. **HTML/CSS/JavaScript**:这是前端部分,HTML负责页面结构,CSS负责样式设计,JavaScript处理交互逻辑,Bootstrap框架提供了预设的样式和组件,简化了这部分工作。
2. **PHP文件**:后端的主要代码,处理HTTP请求,与数据库交互,执行业务逻辑。
3. **数据库文件**:可能包含SQL脚本,用于创建和初始化数据库结构,存储网站的数据。
4. **图片和其他媒体文件**:如logo、产品图片、背景音乐等,用于增强网站的视觉效果和用户体验。
5. **配置文件**:如`.ini`或`.php`格式,存储网站的配置信息,如数据库连接参数、网站设置等。
6. **其他辅助文件**:如`README`文档、许可证文件、示例数据等,帮助用户理解和使用模板。
要成功部署和运行这个模板,你需要有一个支持PHP运行的服务器环境(如Apache或Nginx搭配PHP-FPM),并且可能还需要MySQL或其他数据库系统来存储数据。在解压并上传所有文件到服务器后,根据配置文件进行必要的设置,然后通过浏览器访问即可查看和使用这个网站模板。对于不熟悉这些技术的用户,可能需要寻求开发人员的帮助。
qq_41146932
- 粉丝: 13
- 资源: 6306
最新资源
- libnftnl-1.0.8-3.el7.x64-86.rpm.tar.gz
- libnftnl-devel-1.0.8-3.el7.x64-86.rpm.tar.gz
- libnice-0.1.3-4.el7.x64-86.rpm.tar.gz
- libnice-devel-0.1.3-4.el7.x64-86.rpm.tar.gz
- libnl-1.1.4-3.el7.x64-86.rpm.tar.gz
- libnl-devel-1.1.4-3.el7.x64-86.rpm.tar.gz
- libnl3-3.2.28-4.el7.x64-86.rpm.tar.gz
- STM32三轴联动插补(直线圆弧带插补与加减速)源码解析,基于STM32F1与STM32F4平台,国外脱机雕刻机源码中文注释版,STM32 三轴联动 带插补 加减速 源代码 MDK 源码 分别基于ST
- libnl3-cli-3.2.28-4.el7.x64-86.rpm.tar.gz
- 台达PLC与中达电通触摸屏通讯程序:智能轮询四路仪表数据,实时监测功率与电流,独立四路报警输出,实用性强且具备自动逻辑流程,台达PLC通讯程序,PLC采用台达,触摸屏采用中达电通触摸屏软件编辑 和四
- libnl3-devel-3.2.28-4.el7.x64-86.rpm.tar.gz
- libnl3-doc-3.2.28-4.el7.x64-86.rpm.tar.gz
- libnm-gtk-1.8.6-2.el7.x64-86.rpm.tar.gz
- libnm-gtk-devel-1.8.6-2.el7.x64-86.rpm.tar.gz
- libnma-1.8.6-2.el7.x64-86.rpm.tar.gz
- CC智慧物业小程序-活动资源