<?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') {
$
3119大气漂亮休闲西餐厅bootstrap企业网站模板4951_企业网站模板PHP整站源码.zip.7z
需积分: 0 55 浏览量
更新于2023-08-01
收藏 2.07MB 7Z 举报
标题中的“3119大气漂亮休闲西餐厅bootstrap企业网站模板4951”表明这是一个专为休闲西餐厅设计的企业网站模板,采用Bootstrap框架构建。Bootstrap是目前非常流行的一个前端开发框架,它提供了丰富的预定义的CSS、JavaScript组件以及响应式布局设计,使得创建美观且适应各种设备屏幕大小的网站变得简单快捷。该模板的设计风格被描述为“大气漂亮”,这意味着它可能具有高质感的设计元素,如精致的图片、优雅的颜色搭配和吸引人的视觉效果,以提升西餐厅品牌形象。
“企业网站模板PHP整站源码”这部分说明这个模板不仅仅是一个静态的设计框架,它还包含了完整的PHP源代码,意味着可以作为一个动态网站进行部署和运行。PHP是一种广泛使用的服务器端脚本语言,尤其适用于Web开发,能够与数据库交互,提供动态内容生成,比如用户登录、订单处理等功能。整站源码的提供意味着开发者可以对网站的每一个细节进行自定义和修改,以满足特定的业务需求。
从“zip.7z”这个文件格式来看,这是一个经过双重压缩的文件,首先使用了ZIP压缩算法,然后使用7-Zip软件进行了进一步的压缩。7-Zip是一款开源的压缩工具,其压缩率通常比标准的ZIP格式更高,有助于减小文件体积,方便存储和传输。
结合“标签”“php 网站源码”,我们可以推测这个模板包含的PHP源码可能包括了数据库连接、用户接口、后端逻辑等功能,可能是基于MySQL或其他常见的PHP兼容数据库系统。开发者在使用时需要有一定的PHP编程基础,以便能理解和调整代码。此外,可能还需要了解HTML、CSS和JavaScript等基础知识,因为这些技术通常与PHP一起用于构建完整的Web应用程序。
这个压缩包提供了一个大气漂亮的休闲西餐厅网站模板,基于Bootstrap框架,内置PHP源码实现动态功能,适用于希望快速搭建或定制餐饮业网站的开发者。为了充分利用这个资源,你需要熟悉前端开发的Bootstrap框架,后端的PHP编程,以及如何解压和管理7z格式的文件。同时,理解数据库原理和SQL语言也将有助于更好地利用其中的PHP源码。


qq_41146932
- 粉丝: 13
- 资源: 6306
最新资源
- 冷库程序及PLC控制程序:十年稳定运行,含压缩机控制与保护、融霜处理等常规功能.pdf
- 千兆以太网FPGA TCPIP协议栈:支持ServerClient的TCP及UDP源码,Xilinx器件移植便捷.pdf
- COMSOL开关柜三维温度场、流体场及湿度场数值计算模型.pdf
- 松下FP-XHC60T标准中型程序:3C点胶设备专用,逻辑5千步,含昆仑通态触摸屏程序及多种功能.pdf
- No.247 S7-200 MCGS PLC自动门控制系统设计:包含梯形图程序、接线图原理图、IO分配及组态画面.pdf
- 基于Cordic算法的反正切C语言模块代码:输入x和y,输出Q15格式值.pdf
- 基于强化学习算法(Q-learning)的水库优化调度研究 '001.pdf
- 西门子S7 200 Smart与台达MS300变频器及欧姆龙E5CC温控器通讯程序.pdf
- 欧姆龙CP1H+CIF11与台达MS300变频器通讯程序:原创、实用、稳定可靠.pdf
- 西门子PLC程序MCGS组态六层电梯运动控制系统及其梯形图程序、接线图原理图与IO分配、组态画面详解.pdf
- 中央空调冷水机组及程序标准化,实现均衡磨损的模糊控制程序.pdf
- 西门子S7-1200PLC石灰反应釜程序详解:FB块设计、模拟量处理、电机控制与和利时DCS通讯.pdf
- 2018版MATLAB仿真模型:变频器(前端二极管整流+进线电抗器+预充电模块+母校电容均压电阻+永磁电机矢量控制模型)研发人员适用.pdf
- A星、遗传算法、RRT、模糊算法、PRM、Potential算法及Matlab路径规划集合.pdf
- 基于PLC的智能农业温室大棚控制系统:电气控制组态、梯形图程序及图解.pdf
- 近邻传播聚类算法(AP算法)Matlab代码:无需预设聚类数目与中心,操作便捷、准确度高、方法新颖.pdf