资源简介
kodexplorer4.4版本完美修改版权,帐号密码:admin,测试网址:pan.lhpcn.ml 测试帐号密码:test
代码片段和文件信息
/*
+----------------------------------------------------------------------+
| Twig Extension |
+----------------------------------------------------------------------+
| Copyright (c) 2011 Derick Rethans |
+----------------------------------------------------------------------+
| Redistribution and use in source and binary forms with or without |
| modification are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met (BSD-3-Clause). |
+----------------------------------------------------------------------+
| Author: Derick Rethans |
+----------------------------------------------------------------------+
*/
#ifdef HAVE_CONFIG_H
#include “config.h“
#endif
#include “php.h“
#include “php_twig.h“
#include “ext/standard/php_var.h“
#include “ext/standard/php_string.h“
#include “ext/standard/php_smart_str.h“
#include “ext/spl/spl_exceptions.h“
#include “Zend/zend_object_handlers.h“
#include “Zend/zend_interfaces.h“
#include “Zend/zend_exceptions.h“
#ifndef Z_ADDREF_P
#define Z_ADDREF_P(pz) (pz)->refcount++
#endif
#ifndef E_USER_DEPRECATED
#define E_USER_DEPRECATED (1<<14L)
#endif
#define FREE_DTOR(z) \
zval_dtor(z); \
efree(z);
#if PHP_VERSION_ID >= 50300
#define APPLY_TSRMLS_DC TSRMLS_DC
#define APPLY_TSRMLS_CC TSRMLS_CC
#define APPLY_TSRMLS_FETCH()
#else
#define APPLY_TSRMLS_DC
#define APPLY_TSRMLS_CC
#define APPLY_TSRMLS_FETCH() TSRMLS_FETCH()
#endif
ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args ZEND_SEND_BY_VAL ZEND_RETURN_VALUE 6)
ZEND_ARG_INFO(0 template)
ZEND_ARG_INFO(0 object)
ZEND_ARG_INFO(0 item)
ZEND_ARG_INFO(0 arguments)
ZEND_ARG_INFO(0 type)
ZEND_ARG_INFO(0 isDefinedTest)
ZEND_END_ARG_INFO()
#ifndef PHP_FE_END
#define PHP_FE_END { NULL NULL NULL}
#endif
static const zend_function_entry twig_functions[] = {
PHP_FE(twig_template_get_attributes twig_template_get_attribute_args)
PHP_FE_END
};
PHP_RSHUTDOWN_FUNCTION(twig)
{
#if ZEND_DEBUG
CG(unclean_shutdown) = 0; /* get rid of PHPUnit‘s exit() and report memleaks */
#endif
return SUCCESS;
}
zend_module_entry twig_module_entry = {
STANDARD_MODULE_HEADER
“twig“
twig_functions
NULL
NULL
NULL
PHP_RSHUTDOWN(twig)
NULL
PHP_TWIG_VERSION
STANDARD_MODULE_PROPERTIES
};
#ifdef COMPILE_DL_TWIG
ZEND_GET_MODULE(twig)
#endif
static int TWIG_ARRAY_KEY_EXISTS(zval *array zval *key)
{
if (Z_TYPE_P(array) != IS_ARRAY) {
return 0;
}
switch (Z_TYPE_P(key)) {
case IS_NULL:
return zend_hash_exists(Z_ARRVAL_P(array) ““ 1);
case IS_BOOL:
case IS_DOUBLE:
convert_to_long(key);
case IS_LONG:
return zend_hash_index_exists(Z_ARRVAL_P(array) Z_LVAL_P(key));
default:
convert_to_string(key);
return zend_symtable_exists(Z_ARRVAL_P(array) Z_STRVAL_P(key) Z_STRLEN_P(key) + 1);
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 479 2020-09-02 21:56 404.html
目录 0 2020-10-31 15:33 app\
目录 0 2020-10-26 20:58 app\api\
文件 3473 2020-10-26 14:01 app\api\sso.class.php
目录 0 2020-10-26 20:58 app\function\
文件 36145 2020-10-26 14:01 app\function\web.function.php
文件 15125 2020-10-26 14:01 app\function\helper.function.php
目录 0 2020-10-26 20:58 app\function\others\
文件 33855 2020-10-26 14:01 app\function\others\JSON.php
文件 44369 2020-10-26 14:01 app\function\file.function.php
文件 29086 2020-10-26 14:01 app\function\common.function.php
目录 0 2020-10-26 20:58 app\kod\
文件 8062 2020-10-26 14:01 app\kod\imageGdBMP.class.php
文件 2980 2020-10-26 14:01 app\kod\I18n.class.php
文件 2999 2020-10-26 14:01 app\kod\Hook.class.php
文件 5585 2020-10-26 14:01 app\kod\Downloader.class.php
目录 0 2020-10-26 20:58 app\kod\archiveLib\
文件 4431 2020-10-26 14:01 app\kod\archiveLib\kodZipArchive.class.php
目录 0 2020-10-26 20:58 app\kod\archiveLib\bin\
文件 1117624 2020-10-26 14:01 app\kod\archiveLib\bin\7z
文件 303288 2020-10-26 14:01 app\kod\archiveLib\bin\rar
文件 562064 2020-10-26 14:01 app\kod\archiveLib\bin\rar.exe
文件 587776 2020-10-26 14:01 app\kod\archiveLib\bin\7z.exe
文件 4971 2020-10-26 14:01 app\kod\archiveLib\pclerror.lib.php
文件 128149 2020-10-26 14:01 app\kod\archiveLib\pcltar.lib.php
文件 8269 2020-10-26 14:01 app\kod\archiveLib\kodRarArchive.class.php
文件 210889 2020-10-26 14:01 app\kod\archiveLib\pclzip.class.php
文件 16670 2020-10-26 14:01 app\kod\archiveLib\pcltrace.lib.php
文件 8840 2020-10-26 14:01 app\kod\ImageThumb.class.php
文件 4078 2020-10-26 14:01 app\kod\Mcrypt.class.php
文件 6354 2020-10-26 14:01 app\kod\FileCache.class.php
............此处省略5180个文件信息
评论
共有 条评论