├── .htaccess ├── .idea ├── php.xml └── vcs.xml ├── Application ├── Bing │ ├── Common │ │ └── index.html │ ├── Conf │ │ ├── config.php │ │ └── index.html │ ├── Controller │ │ ├── AlipayJsapiController.class.php │ │ ├── AlipayPageController.class.php │ │ ├── AlipayWapController.class.php │ │ ├── JsapiController.class.php │ │ ├── MicroPayController.class.php │ │ ├── NativePayController.class.php │ │ ├── WebPayController.class.php │ │ └── index.html │ ├── Model │ │ └── index.html │ ├── View │ │ ├── Jsapi │ │ │ └── index.html │ │ ├── MicroPay │ │ │ └── index.html │ │ ├── NativePay │ │ │ └── index.html │ │ ├── alipayJsapi │ │ │ └── index.html │ │ └── index.html │ └── index.html ├── Common │ ├── Common │ │ └── index.html │ ├── Conf │ │ ├── config.php │ │ └── index.html │ ├── Controller │ │ ├── AlipayBaseController.class.php │ │ └── WxpayBaseController.class.php │ └── index.html ├── README.md └── index.html ├── README.md ├── ThinkPHP ├── Common │ └── functions.php ├── Conf │ ├── convention.php │ └── debug.php ├── LICENSE.txt ├── Lang │ ├── en-us.php │ ├── pt-br.php │ ├── zh-cn.php │ └── zh-tw.php ├── Library │ ├── Behavior │ │ ├── AgentCheckBehavior.class.php │ │ ├── BorisBehavior.class.php │ │ ├── BrowserCheckBehavior.class.php │ │ ├── BuildLiteBehavior.class.php │ │ ├── CheckActionRouteBehavior.class.php │ │ ├── CheckLangBehavior.class.php │ │ ├── ChromeShowPageTraceBehavior.class.php │ │ ├── ContentReplaceBehavior.class.php │ │ ├── CronRunBehavior.class.php │ │ ├── FireShowPageTraceBehavior.class.php │ │ ├── ParseTemplateBehavior.class.php │ │ ├── ReadHtmlCacheBehavior.class.php │ │ ├── RobotCheckBehavior.class.php │ │ ├── ShowPageTraceBehavior.class.php │ │ ├── ShowRuntimeBehavior.class.php │ │ ├── TokenBuildBehavior.class.php │ │ ├── UpgradeNoticeBehavior.class.php │ │ └── WriteHtmlCacheBehavior.class.php │ ├── Org │ │ ├── Net │ │ │ ├── Http.class.php │ │ │ └── IpLocation.class.php │ │ └── Util │ │ │ ├── ArrayList.class.php │ │ │ ├── CodeSwitch.class.php │ │ │ ├── Date.class.php │ │ │ ├── Rbac.class.php │ │ │ ├── Stack.class.php │ │ │ └── String.class.php │ ├── Think │ │ ├── App.class.php │ │ ├── Auth.class.php │ │ ├── Behavior.class.php │ │ ├── Build.class.php │ │ ├── Cache.class.php │ │ ├── Cache │ │ │ └── Driver │ │ │ │ ├── Apachenote.class.php │ │ │ │ ├── Apc.class.php │ │ │ │ ├── Db.class.php │ │ │ │ ├── Eaccelerator.class.php │ │ │ │ ├── File.class.php │ │ │ │ ├── Memcache.class.php │ │ │ │ ├── Memcached.class.php │ │ │ │ ├── Memcachesae.class.php │ │ │ │ ├── Redis.class.php │ │ │ │ ├── Shmop.class.php │ │ │ │ ├── Sqlite.class.php │ │ │ │ ├── Wincache.class.php │ │ │ │ └── Xcache.class.php │ │ ├── Controller.class.php │ │ ├── Controller │ │ │ ├── HproseController.class.php │ │ │ ├── JsonRpcController.class.php │ │ │ ├── RestController.class.php │ │ │ ├── RpcController.class.php │ │ │ └── YarController.class.php │ │ ├── Crypt.class.php │ │ ├── Crypt │ │ │ └── Driver │ │ │ │ ├── Base64.class.php │ │ │ │ ├── Crypt.class.php │ │ │ │ ├── Des.class.php │ │ │ │ ├── Think.class.php │ │ │ │ └── Xxtea.class.php │ │ ├── Db.class.php │ │ ├── Db │ │ │ ├── Driver.class.php │ │ │ ├── Driver │ │ │ │ ├── Firebird.class.php │ │ │ │ ├── Mongo.class.php │ │ │ │ ├── Mysql.class.php │ │ │ │ ├── Oracle.class.php │ │ │ │ ├── Pgsql.class.php │ │ │ │ ├── Sqlite.class.php │ │ │ │ └── Sqlsrv.class.php │ │ │ └── Lite.class.php │ │ ├── Dispatcher.class.php │ │ ├── Exception.class.php │ │ ├── Hook.class.php │ │ ├── Image.class.php │ │ ├── Image │ │ │ └── Driver │ │ │ │ ├── GIF.class.php │ │ │ │ ├── Gd.class.php │ │ │ │ └── Imagick.class.php │ │ ├── Log.class.php │ │ ├── Log │ │ │ └── Driver │ │ │ │ ├── File.class.php │ │ │ │ └── Sae.class.php │ │ ├── Model.class.php │ │ ├── Model │ │ │ ├── AdvModel.class.php │ │ │ ├── MergeModel.class.php │ │ │ ├── MongoModel.class.php │ │ │ ├── RelationModel.class.php │ │ │ └── ViewModel.class.php │ │ ├── Page.class.php │ │ ├── Route.class.php │ │ ├── Session │ │ │ └── Driver │ │ │ │ ├── Db.class.php │ │ │ │ ├── Memcache.class.php │ │ │ │ └── Mysqli.class.php │ │ ├── Storage.class.php │ │ ├── Storage │ │ │ └── Driver │ │ │ │ ├── File.class.php │ │ │ │ └── Sae.class.php │ │ ├── Template.class.php │ │ ├── Template │ │ │ ├── Driver │ │ │ │ ├── Ease.class.php │ │ │ │ ├── Lite.class.php │ │ │ │ ├── Mobile.class.php │ │ │ │ ├── Smart.class.php │ │ │ │ └── Smarty.class.php │ │ │ ├── TagLib.class.php │ │ │ └── TagLib │ │ │ │ ├── Cx.class.php │ │ │ │ └── Html.class.php │ │ ├── Think.class.php │ │ ├── Upload.class.php │ │ ├── Upload │ │ │ └── Driver │ │ │ │ ├── Bcs.class.php │ │ │ │ ├── Bcs │ │ │ │ ├── bcs.class.php │ │ │ │ ├── mimetypes.class.php │ │ │ │ └── requestcore.class.php │ │ │ │ ├── Ftp.class.php │ │ │ │ ├── Local.class.php │ │ │ │ ├── Qiniu.class.php │ │ │ │ ├── Qiniu │ │ │ │ └── QiniuStorage.class.php │ │ │ │ ├── Sae.class.php │ │ │ │ └── Upyun.class.php │ │ ├── Verify.class.php │ │ ├── Verify │ │ │ ├── bgs │ │ │ │ ├── 1.jpg │ │ │ │ ├── 2.jpg │ │ │ │ ├── 3.jpg │ │ │ │ ├── 4.jpg │ │ │ │ ├── 5.jpg │ │ │ │ ├── 6.jpg │ │ │ │ ├── 7.jpg │ │ │ │ └── 8.jpg │ │ │ └── ttfs │ │ │ │ ├── 1.ttf │ │ │ │ ├── 2.ttf │ │ │ │ ├── 3.ttf │ │ │ │ ├── 4.ttf │ │ │ │ ├── 5.ttf │ │ │ │ └── 6.ttf │ │ └── View.class.php │ └── Vendor │ │ ├── Boris │ │ ├── Boris.php │ │ ├── CLIOptionsHandler.php │ │ ├── ColoredInspector.php │ │ ├── Config.php │ │ ├── DumpInspector.php │ │ ├── EvalWorker.php │ │ ├── ExportInspector.php │ │ ├── Inspector.php │ │ ├── ReadlineClient.php │ │ └── ShallowParser.php │ │ ├── EaseTemplate │ │ ├── template.core.php │ │ └── template.ease.php │ │ ├── Hprose │ │ ├── HproseClassManager.php │ │ ├── HproseClient.php │ │ ├── HproseCommon.php │ │ ├── HproseFormatter.php │ │ ├── HproseHttpClient.php │ │ ├── HproseHttpServer.php │ │ ├── HproseIO.php │ │ ├── HproseIOStream.php │ │ ├── HproseReader.php │ │ ├── HproseTags.php │ │ └── HproseWriter.php │ │ ├── README.txt │ │ ├── SmartTemplate │ │ ├── class.smarttemplate.php │ │ ├── class.smarttemplatedebugger.php │ │ └── class.smarttemplateparser.php │ │ ├── Smarty │ │ ├── Smarty.class.php │ │ ├── SmartyBC.class.php │ │ ├── debug.tpl │ │ ├── plugins │ │ │ ├── block.textformat.php │ │ │ ├── function.counter.php │ │ │ ├── function.cycle.php │ │ │ ├── function.fetch.php │ │ │ ├── function.html_checkboxes.php │ │ │ ├── function.html_image.php │ │ │ ├── function.html_options.php │ │ │ ├── function.html_radios.php │ │ │ ├── function.html_select_date.php │ │ │ ├── function.html_select_time.php │ │ │ ├── function.html_table.php │ │ │ ├── function.mailto.php │ │ │ ├── function.math.php │ │ │ ├── modifier.capitalize.php │ │ │ ├── modifier.date_format.php │ │ │ ├── modifier.debug_print_var.php │ │ │ ├── modifier.escape.php │ │ │ ├── modifier.regex_replace.php │ │ │ ├── modifier.replace.php │ │ │ ├── modifier.spacify.php │ │ │ ├── modifier.truncate.php │ │ │ ├── modifiercompiler.cat.php │ │ │ ├── modifiercompiler.count_characters.php │ │ │ ├── modifiercompiler.count_paragraphs.php │ │ │ ├── modifiercompiler.count_sentences.php │ │ │ ├── modifiercompiler.count_words.php │ │ │ ├── modifiercompiler.default.php │ │ │ ├── modifiercompiler.escape.php │ │ │ ├── modifiercompiler.from_charset.php │ │ │ ├── modifiercompiler.indent.php │ │ │ ├── modifiercompiler.lower.php │ │ │ ├── modifiercompiler.noprint.php │ │ │ ├── modifiercompiler.string_format.php │ │ │ ├── modifiercompiler.strip.php │ │ │ ├── modifiercompiler.strip_tags.php │ │ │ ├── modifiercompiler.to_charset.php │ │ │ ├── modifiercompiler.unescape.php │ │ │ ├── modifiercompiler.upper.php │ │ │ ├── modifiercompiler.wordwrap.php │ │ │ ├── outputfilter.trimwhitespace.php │ │ │ ├── shared.escape_special_chars.php │ │ │ ├── shared.literal_compiler_param.php │ │ │ ├── shared.make_timestamp.php │ │ │ ├── shared.mb_str_replace.php │ │ │ ├── shared.mb_unicode.php │ │ │ ├── shared.mb_wordwrap.php │ │ │ └── variablefilter.htmlspecialchars.php │ │ └── sysplugins │ │ │ ├── smarty_cacheresource.php │ │ │ ├── smarty_cacheresource_custom.php │ │ │ ├── smarty_cacheresource_keyvaluestore.php │ │ │ ├── smarty_config_source.php │ │ │ ├── smarty_internal_cacheresource_file.php │ │ │ ├── smarty_internal_compile_append.php │ │ │ ├── smarty_internal_compile_assign.php │ │ │ ├── smarty_internal_compile_block.php │ │ │ ├── smarty_internal_compile_break.php │ │ │ ├── smarty_internal_compile_call.php │ │ │ ├── smarty_internal_compile_capture.php │ │ │ ├── smarty_internal_compile_config_load.php │ │ │ ├── smarty_internal_compile_continue.php │ │ │ ├── smarty_internal_compile_debug.php │ │ │ ├── smarty_internal_compile_eval.php │ │ │ ├── smarty_internal_compile_extends.php │ │ │ ├── smarty_internal_compile_for.php │ │ │ ├── smarty_internal_compile_foreach.php │ │ │ ├── smarty_internal_compile_function.php │ │ │ ├── smarty_internal_compile_if.php │ │ │ ├── smarty_internal_compile_include.php │ │ │ ├── smarty_internal_compile_include_php.php │ │ │ ├── smarty_internal_compile_insert.php │ │ │ ├── smarty_internal_compile_ldelim.php │ │ │ ├── smarty_internal_compile_nocache.php │ │ │ ├── smarty_internal_compile_private_block_plugin.php │ │ │ ├── smarty_internal_compile_private_function_plugin.php │ │ │ ├── smarty_internal_compile_private_modifier.php │ │ │ ├── smarty_internal_compile_private_object_block_function.php │ │ │ ├── smarty_internal_compile_private_object_function.php │ │ │ ├── smarty_internal_compile_private_print_expression.php │ │ │ ├── smarty_internal_compile_private_registered_block.php │ │ │ ├── smarty_internal_compile_private_registered_function.php │ │ │ ├── smarty_internal_compile_private_special_variable.php │ │ │ ├── smarty_internal_compile_rdelim.php │ │ │ ├── smarty_internal_compile_section.php │ │ │ ├── smarty_internal_compile_setfilter.php │ │ │ ├── smarty_internal_compile_while.php │ │ │ ├── smarty_internal_compilebase.php │ │ │ ├── smarty_internal_config.php │ │ │ ├── smarty_internal_config_file_compiler.php │ │ │ ├── smarty_internal_configfilelexer.php │ │ │ ├── smarty_internal_configfileparser.php │ │ │ ├── smarty_internal_data.php │ │ │ ├── smarty_internal_debug.php │ │ │ ├── smarty_internal_filter_handler.php │ │ │ ├── smarty_internal_function_call_handler.php │ │ │ ├── smarty_internal_get_include_path.php │ │ │ ├── smarty_internal_nocache_insert.php │ │ │ ├── smarty_internal_parsetree.php │ │ │ ├── smarty_internal_resource_eval.php │ │ │ ├── smarty_internal_resource_extends.php │ │ │ ├── smarty_internal_resource_file.php │ │ │ ├── smarty_internal_resource_php.php │ │ │ ├── smarty_internal_resource_registered.php │ │ │ ├── smarty_internal_resource_stream.php │ │ │ ├── smarty_internal_resource_string.php │ │ │ ├── smarty_internal_smartytemplatecompiler.php │ │ │ ├── smarty_internal_template.php │ │ │ ├── smarty_internal_templatebase.php │ │ │ ├── smarty_internal_templatecompilerbase.php │ │ │ ├── smarty_internal_templatelexer.php │ │ │ ├── smarty_internal_templateparser.php │ │ │ ├── smarty_internal_utility.php │ │ │ ├── smarty_internal_write_file.php │ │ │ ├── smarty_resource.php │ │ │ ├── smarty_resource_custom.php │ │ │ ├── smarty_resource_recompiled.php │ │ │ ├── smarty_resource_uncompiled.php │ │ │ └── smarty_security.php │ │ ├── TemplateLite │ │ ├── class.compiler.php │ │ ├── class.config.php │ │ ├── class.template.php │ │ └── internal │ │ │ ├── compile.compile_config.php │ │ │ ├── compile.compile_custom_block.php │ │ │ ├── compile.compile_custom_function.php │ │ │ ├── compile.compile_if.php │ │ │ ├── compile.generate_compiler_debug_output.php │ │ │ ├── compile.include.php │ │ │ ├── compile.parse_is_expr.php │ │ │ ├── compile.section_start.php │ │ │ ├── debug.tpl │ │ │ ├── template.build_dir.php │ │ │ ├── template.config_loader.php │ │ │ ├── template.destroy_dir.php │ │ │ ├── template.fetch_compile_include.php │ │ │ └── template.generate_debug_output.php │ │ ├── cbcalipay │ │ ├── AopSdk.php │ │ ├── aop │ │ │ ├── AlipayMobilePublicMultiMediaClient.php │ │ │ ├── AlipayMobilePublicMultiMediaExecute.php │ │ │ ├── AopClient.php │ │ │ ├── AopEncrypt.php │ │ │ ├── EncryptParseItem.php │ │ │ ├── EncryptResponseData.php │ │ │ ├── SignData.php │ │ │ ├── case │ │ │ │ ├── config.php │ │ │ │ ├── getTradeNo.php │ │ │ │ ├── getUserInfo.php │ │ │ │ ├── index.html │ │ │ │ ├── index.php │ │ │ │ ├── key │ │ │ │ │ ├── alipay_public_key.pem │ │ │ │ │ ├── alipay_public_key_2.pem │ │ │ │ │ ├── rsa_private_key.pem │ │ │ │ │ └── rsa_private_key_2.pem │ │ │ │ └── test.php │ │ │ ├── log.php │ │ │ ├── log.txt │ │ │ ├── request │ │ │ │ ├── AlipayAccountExrateAdviceAcceptRequest.php │ │ │ │ ├── AlipayAccountExrateAllclientrateQueryRequest.php │ │ │ │ ├── AlipayAccountExrateRatequeryRequest.php │ │ │ │ ├── AlipayAcquireCancelRequest.php │ │ │ │ ├── AlipayAcquireCloseRequest.php │ │ │ │ ├── AlipayAcquireCreateandpayRequest.php │ │ │ │ ├── AlipayAcquirePrecreateRequest.php │ │ │ │ ├── AlipayAcquireQueryRequest.php │ │ │ │ ├── AlipayAcquireRefundRequest.php │ │ │ │ ├── AlipayAppTokenGetRequest.php │ │ │ │ ├── AlipayAssetAccountBindRequest.php │ │ │ │ ├── AlipayAssetAccountGetRequest.php │ │ │ │ ├── AlipayAssetAccountUnbindRequest.php │ │ │ │ ├── AlipayAssetPointBalanceQueryRequest.php │ │ │ │ ├── AlipayAssetPointBudgetQueryRequest.php │ │ │ │ ├── AlipayAssetPointOrderCreateRequest.php │ │ │ │ ├── AlipayAssetPointOrderQueryRequest.php │ │ │ │ ├── AlipayBossCsChannelQueryRequest.php │ │ │ │ ├── AlipayBossProdArrangementOfflineQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorCityQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorDepositCancelRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorDepositConfirmRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorDepositQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorFunctionQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorScriptQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorStationQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherBatchqueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherCancelRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherConfirmRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherGenerateRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherQueryRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherRefundRequest.php │ │ │ │ ├── AlipayCommerceCityfacilitatorVoucherUploadRequest.php │ │ │ │ ├── AlipayCommerceDataSendRequest.php │ │ │ │ ├── AlipayCommerceEducateStudentinfoShareRequest.php │ │ │ │ ├── AlipayCommerceMedicalCardQueryRequest.php │ │ │ │ ├── AlipayCommerceMedicalInstcardBindRequest.php │ │ │ │ ├── AlipayCommerceMedicalInstcardCreateandpayRequest.php │ │ │ │ ├── AlipayCommerceTransportOfflinepayKeyQueryRequest.php │ │ │ │ ├── AlipayCommerceTransportOfflinepayRecordVerifyRequest.php │ │ │ │ ├── AlipayCommerceTransportOfflinepayUserblacklistQueryRequest.php │ │ │ │ ├── AlipayDataBillDownloadurlGetRequest.php │ │ │ │ ├── AlipayDataDataexchangeSfasdfRequest.php │ │ │ │ ├── AlipayDataDataserviceBillDownloadurlQueryRequest.php │ │ │ │ ├── AlipayDataDataserviceChinaremodelQueryRequest.php │ │ │ │ ├── AlipayDataDataserviceCodeRecoRequest.php │ │ │ │ ├── AlipayDataDataserviceSdfsdfRequest.php │ │ │ │ ├── AlipayDataDataserviceUserlevelZrankGetRequest.php │ │ │ │ ├── AlipayEbppBillAddRequest.php │ │ │ │ ├── AlipayEbppBillBatchPayurlGetRequest.php │ │ │ │ ├── AlipayEbppBillGetRequest.php │ │ │ │ ├── AlipayEbppBillPayRequest.php │ │ │ │ ├── AlipayEbppBillPayurlGetRequest.php │ │ │ │ ├── AlipayEbppBillSearchRequest.php │ │ │ │ ├── AlipayEbppMerchantConfigGetRequest.php │ │ │ │ ├── AlipayEbppPdeductBillPayStatusRequest.php │ │ │ │ ├── AlipayEbppPdeductPayRequest.php │ │ │ │ ├── AlipayEbppPdeductSignAddRequest.php │ │ │ │ ├── AlipayEbppPdeductSignCancelRequest.php │ │ │ │ ├── AlipayEbppPdeductSignQueryRequest.php │ │ │ │ ├── AlipayEcapiprodCreditGetRequest.php │ │ │ │ ├── AlipayEcapiprodDataPutRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnContractGetRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnDrawndnlistQueryRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnFeerecordQueryRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnLendingrecordQueryRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnPaymentscheduleGetRequest.php │ │ │ │ ├── AlipayEcapiprodDrawndnRepaymentrecordQueryRequest.php │ │ │ │ ├── AlipayEcardEduPublicBindRequest.php │ │ │ │ ├── AlipayEcoCplifeBillBatchUploadRequest.php │ │ │ │ ├── AlipayEcoCplifeBillSyncRequest.php │ │ │ │ ├── AlipayEcoCplifeRepairStatusUpdateRequest.php │ │ │ │ ├── AlipayEcoCplifeUseridentityStatusUpdateRequest.php │ │ │ │ ├── AlipayEcoMycarCarlibInfoPushRequest.php │ │ │ │ ├── AlipayEcoMycarDataExternalQueryRequest.php │ │ │ │ ├── AlipayEcoMycarDataExternalSendRequest.php │ │ │ │ ├── AlipayEcoMycarDataserviceMaintainvehicleShareRequest.php │ │ │ │ ├── AlipayEcoMycarDataserviceViolationinfoShareRequest.php │ │ │ │ ├── AlipayEcoMycarMaintainDataUpdateRequest.php │ │ │ │ ├── AlipayEcoMycarMaintainOrderCreateRequest.php │ │ │ │ ├── AlipayEcoMycarMaintainOrderstatusUpdateRequest.php │ │ │ │ ├── AlipayEcoMycarOrderRefundRequest.php │ │ │ │ ├── AlipayEcoMycarOrderStatusQueryRequest.php │ │ │ │ ├── AlipayEcoMycarParkingCardbarcodeCreateRequest.php │ │ │ │ ├── AlipayEcoMycarParkingEnterinfoSyncRequest.php │ │ │ │ ├── AlipayEcoMycarParkingExitinfoSyncRequest.php │ │ │ │ ├── AlipayEcoMycarParkingLotbarcodeCreateRequest.php │ │ │ │ ├── AlipayEcoMycarParkingOrderstatusQueryRequest.php │ │ │ │ ├── AlipayEcoMycarParkingParkinglotinfoCreateRequest.php │ │ │ │ ├── AlipayEcoMycarParkingParkinglotinfoUpdateRequest.php │ │ │ │ ├── AlipayEcoMycarPromoTicketPushRequest.php │ │ │ │ ├── AlipayEcoMycarPromoTicketSyncRequest.php │ │ │ │ ├── AlipayEcoMycarPromoVoucherVerifyRequest.php │ │ │ │ ├── AlipayEcoMycarTradeRefundRequest.php │ │ │ │ ├── AlipayEcoMycarViolationCityPushRequest.php │ │ │ │ ├── AlipayEcoMycarViolationInfoPushRequest.php │ │ │ │ ├── AlipayExscUserCurrentsignGetRequest.php │ │ │ │ ├── AlipayExscUserFirstfundinpourGetRequest.php │ │ │ │ ├── AlipayExscUserFirstsignGetRequest.php │ │ │ │ ├── AlipayFlashsalesStockSyncUpdateRequest.php │ │ │ │ ├── AlipayInsAutoCarSaveRequest.php │ │ │ │ ├── AlipayInsSceneApplicationApplyRequest.php │ │ │ │ ├── AlipayInsSceneApplicationQueryRequest.php │ │ │ │ ├── AlipayMappprodAccountBindingSyncRequest.php │ │ │ │ ├── AlipayMarketingCampaignActivityOfflineCreateRequest.php │ │ │ │ ├── AlipayMarketingCampaignActivityOfflineTriggerRequest.php │ │ │ │ ├── AlipayMarketingCampaignCertCreateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountBudgetAppendRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountBudgetCreateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountBudgetQueryRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountOperateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountQueryRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountStatusUpdateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountWhitelistQueryRequest.php │ │ │ │ ├── AlipayMarketingCampaignDiscountWhitelistUpdateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampCreateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampQueryRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampStatusUpdateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampTriggerRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampUpdateRequest.php │ │ │ │ ├── AlipayMarketingCampaignDrawcampWhitelistCreateRequest.php │ │ │ │ ├── AlipayMarketingCampaignPrizeAmountQueryRequest.php │ │ │ │ ├── AlipayMarketingCardDeleteRequest.php │ │ │ │ ├── AlipayMarketingCardOpenRequest.php │ │ │ │ ├── AlipayMarketingCardQueryRequest.php │ │ │ │ ├── AlipayMarketingCardTemplateCreateRequest.php │ │ │ │ ├── AlipayMarketingCardTemplateModifyRequest.php │ │ │ │ ├── AlipayMarketingCardTemplateQueryRequest.php │ │ │ │ ├── AlipayMarketingCardUpdateRequest.php │ │ │ │ ├── AlipayMarketingCdpAdvertiseCreateRequest.php │ │ │ │ ├── AlipayMarketingCdpAdvertiseModifyRequest.php │ │ │ │ ├── AlipayMarketingCdpAdvertiseOperateRequest.php │ │ │ │ ├── AlipayMarketingCdpAdvertiseQueryRequest.php │ │ │ │ ├── AlipayMarketingCdpAdvertiseReportQueryRequest.php │ │ │ │ ├── AlipayMarketingCdpRecommendQueryRequest.php │ │ │ │ ├── AlipayMdataTagGetRequest.php │ │ │ │ ├── AlipayMemberCardDeletecardRequest.php │ │ │ │ ├── AlipayMemberCardOpenRequest.php │ │ │ │ ├── AlipayMemberCardQueryRequest.php │ │ │ │ ├── AlipayMemberConsumeNotifyRequest.php │ │ │ │ ├── AlipayMemberCouponQuerylistRequest.php │ │ │ │ ├── AlipayMicropayOrderConfirmpayurlGetRequest.php │ │ │ │ ├── AlipayMicropayOrderDirectPayRequest.php │ │ │ │ ├── AlipayMicropayOrderFreezeRequest.php │ │ │ │ ├── AlipayMicropayOrderFreezepayurlGetRequest.php │ │ │ │ ├── AlipayMicropayOrderGetRequest.php │ │ │ │ ├── AlipayMicropayOrderUnfreezeRequest.php │ │ │ │ ├── AlipayMobileBeaconDeviceAddRequest.php │ │ │ │ ├── AlipayMobileBeaconDeviceDeleteRequest.php │ │ │ │ ├── AlipayMobileBeaconDeviceModifyRequest.php │ │ │ │ ├── AlipayMobileBeaconDeviceQueryRequest.php │ │ │ │ ├── AlipayMobileBeaconMessageSendRequest.php │ │ │ │ ├── AlipayMobileBksigntokenVerifyRequest.php │ │ │ │ ├── AlipayMobileCodeCreateRequest.php │ │ │ │ ├── AlipayMobileCodeQueryRequest.php │ │ │ │ ├── AlipayMobileDeviceinfoDynamicinfoAddRequest.php │ │ │ │ ├── AlipayMobilePublicAccountAddRequest.php │ │ │ │ ├── AlipayMobilePublicAccountDeleteRequest.php │ │ │ │ ├── AlipayMobilePublicAccountQueryRequest.php │ │ │ │ ├── AlipayMobilePublicAccountResetRequest.php │ │ │ │ ├── AlipayMobilePublicAppinfoUpdateRequest.php │ │ │ │ ├── AlipayMobilePublicContactFollowListRequest.php │ │ │ │ ├── AlipayMobilePublicFollowListRequest.php │ │ │ │ ├── AlipayMobilePublicGisGetRequest.php │ │ │ │ ├── AlipayMobilePublicInfoModifyRequest.php │ │ │ │ ├── AlipayMobilePublicInfoQueryRequest.php │ │ │ │ ├── AlipayMobilePublicLabelAddRequest.php │ │ │ │ ├── AlipayMobilePublicLabelDeleteRequest.php │ │ │ │ ├── AlipayMobilePublicLabelQueryRequest.php │ │ │ │ ├── AlipayMobilePublicLabelUpdateRequest.php │ │ │ │ ├── AlipayMobilePublicLabelUserAddRequest.php │ │ │ │ ├── AlipayMobilePublicLabelUserDeleteRequest.php │ │ │ │ ├── AlipayMobilePublicLabelUserQueryRequest.php │ │ │ │ ├── AlipayMobilePublicMenuAddRequest.php │ │ │ │ ├── AlipayMobilePublicMenuDeleteRequest.php │ │ │ │ ├── AlipayMobilePublicMenuGetRequest.php │ │ │ │ ├── AlipayMobilePublicMenuQueryRequest.php │ │ │ │ ├── AlipayMobilePublicMenuUpdateRequest.php │ │ │ │ ├── AlipayMobilePublicMenuUserQueryRequest.php │ │ │ │ ├── AlipayMobilePublicMenuUserUpdateRequest.php │ │ │ │ ├── AlipayMobilePublicMessageCustomSendRequest.php │ │ │ │ ├── AlipayMobilePublicMessageLabelSendRequest.php │ │ │ │ ├── AlipayMobilePublicMessagePushRequest.php │ │ │ │ ├── AlipayMobilePublicMessageSingleSendRequest.php │ │ │ │ ├── AlipayMobilePublicMessageTotalSendRequest.php │ │ │ │ ├── AlipayMobilePublicMessagebatchPushRequest.php │ │ │ │ ├── AlipayMobilePublicMessagespecifyPushRequest.php │ │ │ │ ├── AlipayMobilePublicMockListsmlistApiRequest.php │ │ │ │ ├── AlipayMobilePublicQrcodeCreateRequest.php │ │ │ │ ├── AlipayMobilePublicShortlinkCreateRequest.php │ │ │ │ ├── AlipayMobilePublicStdMockListsmlistApiRequest.php │ │ │ │ ├── AlipayMobilePublicTemplateMessageDeleteRequest.php │ │ │ │ ├── AlipayMobilePublicTemplateMessageGetRequest.php │ │ │ │ ├── AlipayMobilePublicTemplateMessageModifyRequest.php │ │ │ │ ├── AlipayMobilePublicTemplateMessageQueryRequest.php │ │ │ │ ├── AlipayMobileRecommendGetRequest.php │ │ │ │ ├── AlipayMobileShakeUserQueryRequest.php │ │ │ │ ├── AlipayMobileStdPublicAccountQueryRequest.php │ │ │ │ ├── AlipayMobileStdPublicExpressUserQueryRequest.php │ │ │ │ ├── AlipayMobileStdPublicFollowListRequest.php │ │ │ │ ├── AlipayMobileStdPublicMenuQueryRequest.php │ │ │ │ ├── AlipayMobileStdPublicMessageCustomSendRequest.php │ │ │ │ ├── AlipayMpointprodBenefitDetailGetRequest.php │ │ │ │ ├── AlipayMsaasMediarecogVoiceMediaaudioUploadRequest.php │ │ │ │ ├── AlipayMsaasPromotionCpainfoCreateRequest.php │ │ │ │ ├── AlipayOfflineMarketApplyorderBatchqueryRequest.php │ │ │ │ ├── AlipayOfflineMarketItemCreateRequest.php │ │ │ │ ├── AlipayOfflineMarketItemModifyRequest.php │ │ │ │ ├── AlipayOfflineMarketItemStateRequest.php │ │ │ │ ├── AlipayOfflineMarketLeadsBatchqueryRequest.php │ │ │ │ ├── AlipayOfflineMarketLeadsQrcodeQueryRequest.php │ │ │ │ ├── AlipayOfflineMarketMcommentQueryRequest.php │ │ │ │ ├── AlipayOfflineMarketProductBatchqueryRequest.php │ │ │ │ ├── AlipayOfflineMarketProductQuerydetailRequest.php │ │ │ │ ├── AlipayOfflineMarketProductUsedetailRequest.php │ │ │ │ ├── AlipayOfflineMarketReportGetRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumBindRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumCreateRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumDeleteRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumModifyRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumQueryRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAlbumUnbindRequest.php │ │ │ │ ├── AlipayOfflineMarketShopApplyorderCancelRequest.php │ │ │ │ ├── AlipayOfflineMarketShopAssignstaffRequest.php │ │ │ │ ├── AlipayOfflineMarketShopBatchqueryRequest.php │ │ │ │ ├── AlipayOfflineMarketShopCreateRequest.php │ │ │ │ ├── AlipayOfflineMarketShopDiscountQueryRequest.php │ │ │ │ ├── AlipayOfflineMarketShopModifyRequest.php │ │ │ │ ├── AlipayOfflineMarketShopPublicBindRequest.php │ │ │ │ ├── AlipayOfflineMarketShopPublicUnbindRequest.php │ │ │ │ ├── AlipayOfflineMarketShopQuerydetailRequest.php │ │ │ │ ├── AlipayOfflineMarketShopSummaryBatchqueryRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherCodeUploadRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherCreateRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherModifyRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherOfflineRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherStatusQueryRequest.php │ │ │ │ ├── AlipayOfflineMarketingVoucherUseRequest.php │ │ │ │ ├── AlipayOfflineMaterialImageDownloadRequest.php │ │ │ │ ├── AlipayOfflineMaterialImageModifyRequest.php │ │ │ │ ├── AlipayOfflineMaterialImageQueryRequest.php │ │ │ │ ├── AlipayOfflineMaterialImageUploadRequest.php │ │ │ │ ├── AlipayOfflineProviderEquipmentAuthQuerybypageRequest.php │ │ │ │ ├── AlipayOfflineProviderEquipmentAuthRemoveRequest.php │ │ │ │ ├── AlipayOfflineProviderQuerystaffRequest.php │ │ │ │ ├── AlipayOfflineProviderShopactionRecordRequest.php │ │ │ │ ├── AlipayOfflineProviderStaffUpdateRequest.php │ │ │ │ ├── AlipayOfflineProviderUseractionRecordRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsClaimstatusRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsContractconfirmRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsInfoAddRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsInfoQuerybypageRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsMerchantEquipmentQueryRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsModifyRequest.php │ │ │ │ ├── AlipayOfflineSaleleadsQuerybyidsRequest.php │ │ │ │ ├── AlipayOpenAppCodetesttestRequest.php │ │ │ │ ├── AlipayOpenAppPackagetestRequest.php │ │ │ │ ├── AlipayOpenAuthIndustryPlatformCreateTokenRequest.php │ │ │ │ ├── AlipayOpenAuthTokenAppQueryRequest.php │ │ │ │ ├── AlipayOpenAuthTokenAppRequest.php │ │ │ │ ├── AlipayOpenPublicAccountCreateRequest.php │ │ │ │ ├── AlipayOpenPublicAccountDeleteRequest.php │ │ │ │ ├── AlipayOpenPublicAccountQueryRequest.php │ │ │ │ ├── AlipayOpenPublicAccountResetRequest.php │ │ │ │ ├── AlipayOpenPublicContactFollowBatchqueryRequest.php │ │ │ │ ├── AlipayOpenPublicFollowBatchqueryRequest.php │ │ │ │ ├── AlipayOpenPublicGisQueryRequest.php │ │ │ │ ├── AlipayOpenPublicInfoModifyRequest.php │ │ │ │ ├── AlipayOpenPublicInfoQueryRequest.php │ │ │ │ ├── AlipayOpenPublicLabelCreateRequest.php │ │ │ │ ├── AlipayOpenPublicLabelDeleteRequest.php │ │ │ │ ├── AlipayOpenPublicLabelModifyRequest.php │ │ │ │ ├── AlipayOpenPublicLabelQueryRequest.php │ │ │ │ ├── AlipayOpenPublicLabelUserCreateRequest.php │ │ │ │ ├── AlipayOpenPublicLabelUserDeleteRequest.php │ │ │ │ ├── AlipayOpenPublicLabelUserQueryRequest.php │ │ │ │ ├── AlipayOpenPublicLifeAccountCreateRequest.php │ │ │ │ ├── AlipayOpenPublicLifeMsgRecallRequest.php │ │ │ │ ├── AlipayOpenPublicLifeMsgSendRequest.php │ │ │ │ ├── AlipayOpenPublicMenuCreateRequest.php │ │ │ │ ├── AlipayOpenPublicMenuModifyRequest.php │ │ │ │ ├── AlipayOpenPublicMenuQueryRequest.php │ │ │ │ ├── AlipayOpenPublicMessageCustomSendRequest.php │ │ │ │ ├── AlipayOpenPublicMessageLabelSendRequest.php │ │ │ │ ├── AlipayOpenPublicMessageSingleSendRequest.php │ │ │ │ ├── AlipayOpenPublicMessageTotalSendRequest.php │ │ │ │ ├── AlipayOpenPublicMultimediaDownloadProxyRequest.php │ │ │ │ ├── AlipayOpenPublicPartnerMenuOperateRequest.php │ │ │ │ ├── AlipayOpenPublicPartnerMenuQueryRequest.php │ │ │ │ ├── AlipayOpenPublicPartnerSubscribeSyncRequest.php │ │ │ │ ├── AlipayOpenPublicQrcodeCreateRequest.php │ │ │ │ ├── AlipayOpenPublicShortlinkCreateRequest.php │ │ │ │ ├── AlipayOpenPublicTemplateMessageGetRequest.php │ │ │ │ ├── AlipayOpenPublicTemplateMessageIndustryModifyRequest.php │ │ │ │ ├── AlipayOpenPublicThirdCustomerServiceRequest.php │ │ │ │ ├── AlipayOpenServicemarketCommodityShopOfflineRequest.php │ │ │ │ ├── AlipayOpenServicemarketCommodityShopOnlineRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderAcceptRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderItemCancelRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderItemCompleteRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderItemConfirmRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderNotifyRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderQueryRequest.php │ │ │ │ ├── AlipayOpenServicemarketOrderRejectRequest.php │ │ │ │ ├── AlipayOperatorMobileBindRequest.php │ │ │ │ ├── AlipayPassCodeAddRequest.php │ │ │ │ ├── AlipayPassCodeVerifyRequest.php │ │ │ │ ├── AlipayPassFileAddRequest.php │ │ │ │ ├── AlipayPassInstanceAddRequest.php │ │ │ │ ├── AlipayPassInstanceUpdateRequest.php │ │ │ │ ├── AlipayPassSyncAddRequest.php │ │ │ │ ├── AlipayPassSyncUpdateRequest.php │ │ │ │ ├── AlipayPassTemplateAddRequest.php │ │ │ │ ├── AlipayPassTemplateUpdateRequest.php │ │ │ │ ├── AlipayPassTplAddRequest.php │ │ │ │ ├── AlipayPassTplContentAddRequest.php │ │ │ │ ├── AlipayPassTplContentUpdateRequest.php │ │ │ │ ├── AlipayPassTplUpdateRequest.php │ │ │ │ ├── AlipayPassVerifyQueryRequest.php │ │ │ │ ├── AlipayPcreditHuabeiPromoQueryRequest.php │ │ │ │ ├── AlipayPcreditLoanApplyCreateRequest.php │ │ │ │ ├── AlipayPcreditLoanRefundCreateRequest.php │ │ │ │ ├── AlipayPlatformOpenidGetRequest.php │ │ │ │ ├── AlipayPlatformUseridGetRequest.php │ │ │ │ ├── AlipayPointBalanceGetRequest.php │ │ │ │ ├── AlipayPointBudgetGetRequest.php │ │ │ │ ├── AlipayPointOrderAddRequest.php │ │ │ │ ├── AlipayPointOrderGetRequest.php │ │ │ │ ├── AlipayPromorulecenterRuleAnalyzeRequest.php │ │ │ │ ├── AlipaySecurityInfoAnalysisRequest.php │ │ │ │ ├── AlipaySecurityProdAlipaySecurityProdTestRequest.php │ │ │ │ ├── AlipaySecurityProdAmlriskQueryRequest.php │ │ │ │ ├── AlipaySecurityProdFacerepoAddRequest.php │ │ │ │ ├── AlipaySecurityProdFacerepoSearchRequest.php │ │ │ │ ├── AlipaySecurityRiskDetectRequest.php │ │ │ │ ├── AlipaySecurityRiskHideDeviceidQueryRequest.php │ │ │ │ ├── AlipaySecurityRiskRainscoreQueryRequest.php │ │ │ │ ├── AlipaySiteprobeDeviceInfoAddRequest.php │ │ │ │ ├── AlipaySiteprobeDeviceInfoDeleteRequest.php │ │ │ │ ├── AlipaySiteprobeDeviceInfoGetRequest.php │ │ │ │ ├── AlipaySiteprobeDeviceInfoSearchRequest.php │ │ │ │ ├── AlipaySiteprobeDeviceInfoUpdateRequest.php │ │ │ │ ├── AlipaySiteprobeShopInfoAddRequest.php │ │ │ │ ├── AlipaySiteprobeShopInfoDeleteRequest.php │ │ │ │ ├── AlipaySiteprobeShopInfoGetRequest.php │ │ │ │ ├── AlipaySiteprobeShopInfoUpdateRequest.php │ │ │ │ ├── AlipaySiteprobeShopPublicBindRequest.php │ │ │ │ ├── AlipaySiteprobeShopPublicUnbindRequest.php │ │ │ │ ├── AlipaySiteprobeUserInfoGetRequest.php │ │ │ │ ├── AlipaySystemOauthTokenRequest.php │ │ │ │ ├── AlipayTradeAppPayRequest.php │ │ │ │ ├── AlipayTradeCancelRequest.php │ │ │ │ ├── AlipayTradeCloseRequest.php │ │ │ │ ├── AlipayTradeCreateRequest.php │ │ │ │ ├── AlipayTradeFastpayRefundQueryRequest.php │ │ │ │ ├── AlipayTradeOrderSettleRequest.php │ │ │ │ ├── AlipayTradePagePayRequest.php │ │ │ │ ├── AlipayTradePayRequest.php │ │ │ │ ├── AlipayTradePrecreateRequest.php │ │ │ │ ├── AlipayTradeQueryRequest.php │ │ │ │ ├── AlipayTradeRefundRequest.php │ │ │ │ ├── AlipayTradeVendorpayDevicedataUploadRequest.php │ │ │ │ ├── AlipayTradeWapPayRequest.php │ │ │ │ ├── AlipayTransferThirdpartyBillCreateRequest.php │ │ │ │ ├── AlipayTrustUserAuthSendRequest.php │ │ │ │ ├── AlipayTrustUserReportGetRequest.php │ │ │ │ ├── AlipayTrustUserRiskSummaryGetRequest.php │ │ │ │ ├── AlipayTrustUserRiskidentifyGetRequest.php │ │ │ │ ├── AlipayTrustUserScoreGetRequest.php │ │ │ │ ├── AlipayTrustUserStandardVerifyGetRequest.php │ │ │ │ ├── AlipayTrustUserTokenGetRequest.php │ │ │ │ ├── AlipayTrustUserZminfoPairGetRequest.php │ │ │ │ ├── AlipayUserAccountFreezeGetRequest.php │ │ │ │ ├── AlipayUserAccountGetRequest.php │ │ │ │ ├── AlipayUserAccountSearchRequest.php │ │ │ │ ├── AlipayUserAccountUseridBatchqueryRequest.php │ │ │ │ ├── AlipayUserContractGetRequest.php │ │ │ │ ├── AlipayUserFinanceinfoShareRequest.php │ │ │ │ ├── AlipayUserGetRequest.php │ │ │ │ ├── AlipayUserMemberCardUpdateRequest.php │ │ │ │ ├── AlipayUserTestRequest.php │ │ │ │ ├── AlipayUserTradeSearchRequest.php │ │ │ │ ├── AlipayUserUserinfoShareRequest.php │ │ │ │ ├── AlipayZdataassetsEasyserviceRequest.php │ │ │ │ ├── AlipayZdataassetsFcdatalabZdatamergetaskRequest.php │ │ │ │ ├── AlipayZdataassetsMetadataRequest.php │ │ │ │ ├── AlipayZdatafrontCommonQueryRequest.php │ │ │ │ ├── AlipayZdatafrontDatatransferedFileuploadRequest.php │ │ │ │ ├── AlipayZdatafrontDatatransferedSendRequest.php │ │ │ │ ├── AlipayZdataserviceUnidataQueryRequest.php │ │ │ │ ├── AlipayZmscoreZrankGetRequest.php │ │ │ │ ├── AntMerchantExpandEnterpriseApplyRequest.php │ │ │ │ ├── AntMerchantExpandImageUploadRequest.php │ │ │ │ ├── AntMerchantExpandMapplyorderQueryRequest.php │ │ │ │ ├── AntMerchantExpandPersonalApplyRequest.php │ │ │ │ ├── KoubeiItemExtitemBatchqueryRequest.php │ │ │ │ ├── KoubeiItemExtitemBrandQueryRequest.php │ │ │ │ ├── KoubeiItemExtitemCategoryQueryRequest.php │ │ │ │ ├── KoubeiItemExtitemCreateRequest.php │ │ │ │ ├── KoubeiItemExtitemExistedQueryRequest.php │ │ │ │ ├── KoubeiItemExtitemQueryRequest.php │ │ │ │ ├── KoubeiItemExtitemUpdateRequest.php │ │ │ │ ├── KoubeiMarketingCampaignActivityBatchqueryRequest.php │ │ │ │ ├── KoubeiMarketingCampaignActivityCreateRequest.php │ │ │ │ ├── KoubeiMarketingCampaignActivityModifyRequest.php │ │ │ │ ├── KoubeiMarketingCampaignActivityOfflineRequest.php │ │ │ │ ├── KoubeiMarketingCampaignActivityQueryRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdBatchqueryRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdCountRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdCreateRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdDeleteRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdDetailQueryRequest.php │ │ │ │ ├── KoubeiMarketingCampaignCrowdModifyRequest.php │ │ │ │ ├── KoubeiMarketingCampaignRecruitShopQueryRequest.php │ │ │ │ ├── KoubeiMarketingCampaignTagsQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataActivityBillDownloadRequest.php │ │ │ │ ├── KoubeiMarketingDataActivityReportQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomreportBatchqueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomreportDeleteRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomreportDetailQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomreportQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomreportSaveRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomtagBatchqueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomtagDeleteRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomtagDetailQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataCustomtagSaveRequest.php │ │ │ │ ├── KoubeiMarketingDataIndicatorQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataMemberReportQueryRequest.php │ │ │ │ ├── KoubeiMarketingDataMessageDeliverRequest.php │ │ │ │ ├── KoubeiMarketingDataSmartactivityConfigRequest.php │ │ │ │ ├── KoubeiMarketingDataSmartactivityForecastRequest.php │ │ │ │ ├── KoubeiMarketingDataSmartmanagementDiagnoseRequest.php │ │ │ │ ├── KoubeiMemberBrandownerNameQueryRequest.php │ │ │ │ ├── KoubeiMemberDataOauthQueryRequest.php │ │ │ │ ├── KoubeiMemberRetailerQueryRequest.php │ │ │ │ ├── KoubeiQualityTestCloudacptActivityQueryRequest.php │ │ │ │ ├── KoubeiQualityTestCloudacptBatchQueryRequest.php │ │ │ │ ├── KoubeiQualityTestCloudacptCheckresultSubmitRequest.php │ │ │ │ ├── KoubeiQualityTestCloudacptItemQueryRequest.php │ │ │ │ ├── MonitorHeartbeatSynRequest.php │ │ │ │ └── ZhimaMerchantTestPracticeRequest.php │ │ │ └── test │ │ │ │ ├── TestImage.php │ │ │ │ ├── TestPay.php │ │ │ │ ├── alipay_public_key.pem │ │ │ │ ├── myPay.php │ │ │ │ └── rsa_private_key.pem │ │ └── lotusphp_runtime │ │ │ ├── Autoloader │ │ │ └── Autoloader.php │ │ │ ├── Cache │ │ │ ├── Adapter │ │ │ │ ├── CacheAdapter.php │ │ │ │ ├── CacheAdapterApc.php │ │ │ │ ├── CacheAdapterEAccelerator.php │ │ │ │ ├── CacheAdapterFile.php │ │ │ │ ├── CacheAdapterMemcache.php │ │ │ │ ├── CacheAdapterMemcached.php │ │ │ │ ├── CacheAdapterPhps.php │ │ │ │ └── CacheAdapterXcache.php │ │ │ ├── Cache.php │ │ │ ├── CacheAdapterFactory.php │ │ │ ├── CacheConfigBuilder.php │ │ │ ├── CacheConnectionManager.php │ │ │ ├── CacheHandle.php │ │ │ └── QueryEngine │ │ │ │ └── TableDataGateway │ │ │ │ └── CacheTableDataGateway.php │ │ │ ├── Captcha │ │ │ ├── Captcha.php │ │ │ ├── CaptchaImageEngine.php │ │ │ └── fonts │ │ │ │ ├── AntykwaBold.ttf │ │ │ │ ├── Candice.ttf │ │ │ │ ├── Ding-DongDaddyO.ttf │ │ │ │ ├── Duality.ttf │ │ │ │ ├── Jura.ttf │ │ │ │ ├── StayPuft.ttf │ │ │ │ ├── TimesNewRomanBold.ttf │ │ │ │ └── VeraSansBold.ttf │ │ │ ├── Config.php │ │ │ ├── ConfigExpression.php │ │ │ ├── Cookie │ │ │ └── Cookie.php │ │ │ ├── DB │ │ │ ├── Adapter │ │ │ │ ├── ConnectionAdapter │ │ │ │ │ ├── DbConnectionAdapter.php │ │ │ │ │ ├── DbConnectionAdapterMysql.php │ │ │ │ │ ├── DbConnectionAdapterMysqli.php │ │ │ │ │ ├── DbConnectionAdapterPdo.php │ │ │ │ │ ├── DbConnectionAdapterPgsql.php │ │ │ │ │ └── DbConnectionAdapterSqlite.php │ │ │ │ └── SqlAdapter │ │ │ │ │ ├── DbSqlAdapter.php │ │ │ │ │ ├── DbSqlAdapterMysql.php │ │ │ │ │ ├── DbSqlAdapterPgsql.php │ │ │ │ │ └── DbSqlAdapterSqlite.php │ │ │ ├── Db.php │ │ │ ├── DbAdapterFactory.php │ │ │ ├── DbConfigBuilder.php │ │ │ ├── DbConnectionManager.php │ │ │ ├── DbHandle.php │ │ │ ├── DbSqlExpression.php │ │ │ └── QueryEngine │ │ │ │ ├── SqlMap │ │ │ │ ├── AbstractDbSqlMapFilterObject.php │ │ │ │ ├── DbSqlMapClient.php │ │ │ │ └── DbSqlMapResultFactory.php │ │ │ │ └── TableDataGateway │ │ │ │ ├── DbTableDataGateway.php │ │ │ │ ├── DbTableRelation.php │ │ │ │ └── DbWhereCondition.php │ │ │ ├── Inflector │ │ │ └── Inflector.php │ │ │ ├── Logger │ │ │ └── Logger.php │ │ │ ├── Lotus.php │ │ │ ├── MVC │ │ │ ├── Action.php │ │ │ ├── Component.php │ │ │ ├── Context.php │ │ │ ├── Dispatcher.php │ │ │ ├── TemplateView.php │ │ │ └── View.php │ │ │ ├── ObjectUtil │ │ │ └── ObjectUtil.php │ │ │ ├── Pagination │ │ │ └── Pagination.php │ │ │ ├── RBAC │ │ │ └── Rbac.php │ │ │ ├── Router │ │ │ └── Router.php │ │ │ ├── Session │ │ │ ├── Session.php │ │ │ ├── SessionStore │ │ │ └── Store │ │ │ │ ├── SessionStoreFile.php │ │ │ │ ├── SessionStoreMemcache.php │ │ │ │ ├── SessionStoreMysql.php │ │ │ │ └── SessionStoreSqlite.php │ │ │ ├── Store.php │ │ │ ├── StoreFile.php │ │ │ ├── StoreMemory.php │ │ │ ├── Url │ │ │ └── Url.php │ │ │ ├── Validator │ │ │ ├── Validator.php │ │ │ └── ValidatorDtd.php │ │ │ ├── XML │ │ │ └── Xml.php │ │ │ └── shortcut.php │ │ ├── jsonRPC │ │ ├── jsonRPCClient.php │ │ └── jsonRPCServer.php │ │ ├── phpRPC │ │ ├── bigint.php │ │ ├── compat.php │ │ ├── dhparams.php │ │ ├── dhparams │ │ │ ├── 1024.dhp │ │ │ ├── 128.dhp │ │ │ ├── 1536.dhp │ │ │ ├── 160.dhp │ │ │ ├── 192.dhp │ │ │ ├── 2048.dhp │ │ │ ├── 256.dhp │ │ │ ├── 3072.dhp │ │ │ ├── 4096.dhp │ │ │ ├── 512.dhp │ │ │ ├── 768.dhp │ │ │ └── 96.dhp │ │ ├── pecl │ │ │ └── xxtea │ │ │ │ ├── CREDITS │ │ │ │ ├── INSTALL │ │ │ │ ├── LICENSE │ │ │ │ ├── README │ │ │ │ ├── config.m4 │ │ │ │ ├── config.w32 │ │ │ │ ├── php_xxtea.c │ │ │ │ ├── php_xxtea.dsp │ │ │ │ ├── php_xxtea.h │ │ │ │ ├── php_xxtea.sln │ │ │ │ ├── php_xxtea.vcproj │ │ │ │ ├── test │ │ │ │ └── test.php │ │ │ │ ├── xxtea.c │ │ │ │ └── xxtea.h │ │ ├── phprpc_client.php │ │ ├── phprpc_date.php │ │ ├── phprpc_server.php │ │ └── xxtea.php │ │ ├── spyc │ │ ├── COPYING │ │ ├── README.md │ │ ├── Spyc.php │ │ ├── composer.json │ │ ├── examples │ │ │ ├── yaml-dump.php │ │ │ └── yaml-load.php │ │ ├── php4 │ │ │ ├── 5to4.php │ │ │ ├── spyc.php4 │ │ │ └── test.php4 │ │ ├── spyc.yaml │ │ └── tests │ │ │ ├── DumpTest.php │ │ │ ├── IndentTest.php │ │ │ ├── ParseTest.php │ │ │ ├── RoundTripTest.php │ │ │ ├── comments.yaml │ │ │ ├── failing1.yaml │ │ │ ├── indent_1.yaml │ │ │ └── quotes.yaml │ │ └── weixin │ │ ├── JsApiPay.php │ │ ├── MicroPay.php │ │ ├── NativePay.php │ │ ├── WxPay.Config.php │ │ ├── WxPay.Data.php │ │ ├── WxPay.Exception.php │ │ ├── WxPayApi.php │ │ ├── WxPayNotify.php │ │ └── phpqrcode.php ├── Mode │ ├── Api │ │ ├── App.class.php │ │ ├── Controller.class.php │ │ ├── Dispatcher.class.php │ │ └── functions.php │ ├── Lite │ │ ├── App.class.php │ │ ├── Controller.class.php │ │ ├── Dispatcher.class.php │ │ ├── Model.class.php │ │ ├── View.class.php │ │ ├── convention.php │ │ └── functions.php │ ├── Sae │ │ └── convention.php │ ├── api.php │ ├── common.php │ ├── lite.php │ └── sae.php ├── ThinkPHP.php ├── Tpl │ ├── dispatch_jump.tpl │ ├── page_trace.tpl │ └── think_exception.tpl └── logo.png ├── composer.json └── index.php /.htaccess: -------------------------------------------------------------------------------- 1 | 2 | Options +FollowSymlinks 3 | RewriteEngine On 4 | 5 | RewriteCond %{REQUEST_FILENAME} !-d 6 | RewriteCond %{REQUEST_FILENAME} !-f 7 | RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 8 | -------------------------------------------------------------------------------- /.idea/php.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Application/Bing/Common/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Bing/Conf/config.php: -------------------------------------------------------------------------------- 1 | '配置值' 4 | ); -------------------------------------------------------------------------------- /Application/Bing/Conf/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Bing/Controller/AlipayWapController.class.php: -------------------------------------------------------------------------------- 1 | appId = self::APPID; 18 | $aop->rsaPrivateKeyFilePath = $this->privatekey; 19 | $aop->alipayPublicKey = $this->publickey; 20 | 21 | $request= new \AlipayTradeWapPayRequest(); 22 | $request->setNotifyUrl(''); 23 | $orderInfo = array( 24 | 'out_trade_no' => date("YmdHis"), 25 | 'total_amount' =>I('get.total_amount'), 26 | 'subject' =>I('get.subject'), 27 | 'product_code'=>'QUICK_WAP_WAY' 28 | ); 29 | $request->setBizContent(json_encode($orderInfo)); 30 | 31 | $result=$aop->pageExecute($request); 32 | echo $result; 33 | } 34 | 35 | 36 | /** 37 | * 回到通知 38 | */ 39 | public function notfiy(){ 40 | $notfiyData=I("post."); 41 | // Log::write("回调信息:".var_export($notfiyData,true)); 42 | if($notfiyData['trade_status']=='TRADE_SUCCESS'){ 43 | //交易成功 44 | }else if($notfiyData['trade_status']=='TRADE_CLOSED'){ 45 | //交易关闭 46 | } 47 | 48 | } 49 | } -------------------------------------------------------------------------------- /Application/Bing/Controller/MicroPayController.class.php: -------------------------------------------------------------------------------- 1 | display("MicroPay/index"); 18 | } 19 | 20 | /** 21 | * 发起支付请求 22 | */ 23 | public function pay(){ 24 | if (isset($_REQUEST["auth_code"]) && $_REQUEST["auth_code"] != "") { 25 | $auth_code =$_REQUEST["auth_code"]; 26 | $input = new \WxPayMicroPay(); 27 | $input->SetAuth_code($auth_code); 28 | $input->SetBody($_REQUEST['body']); 29 | $input->SetTotal_fee($_REQUEST['amt']); 30 | $input->SetOut_trade_no(\WxPayConfig::MCHID . date("YmdHis")); 31 | $microPay = new \MicroPay(); 32 | $result=$microPay->pay($input); 33 | $this->tradeResult($result); 34 | } 35 | } 36 | 37 | /** 38 | * 支付结果处理 39 | * @param $result 40 | */ 41 | private function tradeResult($result){ 42 | switch($result['trade_state']){ 43 | case 'SUCCESS': 44 | //交易成功 45 | break; 46 | case 'REFUND': 47 | //转入退款 48 | break; 49 | case 'NOTPAY': 50 | //未支付 51 | break; 52 | case 'CLOSED': 53 | //已关闭 54 | break; 55 | case 'REVOKED': 56 | //已撤销(刷卡支付) 57 | break; 58 | case 'USERPAYING': 59 | //用户支付中 60 | break; 61 | case 'PAYERROR': 62 | //支付失败(其他原因,如银行返回失败) 63 | break; 64 | default: 65 | //其他情况 66 | 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /Application/Bing/Controller/NativePayController.class.php: -------------------------------------------------------------------------------- 1 | GetPrePayUrl("123456789"); 32 | 33 | //模式二 34 | /** 35 | * 流程: 36 | * 1、调用统一下单,取得code_url,生成二维码 37 | * 2、用户扫描二维码,进行支付 38 | * 3、支付完成之后,微信服务器会通知支付成功 39 | * 4、在支付成功通知中需要查单确认是否真正支付成功(见:notify.php) 40 | */ 41 | $input = new \WxPayUnifiedOrder(); 42 | $input->SetBody("test"); 43 | $input->SetAttach("test"); 44 | $input->SetOut_trade_no(\WxPayConfig::MCHID . date("YmdHis")); 45 | $input->SetTotal_fee("1"); 46 | $input->SetTime_start(date("YmdHis")); 47 | $input->SetTime_expire(date("YmdHis", time() + 600)); 48 | $input->SetGoods_tag("test"); 49 | $input->SetNotify_url("http://paysdk.weixin.qq.com/example/notify.php"); 50 | $input->SetTrade_type("NATIVE"); 51 | $input->SetProduct_id("123456789"); 52 | $result = $notify->GetPayUrl($input); 53 | $url2 = $result["code_url"]; 54 | $this->assign("url", $url2); 55 | $this->display("NativePay/index"); 56 | } 57 | 58 | } 59 | -------------------------------------------------------------------------------- /Application/Bing/Controller/WebPayController.class.php: -------------------------------------------------------------------------------- 1 | "h5_info", 20 | "type" => "Wap", 21 | "wap_url" => "http://www.eshenghuo365.com", 22 | "wap_name" => "e生活" 23 | ); 24 | $client_ip = get_client_ip(); 25 | $scene = json_encode($SceneAttr); 26 | //②、统一下单 27 | $input = new \WxPayUnifiedOrder(); 28 | $input->SetBody("腾讯充值中心-QQ会员充值"); 29 | $input->SetAttach("test"); 30 | $input->SetOut_trade_no(\WxPayConfig::MCHID . date("YmdHis")); 31 | $input->SetTotal_fee("10"); 32 | $input->SetTime_start(date("YmdHis")); 33 | $input->SetTime_expire(date("YmdHis", time() + 600)); 34 | $input->SetGoods_tag("test"); 35 | $input->SetNotify_url("http://paysdk.weixin.qq.com/example/notify.php"); 36 | $input->SetTrade_type("MWEB"); 37 | $input->SetClient_ip($client_ip); 38 | $input->SetScene_info($scene); 39 | $order = \WxPayApi::unifiedOrder($input); 40 | dump($order);//这边返回成功可以下一步操作 41 | // $jsApiParameters = $tools->GetJsApiParameters($order); 42 | // dump($jsApiParameters); 43 | } 44 | } -------------------------------------------------------------------------------- /Application/Bing/Controller/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Bing/Model/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Bing/View/Jsapi/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 微信支付样例-支付 6 | 7 | 8 |
9 | 该笔订单支付金额为1分

10 |
11 | 12 |
13 | 50 | 51 | -------------------------------------------------------------------------------- /Application/Bing/View/MicroPay/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Document 9 | 10 | 11 |
12 |
商品描述:

13 |

14 |
支付金额:

15 |

16 |
授权码:

17 |

18 |
19 | 20 |
21 |
22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Application/Bing/View/NativePay/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | native 8 | 19 | 20 | 21 |

扫码模式二

22 | 23 | 24 | -------------------------------------------------------------------------------- /Application/Bing/View/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Bing/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Common/Common/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Common/Conf/config.php: -------------------------------------------------------------------------------- 1 | '配置值' 4 | ); -------------------------------------------------------------------------------- /Application/Common/Conf/index.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /Application/Common/Controller/WxpayBaseController.class.php: -------------------------------------------------------------------------------- 1 | 包含以下组件 5 | 11 |

注:支付功能开通请参照微信支付相关文档,在测试以上功能时,请务必开通相关功能

12 |

配置参数位置:ThinkPHP/Library/Vendor/weixin/WxPay.Config.php,请填写以下参数。

13 |
14 | 
15 | 	const APPID = '';
16 | 	const MCHID = '';
17 | 	const SUBMCHID = '';
18 | 	const KEY = '';
19 | 	const APPSECRET = '';
20 | 
21 | 
22 |

更新信息

23 |
    24 |
  1. 公众号jsapi支付新增回调处理函数
  2. 25 |
26 | 27 | ===================================================================== 28 |
29 | #支付宝支付组件 30 |

包含以下组件

31 | 36 | 37 | -------------------------------------------------------------------------------- /ThinkPHP/Conf/debug.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | /** 13 | * ThinkPHP 默认的调试模式配置文件 14 | */ 15 | defined('THINK_PATH') or exit(); 16 | // 调试模式下面默认设置 可以在应用配置目录下重新定义 debug.php 覆盖 17 | return array( 18 | 'LOG_RECORD' => true, // 进行日志记录 19 | 'LOG_EXCEPTION_RECORD' => true, // 是否记录异常信息日志 20 | 'LOG_LEVEL' => 'EMERG,ALERT,CRIT,ERR,WARN,NOTIC,INFO,DEBUG,SQL', // 允许记录的日志级别 21 | 'DB_FIELDS_CACHE' => false, // 字段缓存信息 22 | 'DB_DEBUG' => true, // 开启调试模式 记录SQL日志 23 | 'TMPL_CACHE_ON' => false, // 是否开启模板编译缓存,设为false则每次都会重新编译 24 | 'TMPL_STRIP_SPACE' => false, // 是否去除模板文件里面的html空格与换行 25 | 'SHOW_ERROR_MSG' => true, // 显示错误信息 26 | 'URL_CASE_INSENSITIVE' => false, // URL区分大小写 27 | ); -------------------------------------------------------------------------------- /ThinkPHP/LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | ThinkPHP遵循Apache2开源协议发布,并提供免费使用。 3 | 版权所有Copyright © 2006-2014 by ThinkPHP (http://thinkphp.cn) 4 | All rights reserved。 5 | ThinkPHP® 商标和著作权所有者为上海顶想信息科技有限公司。 6 | 7 | Apache Licence是著名的非盈利开源组织Apache采用的协议。 8 | 该协议和BSD类似,鼓励代码共享和尊重原作者的著作权, 9 | 允许代码修改,再作为开源或商业软件发布。需要满足 10 | 的条件: 11 | 1. 需要给代码的用户一份Apache Licence ; 12 | 2. 如果你修改了代码,需要在被修改的文件中说明; 13 | 3. 在延伸的代码中(修改和有源代码衍生的代码中)需要 14 | 带有原来代码中的协议,商标,专利声明和其他原来作者规 15 | 定需要包含的说明; 16 | 4. 如果再发布的产品中包含一个Notice文件,则在Notice文 17 | 件中需要带有本协议内容。你可以在Notice中增加自己的 18 | 许可,但不可以表现为对Apache Licence构成更改。 19 | 具体的协议参考:http://www.apache.org/licenses/LICENSE-2.0 20 | 21 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 22 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 23 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 24 | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE 25 | COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, 26 | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 27 | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 28 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 29 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 31 | ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 32 | POSSIBILITY OF SUCH DAMAGE. 33 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Behavior/AgentCheckBehavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Behavior; 12 | /** 13 | * 行为扩展:代理检测 14 | */ 15 | class AgentCheckBehavior { 16 | public function run(&$params) { 17 | // 代理访问检测 18 | $limitProxyVisit = C('LIMIT_PROXY_VISIT',null,true); 19 | if($limitProxyVisit && ($_SERVER['HTTP_X_FORWARDED_FOR'] || $_SERVER['HTTP_VIA'] || $_SERVER['HTTP_PROXY_CONNECTION'] || $_SERVER['HTTP_USER_AGENT_VIA'])) { 20 | // 禁止代理访问 21 | exit('Access Denied'); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Behavior/BrowserCheckBehavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Behavior; 12 | /** 13 | * 浏览器防刷新检测 14 | */ 15 | class BrowserCheckBehavior { 16 | public function run(&$params) { 17 | if($_SERVER['REQUEST_METHOD'] == 'GET') { 18 | // 启用页面防刷新机制 19 | $guid = md5($_SERVER['PHP_SELF']); 20 | // 浏览器防刷新的时间间隔(秒) 默认为10 21 | $refleshTime = C('LIMIT_REFLESH_TIMES',null,10); 22 | // 检查页面刷新间隔 23 | if(cookie('_last_visit_time_'.$guid) && cookie('_last_visit_time_'.$guid)>time()-$refleshTime) { 24 | // 页面刷新读取浏览器缓存 25 | header('HTTP/1.1 304 Not Modified'); 26 | exit; 27 | }else{ 28 | // 缓存当前地址访问时间 29 | cookie('_last_visit_time_'.$guid, $_SERVER['REQUEST_TIME']); 30 | //header('Last-Modified:'.(date('D,d M Y H:i:s',$_SERVER['REQUEST_TIME']-C('LIMIT_REFLESH_TIMES'))).' GMT'); 31 | } 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Behavior/ContentReplaceBehavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Behavior; 12 | /** 13 | * 系统行为扩展:模板内容输出替换 14 | */ 15 | class ContentReplaceBehavior { 16 | 17 | // 行为扩展的执行入口必须是run 18 | public function run(&$content){ 19 | $content = $this->templateContentReplace($content); 20 | } 21 | 22 | /** 23 | * 模板内容替换 24 | * @access protected 25 | * @param string $content 模板内容 26 | * @return string 27 | */ 28 | protected function templateContentReplace($content) { 29 | // 系统默认的特殊变量替换 30 | $replace = array( 31 | '__ROOT__' => __ROOT__, // 当前网站地址 32 | '__APP__' => __APP__, // 当前应用地址 33 | '__MODULE__' => __MODULE__, 34 | '__ACTION__' => __ACTION__, // 当前操作地址 35 | '__SELF__' => htmlentities(__SELF__), // 当前页面地址 36 | '__CONTROLLER__'=> __CONTROLLER__, 37 | '__URL__' => __CONTROLLER__, 38 | '__PUBLIC__' => __ROOT__.'/Public',// 站点公共目录 39 | ); 40 | // 允许用户自定义模板的字符串替换 41 | if(is_array(C('TMPL_PARSE_STRING')) ) 42 | $replace = array_merge($replace,C('TMPL_PARSE_STRING')); 43 | $content = str_replace(array_keys($replace),array_values($replace),$content); 44 | return $content; 45 | } 46 | 47 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Behavior/RobotCheckBehavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Behavior; 12 | /** 13 | * 机器人检测 14 | * @author liu21st 15 | */ 16 | class RobotCheckBehavior { 17 | 18 | public function run(&$params) { 19 | // 机器人访问检测 20 | if(C('LIMIT_ROBOT_VISIT',null,true) && self::isRobot()) { 21 | // 禁止机器人访问 22 | exit('Access Denied'); 23 | } 24 | } 25 | 26 | static private function isRobot() { 27 | static $_robot = null; 28 | if(is_null($_robot)) { 29 | $spiders = 'Bot|Crawl|Spider|slurp|sohu-search|lycos|robozilla'; 30 | $browsers = 'MSIE|Netscape|Opera|Konqueror|Mozilla'; 31 | if(preg_match("/($browsers)/", $_SERVER['HTTP_USER_AGENT'])) { 32 | $_robot = false ; 33 | } elseif(preg_match("/($spiders)/", $_SERVER['HTTP_USER_AGENT'])) { 34 | $_robot = true; 35 | } else { 36 | $_robot = false; 37 | } 38 | } 39 | return $_robot; 40 | } 41 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Behavior/WriteHtmlCacheBehavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Behavior; 12 | use Think\Storage; 13 | /** 14 | * 系统行为扩展:静态缓存写入 15 | */ 16 | class WriteHtmlCacheBehavior { 17 | 18 | // 行为扩展的执行入口必须是run 19 | public function run(&$content) { 20 | //2014-11-28 修改 如果有HTTP 4xx 3xx 5xx 头部,禁止存储 21 | //2014-12-1 修改 对注入的网址 防止生成,例如 /game/lst/SortType/hot/-e8-90-8c-e5-85-94-e7-88-b1-e6-b6-88-e9-99-a4/-e8-bf-9b-e5-87-bb-e7-9a-84-e9-83-a8-e8-90-bd/-e9-a3-8e-e4-ba-91-e5-a4-a9-e4-b8-8b/index.shtml 22 | if (C('HTML_CACHE_ON') && defined('HTML_FILE_NAME') 23 | && !preg_match('/Status.*[345]{1}\d{2}/i', implode(' ', headers_list())) 24 | && !preg_match('/(-[a-z0-9]{2}){3,}/i',HTML_FILE_NAME)) { 25 | //静态文件写入 26 | Storage::put(HTML_FILE_NAME, $content, 'html'); 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Org/Util/Stack.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Org\Util; 12 | 13 | /** 14 | * Stack实现类 15 | * @category ORG 16 | * @package ORG 17 | * @subpackage Util 18 | * @author liu21st 19 | */ 20 | class Stack extends ArrayList { 21 | 22 | /** 23 | * 架构函数 24 | * @access public 25 | * @param array $values 初始化数组元素 26 | */ 27 | public function __construct($values = array()) { 28 | parent::__construct($values); 29 | } 30 | 31 | /** 32 | * 将堆栈的内部指针指向第一个单元 33 | * @access public 34 | * @return mixed 35 | */ 36 | public function peek() { 37 | return reset($this->toArray()); 38 | } 39 | 40 | /** 41 | * 元素进栈 42 | * @access public 43 | * @param mixed $value 44 | * @return mixed 45 | */ 46 | public function push($value) { 47 | $this->add($value); 48 | return $value; 49 | } 50 | 51 | } 52 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Behavior.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think; 12 | /** 13 | * ThinkPHP Behavior基础类 14 | */ 15 | abstract class Behavior { 16 | /** 17 | * 执行行为 run方法是Behavior唯一的接口 18 | * @access public 19 | * @param mixed $params 行为参数 20 | * @return void 21 | */ 22 | abstract public function run(&$params); 23 | 24 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Controller/JsonRpcController.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Controller; 12 | /** 13 | * ThinkPHP JsonRPC控制器类 14 | */ 15 | class JsonRpcController { 16 | 17 | /** 18 | * 架构函数 19 | * @access public 20 | */ 21 | public function __construct() { 22 | //控制器初始化 23 | if(method_exists($this,'_initialize')) 24 | $this->_initialize(); 25 | //导入类库 26 | Vendor('jsonRPC.jsonRPCServer'); 27 | // 启动server 28 | \jsonRPCServer::handle($this); 29 | } 30 | 31 | /** 32 | * 魔术方法 有不存在的操作的时候执行 33 | * @access public 34 | * @param string $method 方法名 35 | * @param array $args 参数 36 | * @return mixed 37 | */ 38 | public function __call($method,$args){} 39 | } 40 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Controller/RpcController.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Controller; 12 | /** 13 | * ThinkPHP RPC控制器类 14 | */ 15 | class RpcController { 16 | 17 | protected $allowMethodList = ''; 18 | protected $debug = false; 19 | 20 | /** 21 | * 架构函数 22 | * @access public 23 | */ 24 | public function __construct() { 25 | //控制器初始化 26 | if(method_exists($this,'_initialize')) 27 | $this->_initialize(); 28 | //导入类库 29 | Vendor('phpRPC.phprpc_server'); 30 | //实例化phprpc 31 | $server = new \PHPRPC_Server(); 32 | if($this->allowMethodList){ 33 | $methods = $this->allowMethodList; 34 | }else{ 35 | $methods = get_class_methods($this); 36 | $methods = array_diff($methods,array('__construct','__call','_initialize')); 37 | } 38 | $server->add($methods,$this); 39 | 40 | if(APP_DEBUG || $this->debug ) { 41 | $server->setDebugMode(true); 42 | } 43 | $server->setEnableGZIP(true); 44 | $server->start(); 45 | echo $server->comment(); 46 | } 47 | 48 | /** 49 | * 魔术方法 有不存在的操作的时候执行 50 | * @access public 51 | * @param string $method 方法名 52 | * @param array $args 参数 53 | * @return mixed 54 | */ 55 | public function __call($method,$args){} 56 | } 57 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Controller/YarController.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Controller; 12 | /** 13 | * ThinkPHP Yar控制器类 14 | */ 15 | class YarController { 16 | 17 | /** 18 | * 架构函数 19 | * @access public 20 | */ 21 | public function __construct() { 22 | //控制器初始化 23 | if(method_exists($this,'_initialize')) 24 | $this->_initialize(); 25 | //判断扩展是否存在 26 | if(!extension_loaded('yar')) 27 | E(L('_NOT_SUPPORT_').':yar'); 28 | //实例化Yar_Server 29 | $server = new \Yar_Server($this); 30 | // 启动server 31 | $server->handle(); 32 | } 33 | 34 | /** 35 | * 魔术方法 有不存在的操作的时候执行 36 | * @access public 37 | * @param string $method 方法名 38 | * @param array $args 参数 39 | * @return mixed 40 | */ 41 | public function __call($method,$args){} 42 | } 43 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Crypt.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think; 12 | /** 13 | * 加密解密类 14 | */ 15 | class Crypt { 16 | 17 | private static $handler = ''; 18 | 19 | public static function init($type=''){ 20 | $type = $type?:C('DATA_CRYPT_TYPE'); 21 | $class = strpos($type,'\\')? $type: 'Think\\Crypt\\Driver\\'. ucwords(strtolower($type)); 22 | self::$handler = $class; 23 | } 24 | 25 | /** 26 | * 加密字符串 27 | * @param string $str 字符串 28 | * @param string $key 加密key 29 | * @param integer $expire 有效期(秒) 0 为永久有效 30 | * @return string 31 | */ 32 | public static function encrypt($data,$key,$expire=0){ 33 | if(empty(self::$handler)){ 34 | self::init(); 35 | } 36 | $class = self::$handler; 37 | return $class::encrypt($data,$key,$expire); 38 | } 39 | 40 | /** 41 | * 解密字符串 42 | * @param string $str 字符串 43 | * @param string $key 加密key 44 | * @return string 45 | */ 46 | public static function decrypt($data,$key){ 47 | if(empty(self::$handler)){ 48 | self::init(); 49 | } 50 | $class = self::$handler; 51 | return $class::decrypt($data,$key); 52 | } 53 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Exception.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think; 12 | /** 13 | * ThinkPHP系统异常基类 14 | */ 15 | class Exception extends \Exception { 16 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Log/Driver/File.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace Think\Log\Driver; 13 | 14 | class File { 15 | 16 | protected $config = array( 17 | 'log_time_format' => ' c ', 18 | 'log_file_size' => 2097152, 19 | 'log_path' => '', 20 | ); 21 | 22 | // 实例化并传入参数 23 | public function __construct($config=array()){ 24 | $this->config = array_merge($this->config,$config); 25 | } 26 | 27 | /** 28 | * 日志写入接口 29 | * @access public 30 | * @param string $log 日志信息 31 | * @param string $destination 写入目标 32 | * @return void 33 | */ 34 | public function write($log,$destination='') { 35 | $now = date($this->config['log_time_format']); 36 | if(empty($destination)){ 37 | $destination = $this->config['log_path'].date('y_m_d').'.log'; 38 | } 39 | // 自动创建日志目录 40 | $log_dir = dirname($destination); 41 | if (!is_dir($log_dir)) { 42 | mkdir($log_dir, 0755, true); 43 | } 44 | //检测日志文件大小,超过配置大小则备份日志文件重新生成 45 | if(is_file($destination) && floor($this->config['log_file_size']) <= filesize($destination) ){ 46 | rename($destination,dirname($destination).'/'.time().'-'.basename($destination)); 47 | } 48 | error_log("[{$now}] ".$_SERVER['REMOTE_ADDR'].' '.$_SERVER['REQUEST_URI']."\r\n{$log}\r\n", 3,$destination); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Log/Driver/Sae.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | namespace Think\Log\Driver; 13 | 14 | class Sae { 15 | 16 | protected $config = array( 17 | 'log_time_format' => ' c ', 18 | ); 19 | 20 | // 实例化并传入参数 21 | public function __construct($config=array()){ 22 | $this->config = array_merge($this->config,$config); 23 | } 24 | 25 | /** 26 | * 日志写入接口 27 | * @access public 28 | * @param string $log 日志信息 29 | * @param string $destination 写入目标 30 | * @return void 31 | */ 32 | public function write($log,$destination='') { 33 | static $is_debug=null; 34 | $now = date($this->config['log_time_format']); 35 | $logstr="[{$now}] ".$_SERVER['REMOTE_ADDR'].' '.$_SERVER['REQUEST_URI']."\r\n{$log}\r\n"; 36 | if(is_null($is_debug)){ 37 | preg_replace('@(\w+)\=([^;]*)@e', '$appSettings[\'\\1\']="\\2";', $_SERVER['HTTP_APPCOOKIE']); 38 | $is_debug = in_array($_SERVER['HTTP_APPVERSION'], explode(',', $appSettings['debug'])) ? true : false; 39 | } 40 | if($is_debug){ 41 | sae_set_display_errors(false);//记录日志不将日志打印出来 42 | } 43 | sae_debug($logstr); 44 | if($is_debug){ 45 | sae_set_display_errors(true); 46 | } 47 | 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Storage.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think; 12 | // 分布式文件存储类 13 | class Storage { 14 | 15 | /** 16 | * 操作句柄 17 | * @var string 18 | * @access protected 19 | */ 20 | static protected $handler ; 21 | 22 | /** 23 | * 连接分布式文件系统 24 | * @access public 25 | * @param string $type 文件类型 26 | * @param array $options 配置数组 27 | * @return void 28 | */ 29 | static public function connect($type='File',$options=array()) { 30 | $class = 'Think\\Storage\\Driver\\'.ucwords($type); 31 | self::$handler = new $class($options); 32 | } 33 | 34 | static public function __callstatic($method,$args){ 35 | //调用缓存驱动的方法 36 | if(method_exists(self::$handler, $method)){ 37 | return call_user_func_array(array(self::$handler,$method), $args); 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Template/Driver/Ease.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Template\Driver; 12 | /** 13 | * EaseTemplate模板引擎驱动 14 | */ 15 | class Ease { 16 | /** 17 | * 渲染模板输出 18 | * @access public 19 | * @param string $templateFile 模板文件名 20 | * @param array $var 模板变量 21 | * @return void 22 | */ 23 | public function fetch($templateFile,$var) { 24 | $templateFile = substr($templateFile,strlen(THEME_PATH),-5); 25 | $CacheDir = substr(CACHE_PATH,0,-1); 26 | $TemplateDir = substr(THEME_PATH,0,-1); 27 | vendor('EaseTemplate.template#ease'); 28 | $config = array( 29 | 'CacheDir' => $CacheDir, 30 | 'TemplateDir' => $TemplateDir, 31 | 'TplType' => 'html' 32 | ); 33 | if(C('TMPL_ENGINE_CONFIG')) { 34 | $config = array_merge($config,C('TMPL_ENGINE_CONFIG')); 35 | } 36 | $tpl = new \EaseTemplate($config); 37 | $tpl->set_var($var); 38 | $tpl->set_file($templateFile); 39 | $tpl->p(); 40 | } 41 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Template/Driver/Lite.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Template\Driver; 12 | /** 13 | * TemplateLite模板引擎驱动 14 | */ 15 | class Lite { 16 | /** 17 | * 渲染模板输出 18 | * @access public 19 | * @param string $templateFile 模板文件名 20 | * @param array $var 模板变量 21 | * @return void 22 | */ 23 | public function fetch($templateFile,$var) { 24 | vendor("TemplateLite.class#template"); 25 | $templateFile = substr($templateFile,strlen(THEME_PATH)); 26 | $tpl = new \Template_Lite(); 27 | $tpl->template_dir = THEME_PATH; 28 | $tpl->compile_dir = CACHE_PATH ; 29 | $tpl->cache_dir = TEMP_PATH ; 30 | if(C('TMPL_ENGINE_CONFIG')) { 31 | $config = C('TMPL_ENGINE_CONFIG'); 32 | foreach ($config as $key=>$val){ 33 | $tpl->{$key} = $val; 34 | } 35 | } 36 | $tpl->assign($var); 37 | $tpl->display($templateFile); 38 | } 39 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Template/Driver/Mobile.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Template\Driver; 12 | /** 13 | * MobileTemplate模板引擎驱动 14 | */ 15 | class Mobile { 16 | /** 17 | * 渲染模板输出 18 | * @access public 19 | * @param string $templateFile 模板文件名 20 | * @param array $var 模板变量 21 | * @return void 22 | */ 23 | public function fetch($templateFile,$var) { 24 | $templateFile=substr($templateFile,strlen(THEME_PATH)); 25 | $var['_think_template_path']=$templateFile; 26 | exit(json_encode($var)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Template/Driver/Smart.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Template\Driver; 12 | /** 13 | * Smart模板引擎驱动 14 | */ 15 | class Smart { 16 | /** 17 | * 渲染模板输出 18 | * @access public 19 | * @param string $templateFile 模板文件名 20 | * @param array $var 模板变量 21 | * @return void 22 | */ 23 | public function fetch($templateFile,$var) { 24 | $templateFile = substr($templateFile,strlen(THEME_PATH)); 25 | vendor('SmartTemplate.class#smarttemplate'); 26 | $tpl = new \SmartTemplate($templateFile); 27 | $tpl->caching = C('TMPL_CACHE_ON'); 28 | $tpl->template_dir = THEME_PATH; 29 | $tpl->compile_dir = CACHE_PATH ; 30 | $tpl->cache_dir = TEMP_PATH ; 31 | if(C('TMPL_ENGINE_CONFIG')) { 32 | $config = C('TMPL_ENGINE_CONFIG'); 33 | foreach ($config as $key=>$val){ 34 | $tpl->{$key} = $val; 35 | } 36 | } 37 | $tpl->assign($var); 38 | $tpl->output(); 39 | } 40 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Template/Driver/Smarty.class.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | namespace Think\Template\Driver; 12 | /** 13 | * Smarty模板引擎驱动 14 | */ 15 | class Smarty { 16 | 17 | /** 18 | * 渲染模板输出 19 | * @access public 20 | * @param string $templateFile 模板文件名 21 | * @param array $var 模板变量 22 | * @return void 23 | */ 24 | public function fetch($templateFile,$var) { 25 | $templateFile = substr($templateFile,strlen(THEME_PATH)); 26 | vendor('Smarty.Smarty#class'); 27 | $tpl = new \Smarty(); 28 | $tpl->caching = C('TMPL_CACHE_ON'); 29 | $tpl->template_dir = THEME_PATH; 30 | $tpl->compile_dir = CACHE_PATH ; 31 | $tpl->cache_dir = TEMP_PATH ; 32 | if(C('TMPL_ENGINE_CONFIG')) { 33 | $config = C('TMPL_ENGINE_CONFIG'); 34 | foreach ($config as $key=>$val){ 35 | $tpl->{$key} = $val; 36 | } 37 | } 38 | $tpl->assign($var); 39 | $tpl->display($templateFile); 40 | } 41 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/1.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/2.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/3.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/4.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/5.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/6.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/7.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/bgs/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/bgs/8.jpg -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/1.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/1.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/2.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/2.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/3.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/3.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/4.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/4.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/5.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/5.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Think/Verify/ttfs/6.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Think/Verify/ttfs/6.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Boris/DumpInspector.php: -------------------------------------------------------------------------------- 1 | '1', //缓存ID 27 | 'TplType' =>'htm', //模板格式 28 | 'CacheDir' =>'cache', //缓存目录 29 | 'TemplateDir'=>'template' , //模板存放目录 30 | 'AutoImage' =>'on' , //自动解析图片目录开关 on表示开放 off表示关闭 31 | 'LangDir' =>'language' , //语言文件存放的目录 32 | 'Language' =>'default' , //语言的默认文件 33 | 'Copyright' =>'off' , //版权保护 34 | 'MemCache' =>'' , //Memcache服务器地址例如:127.0.0.1:11211 35 | ) 36 | ){ 37 | 38 | parent::ETCoreStart($set); 39 | } 40 | 41 | } 42 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Hprose/HproseFormatter.php: -------------------------------------------------------------------------------- 1 | * 20 | * * 21 | \**********************************************************/ 22 | 23 | require_once('HproseIOStream.php'); 24 | require_once('HproseReader.php'); 25 | require_once('HproseWriter.php'); 26 | 27 | class HproseFormatter { 28 | public static function serialize(&$var, $simple = false) { 29 | $stream = new HproseStringStream(); 30 | $hproseWriter = ($simple ? new HproseSimpleWriter($stream) : new HproseWriter($stream)); 31 | $hproseWriter->serialize($var); 32 | return $stream->toString(); 33 | } 34 | public static function &unserialize($data, $simple = false) { 35 | $stream = new HproseStringStream($data); 36 | $hproseReader = ($simple ? new HproseSimpleReader($stream) : new HproseReader($stream)); 37 | return $hproseReader->unserialize(); 38 | } 39 | } 40 | ?> 41 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Hprose/HproseIO.php: -------------------------------------------------------------------------------- 1 | * 20 | * * 21 | \**********************************************************/ 22 | 23 | require_once('HproseTags.php'); 24 | require_once('HproseClassManager.php'); 25 | require_once('HproseReader.php'); 26 | require_once('HproseWriter.php'); 27 | require_once('HproseFormatter.php'); 28 | 29 | ?> 30 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/README.txt: -------------------------------------------------------------------------------- 1 | 第三方类库包目录 -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifier.regex_replace.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: regex_replace
14 | * Purpose: regular expression search/replace 15 | * 16 | * @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php 17 | * regex_replace (Smarty online manual) 18 | * @author Monte Ohrt 19 | * @param string $string input string 20 | * @param string|array $search regular expression(s) to search for 21 | * @param string|array $replace string(s) that should be replaced 22 | * @return string 23 | */ 24 | function smarty_modifier_regex_replace($string, $search, $replace) 25 | { 26 | if(is_array($search)) { 27 | foreach($search as $idx => $s) { 28 | $search[$idx] = _smarty_regex_replace_check($s); 29 | } 30 | } else { 31 | $search = _smarty_regex_replace_check($search); 32 | } 33 | return preg_replace($search, $replace, $string); 34 | } 35 | 36 | /** 37 | * @param string $search string(s) that should be replaced 38 | * @return string 39 | * @ignore 40 | */ 41 | function _smarty_regex_replace_check($search) 42 | { 43 | // null-byte injection detection 44 | // anything behind the first null-byte is ignored 45 | if (($pos = strpos($search,"\0")) !== false) { 46 | $search = substr($search,0,$pos); 47 | } 48 | // remove eval-modifier from $search 49 | if (preg_match('!([a-zA-Z\s]+)$!s', $search, $match) && (strpos($match[1], 'e') !== false)) { 50 | $search = substr($search, 0, -strlen($match[1])) . preg_replace('![e\s]+!', '', $match[1]); 51 | } 52 | return $search; 53 | } 54 | 55 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifier.replace.php: -------------------------------------------------------------------------------- 1 | 12 | * Name: replace
13 | * Purpose: simple search/replace 14 | * 15 | * @link http://smarty.php.net/manual/en/language.modifier.replace.php replace (Smarty online manual) 16 | * @author Monte Ohrt 17 | * @author Uwe Tews 18 | * @param string $string input string 19 | * @param string $search text to search for 20 | * @param string $replace replacement text 21 | * @return string 22 | */ 23 | function smarty_modifier_replace($string, $search, $replace) 24 | { 25 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 26 | require_once(SMARTY_PLUGINS_DIR . 'shared.mb_str_replace.php'); 27 | return smarty_mb_str_replace($search, $replace, $string); 28 | } 29 | 30 | return str_replace($search, $replace, $string); 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifier.spacify.php: -------------------------------------------------------------------------------- 1 | 12 | * Name: spacify
13 | * Purpose: add spaces between characters in a string 14 | * 15 | * @link http://smarty.php.net/manual/en/language.modifier.spacify.php spacify (Smarty online manual) 16 | * @author Monte Ohrt 17 | * @param string $string input string 18 | * @param string $spacify_char string to insert between characters. 19 | * @return string 20 | */ 21 | function smarty_modifier_spacify($string, $spacify_char = ' ') 22 | { 23 | // well… what about charsets besides latin and UTF-8? 24 | return implode($spacify_char, preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY)); 25 | } 26 | 27 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.cat.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: cat
14 | * Date: Feb 24, 2003
15 | * Purpose: catenate a value to a variable
16 | * Input: string to catenate
17 | * Example: {$var|cat:"foo"} 18 | * 19 | * @link http://smarty.php.net/manual/en/language.modifier.cat.php cat 20 | * (Smarty online manual) 21 | * @author Uwe Tews 22 | * @param array $params parameters 23 | * @return string with compiled code 24 | */ 25 | function smarty_modifiercompiler_cat($params, $compiler) 26 | { 27 | return '('.implode(').(', $params).')'; 28 | } 29 | 30 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.count_characters.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: count_characteres
14 | * Purpose: count the number of characters in a text 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.count.characters.php count_characters (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_count_characters($params, $compiler) 22 | { 23 | if (!isset($params[1]) || $params[1] != 'true') { 24 | return 'preg_match_all(\'/[^\s]/u\',' . $params[0] . ', $tmp)'; 25 | } 26 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 27 | return 'mb_strlen(' . $params[0] . ', SMARTY_RESOURCE_CHAR_SET)'; 28 | } 29 | // no MBString fallback 30 | return 'strlen(' . $params[0] . ')'; 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.count_paragraphs.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: count_paragraphs
14 | * Purpose: count the number of paragraphs in a text 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php 17 | * count_paragraphs (Smarty online manual) 18 | * @author Uwe Tews 19 | * @param array $params parameters 20 | * @return string with compiled code 21 | */ 22 | function smarty_modifiercompiler_count_paragraphs($params, $compiler) 23 | { 24 | // count \r or \n characters 25 | return '(preg_match_all(\'#[\r\n]+#\', ' . $params[0] . ', $tmp)+1)'; 26 | } 27 | 28 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.count_sentences.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: count_sentences 14 | * Purpose: count the number of sentences in a text 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.count.paragraphs.php 17 | * count_sentences (Smarty online manual) 18 | * @author Uwe Tews 19 | * @param array $params parameters 20 | * @return string with compiled code 21 | */ 22 | function smarty_modifiercompiler_count_sentences($params, $compiler) 23 | { 24 | // find periods, question marks, exclamation marks with a word before but not after. 25 | return 'preg_match_all("#\w[\.\?\!](\W|$)#uS", ' . $params[0] . ', $tmp)'; 26 | } 27 | 28 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.count_words.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: count_words
14 | * Purpose: count the number of words in a text 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_count_words($params, $compiler) 22 | { 23 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 24 | // return 'preg_match_all(\'#[\w\pL]+#u\', ' . $params[0] . ', $tmp)'; 25 | // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592 26 | return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/u\', ' . $params[0] . ', $tmp)'; 27 | } 28 | // no MBString fallback 29 | return 'str_word_count(' . $params[0] . ')'; 30 | } 31 | 32 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.default.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: default
14 | * Purpose: designate default value for empty variables 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.default.php default (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_default ($params, $compiler) 22 | { 23 | $output = $params[0]; 24 | if (!isset($params[1])) { 25 | $params[1] = "''"; 26 | } 27 | 28 | array_shift($params); 29 | foreach ($params as $param) { 30 | $output = '(($tmp = @' . $output . ')===null||$tmp===\'\' ? ' . $param . ' : $tmp)'; 31 | } 32 | return $output; 33 | } 34 | 35 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.from_charset.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: from_charset
14 | * Purpose: convert character encoding from $charset to internal encoding 15 | * 16 | * @author Rodney Rehm 17 | * @param array $params parameters 18 | * @return string with compiled code 19 | */ 20 | function smarty_modifiercompiler_from_charset($params, $compiler) 21 | { 22 | if (!SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 23 | // FIXME: (rodneyrehm) shouldn't this throw an error? 24 | return $params[0]; 25 | } 26 | 27 | if (!isset($params[1])) { 28 | $params[1] = '"ISO-8859-1"'; 29 | } 30 | 31 | return 'mb_convert_encoding(' . $params[0] . ', SMARTY_RESOURCE_CHAR_SET, ' . $params[1] . ')'; 32 | } 33 | 34 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.indent.php: -------------------------------------------------------------------------------- 1 | 12 | * Name: indent
13 | * Purpose: indent lines of text 14 | * 15 | * @link http://www.smarty.net/manual/en/language.modifier.indent.php indent (Smarty online manual) 16 | * @author Uwe Tews 17 | * @param array $params parameters 18 | * @return string with compiled code 19 | */ 20 | 21 | function smarty_modifiercompiler_indent($params, $compiler) 22 | { 23 | if (!isset($params[1])) { 24 | $params[1] = 4; 25 | } 26 | if (!isset($params[2])) { 27 | $params[2] = "' '"; 28 | } 29 | return 'preg_replace(\'!^!m\',str_repeat(' . $params[2] . ',' . $params[1] . '),' . $params[0] . ')'; 30 | } 31 | 32 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.lower.php: -------------------------------------------------------------------------------- 1 | 12 | * Name: lower
13 | * Purpose: convert string to lowercase 14 | * 15 | * @link http://www.smarty.net/manual/en/language.modifier.lower.php lower (Smarty online manual) 16 | * @author Monte Ohrt 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | 22 | function smarty_modifiercompiler_lower($params, $compiler) 23 | { 24 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 25 | return 'mb_strtolower(' . $params[0] . ',SMARTY_RESOURCE_CHAR_SET)' ; 26 | } 27 | // no MBString fallback 28 | return 'strtolower(' . $params[0] . ')'; 29 | } 30 | 31 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.noprint.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: noprint
14 | * Purpose: return an empty string 15 | * 16 | * @author Uwe Tews 17 | * @param array $params parameters 18 | * @return string with compiled code 19 | */ 20 | function smarty_modifiercompiler_noprint($params, $compiler) 21 | { 22 | return "''"; 23 | } 24 | 25 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.string_format.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: string_format
14 | * Purpose: format strings via sprintf 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.string.format.php string_format (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_string_format($params, $compiler) 22 | { 23 | return 'sprintf(' . $params[1] . ',' . $params[0] . ')'; 24 | } 25 | 26 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.strip.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: strip
14 | * Purpose: Replace all repeated spaces, newlines, tabs 15 | * with a single space or supplied replacement string.
16 | * Example: {$var|strip} {$var|strip:" "}
17 | * Date: September 25th, 2002 18 | * 19 | * @link http://www.smarty.net/manual/en/language.modifier.strip.php strip (Smarty online manual) 20 | * @author Uwe Tews 21 | * @param array $params parameters 22 | * @return string with compiled code 23 | */ 24 | 25 | function smarty_modifiercompiler_strip($params, $compiler) 26 | { 27 | if (!isset($params[1])) { 28 | $params[1] = "' '"; 29 | } 30 | return "preg_replace('!\s+!u', {$params[1]},{$params[0]})"; 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.strip_tags.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: strip_tags
14 | * Purpose: strip html tags from text 15 | * 16 | * @link http://www.smarty.net/manual/en/language.modifier.strip.tags.php strip_tags (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_strip_tags($params, $compiler) 22 | { 23 | if (!isset($params[1])) { 24 | $params[1] = true; 25 | } 26 | if ($params[1] === true) { 27 | return "preg_replace('!<[^>]*?>!', ' ', {$params[0]})"; 28 | } else { 29 | return 'strip_tags(' . $params[0] . ')'; 30 | } 31 | } 32 | 33 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.to_charset.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: to_charset
14 | * Purpose: convert character encoding from internal encoding to $charset 15 | * 16 | * @author Rodney Rehm 17 | * @param array $params parameters 18 | * @return string with compiled code 19 | */ 20 | function smarty_modifiercompiler_to_charset($params, $compiler) 21 | { 22 | if (!SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 23 | // FIXME: (rodneyrehm) shouldn't this throw an error? 24 | return $params[0]; 25 | } 26 | 27 | if (!isset($params[1])) { 28 | $params[1] = '"ISO-8859-1"'; 29 | } 30 | 31 | return 'mb_convert_encoding(' . $params[0] . ', ' . $params[1] . ', SMARTY_RESOURCE_CHAR_SET)'; 32 | } 33 | 34 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.unescape.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: unescape
14 | * Purpose: unescape html entities 15 | * 16 | * @author Rodney Rehm 17 | * @param array $params parameters 18 | * @return string with compiled code 19 | */ 20 | function smarty_modifiercompiler_unescape($params, $compiler) 21 | { 22 | if (!isset($params[1])) { 23 | $params[1] = 'html'; 24 | } 25 | if (!isset($params[2])) { 26 | $params[2] = "SMARTY_RESOURCE_CHAR_SET"; 27 | } else { 28 | $params[2] = "'" . $params[2] . "'"; 29 | } 30 | 31 | switch (trim($params[1], '"\'')) { 32 | case 'entity': 33 | return 'mb_convert_encoding(' . $params[0] . ', ' . $params[2] . ', \'HTML-ENTITIES\')'; 34 | case 'htmlall': 35 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 36 | return 'mb_convert_encoding(' . $params[0] . ', ' . $params[2] . ', \'HTML-ENTITIES\')'; 37 | } 38 | return 'html_entity_decode(' . $params[0] . ', ENT_QUOTES, ' . $params[2] . ')'; 39 | 40 | case 'html': 41 | return 'htmlspecialchars_decode(' . $params[0] . ', ENT_QUOTES)'; 42 | 43 | default: 44 | return $params[0]; 45 | } 46 | } 47 | 48 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.upper.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: lower
14 | * Purpose: convert string to uppercase 15 | * 16 | * @link http://smarty.php.net/manual/en/language.modifier.upper.php lower (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_upper($params, $compiler) 22 | { 23 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 24 | return 'mb_strtoupper(' . $params[0] . ',SMARTY_RESOURCE_CHAR_SET)' ; 25 | } 26 | // no MBString fallback 27 | return 'strtoupper(' . $params[0] . ')'; 28 | } 29 | 30 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/modifiercompiler.wordwrap.php: -------------------------------------------------------------------------------- 1 | 13 | * Name: wordwrap
14 | * Purpose: wrap a string of text at a given length 15 | * 16 | * @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php wordwrap (Smarty online manual) 17 | * @author Uwe Tews 18 | * @param array $params parameters 19 | * @return string with compiled code 20 | */ 21 | function smarty_modifiercompiler_wordwrap($params, $compiler) 22 | { 23 | if (!isset($params[1])) { 24 | $params[1] = 80; 25 | } 26 | if (!isset($params[2])) { 27 | $params[2] = '"\n"'; 28 | } 29 | if (!isset($params[3])) { 30 | $params[3] = 'false'; 31 | } 32 | $function = 'wordwrap'; 33 | if (SMARTY_MBSTRING /* ^phpunit */&&empty($_SERVER['SMARTY_PHPUNIT_DISABLE_MBSTRING'])/* phpunit$ */) { 34 | if ($compiler->tag_nocache | $compiler->nocache) { 35 | $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php'; 36 | $compiler->template->required_plugins['nocache']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap'; 37 | } else { 38 | $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['file'] = SMARTY_PLUGINS_DIR .'shared.mb_wordwrap.php'; 39 | $compiler->template->required_plugins['compiled']['wordwrap']['modifier']['function'] = 'smarty_mb_wordwrap'; 40 | } 41 | $function = 'smarty_mb_wordwrap'; 42 | } 43 | return $function . '(' . $params[0] . ',' . $params[1] . ',' . $params[2] . ',' . $params[3] . ')'; 44 | } 45 | 46 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/shared.escape_special_chars.php: -------------------------------------------------------------------------------- 1 | =')) { 10 | /** 11 | * escape_special_chars common function 12 | * 13 | * Function: smarty_function_escape_special_chars
14 | * Purpose: used by other smarty functions to escape 15 | * special chars except for already escaped ones 16 | * 17 | * @author Monte Ohrt 18 | * @param string $string text that should by escaped 19 | * @return string 20 | */ 21 | function smarty_function_escape_special_chars($string) 22 | { 23 | if (!is_array($string)) { 24 | $string = htmlspecialchars($string, ENT_COMPAT, SMARTY_RESOURCE_CHAR_SET, false); 25 | } 26 | return $string; 27 | } 28 | } else { 29 | /** 30 | * escape_special_chars common function 31 | * 32 | * Function: smarty_function_escape_special_chars
33 | * Purpose: used by other smarty functions to escape 34 | * special chars except for already escaped ones 35 | * 36 | * @author Monte Ohrt 37 | * @param string $string text that should by escaped 38 | * @return string 39 | */ 40 | function smarty_function_escape_special_chars($string) 41 | { 42 | if (!is_array($string)) { 43 | $string = preg_replace('!&(#?\w+);!', '%%%SMARTY_START%%%\\1%%%SMARTY_END%%%', $string); 44 | $string = htmlspecialchars($string); 45 | $string = str_replace(array('%%%SMARTY_START%%%', '%%%SMARTY_END%%%'), array('&', ';'), $string); 46 | } 47 | return $string; 48 | } 49 | } 50 | 51 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/shared.literal_compiler_param.php: -------------------------------------------------------------------------------- 1 | 11 | * Purpose: used by other smarty functions to make a timestamp from a string. 12 | * 13 | * @author Monte Ohrt 14 | * @param DateTime|int|string $string date object, timestamp or string that can be converted using strtotime() 15 | * @return int 16 | */ 17 | function smarty_make_timestamp($string) 18 | { 19 | if (empty($string)) { 20 | // use "now": 21 | return time(); 22 | } elseif ($string instanceof DateTime) { 23 | return $string->getTimestamp(); 24 | } elseif (strlen($string) == 14 && ctype_digit($string)) { 25 | // it is mysql timestamp format of YYYYMMDDHHMMSS? 26 | return mktime(substr($string, 8, 2),substr($string, 10, 2),substr($string, 12, 2), 27 | substr($string, 4, 2),substr($string, 6, 2),substr($string, 0, 4)); 28 | } elseif (is_numeric($string)) { 29 | // it is a numeric string, we handle it as timestamp 30 | return (int) $string; 31 | } else { 32 | // strtotime should handle it 33 | $time = strtotime($string); 34 | if ($time == -1 || $time === false) { 35 | // strtotime() was not able to parse $string, use "now": 36 | return time(); 37 | } 38 | return $time; 39 | } 40 | } 41 | 42 | ?> 43 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/shared.mb_str_replace.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/shared.mb_unicode.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/plugins/variablefilter.htmlspecialchars.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_compile_append.php: -------------------------------------------------------------------------------- 1 | required_attributes = array('var', 'value'); 32 | $this->shorttag_order = array('var', 'value'); 33 | $this->optional_attributes = array('scope', 'index'); 34 | // check and get attributes 35 | $_attr = $this->getAttributes($compiler, $args); 36 | // map to compile assign attributes 37 | if (isset($_attr['index'])) { 38 | $_params['smarty_internal_index'] = '[' . $_attr['index'] . ']'; 39 | unset($_attr['index']); 40 | } else { 41 | $_params['smarty_internal_index'] = '[]'; 42 | } 43 | $_new_attr = array(); 44 | foreach ($_attr as $key => $value) { 45 | $_new_attr[] = array($key => $value); 46 | } 47 | // call compile assign 48 | return parent::compile($_new_attr, $compiler, $_params); 49 | } 50 | 51 | } 52 | 53 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_compile_debug.php: -------------------------------------------------------------------------------- 1 | getAttributes($compiler, $args); 32 | 33 | // compile always as nocache 34 | $compiler->tag_nocache = true; 35 | 36 | // display debug template 37 | $_output = "smarty->loadPlugin('Smarty_Internal_Debug'); Smarty_Internal_Debug::display_debug(\$_smarty_tpl); ?>"; 38 | return $_output; 39 | } 40 | 41 | } 42 | 43 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_compile_ldelim.php: -------------------------------------------------------------------------------- 1 | getAttributes($compiler, $args); 31 | if ($_attr['nocache'] === true) { 32 | $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno); 33 | } 34 | // this tag does not return compiled code 35 | $compiler->has_code = true; 36 | return $compiler->smarty->left_delimiter; 37 | } 38 | 39 | } 40 | 41 | ?> 42 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_compile_rdelim.php: -------------------------------------------------------------------------------- 1 | getAttributes($compiler, $args); 31 | if ($_attr['nocache'] === true) { 32 | $compiler->trigger_template_error('nocache option not allowed', $compiler->lex->taglineno); 33 | } 34 | // this tag does not return compiled code 35 | $compiler->has_code = true; 36 | return $compiler->smarty->right_delimiter; 37 | } 38 | 39 | } 40 | 41 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_get_include_path.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_nocache_insert.php: -------------------------------------------------------------------------------- 1 | assign('{$_assign}' , {$_function} (" . var_export($_attr, true) . ",\$_smarty_tpl), true);?>"; 41 | } else { 42 | $_output .= "echo {$_function}(" . var_export($_attr, true) . ",\$_smarty_tpl);?>"; 43 | } 44 | $_tpl = $_template; 45 | while ($_tpl->parent instanceof Smarty_Internal_Template) { 46 | $_tpl = $_tpl->parent; 47 | } 48 | return "/*%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/" . $_output . "/*/%%SmartyNocache:{$_tpl->properties['nocache_hash']}%%*/"; 49 | } 50 | 51 | } 52 | 53 | ?> 54 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_resource_recompiled.php: -------------------------------------------------------------------------------- 1 | filepath = false; 30 | $compiled->timestamp = false; 31 | $compiled->exists = false; 32 | } 33 | 34 | } 35 | 36 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_resource_uncompiled.php: -------------------------------------------------------------------------------- 1 | filepath = false; 38 | $compiled->timestamp = false; 39 | $compiled->exists = false; 40 | } 41 | 42 | } 43 | 44 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.compile_config.php: -------------------------------------------------------------------------------- 1 | _var_bracket_regexp . ')|\.\$?\w+|\S+!', $variable, $_match); 18 | $variable = $_match[0]; 19 | $var_name = array_shift($variable); 20 | 21 | $_result = "\$this->_confs['$var_name']"; 22 | foreach ($variable as $var) 23 | { 24 | if ($var{0} == '[') 25 | { 26 | $var = substr($var, 1, -1); 27 | if (is_numeric($var)) 28 | { 29 | $_result .= "[$var]"; 30 | } 31 | elseif ($var{0} == '$') 32 | { 33 | $_result .= "[" . $object->_compile_variable($var) . "]"; 34 | } 35 | elseif ($var{0} == '#') 36 | { 37 | $_result .= "[" . $object->_compile_config($var) . "]"; 38 | } 39 | else 40 | { 41 | $_result .= "['$var']"; 42 | } 43 | } 44 | else if ($var{0} == '.') 45 | { 46 | if ($var{1} == '$') 47 | { 48 | $_result .= "[\$this->_TPL['" . substr($var, 2) . "']]"; 49 | } 50 | else 51 | { 52 | $_result .= "['" . substr($var, 1) . "']"; 53 | } 54 | } 55 | else if (substr($var,0,2) == '->') 56 | { 57 | if(substr($var,2,2) == '__') 58 | { 59 | $object->trigger_error('call to internal object members is not allowed', E_USER_ERROR, __FILE__, __LINE__); 60 | } 61 | else if (substr($var, 2, 1) == '$') 62 | { 63 | $_output .= '->{(($var=$this->_TPL[\''.substr($var,3).'\']) && substr($var,0,2)!=\'__\') ? $_var : $this->trigger_error("cannot access property \\"$var\\"")}'; 64 | } 65 | } 66 | else 67 | { 68 | $object->trigger_error('#' . $var_name.implode('', $variable) . '# is an invalid reference', E_USER_ERROR, __FILE__, __LINE__); 69 | } 70 | } 71 | return $_result; 72 | } 73 | 74 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.compile_custom_block.php: -------------------------------------------------------------------------------- 1 | _plugin_exists($function, "block")) 22 | { 23 | if ($start_tag) 24 | { 25 | $_args = $object->_parse_arguments($arguments); 26 | foreach($_args as $key => $value) 27 | { 28 | if (is_bool($value)) 29 | { 30 | $value = $value ? 'true' : 'false'; 31 | } 32 | if (is_null($value)) 33 | { 34 | $value = 'null'; 35 | } 36 | $_args[$key] = "'$key' => $value"; 37 | } 38 | $_result = "_tag_stack[] = array('$function', array(".implode(',', (array)$_args).")); "; 39 | $_result .= $function . '(array(' . implode(',', (array)$_args) .'), null, $this); '; 40 | $_result .= 'ob_start(); ?>'; 41 | } 42 | else 43 | { 44 | $_result .= '_block_content = ob_get_contents(); ob_end_clean(); '; 45 | $_result .= '$this->_block_content = ' . $function . '($this->_tag_stack[count($this->_tag_stack) - 1][1], $this->_block_content, $this); '; 46 | if (!empty($modifiers)) 47 | { 48 | $_result .= '$this->_block_content = ' . $object->_parse_modifier('$this->_block_content', $modifiers) . '; '; 49 | } 50 | $_result .= 'echo $this->_block_content; array_pop($this->_tag_stack); ?>'; 51 | } 52 | return true; 53 | } 54 | else 55 | { 56 | return false; 57 | } 58 | } 59 | 60 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.compile_custom_function.php: -------------------------------------------------------------------------------- 1 | _plugin_exists($function, "function")) 12 | { 13 | $_args = $object->_parse_arguments($arguments); 14 | foreach($_args as $key => $value) 15 | { 16 | if (is_bool($value)) 17 | { 18 | $value = $value ? 'true' : 'false'; 19 | } 20 | if (is_null($value)) 21 | { 22 | $value = 'null'; 23 | } 24 | $_args[$key] = "'$key' => $value"; 25 | } 26 | $_result = '_parse_modifier($function . '(array(' . implode(',', (array)$_args) . '), $this)', $modifiers) . '; '; 30 | } 31 | else 32 | { 33 | $_result .= $function . '(array(' . implode(',', (array)$_args) . '), $this);'; 34 | } 35 | $_result .= '?>'; 36 | return true; 37 | } 38 | else 39 | { 40 | return false; 41 | } 42 | } 43 | 44 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.generate_compiler_debug_output.php: -------------------------------------------------------------------------------- 1 | _vars;\n"; 12 | $debug_output .= "ksort(\$assigned_vars);\n"; 13 | $debug_output .= "if (@is_array(\$this->_config[0])) {\n"; 14 | $debug_output .= " \$config_vars = \$this->_config[0];\n"; 15 | $debug_output .= " ksort(\$config_vars);\n"; 16 | $debug_output .= " \$this->assign('_debug_config_keys', array_keys(\$config_vars));\n"; 17 | $debug_output .= " \$this->assign('_debug_config_vals', array_values(\$config_vars));\n"; 18 | $debug_output .= "} \n"; 19 | 20 | $debug_output .= "\$included_templates = \$this->_templatelite_debug_info;\n"; 21 | 22 | $debug_output .= "\$this->assign('_debug_keys', array_keys(\$assigned_vars));\n"; 23 | $debug_output .= "\$this->assign('_debug_vals', array_values(\$assigned_vars));\n"; 24 | $debug_output .= "\$this->assign('_debug_tpls', \$included_templates);\n"; 25 | 26 | $debug_output .= "\$this->_templatelite_debug_loop = true;\n"; 27 | $debug_output .= "\$this->_templatelite_debug_dir = \$this->template_dir;\n"; 28 | $debug_output .= "\$this->template_dir = TEMPLATE_LITE_DIR . 'internal/';\n"; 29 | $debug_output .= "echo \$this->_fetch_compile('debug.tpl');\n"; 30 | $debug_output .= "\$this->template_dir = \$this->_templatelite_debug_dir;\n"; 31 | $debug_output .= "\$this->_templatelite_debug_loop = false; \n"; 32 | return $debug_output; 33 | } 34 | 35 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.include.php: -------------------------------------------------------------------------------- 1 | _parse_arguments($arguments); 12 | 13 | $arg_list = array(); 14 | if (empty($_args['file'])) 15 | { 16 | $object->trigger_error("missing 'file' attribute in include tag", E_USER_ERROR, __FILE__, __LINE__); 17 | } 18 | 19 | foreach ($_args as $arg_name => $arg_value) 20 | { 21 | if ($arg_name == 'file') 22 | { 23 | $include_file = $arg_value; 24 | continue; 25 | } 26 | else if ($arg_name == 'assign') 27 | { 28 | $assign_var = $arg_value; 29 | continue; 30 | } 31 | if (is_bool($arg_value)) 32 | { 33 | $arg_value = $arg_value ? 'true' : 'false'; 34 | } 35 | $arg_list[] = "'$arg_name' => $arg_value"; 36 | } 37 | 38 | if (isset($assign_var)) 39 | { 40 | $output = '_vars;' . 41 | "\n\$this->assign(" . $assign_var . ", \$this->_fetch_compile_include(" . $include_file . ", array(".implode(',', (array)$arg_list).")));\n" . 42 | "\$this->_vars = \$_templatelite_tpl_vars;\n" . 43 | "unset(\$_templatelite_tpl_vars);\n" . 44 | ' ?>'; 45 | } 46 | else 47 | { 48 | $output = '_vars;' . 49 | "\necho \$this->_fetch_compile_include(" . $include_file . ", array(".implode(',', (array)$arg_list)."));\n" . 50 | "\$this->_vars = \$_templatelite_tpl_vars;\n" . 51 | "unset(\$_templatelite_tpl_vars);\n" . 52 | ' ?>'; 53 | } 54 | return $output; 55 | } 56 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/compile.parse_is_expr.php: -------------------------------------------------------------------------------- 1 | _parse_variable($expr_arg) . "))"; 30 | } 31 | else 32 | { 33 | $expr = "!(1 & $is_arg)"; 34 | } 35 | break; 36 | 37 | case 'odd': 38 | if (isset($_args[$expr_end]) && $_args[$expr_end] == 'by') 39 | { 40 | $expr_end++; 41 | $expr_arg = $_args[$expr_end++]; 42 | $expr = "(1 & ($is_arg / " . $object->_parse_variable($expr_arg) . "))"; 43 | } 44 | else 45 | { 46 | $expr = "(1 & $is_arg)"; 47 | } 48 | break; 49 | 50 | case 'div': 51 | if (@$_args[$expr_end] == 'by') 52 | { 53 | $expr_end++; 54 | $expr_arg = $_args[$expr_end++]; 55 | $expr = "!($is_arg % " . $object->_parse_variable($expr_arg) . ")"; 56 | } 57 | else 58 | { 59 | $object->trigger_error("expecting 'by' after 'div'", E_USER_ERROR, __FILE__, __LINE__); 60 | } 61 | break; 62 | 63 | default: 64 | $object->trigger_error("unknown 'is' expression - '$expr_type'", E_USER_ERROR, __FILE__, __LINE__); 65 | break; 66 | } 67 | 68 | if ($negate_expr) { 69 | $expr = "!($expr)"; 70 | } 71 | 72 | array_splice($_args, 0, $expr_end, $expr); 73 | 74 | return $_args; 75 | } 76 | 77 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/template.build_dir.php: -------------------------------------------------------------------------------- 1 | _get_dir($dir); 15 | } 16 | $_result = $object->_get_dir($dir); 17 | foreach($_args as $value) 18 | { 19 | $_result .= $value.DIRECTORY_SEPARATOR; 20 | if (!is_dir($_result)) 21 | { 22 | @mkdir($_result, 0777); 23 | } 24 | } 25 | return $_result; 26 | } 27 | 28 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/template.destroy_dir.php: -------------------------------------------------------------------------------- 1 | template_dir = $object->_get_dir($object->template_dir); 32 | 33 | $name = ($object->encode_file_name) ? md5($object->template_dir.$file).'.php' : str_replace(".", "_", str_replace("/", "_", $file)).'.php'; 34 | @unlink($dir.$name); 35 | } 36 | else 37 | { 38 | $_args = ""; 39 | foreach(explode('|', $id) as $value) 40 | { 41 | $_args .= $value.DIRECTORY_SEPARATOR; 42 | } 43 | template_rm_dir($dir.DIRECTORY_SEPARATOR.$_args); 44 | } 45 | } 46 | } 47 | 48 | function template_rm_dir($dir) 49 | { 50 | if (is_file(substr($dir, 0, -1))) 51 | { 52 | @unlink(substr($dir, 0, -1)); 53 | return; 54 | } 55 | if ($d = opendir($dir)) 56 | { 57 | while(($f = readdir($d)) !== false) 58 | { 59 | if ($f != '.' && $f != '..') 60 | { 61 | template_rm_dir($dir.$f.DIRECTORY_SEPARATOR, $object); 62 | } 63 | } 64 | @rmdir($dir.$f); 65 | } 66 | } 67 | 68 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/template.fetch_compile_include.php: -------------------------------------------------------------------------------- 1 | debugging) 12 | { 13 | $object->_templatelite_debug_info[] = array('type' => 'template', 14 | 'filename' => $_templatelite_include_file, 15 | 'depth' => ++$object->_inclusion_depth, 16 | 'exec_time' => array_sum(explode(' ', microtime())) ); 17 | $included_tpls_idx = count($object->_templatelite_debug_info) - 1; 18 | } 19 | 20 | $object->_vars = array_merge($object->_vars, $_templatelite_include_vars); 21 | $_templatelite_include_file = $object->_get_resource($_templatelite_include_file); 22 | if(isset($object->_confs[0])) 23 | { 24 | array_unshift($object->_confs, $object->_confs[0]); 25 | $_compiled_output = $object->_fetch_compile($_templatelite_include_file); 26 | array_shift($object->_confs); 27 | } 28 | else 29 | { 30 | $_compiled_output = $object->_fetch_compile($_templatelite_include_file); 31 | } 32 | 33 | $object->_inclusion_depth--; 34 | 35 | if ($object->debugging) 36 | { 37 | $object->_templatelite_debug_info[$included_tpls_idx]['exec_time'] = array_sum(explode(' ', microtime())) - $object->_templatelite_debug_info[$included_tpls_idx]['exec_time']; 38 | } 39 | return $_compiled_output; 40 | } 41 | 42 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/TemplateLite/internal/template.generate_debug_output.php: -------------------------------------------------------------------------------- 1 | _vars; 12 | ksort($assigned_vars); 13 | if (@is_array($object->_config[0])) 14 | { 15 | $config_vars = $object->_config[0]; 16 | ksort($config_vars); 17 | $object->assign("_debug_config_keys", array_keys($config_vars)); 18 | $object->assign("_debug_config_vals", array_values($config_vars)); 19 | } 20 | 21 | $included_templates = $object->_templatelite_debug_info; 22 | 23 | $object->assign("_debug_keys", array_keys($assigned_vars)); 24 | $object->assign("_debug_vals", array_values($assigned_vars)); 25 | $object->assign("_debug_tpls", $included_templates); 26 | $object->assign("_templatelite_debug_output", ""); 27 | 28 | $object->_templatelite_debug_loop = true; 29 | $object->_templatelite_debug_dir = $object->template_dir; 30 | $object->template_dir = TEMPLATE_LITE_DIR . "internal/"; 31 | $debug_output = $object->fetch("debug.tpl"); 32 | $object->template_dir = $object->_templatelite_debug_dir; 33 | $object->_templatelite_debug_loop = false; 34 | return $debug_output; 35 | } 36 | 37 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/AopSdk.php: -------------------------------------------------------------------------------- 1 | option["autoload_dir"] = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'aop'; 41 | $lotus->devMode = AOP_SDK_DEV_MODE; 42 | $lotus->defaultStoreDir = AOP_SDK_WORK_DIR; 43 | $lotus->init(); -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/AopEncrypt.php: -------------------------------------------------------------------------------- 1 | gatewayUrl = GATEWAYURL; 9 | $aop->appId =APPID; 10 | $aop->rsaPrivateKeyFilePath =RSAPRIVATEKEYFILEPATH; 11 | $aop->alipayPublicKey=ALIPAYPUBLICKEY; 12 | $aop->apiVersion =APIVESION; 13 | $aop->postCharset=POSTCHARSET; 14 | $aop->format=FORMAT; 15 | $request = new AlipaySystemOauthTokenRequest(); 16 | $request ->setGrantType("authorization_code"); 17 | $request ->setCode($_REQUEST['auth_code']); 18 | $result = $aop->execute ($request); 19 | 20 | 21 | 22 | $data=(array)$result; 23 | $oauth_token_response=(array)$data['alipay_system_oauth_token_response']; 24 | 25 | var_dump($oauth_token_response); 26 | 27 | $request_create_trade = new AlipayTradeCreateRequest (); 28 | 29 | $orderInfo=array( 30 | 'out_trade_no'=>'20150320010101001', 31 | 'total_amount'=>'0.01', 32 | 'subject'=>'一只小黄鸭', 33 | 'buyer_id'=>$oauth_token_response['user_id'] 34 | ); 35 | 36 | var_dump($orderInfo); 37 | $request_create_trade->setBizContent(json_encode($orderInfo)); 38 | $results = $aop->execute($request_create_trade); 39 | var_dump($results); 40 | 41 | $responseNode = str_replace(".", "_", $request_create_trade->getApiMethodName()) . "_response"; 42 | echo "############################\n"; 43 | 44 | $resultCode = $results->$responseNode->code; 45 | var_dump($responseNode); 46 | if(!empty($resultCode)&&$resultCode == 10000){ 47 | echo "成功"; 48 | } else { 49 | echo "失败"; 50 | } 51 | 52 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/case/getUserInfo.php: -------------------------------------------------------------------------------- 1 | gatewayUrl = GATEWAYURL; 8 | $aop->appId =APPID; 9 | $aop->rsaPrivateKeyFilePath =RSAPRIVATEKEYFILEPATH; 10 | $aop->alipayPublicKey=ALIPAYPUBLICKEY; 11 | $aop->apiVersion =APIVESION; 12 | $aop->postCharset=POSTCHARSET; 13 | $aop->format=FORMAT; 14 | $request = new AlipaySystemOauthTokenRequest(); 15 | $request ->setGrantType("authorization_code"); 16 | $request ->setCode($_REQUEST['auth_code']); 17 | $result = $aop->execute ($request); 18 | 19 | 20 | 21 | $data=(array)$result; 22 | $oauth_token_response=(array)$data['alipay_system_oauth_token_response']; 23 | $tag=$_COOKIE['tag']; 24 | $info=$_COOKIE['info']; 25 | 26 | if($tag=="qrpay") { 27 | 28 | echo ""; 29 | }else{ 30 | echo ""; 31 | 32 | } 33 | 34 | ?> -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/case/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 7 | 8 | Document 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/case/index.php: -------------------------------------------------------------------------------- 1 | gatewayUrl = 'https://openapi.alipay.com/gateway.do'; 7 | $aop->appId = '2016031701220519'; 8 | $aop->rsaPrivateKeyFilePath ='rsa_private_key.pem'; 9 | $aop->alipayPublicKey='alipay_public_key.pem'; 10 | $aop->apiVersion = '1.0'; 11 | $aop->postCharset='UTF-8'; 12 | $aop->format='json'; 13 | $request = new AlipayTradeWapPayRequest (); 14 | 15 | $data=array( 16 | "body"=>"note7手機大甩卖", 17 | "subject"=>"手机大甩卖", 18 | "out_trade_no"=>"20160914132623", 19 | "timeout_express"=>"90m", 20 | "total_amount"=>"9.00", 21 | "product_code"=>"QUICK_WAP_PAY" 22 | ); 23 | 24 | $request->setBizContent(json_encode($data)); 25 | 26 | 27 | 28 | $result = $aop->pageExecute ($request); 29 | file_put_contents("../log.txt",$result."\n",FILE_APPEND); 30 | echo $result; -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/test/alipay_public_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN PUBLIC KEY----- 2 | MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnxj/9qwVfgoUh/y2W89L6BkRA 3 | FljhNhgPdyPuBV64bfQNN1PjbCzkIM6qRdKBoLPXmKKMiFYnkd6rAoprih3/PrQE 4 | B/VsW8OoM8fxn67UDYuyBTqA23MML9q1+ilIZwBC2AQ2UBVOrFXfFl75p6/B5Ksi 5 | NG9zpgmLCUYuLkxpLQIDAQAB 6 | -----END PUBLIC KEY----- -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/aop/test/rsa_private_key.pem: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIICXAIBAAKBgQD3PHSswemr76PMGFtOfn/ZcoQAFiB+0Sn2lYTJrKmSSjUFkBUX 3 | xzUEXmTDSv+8WtOkFSfks7KVFsPfSxG6kQWQ8T+Dk9MRWwtReCVujUK91eawkAcY 4 | B60aTRj9IQZPOPmnHXLoT3C0YgxTYzamjBxG+l7xPYHDwuS805TA4cwEeQIDAQAB 5 | AoGBAMIX6hj+Gu5qMZM2w+e5k7EoH8zZkiU9G86Dzz1smatJKpr1ZDnIoCyP1lci 6 | 9+XtAB3epfT7xgUZXChejMqEs3JtjK5r1drEpXrv/a12dXdi2XGtCm7u+pTV6LX0 7 | qJr/UWg0SOawfkoTnM+fsH3E4z8RVRiJdK77yLmaawdbsvQBAkEA/XLwwNkm3HSj 8 | 3S2lmDc7tPl222r3DOI43AeWtJ1UQjKn954rzHg2h81Rwu0t3RPDi74DTSlVE54Q 9 | sbyO7oqJwQJBAPm5gbwoAgbufc+1Es5RxBraJ+j0KLwXUX36KgqdYttosIXyN7Fy 10 | 5qvUDWqCTn4qslwwF1Bme0fkb2SgEf4ceLkCQF06aXrWpefT8+7I+q+6KXlRhjoB 11 | 56xSjo3JMNNxR+wtzAFWqk/FLHHZwaiNLCC1Q2nk1DwO5x+XNhbbAEyYo0ECQA1i 12 | 1UJ5vooSlKnioexvU5zA3uzM0bYrZdHj7Ab/osHyHaxAbJ3Vc+n4BvQTohN/RGpO 13 | paFIrQkQhKwXLH+7lPkCQCG7XZK3a82q2lhrUSFDv8UAYgttUdM6kOWrXCahQMJf 14 | eb8AgF4OM0ZBVR7P+mHZ5cO/4o3TjYvXQcqXML+F5hQ= 15 | -----END RSA PRIVATE KEY----- -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapter.php: -------------------------------------------------------------------------------- 1 | getRealKey($tableName, $key), $value, $ttl); 12 | } 13 | 14 | public function del($key, $tableName, $connectionResource) 15 | { 16 | return apc_delete($this->getRealKey($tableName, $key)); 17 | } 18 | 19 | public function get($key, $tableName, $connectionResource) 20 | { 21 | return apc_fetch($this->getRealKey($tableName, $key)); 22 | } 23 | 24 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 25 | { 26 | if ($this->del($key, $tableName, $connectionResource)) 27 | { 28 | return $this->add($key, $value, $ttl, $tableName, $connectionResource); 29 | } 30 | else 31 | { 32 | return false; 33 | } 34 | } 35 | 36 | protected function getRealKey($tableName, $key) 37 | { 38 | return $tableName . "-" . $key; 39 | } 40 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterEAccelerator.php: -------------------------------------------------------------------------------- 1 | getRealKey($tableName, $key), $value, $ttl); 13 | } 14 | 15 | public function del($key, $tableName, $connectionResource) 16 | { 17 | return eaccelerator_rm($this->getRealKey($tableName, $key)); 18 | } 19 | 20 | public function get($key, $tableName, $connectionResource) 21 | { 22 | $value = eaccelerator_get($this->getRealKey($tableName, $key)); 23 | if (!empty($value)) 24 | { 25 | return unserialize($value); 26 | } 27 | else 28 | { 29 | return false; 30 | } 31 | } 32 | 33 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 34 | { 35 | if ($this->del($key, $tableName, $connectionResource)) 36 | { 37 | return $this->add($key, $value, $ttl, $tableName, $connectionResource); 38 | } 39 | else 40 | { 41 | return false; 42 | } 43 | } 44 | 45 | protected function getRealKey($tableName, $key) 46 | { 47 | return $tableName . "-" . $key; 48 | } 49 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterFile.php: -------------------------------------------------------------------------------- 1 | prefix = 'LtCache-file'; 8 | $fileStore->useSerialize = true; 9 | $fileStore->init(); 10 | return $fileStore; 11 | } 12 | 13 | public function add($key, $value, $ttl = 0, $tableName, $connectionResource) 14 | { 15 | if (0 != $ttl) 16 | { 17 | $ttl += time(); 18 | } 19 | if (true == $connectionResource->add($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value))) 20 | { 21 | return true; 22 | } 23 | else 24 | { 25 | if ($this->get($key,$tableName,$connectionResource)) 26 | { 27 | return false; 28 | } 29 | else 30 | { 31 | $this->del($key,$tableName,$connectionResource); 32 | return $connectionResource->add($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value)); 33 | } 34 | } 35 | } 36 | 37 | public function del($key, $tableName, $connectionResource) 38 | { 39 | return $connectionResource->del($this->getRealKey($tableName, $key)); 40 | } 41 | 42 | public function get($key, $tableName, $connectionResource) 43 | { 44 | $cachedArray = $connectionResource->get($this->getRealKey($tableName, $key)); 45 | if (is_array($cachedArray) && (0 == $cachedArray["ttl"] || $cachedArray["ttl"] > time())) 46 | { 47 | return $cachedArray["value"]; 48 | } 49 | else 50 | { 51 | return false; 52 | } 53 | } 54 | 55 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 56 | { 57 | if (0 != $ttl) 58 | { 59 | $ttl += time(); 60 | } 61 | return $connectionResource->update($this->getRealKey($tableName, $key), array("ttl" => $ttl, "value" => $value)); 62 | } 63 | 64 | protected function getRealKey($tableName, $key) 65 | { 66 | return $tableName . "-" . $key; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcache.php: -------------------------------------------------------------------------------- 1 | add($this->getRealKey($tableName, $key), $value, false, $ttl); 12 | } 13 | 14 | public function del($key, $tableName, $connectionResource) 15 | { 16 | return $connectionResource->delete($this->getRealKey($tableName, $key), 0); 17 | } 18 | 19 | public function get($key, $tableName, $connectionResource) 20 | { 21 | return $connectionResource->get($this->getRealKey($tableName, $key)); 22 | } 23 | 24 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 25 | { 26 | return $connectionResource->replace($this->getRealKey($tableName, $key), $value, false, $ttl); 27 | } 28 | 29 | protected function getRealKey($tableName, $key) 30 | { 31 | return $tableName . "-" . $key; 32 | } 33 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterMemcached.php: -------------------------------------------------------------------------------- 1 | addServer($hostConf["host"], $hostConf["port"]); 8 | return $connectionResource; 9 | } 10 | 11 | public function add($key, $value, $ttl=0, $tableName, $connectionResource) 12 | { 13 | return $connectionResource->add($this->getRealKey($tableName, $key), $value, $ttl); 14 | } 15 | 16 | public function del($key, $tableName, $connectionResource) 17 | { 18 | return $connectionResource->delete($this->getRealKey($tableName, $key)); 19 | } 20 | 21 | public function get($key, $tableName, $connectionResource) 22 | { 23 | return $connectionResource->get($this->getRealKey($tableName, $key)); 24 | } 25 | 26 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 27 | { 28 | return $connectionResource->replace($this->getRealKey($tableName, $key), $value, $ttl); 29 | } 30 | 31 | protected function getRealKey($tableName, $key) 32 | { 33 | return $tableName . "-" . $key; 34 | } 35 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterPhps.php: -------------------------------------------------------------------------------- 1 | cacheFileRoot = $hostConf['host']; 10 | $fileStore->prefix = 'Ltcache-phps-'; 11 | $fileStore->init(); 12 | return $fileStore; 13 | } 14 | else 15 | { 16 | trigger_error("Must set [host]"); 17 | return false; 18 | } 19 | } 20 | 21 | public function add($key, $value, $ttl = 0, $tableName, $connectionResource) 22 | { 23 | return $connectionResource->add($this->getRealKey($tableName, $key), $this->valueToString($value), $ttl); 24 | } 25 | 26 | public function del($key, $tableName, $connectionResource) 27 | { 28 | return $connectionResource->del($this->getRealKey($tableName, $key)); 29 | } 30 | 31 | public function get($key, $tableName, $connectionResource) 32 | { 33 | return $this->stringToValue($connectionResource->get($this->getRealKey($tableName, $key))); 34 | } 35 | 36 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 37 | { 38 | return $connectionResource->update($this->getRealKey($tableName, $key), $this->valueToString($value), $ttl); 39 | } 40 | 41 | protected function getRealKey($tableName, $key) 42 | { 43 | return $tableName . "-" . $key; 44 | } 45 | 46 | protected function valueToString($value) 47 | { 48 | return serialize($value); 49 | } 50 | 51 | protected function stringToValue($str) 52 | { 53 | return unserialize($str); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Adapter/CacheAdapterXcache.php: -------------------------------------------------------------------------------- 1 | getRealKey($tableName, $key), $value, $ttl); 12 | } 13 | 14 | public function del($key, $tableName, $connectionResource) 15 | { 16 | return xcache_unset($this->getRealKey($tableName, $key)); 17 | } 18 | 19 | public function get($key, $tableName, $connectionResource) 20 | { 21 | $key = $this->getRealKey($tableName, $key); 22 | if (xcache_isset($key)) 23 | { 24 | return xcache_get($key); 25 | } 26 | return false; 27 | } 28 | 29 | public function update($key, $value, $ttl = 0, $tableName, $connectionResource) 30 | { 31 | $key = $this->getRealKey($tableName, $key); 32 | if (xcache_isset($key)) 33 | { 34 | return xcache_set($key, $value, $ttl); 35 | } 36 | return false; 37 | } 38 | 39 | protected function getRealKey($tableName, $key) 40 | { 41 | return $tableName . "-" . $key; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/Cache.php: -------------------------------------------------------------------------------- 1 | configHandle instanceof LtConfig) 14 | { 15 | if (class_exists("LtObjectUtil", false)) 16 | { 17 | $this->configHandle = LtObjectUtil::singleton("LtConfig"); 18 | } 19 | else 20 | { 21 | $this->configHandle = new LtConfig; 22 | } 23 | } 24 | } 25 | 26 | public function init() 27 | { 28 | $this->ch = new LtCacheHandle; 29 | $this->ch->configHandle = $this->configHandle; 30 | $this->ch->init(); 31 | $this->ch->group = $this->getGroup(); 32 | $this->ch->node = $this->getNode(); 33 | } 34 | 35 | public function getTDG($tableName) 36 | { 37 | $tdg = new LtCacheTableDataGateway; 38 | $tdg->tableName = $tableName; 39 | $tdg->ch = $this->ch; 40 | return $tdg; 41 | } 42 | 43 | public function changeNode($node) 44 | { 45 | $this->node = $node; 46 | $this->dbh->node = $node; 47 | } 48 | 49 | protected function getGroup() 50 | { 51 | if ($this->group) 52 | { 53 | return $this->group; 54 | } 55 | $servers = $this->configHandle->get("cache.servers"); 56 | if (1 == count($servers)) 57 | { 58 | return key($servers); 59 | } 60 | return false; 61 | } 62 | 63 | protected function getNode() 64 | { 65 | if ($this->node) 66 | { 67 | return $this->node; 68 | } 69 | $servers = $this->configHandle->get("cache.servers"); 70 | if (1 == count($servers[$this->getGroup()])) 71 | { 72 | return key($servers[$this->getGroup()]); 73 | } 74 | return false; 75 | } 76 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/CacheAdapterFactory.php: -------------------------------------------------------------------------------- 1 | "phps", //apc,xcach,ea; file, phps; memcached 8 | //"prefix" => "" 9 | //"host" => "localhost", //some ip, hostname 10 | //"port" => 3306, 11 | ); 12 | 13 | public function addSingleHost($hostConfig) 14 | { 15 | $this->addHost("group_0", "node_0", "master", $hostConfig); 16 | } 17 | 18 | public function addHost($groupId, $nodeId = "node_0", $role = "master", $hostConfig) 19 | { 20 | if (isset($this->servers[$groupId][$nodeId][$role])) 21 | {//以相同role的第一个host为默认配置 22 | $ref = $this->servers[$groupId][$nodeId][$role][0]; 23 | } 24 | else if ("slave" == $role && isset($this->servers[$groupId][$nodeId]["master"])) 25 | {//slave host以master的第一个host为默认配置 26 | $ref = $this->servers[$groupId][$nodeId]["master"][0]; 27 | } 28 | else if (isset($this->servers[$groupId]) && count($this->servers[$groupId])) 29 | {//以本group第一个node的master第一个host为默认配置 30 | $refNode = key($this->servers[$groupId]); 31 | $ref = $this->servers[$groupId][$refNode]["master"][0]; 32 | } 33 | else 34 | { 35 | if (!isset($hostConfig["adapter"])) 36 | { 37 | trigger_error("No db adapter specified"); 38 | } 39 | $ref = $this->defaultConfig; 40 | } 41 | $conf = array_merge($ref, $hostConfig); 42 | $this->servers[$groupId][$nodeId][$role][] = $conf; 43 | } 44 | 45 | public function getServers() 46 | { 47 | return $this->servers; 48 | } 49 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/CacheConnectionManager.php: -------------------------------------------------------------------------------- 1 | getNewConnection($group, $node, $role)) 10 | { 11 | return array( 12 | "connectionAdapter" => $this->connectionAdapter, 13 | "connectionResource" => $connection 14 | ); 15 | } 16 | else 17 | { 18 | trigger_error("no cache server can be connected"); 19 | return false; 20 | } 21 | } 22 | 23 | protected function getNewConnection($group, $node, $role) 24 | { 25 | $servers = $this->configHandle->get("cache.servers"); 26 | $hostTotal = count($servers[$group][$node][$role]); 27 | $hostIndexArray = array_keys($servers[$group][$node][$role]); 28 | while ($hostTotal) 29 | { 30 | $hashNumber = substr(microtime(),7,1) % $hostTotal; 31 | $hostConfig = $servers[$group][$node][$role][$hostIndexArray[$hashNumber]]; 32 | $cacheFactory = new LtCacheAdapterFactory; 33 | $this->connectionAdapter = $cacheFactory->getConnectionAdapter($hostConfig["adapter"]); 34 | if ($connection = $this->connectionAdapter->connect($hostConfig)) 35 | { 36 | return $connection; 37 | } 38 | else 39 | { 40 | //trigger_error('connection fail', E_USER_WARNING); 41 | //delete the unavailable server 42 | for ($i = $hashNumber; $i < $hostTotal - 1; $i ++) 43 | { 44 | $hostIndexArray[$i] = $hostIndexArray[$i+1]; 45 | } 46 | unset($hostIndexArray[$hostTotal-1]); 47 | $hostTotal --; 48 | }//end else 49 | }//end while 50 | return false; 51 | } 52 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/CacheHandle.php: -------------------------------------------------------------------------------- 1 | connectionManager = new LtCacheConnectionManager; 19 | $this->connectionManager->configHandle =$this->configHandle; 20 | } 21 | 22 | public function add($key, $value, $ttl = 0, $tableName) 23 | { 24 | $this->initConnection(); 25 | return $this->connectionAdapter->add($key, $value, $ttl, $tableName, $this->connectionResource); 26 | } 27 | 28 | public function del($key, $tableName) 29 | { 30 | $this->initConnection(); 31 | return $this->connectionAdapter->del($key, $tableName, $this->connectionResource); 32 | } 33 | 34 | public function get($key, $tableName) 35 | { 36 | $this->initConnection(); 37 | return $this->connectionAdapter->get($key, $tableName, $this->connectionResource); 38 | } 39 | 40 | public function update($key, $value, $ttl = 0, $tableName) 41 | { 42 | $this->initConnection(); 43 | return $this->connectionAdapter->update($key, $value, $ttl, $tableName, $this->connectionResource); 44 | } 45 | 46 | protected function initConnection() 47 | { 48 | $connectionInfo = $this->connectionManager->getConnection($this->group, $this->node, $this->role); 49 | $this->connectionAdapter = $connectionInfo["connectionAdapter"]; 50 | $this->connectionResource = $connectionInfo["connectionResource"]; 51 | } 52 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Cache/QueryEngine/TableDataGateway/CacheTableDataGateway.php: -------------------------------------------------------------------------------- 1 | ch->add($key, $value, $ttl, $this->tableName); 11 | } 12 | 13 | public function del($key) 14 | { 15 | return $this->ch->del($key, $this->tableName); 16 | } 17 | 18 | public function get($key) 19 | { 20 | return $this->ch->get($key, $this->tableName); 21 | } 22 | 23 | public function update($key, $value, $ttl = 0) 24 | { 25 | return $this->ch->update($key, $value, $ttl, $this->tableName); 26 | } 27 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/AntykwaBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/AntykwaBold.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Candice.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Candice.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Ding-DongDaddyO.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Ding-DongDaddyO.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Duality.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Duality.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Jura.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/Jura.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/StayPuft.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/StayPuft.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/TimesNewRomanBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/TimesNewRomanBold.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/VeraSansBold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Captcha/fonts/VeraSansBold.ttf -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Config.php: -------------------------------------------------------------------------------- 1 | storeHandle)) 10 | { 11 | $this->storeHandle = new LtStoreMemory; 12 | } 13 | } 14 | 15 | public function init() 16 | { 17 | //don't removeme, I am the placeholder 18 | } 19 | 20 | public function get($key) 21 | { 22 | $storedConfig = $this->storeHandle->get($key); 23 | if ($storedConfig instanceof LtConfigExpression) 24 | { 25 | $str = $storedConfig->__toString(); 26 | if ($storedConfig->autoRetrived) 27 | { 28 | eval("\$value=$str;"); 29 | return $value; 30 | } 31 | else 32 | { 33 | return $str; 34 | } 35 | } 36 | else 37 | { 38 | return $storedConfig; 39 | } 40 | } 41 | 42 | /** 43 | * 警告 44 | * 这里会包含两个用户定义的配置文件,为了不和配置文件里的变量名发生重名 45 | * 本方法不定义和使用变量名 46 | */ 47 | public function loadConfigFile($configFile) 48 | { 49 | if (0 == $this->storeHandle->get(".config_total")) 50 | { 51 | if (null === $configFile || !is_file($configFile)) 52 | { 53 | trigger_error("no config file specified or invalid config file"); 54 | } 55 | $this->conf = include($configFile); 56 | if (!is_array($this->conf)) 57 | { 58 | trigger_error("config file do NOT return array: $configFile"); 59 | } 60 | elseif (!empty($this->conf)) 61 | { 62 | if (0 == $this->storeHandle->get(".config_total")) 63 | { 64 | $this->storeHandle->add(".config_total", 0); 65 | } 66 | $this->addConfig($this->conf); 67 | } 68 | } 69 | } 70 | 71 | public function addConfig($configArray) 72 | { 73 | foreach($configArray as $key => $value) 74 | { 75 | if (!$this->storeHandle->update($key, $value)) 76 | { 77 | if ($this->storeHandle->add($key, $value)) 78 | { 79 | $this->storeHandle->update(".config_total", $this->storeHandle->get(".config_total") + 1, 0); 80 | } 81 | } 82 | } 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/ConfigExpression.php: -------------------------------------------------------------------------------- 1 | _expression = (string) $string; 10 | $this->autoRetrived = $autoRetrived; 11 | } 12 | 13 | public function __toString() 14 | { 15 | return $this->_expression; 16 | } 17 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapter.php: -------------------------------------------------------------------------------- 1 | query($sql); 12 | return $connResource->affected_rows; 13 | } 14 | 15 | public function query($sql, $connResource) 16 | { 17 | $rows = array(); 18 | $result = $connResource->query($sql); 19 | while($row = $result->fetch_assoc()) 20 | { 21 | $rows[] = $row; 22 | } 23 | return $rows; 24 | } 25 | 26 | public function lastInsertId($connResource) 27 | { 28 | return $connResource->insert_id; 29 | } 30 | 31 | public function escape($sql, $connResource) 32 | { 33 | return mysqli_real_escape_string($connResource, $sql); 34 | } 35 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPdo.php: -------------------------------------------------------------------------------- 1 | true); 7 | if (isset($connConf['pconnect']) && true == $connConf['pconnect']) 8 | { 9 | $option[PDO::ATTR_PERSISTENT] = true; 10 | } 11 | else 12 | { 13 | $option[PDO::ATTR_PERSISTENT] = false; 14 | } 15 | switch ($connConf['adapter']) 16 | { 17 | case "pdo_mysql": 18 | $dsn = "mysql:host={$connConf['host']};dbname={$connConf['dbname']}"; 19 | break; 20 | case "pdo_sqlite": 21 | $connConf["host"] = rtrim($connConf["host"], '\\/') . DIRECTORY_SEPARATOR; 22 | if (!is_dir($connConf["host"])) 23 | { 24 | if (!@mkdir($connConf["host"], 0777, true)) 25 | { 26 | trigger_error("Can not create {$connConf['host']}"); 27 | } 28 | } 29 | $dsn = "{$connConf['sqlite_version']}:{$connConf['host']}{$connConf['dbname']}"; 30 | break; 31 | case "pdo_pgsql": 32 | $dsn = "pgsql:host={$connConf['host']} port={$connConf['port']} dbname={$connConf['dbname']} user={$connConf['username']} password={$connConf['password']}"; 33 | break; 34 | case "odbc": 35 | $dsn = "odbc:" . $connConf["host"]; 36 | break; 37 | } 38 | return new PDO($dsn, $connConf['username'], $connConf['password'], $option); 39 | } 40 | 41 | public function exec($sql, $connResource) 42 | { 43 | return $connResource->exec($sql); 44 | } 45 | 46 | public function query($sql, $connResource) 47 | { 48 | return $connResource->query($sql)->fetchAll(PDO::FETCH_ASSOC); 49 | } 50 | 51 | /** 52 | * 53 | * @todo pgsql support 54 | */ 55 | public function lastInsertId($connResource) 56 | { 57 | return $connResource->lastInsertId(); 58 | } 59 | 60 | public function escape($sql, $connResource) 61 | { 62 | // quote返回值带最前面和最后面的单引号, 这里去掉, DbHandler中加 63 | return trim($connResource->quote($sql), "'"); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/Adapter/ConnectionAdapter/DbConnectionAdapterPgsql.php: -------------------------------------------------------------------------------- 1 | '; 49 | // print_r(debug_backtrace()); 50 | // debug_print_backtrace(); 51 | // echo ''; 52 | // delete from table 结果为0,原因未知。 53 | // 使用 delete from table where 1 能返回正确结果 54 | return sqlite_changes($connResource); 55 | } 56 | 57 | public function query($sql, $connResource) 58 | { 59 | $result = sqlite_query($connResource, $sql, SQLITE_ASSOC); 60 | return sqlite_fetch_all($result, SQLITE_ASSOC); 61 | } 62 | 63 | public function lastInsertId($connResource) 64 | { 65 | return sqlite_last_insert_rowid($connResource); 66 | } 67 | 68 | public function escape($sql, $connResource) 69 | { 70 | return sqlite_escape_string($sql); 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/Adapter/SqlAdapter/DbSqlAdapter.php: -------------------------------------------------------------------------------- 1 | configHandle instanceof LtConfig) 13 | { 14 | if (class_exists("LtObjectUtil", false)) 15 | { 16 | $this->configHandle = LtObjectUtil::singleton("LtConfig"); 17 | } 18 | else 19 | { 20 | $this->configHandle = new LtConfig; 21 | } 22 | } 23 | } 24 | 25 | public function init() 26 | { 27 | $this->dbh = new LtDbHandle; 28 | $this->dbh->configHandle = $this->configHandle; 29 | $this->dbh->group = $this->getGroup(); 30 | $this->dbh->node = $this->getNode(); 31 | $this->dbh->init(); 32 | } 33 | 34 | public function getDbHandle() 35 | { 36 | return $this->dbh; 37 | } 38 | 39 | public function getTDG($tableName) 40 | { 41 | $tg = new LtDbTableDataGateway; 42 | $tg->configHandle = $this->configHandle; 43 | $tg->tableName = $tableName; 44 | $tg->createdColumn = 'created'; 45 | $tg->modifiedColumn = 'modified'; 46 | $tg->dbh = $this->dbh; 47 | return $tg; 48 | } 49 | 50 | public function getSqlMapClient() 51 | { 52 | $smc = new LtDbSqlMapClient; 53 | $smc->configHandle = $this->configHandle; 54 | $smc->dbh = $this->dbh; 55 | return $smc; 56 | } 57 | 58 | public function changeNode($node) 59 | { 60 | $this->node = $node; 61 | $this->dbh->node = $node; 62 | } 63 | 64 | protected function getGroup() 65 | { 66 | if ($this->group) 67 | { 68 | return $this->group; 69 | } 70 | $servers = $this->configHandle->get("db.servers"); 71 | if (1 == count($servers)) 72 | { 73 | return key($servers); 74 | } 75 | return false; 76 | } 77 | 78 | protected function getNode() 79 | { 80 | if ($this->node) 81 | { 82 | return $this->node; 83 | } 84 | $servers = $this->configHandle->get("db.servers"); 85 | if (1 == count($servers[$this->getGroup()])) 86 | { 87 | return key($servers[$this->getGroup()]); 88 | } 89 | return false; 90 | } 91 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/DbAdapterFactory.php: -------------------------------------------------------------------------------- 1 | _expression = (string) $string; 9 | } 10 | 11 | public function __toString() 12 | { 13 | return (string) $this->_expression; 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/QueryEngine/SqlMap/AbstractDbSqlMapFilterObject.php: -------------------------------------------------------------------------------- 1 | configHandle->get($this->dbh->group . "." . $mapId); 10 | $forceUseMaster = isset($sqlMap["force_use_master"]) ? $sqlMap["force_use_master"] : false; 11 | return $this->dbh->query($sqlMap["sql"], $bind, $forceUseMaster); 12 | } 13 | } 14 | 15 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/DB/QueryEngine/SqlMap/DbSqlMapResultFactory.php: -------------------------------------------------------------------------------- 1 | "_"); 5 | 6 | public function camelize($uncamelized_words) 7 | { 8 | $uncamelized_words = $this->conf["separator"] . str_replace($this->conf["separator"] , " ", strtolower($uncamelized_words)); 9 | return ltrim(str_replace(" ", "", ucwords($uncamelized_words)), $this->conf["separator"] ); 10 | } 11 | 12 | public function uncamelize($camelCaps) 13 | { 14 | return strtolower(preg_replace('/([a-z])([A-Z])/', "$1" . $this->conf["separator"] . "$2", $camelCaps)); 15 | } 16 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Logger/Logger.php: -------------------------------------------------------------------------------- 1 | "\t", 6 | "log_file" => "" 7 | ); 8 | 9 | private $fileHandle; 10 | 11 | protected function getFileHandle() 12 | { 13 | if (null === $this->fileHandle) 14 | { 15 | if (empty($this->conf["log_file"])) 16 | { 17 | trigger_error("no log file spcified."); 18 | } 19 | $logDir = dirname($this->conf["log_file"]); 20 | if (!is_dir($logDir)) 21 | { 22 | mkdir($logDir, 0777, true); 23 | } 24 | $this->fileHandle = fopen($this->conf["log_file"], "a"); 25 | } 26 | return $this->fileHandle; 27 | } 28 | 29 | public function log($logData) 30 | { 31 | if ("" == $logData || array() == $logData) 32 | { 33 | return false; 34 | } 35 | if (is_array($logData)) 36 | { 37 | $logData = implode($this->conf["separator"], $logData); 38 | } 39 | $logData = $logData. "\n"; 40 | fwrite($this->getFileHandle(), $logData); 41 | } 42 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/MVC/Context.php: -------------------------------------------------------------------------------- 1 | layout)) 18 | { 19 | include($this->layoutDir . $this->layout . '.php'); 20 | } 21 | else 22 | { 23 | include($this->templateDir . $this->template . '.php'); 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/ObjectUtil/ObjectUtil.php: -------------------------------------------------------------------------------- 1 | init(); 24 | } 25 | self::$instances[$key] = $newInstance; 26 | return $newInstance; 27 | } 28 | else 29 | { 30 | return false; 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/RBAC/Rbac.php: -------------------------------------------------------------------------------- 1 | configHandle instanceof LtConfig) 11 | { 12 | if (class_exists("LtObjectUtil", false)) 13 | { 14 | $this->configHandle = LtObjectUtil::singleton("LtConfig"); 15 | } 16 | else 17 | { 18 | $this->configHandle = new LtConfig; 19 | } 20 | } 21 | } 22 | 23 | public function init() 24 | { 25 | $this->acl = $this->configHandle->get('rbac.acl'); 26 | } 27 | 28 | public function checkAcl($roles, $resource) 29 | { 30 | $allow = false; 31 | // deny priority 32 | foreach (array("allow", "deny") as $operation) 33 | { 34 | foreach($roles as $role) 35 | { 36 | if (isset($this->acl[$operation][$role])) 37 | { 38 | // everyone * 39 | if (in_array($resource, $this->acl[$operation]['*'])) 40 | { 41 | $allow = "allow" == $operation ? true : false; 42 | break; 43 | } 44 | if (in_array($resource, $this->acl[$operation][$role])) 45 | { 46 | $allow = "allow" == $operation ? true : false; 47 | break; 48 | } 49 | else 50 | { 51 | $res = explode('/', trim($resource, '/')); 52 | for ($i = count($res)-1; $i >= 0; $i--) 53 | { 54 | $res[$i] = '*'; 55 | $tmp = implode('/', $res); 56 | if (in_array($tmp, $this->acl[$operation][$role])) 57 | { 58 | $allow = "allow" == $operation ? true : false; 59 | break; 60 | } 61 | unset($res[$i]); 62 | } 63 | } 64 | } 65 | } 66 | } 67 | return $allow; 68 | } 69 | /* 70 | private function __set($p,$v) 71 | { 72 | $this->$p = $v; 73 | } 74 | 75 | private function __get($p) 76 | { 77 | if(isset($this->$p)) 78 | { 79 | return($this->$p); 80 | } 81 | else 82 | { 83 | return(NULL); 84 | } 85 | } 86 | */ 87 | } 88 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Session/Session.php: -------------------------------------------------------------------------------- 1 | configHandle instanceof LtConfig) 10 | { 11 | if (class_exists("LtObjectUtil", false)) 12 | { 13 | $this->configHandle = LtObjectUtil::singleton("LtConfig"); 14 | } 15 | else 16 | { 17 | $this->configHandle = new LtConfig; 18 | } 19 | } 20 | } 21 | 22 | public function init() 23 | { 24 | if(!$sessionSavePath = $this->configHandle->get("session.save_path")) 25 | { 26 | $sessionSavePath = '/tmp/Lotus/session/'; 27 | } 28 | if (!is_object($this->storeHandle)) 29 | { 30 | ini_set('session.save_handler', 'files'); 31 | if (!is_dir($sessionSavePath)) 32 | { 33 | if (!@mkdir($sessionSavePath, 0777, true)) 34 | { 35 | trigger_error("Can not create $sessionSavePath"); 36 | } 37 | } 38 | session_save_path($sessionSavePath); 39 | } 40 | else 41 | { 42 | $this->storeHandle->conf = $this->configHandle->get("session.conf"); 43 | $this->storeHandle->init(); 44 | session_set_save_handler( 45 | array(&$this->storeHandle, 'open'), 46 | array(&$this->storeHandle, 'close'), 47 | array(&$this->storeHandle, 'read'), 48 | array(&$this->storeHandle, 'write'), 49 | array(&$this->storeHandle, 'destroy'), 50 | array(&$this->storeHandle, 'gc') 51 | ); 52 | } 53 | //session_start(); 54 | //header("Cache-control: private"); // to overcome/fix a bug in IE 6.x 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Session/SessionStore: -------------------------------------------------------------------------------- 1 | stack[$key])) 9 | { 10 | return false; 11 | } 12 | else 13 | { 14 | $this->stack[$key] = $value; 15 | return true; 16 | } 17 | } 18 | 19 | public function del($key) 20 | { 21 | if (isset($this->stack[$key])) 22 | { 23 | unset($this->stack[$key]); 24 | return true; 25 | } 26 | else 27 | { 28 | return false; 29 | } 30 | } 31 | 32 | public function get($key) 33 | { 34 | return isset($this->stack[$key]) ? $this->stack[$key] : false; 35 | } 36 | 37 | /** 38 | * key不存在返回false 39 | * 40 | * @return bool 41 | */ 42 | public function update($key, $value) 43 | { 44 | if (!isset($this->stack[$key])) 45 | { 46 | return false; 47 | } 48 | else 49 | { 50 | $this->stack[$key] = $value; 51 | return true; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/Validator/ValidatorDtd.php: -------------------------------------------------------------------------------- 1 | label = $label; 11 | foreach($rules as $key => $rule) 12 | { 13 | $this->rules[$key] = $rule; 14 | } 15 | if ($messages) 16 | { 17 | foreach($messages as $key => $message) 18 | { 19 | $this->messages[$key] = $message; 20 | } 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/cbcalipay/lotusphp_runtime/shortcut.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/phpRPC/pecl/xxtea/xxtea.c: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | 3 | Copyright 2006-2007 Ma Bingyao 4 | 5 | These sources is free software. Redistributions of source code must 6 | retain the above copyright notice. Redistributions in binary form 7 | must reproduce the above copyright notice. You can redistribute it 8 | freely. You can use it with any free or commercial software. 9 | 10 | These sources is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY. Without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | You may contact the author by: 15 | e-mail: andot@coolcode.cn 16 | 17 | *************************************************************************/ 18 | #include "xxtea.h" 19 | 20 | void xxtea_long_encrypt(xxtea_long *v, xxtea_long len, xxtea_long *k) { 21 | xxtea_long n = len - 1; 22 | xxtea_long z = v[n], y = v[0], p, q = 6 + 52 / (n + 1), sum = 0, e; 23 | if (n < 1) { 24 | return; 25 | } 26 | while (0 < q--) { 27 | sum += XXTEA_DELTA; 28 | e = sum >> 2 & 3; 29 | for (p = 0; p < n; p++) { 30 | y = v[p + 1]; 31 | z = v[p] += XXTEA_MX; 32 | } 33 | y = v[0]; 34 | z = v[n] += XXTEA_MX; 35 | } 36 | } 37 | 38 | void xxtea_long_decrypt(xxtea_long *v, xxtea_long len, xxtea_long *k) { 39 | xxtea_long n = len - 1; 40 | xxtea_long z = v[n], y = v[0], p, q = 6 + 52 / (n + 1), sum = q * XXTEA_DELTA, e; 41 | if (n < 1) { 42 | return; 43 | } 44 | while (sum != 0) { 45 | e = sum >> 2 & 3; 46 | for (p = n; p > 0; p--) { 47 | z = v[p - 1]; 48 | y = v[p] -= XXTEA_MX; 49 | } 50 | z = v[n]; 51 | y = v[0] -= XXTEA_MX; 52 | sum -= XXTEA_DELTA; 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/phpRPC/pecl/xxtea/xxtea.h: -------------------------------------------------------------------------------- 1 | /*********************************************************************** 2 | 3 | Copyright 2006-2007 Ma Bingyao 4 | 5 | These sources is free software. Redistributions of source code must 6 | retain the above copyright notice. Redistributions in binary form 7 | must reproduce the above copyright notice. You can redistribute it 8 | freely. You can use it with any free or commercial software. 9 | 10 | These sources is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY. Without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 13 | 14 | You may contact the author by: 15 | e-mail: andot@coolcode.cn 16 | 17 | *************************************************************************/ 18 | 19 | #ifndef XXTEA_H 20 | #define XXTEA_H 21 | 22 | #include /* for size_t & NULL declarations */ 23 | 24 | #if defined(_MSC_VER) 25 | 26 | typedef unsigned __int32 xxtea_long; 27 | 28 | #else 29 | 30 | #if defined(__FreeBSD__) && __FreeBSD__ < 5 31 | /* FreeBSD 4 doesn't have stdint.h file */ 32 | #include 33 | #else 34 | #include 35 | #endif 36 | 37 | typedef uint32_t xxtea_long; 38 | 39 | #endif /* end of if defined(_MSC_VER) */ 40 | 41 | #define XXTEA_MX (z >> 5 ^ y << 2) + (y >> 3 ^ z << 4) ^ (sum ^ y) + (k[p & 3 ^ e] ^ z) 42 | #define XXTEA_DELTA 0x9e3779b9 43 | 44 | void xxtea_long_encrypt(xxtea_long *v, xxtea_long len, xxtea_long *k); 45 | void xxtea_long_decrypt(xxtea_long *v, xxtea_long len, xxtea_long *k); 46 | 47 | #endif 48 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/COPYING: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2011 Vladimir Andersen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/README.md: -------------------------------------------------------------------------------- 1 | **Spyc** is a YAML loader/dumper written in pure PHP. Given a YAML document, Spyc will return an array that 2 | you can use however you see fit. Given an array, Spyc will return a string which contains a YAML document 3 | built from your data. 4 | 5 | **YAML** is an amazingly human friendly and strikingly versatile data serialization language which can be used 6 | for log files, config files, custom protocols, the works. For more information, see http://www.yaml.org. 7 | 8 | Spyc supports YAML 1.0 specification. 9 | 10 | ## Using Spyc 11 | 12 | Using Spyc is trivial: 13 | 14 | ``` 15 | =5.3.1" 18 | }, 19 | "autoload": { 20 | "files": [ "Spyc.php" ] 21 | }, 22 | "extra": { 23 | "branch-alias": { 24 | "dev-master": "0.5.x-dev" 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/examples/yaml-dump.php: -------------------------------------------------------------------------------- 1 | 'A sequence','second' => 'of mapped values'); 18 | $array['Mapped'] = array('A sequence','which is mapped'); 19 | $array['A Note'] = 'What if your text is too long?'; 20 | $array['Another Note'] = 'If that is the case, the dumper will probably fold your text by using a block. Kinda like this.'; 21 | $array['The trick?'] = 'The trick is that we overrode the default indent, 2, to 4 and the default wordwrap, 40, to 60.'; 22 | $array['Old Dog'] = "And if you want\n to preserve line breaks, \ngo ahead!"; 23 | $array['key:withcolon'] = "Should support this to"; 24 | 25 | $yaml = Spyc::YAMLDump($array,4,60); 26 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/examples/yaml-load.php: -------------------------------------------------------------------------------- 1 | spyc.yaml loaded into PHP:
'; 15 | print_r($array); 16 | echo ''; 17 | 18 | 19 | echo '
YAML Data dumped back:
'; 20 | echo Spyc::YAMLDump($array); 21 | echo '
'; 22 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/php4/5to4.php: -------------------------------------------------------------------------------- 1 | ', $code); 13 | $f = fopen ($dest, 'w'); 14 | fwrite($f, $code); 15 | fclose ($f); 16 | print "Written to $dest.\n"; 17 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/tests/IndentTest.php: -------------------------------------------------------------------------------- 1 | Y = Spyc::YAMLLoad("indent_1.yaml"); 11 | } 12 | 13 | public function testIndent_1() { 14 | $this->assertEquals (array ('child_1' => 2, 'child_2' => 0, 'child_3' => 1), $this->Y['root']); 15 | } 16 | 17 | public function testIndent_2() { 18 | $this->assertEquals (array ('child_1' => 1, 'child_2' => 2), $this->Y['root2']); 19 | } 20 | 21 | public function testIndent_3() { 22 | $this->assertEquals (array (array ('resolutions' => array (1024 => 768, 1920 => 1200), 'producer' => 'Nec')), $this->Y['display']); 23 | } 24 | 25 | public function testIndent_4() { 26 | $this->assertEquals (array ( 27 | array ('resolutions' => array (1024 => 768)), 28 | array ('resolutions' => array (1920 => 1200)), 29 | ), $this->Y['displays']); 30 | } 31 | 32 | public function testIndent_5() { 33 | $this->assertEquals (array (array ( 34 | 'row' => 0, 35 | 'col' => 0, 36 | 'headsets_affected' => array ( 37 | array ( 38 | 'ports' => array (0), 39 | 'side' => 'left', 40 | ) 41 | ), 42 | 'switch_function' => array ( 43 | 'ics_ptt' => true 44 | ) 45 | )), $this->Y['nested_hashes_and_seqs']); 46 | } 47 | 48 | public function testIndent_6() { 49 | $this->assertEquals (array ( 50 | 'h' => array ( 51 | array ('a' => 'b', 'a1' => 'b1'), 52 | array ('c' => 'd') 53 | ) 54 | ), $this->Y['easier_nest']); 55 | } 56 | 57 | public function testIndent_space() { 58 | $this->assertEquals ("By four\n spaces", $this->Y['one_space']); 59 | } 60 | 61 | public function testListAndComment() { 62 | $this->assertEquals (array ('one', 'two', 'three'), $this->Y['list_and_comment']); 63 | } 64 | 65 | } 66 | -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/tests/comments.yaml: -------------------------------------------------------------------------------- 1 | foo: 'bar' #Comment 2 | arr: ['x', 'y', 'z'] # Comment here 3 | bar: kittens -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/tests/failing1.yaml: -------------------------------------------------------------------------------- 1 | MyObject: 2 | Prop1: {key1:val1} -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/tests/indent_1.yaml: -------------------------------------------------------------------------------- 1 | root: 2 | child_1: 2 3 | 4 | child_2: 0 5 | child_3: 1 6 | 7 | root2: 8 | child_1: 1 9 | # A comment 10 | child_2: 2 11 | 12 | displays: 13 | - resolutions: 14 | 1024: 768 15 | - resolutions: 16 | 1920: 1200 17 | 18 | display: 19 | - resolutions: 20 | 1024: 768 21 | 1920: 1200 22 | producer: "Nec" 23 | 24 | nested_hashes_and_seqs: 25 | - { row: 0, col: 0, headsets_affected: [{ports: [0], side: left}], switch_function: {ics_ptt: true} } 26 | 27 | easier_nest: { h: [{a: b, a1: b1}, {c: d}] } 28 | 29 | one_space: | 30 | By four 31 | spaces 32 | 33 | steps: 34 | - step: &id001 35 | instrument: Lasik 2000 36 | pulseEnergy: 5.4 37 | pulseDuration: 12 38 | repetition: 1000 39 | spotSize: 1mm 40 | - step: 41 | <<: *id001 42 | spotSize: 2mm 43 | 44 | death masks are: 45 | sad: 2 46 | <<: {magnificent: 4} 47 | 48 | login: &login 49 | adapter: mysql 50 | host: localhost 51 | 52 | development: 53 | database: rails_dev 54 | <<: *login 55 | 56 | "key": "value:" 57 | colon_only: ":" 58 | 59 | list_and_comment: [one, two, three] # comment 60 | kai: 61 | -example: value 62 | kai_list_of_items: 63 | - -item 64 | - '-item' 65 | -item -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/spyc/tests/quotes.yaml: -------------------------------------------------------------------------------- 1 | html_tags: 2 | -
3 | -

4 | html_content: 5 | -

hello world

6 | - hello
world 7 | text_content: 8 | - hello world -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/weixin/NativePay.php: -------------------------------------------------------------------------------- 1 | SetProduct_id($productId); 21 | $values = WxpayApi::bizpayurl($biz); 22 | $url = "weixin://wxpay/bizpayurl?" . $this->ToUrlParams($values); 23 | return $url; 24 | } 25 | 26 | /** 27 | * 28 | * 参数数组转换为url参数 29 | * @param array $urlObj 30 | */ 31 | private function ToUrlParams($urlObj) 32 | { 33 | $buff = ""; 34 | foreach ($urlObj as $k => $v) 35 | { 36 | $buff .= $k . "=" . $v . "&"; 37 | } 38 | 39 | $buff = trim($buff, "&"); 40 | return $buff; 41 | } 42 | 43 | /** 44 | * 45 | * 生成直接支付url,支付url有效期为2小时,模式二 46 | * @param UnifiedOrderInput $input 47 | */ 48 | public function GetPayUrl($input) 49 | { 50 | if($input->GetTrade_type() == "NATIVE") 51 | { 52 | $result = WxPayApi::unifiedOrder($input); 53 | return $result; 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /ThinkPHP/Library/Vendor/weixin/WxPay.Config.php: -------------------------------------------------------------------------------- 1 | getMessage(); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ThinkPHP/Mode/Sae/convention.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | /** 13 | * SAE模式惯例配置文件 14 | * 该文件请不要修改,如果要覆盖惯例配置的值,可在应用配置文件中设定和惯例不符的配置项 15 | * 配置名称大小写任意,系统会统一转换成小写 16 | * 所有配置参数都可以在生效前动态改变 17 | */ 18 | defined('THINK_PATH') or exit(); 19 | $st = new SaeStorage(); 20 | return array( 21 | //SAE下固定mysql配置 22 | 'DB_TYPE' => 'mysql', // 数据库类型 23 | 'DB_DEPLOY_TYPE' => 1, 24 | 'DB_RW_SEPARATE' => true, 25 | 'DB_HOST' => SAE_MYSQL_HOST_M.','.SAE_MYSQL_HOST_S, // 服务器地址 26 | 'DB_NAME' => SAE_MYSQL_DB, // 数据库名 27 | 'DB_USER' => SAE_MYSQL_USER, // 用户名 28 | 'DB_PWD' => SAE_MYSQL_PASS, // 密码 29 | 'DB_PORT' => SAE_MYSQL_PORT, // 端口 30 | //更改模板替换变量,让普通能在所有平台下显示 31 | 'TMPL_PARSE_STRING' => array( 32 | // __PUBLIC__/upload --> /Public/upload -->http://appname-public.stor.sinaapp.com/upload 33 | '/Public/upload' => $st->getUrl('public','upload') 34 | ), 35 | 'LOG_TYPE' => 'Sae', 36 | 'DATA_CACHE_TYPE' => 'Memcachesae', 37 | 'CHECK_APP_DIR' => false, 38 | 'FILE_UPLOAD_TYPE' => 'Sae', 39 | ); 40 | -------------------------------------------------------------------------------- /ThinkPHP/Mode/api.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | /** 13 | * ThinkPHP API模式定义 14 | */ 15 | return array( 16 | // 配置文件 17 | 'config' => array( 18 | THINK_PATH.'Conf/convention.php', // 系统惯例配置 19 | CONF_PATH.'config'.CONF_EXT, // 应用公共配置 20 | ), 21 | 22 | // 别名定义 23 | 'alias' => array( 24 | 'Think\Exception' => CORE_PATH . 'Exception'.EXT, 25 | 'Think\Model' => CORE_PATH . 'Model'.EXT, 26 | 'Think\Db' => CORE_PATH . 'Db'.EXT, 27 | 'Think\Cache' => CORE_PATH . 'Cache'.EXT, 28 | 'Think\Cache\Driver\File' => CORE_PATH . 'Cache/Driver/File'.EXT, 29 | 'Think\Storage' => CORE_PATH . 'Storage'.EXT, 30 | ), 31 | 32 | // 函数和类文件 33 | 'core' => array( 34 | MODE_PATH.'Api/functions.php', 35 | COMMON_PATH.'Common/function.php', 36 | MODE_PATH . 'Api/App'.EXT, 37 | MODE_PATH . 'Api/Dispatcher'.EXT, 38 | MODE_PATH . 'Api/Controller'.EXT, 39 | CORE_PATH . 'Behavior'.EXT, 40 | ), 41 | // 行为扩展定义 42 | 'tags' => array( 43 | ), 44 | ); 45 | -------------------------------------------------------------------------------- /ThinkPHP/Mode/lite.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | /** 13 | * ThinkPHP Lite模式定义 14 | */ 15 | return array( 16 | // 配置文件 17 | 'config' => array( 18 | MODE_PATH.'Lite/convention.php', // 系统惯例配置 19 | CONF_PATH.'config'.CONF_EXT, // 应用公共配置 20 | ), 21 | 22 | // 别名定义 23 | 'alias' => array( 24 | 'Think\Exception' => CORE_PATH . 'Exception'.EXT, 25 | 'Think\Model' => CORE_PATH . 'Model'.EXT, 26 | 'Think\Db' => CORE_PATH . 'Db'.EXT, 27 | 'Think\Cache' => CORE_PATH . 'Cache'.EXT, 28 | 'Think\Cache\Driver\File' => CORE_PATH . 'Cache/Driver/File'.EXT, 29 | 'Think\Storage' => CORE_PATH . 'Storage'.EXT, 30 | ), 31 | 32 | // 函数和类文件 33 | 'core' => array( 34 | MODE_PATH.'Lite/functions.php', 35 | COMMON_PATH.'Common/function.php', 36 | CORE_PATH . 'Hook'.EXT, 37 | CORE_PATH . 'App'.EXT, 38 | CORE_PATH . 'Dispatcher'.EXT, 39 | //CORE_PATH . 'Log'.EXT, 40 | CORE_PATH . 'Route'.EXT, 41 | CORE_PATH . 'Controller'.EXT, 42 | CORE_PATH . 'View'.EXT, 43 | ), 44 | // 行为扩展定义 45 | 'tags' => array( 46 | ), 47 | ); 48 | -------------------------------------------------------------------------------- /ThinkPHP/Tpl/dispatch_jump.tpl: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 10 | 跳转提示 11 | 21 | 22 | 23 |
24 | 25 |

:)

26 |

27 | 28 |

:(

29 |

30 | 31 |

32 |

33 | 页面自动 跳转 等待时间: 34 |

35 |
36 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /ThinkPHP/Tpl/think_exception.tpl: -------------------------------------------------------------------------------- 1 | 6 | 7 | 8 | 9 | 系统发生错误 10 | 26 | 27 | 28 |
29 |

:(

30 |

31 |
32 | 33 |
34 |
35 |

错误位置

36 |
37 |
38 |

FILE:  LINE:

39 |
40 |
41 | 42 | 43 |
44 |
45 |

TRACE

46 |
47 |
48 |

49 |
50 |
51 | 52 |
53 |
54 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /ThinkPHP/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/wujindong/ThinkPHP3.2.3-wxpay/0a734d314d79546e03ec115b6d52888966d18266/ThinkPHP/logo.png -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "topthink/thinkphp", 3 | "description": "the ThinkPHP Framework", 4 | "type": "framework", 5 | "keywords": ["framework","thinkphp","ORM"], 6 | "homepage": "http://thinkphp.cn/", 7 | "license": "Apache2", 8 | "authors": [ 9 | { 10 | "name": "liu21st", 11 | "email": "liu21st@gmail.com" 12 | } 13 | ], 14 | "require": { 15 | "php": ">=5.3.0" 16 | }, 17 | "minimum-stability": "dev" 18 | } 19 | -------------------------------------------------------------------------------- /index.php: -------------------------------------------------------------------------------- 1 | 10 | // +---------------------------------------------------------------------- 11 | 12 | // 应用入口文件 13 | 14 | // 检测PHP环境 15 | if(version_compare(PHP_VERSION,'5.3.0','<')) die('require PHP > 5.3.0 !'); 16 | 17 | // 开启调试模式 建议开发阶段开启 部署阶段注释或者设为false 18 | define('APP_DEBUG',True); 19 | 20 | //定义新的模块 21 | //define("BIND_MODULE",'Bing'); 22 | 23 | // 定义应用目录 24 | define('APP_PATH','./Application/'); 25 | 26 | 27 | // 引入ThinkPHP入口文件 28 | require './ThinkPHP/ThinkPHP.php'; 29 | 30 | // 亲^_^ 后面不需要任何代码了 就是如此简单 --------------------------------------------------------------------------------