code string | repo_name string | path string | language string | license string | size int64 |
|---|---|---|---|---|---|
<?php
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: file 10:58:11
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
load_file(PATH_HD . '/libs/usr/s... | zyhhdcms | trunk/xm/hdphp/libs/usr/session/driver/fileDriver.class.php | PHP | asf20 | 1,426 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: mysqlDriver 10:58:56
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
load_file(PATH_HD . '/libs... | zyhhdcms | trunk/xm/hdphp/libs/usr/session/driver/mysqlDriver.class.php | PHP | asf20 | 1,475 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: memcacheDriver 10:59:07
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
?>
| zyhhdcms | trunk/xm/hdphp/libs/usr/session/driver/memcacheDriver.class.php | PHP | asf20 | 316 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: sessionAbstract 11:50:50
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
abstract class session... | zyhhdcms | trunk/xm/hdphp/libs/usr/session/sessionAbstract.class.php | PHP | asf20 | 2,350 |
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty_Compiler.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/Smarty_Compiler.class.php | PHP | asf20 | 94,363 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty capitalize modifier plugin
*
* Type: modifier<br>
* Name: capitalize<br>
* Purpose: capitalize words in the string
* @link http://smarty.php.net/manual/en/language.modifiers.php#LANGUAGE.MODIFIER.CAPITALIZE
* ca... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.capitalize.php | PHP | asf20 | 1,037 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {config_load} function plugin
*
* Type: function<br>
* Name: config_load<br>
* Purpose: load config file vars
* @link http://smarty.php.net/manual/en/language.function.config.load.php {config_load}
* (Smarty onl... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.config_load.php | PHP | asf20 | 6,158 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Include the {@link shared.make_timestamp.php} plugin
*/
require_once $smarty->_get_plugin_filepath('shared', 'make_timestamp');
/**
* Smarty date_format modifier plugin
*
* Type: modifier<br>
* Name: date_format<br>
* Purpose... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.date_format.php | PHP | asf20 | 1,782 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {textformat}{/textformat} block plugin
*
* Type: block function<br>
* Name: textformat<br>
* Purpose: format text a certain way with preset styles
* or custom wrap/indent settings<br>
* @link http://smarty.p... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/block.textformat.php | PHP | asf20 | 2,843 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {counter} function plugin
*
* Type: function<br>
* Name: counter<br>
* Purpose: print out a counter value
* @author Monte Ohrt <monte at ohrt dot com>
* @link http://smarty.php.net/manual/en/language.function.counter... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.counter.php | PHP | asf20 | 1,772 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {debug} function plugin
*
* Type: function<br>
* Name: debug<br>
* Date: July 1, 2002<br>
* Purpose: popup debug window
* @link http://smarty.php.net/manual/en/language.function.debug.php {debug}
* (Smarty... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.debug.php | PHP | asf20 | 835 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {popup_init} function plugin
*
* Type: function<br>
* Name: popup_init<br>
* Purpose: initialize overlib
* @link http://smarty.php.net/manual/en/language.function.popup.init.php {popup_init}
* (Smarty online... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.popup_init.php | PHP | asf20 | 979 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty cat modifier plugin
*
* Type: modifier<br>
* Name: cat<br>
* Date: Feb 24, 2003
* Purpose: catenate a value to a variable
* Input: string to catenate
* Example: {$var|cat:"foo"}
* @link http://smarty.php.ne... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.cat.php | PHP | asf20 | 623 |
<?php
/**
* Smarty shared plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Function: smarty_make_timestamp<br>
* Purpose: used by other smarty functions to make a timestamp
* from a string.
* @author Monte Ohrt <monte at ohrt dot com>
* @param string
* @return string
*/
function smarty_... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/shared.make_timestamp.php | PHP | asf20 | 1,167 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty default modifier plugin
*
* Type: modifier<br>
* Name: default<br>
* Purpose: designate default value for empty variables
* @link http://smarty.php.net/manual/en/language.modifier.default.php
* default (Smar... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.default.php | PHP | asf20 | 635 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_words modifier plugin
*
* Type: modifier<br>
* Name: count_words<br>
* Purpose: count the number of words in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.words.php
* count_wor... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.count_words.php | PHP | asf20 | 751 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty lower modifier plugin
*
* Type: modifier<br>
* Name: lower<br>
* Purpose: convert string to lowercase
* @link http://smarty.php.net/manual/en/language.modifier.lower.php
* lower (Smarty online manual)
* @au... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.lower.php | PHP | asf20 | 481 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_sentences modifier plugin
*
* Type: modifier<br>
* Name: count_sentences
* Purpose: count the number of sentences in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php
* ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.count_sentences.php | PHP | asf20 | 653 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty string_format modifier plugin
*
* Type: modifier<br>
* Name: string_format<br>
* Purpose: format strings via sprintf
* @link http://smarty.php.net/manual/en/language.modifier.string.format.php
* string_forma... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.string_format.php | PHP | asf20 | 579 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {math} function plugin
*
* Type: function<br>
* Name: math<br>
* Purpose: handle math computations in template<br>
* @link http://smarty.php.net/manual/en/language.function.math.php {math}
* (Smarty online m... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.math.php | PHP | asf20 | 2,650 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_options} function plugin
*
* Type: function<br>
* Name: html_options<br>
* Input:<br>
* - name (optional) - string default "select"
* - values (required if no options supplied) - ar... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_options.php | PHP | asf20 | 3,797 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty debug_print_var modifier plugin
*
* Type: modifier<br>
* Name: debug_print_var<br>
* Purpose: formats variable contents for display in the console
* @link http://smarty.php.net/manual/en/language.modifier.debug.print.... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.debug_print_var.php | PHP | asf20 | 2,884 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty spacify modifier plugin
*
* Type: modifier<br>
* Name: spacify<br>
* Purpose: add spaces between characters in a string
* @link http://smarty.php.net/manual/en/language.modifier.spacify.php
* spacify (Smarty... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.spacify.php | PHP | asf20 | 644 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty escape modifier plugin
*
* Type: modifier<br>
* Name: escape<br>
* Purpose: Escape the string according to escapement type
* @link http://smarty.php.net/manual/en/language.modifier.escape.php
* escape (Smart... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.escape.php | PHP | asf20 | 2,751 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty strip_tags modifier plugin
*
* Type: modifier<br>
* Name: strip_tags<br>
* Purpose: strip html tags from text
* @link http://smarty.php.net/manual/en/language.modifier.strip.tags.php
* strip_tags (Smarty onl... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.strip_tags.php | PHP | asf20 | 676 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty wordwrap modifier plugin
*
* Type: modifier<br>
* Name: wordwrap<br>
* Purpose: wrap a string of text at a given length
* @link http://smarty.php.net/manual/en/language.modifier.wordwrap.php
* wordwrap (Smar... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.wordwrap.php | PHP | asf20 | 613 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty upper modifier plugin
*
* Type: modifier<br>
* Name: upper<br>
* Purpose: convert string to uppercase
* @link http://smarty.php.net/manual/en/language.modifier.upper.php
* upper (Smarty online manual)
* @au... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.upper.php | PHP | asf20 | 481 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty plugin
*
* Type: modifier<br>
* Name: nl2br<br>
* Date: Feb 26, 2003
* Purpose: convert \r\n, \r or \n to <<br>>
* Input:<br>
* - contents = contents to replace
* - preceed_test = if true, inclu... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.nl2br.php | PHP | asf20 | 717 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_paragraphs modifier plugin
*
* Type: modifier<br>
* Name: count_paragraphs<br>
* Purpose: count the number of paragraphs in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.paragraphs.php
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.count_paragraphs.php | PHP | asf20 | 630 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_checkboxes} function plugin
*
* File: function.html_checkboxes.php<br>
* Type: function<br>
* Name: html_checkboxes<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of checkbox input t... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_checkboxes.php | PHP | asf20 | 4,381 |
<?php
/**
* Smarty shared plugin
* @package Smarty
* @subpackage plugins
*/
/**
* escape_special_chars common function
*
* Function: smarty_function_escape_special_chars<br>
* Purpose: used by other smarty functions to escape
* special chars except for already escaped ones
* @author Monte Ohrt ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/shared.escape_special_chars.php | PHP | asf20 | 774 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_select_time} function plugin
*
* Type: function<br>
* Name: html_select_time<br>
* Purpose: Prints the dropdowns for time selection
* @link http://smarty.php.net/manual/en/language.function.html.select.time.php ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_select_time.php | PHP | asf20 | 7,262 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_image} function plugin
*
* Type: function<br>
* Name: html_image<br>
* Date: Feb 24, 2003<br>
* Purpose: format HTML tags for the image<br>
* Input:<br>
* - file = file (and path) of image (require... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_image.php | PHP | asf20 | 4,783 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty replace modifier plugin
*
* Type: modifier<br>
* Name: replace<br>
* Purpose: simple search/replace
* @link http://smarty.php.net/manual/en/language.modifier.replace.php
* replace (Smarty online manual)
* @... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.replace.php | PHP | asf20 | 585 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {assign_debug_info} function plugin
*
* Type: function<br>
* Name: assign_debug_info<br>
* Purpose: assign debug info to the template<br>
* @author Monte Ohrt <monte at ohrt dot com>
* @param array unused in this plug... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.assign_debug_info.php | PHP | asf20 | 1,162 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_select_date} plugin
*
* Type: function<br>
* Name: html_select_date<br>
* Purpose: Prints the dropdowns for date selection.
*
* ChangeLog:<br>
* - 1.0 initial release
* - 1.1 added support ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_select_date.php | PHP | asf20 | 11,955 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty trimwhitespace outputfilter plugin
*
* File: outputfilter.trimwhitespace.php<br>
* Type: outputfilter<br>
* Name: trimwhitespace<br>
* Date: Jan 25, 2003<br>
* Purpose: trim leading white space and blank lines... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/outputfilter.trimwhitespace.php | PHP | asf20 | 2,669 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty truncate modifier plugin
*
* Type: modifier<br>
* Name: truncate<br>
* Purpose: Truncate a string to a certain length if necessary,
* optionally splitting in the middle of a word, and
* appending ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.truncate.php | PHP | asf20 | 1,324 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty regex_replace modifier plugin
*
* Type: modifier<br>
* Name: regex_replace<br>
* Purpose: regular expression search/replace
* @link http://smarty.php.net/manual/en/language.modifier.regex.replace.php
* regex... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.regex_replace.php | PHP | asf20 | 1,255 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {popup} function plugin
*
* Type: function<br>
* Name: popup<br>
* Purpose: make text pop up in windows via overlib
* @link http://smarty.php.net/manual/en/language.function.popup.php {popup}
* (Smarty onlin... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.popup.php | PHP | asf20 | 3,280 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty count_characters modifier plugin
*
* Type: modifier<br>
* Name: count_characteres<br>
* Purpose: count the number of characters in a text
* @link http://smarty.php.net/manual/en/language.modifier.count.characters.php
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.count_characters.php | PHP | asf20 | 743 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {fetch} plugin
*
* Type: function<br>
* Name: fetch<br>
* Purpose: fetch file, web or ftp data and display results
* @link http://smarty.php.net/manual/en/language.function.fetch.php {fetch}
* (Smarty online ma... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.fetch.php | PHP | asf20 | 8,743 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {mailto} function plugin
*
* Type: function<br>
* Name: mailto<br>
* Date: May 21, 2002
* Purpose: automate mailto address link creation, and optionally
* encode them.<br>
* Input:<br>
* - add... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.mailto.php | PHP | asf20 | 5,236 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty strip modifier plugin
*
* Type: modifier<br>
* Name: strip<br>
* Purpose: Replace all repeated spaces, newlines, tabs
* with a single space or supplied replacement string.<br>
* Example: {$var|strip} {$var... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.strip.php | PHP | asf20 | 742 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {cycle} function plugin
*
* Type: function<br>
* Name: cycle<br>
* Date: May 3, 2002<br>
* Purpose: cycle through given values<br>
* Input:
* - name = name of cycle (optional)
* - values = comma ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.cycle.php | PHP | asf20 | 3,192 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty indent modifier plugin
*
* Type: modifier<br>
* Name: indent<br>
* Purpose: indent lines of text
* @link http://smarty.php.net/manual/en/language.modifier.indent.php
* indent (Smarty online manual)
* @autho... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/modifier.indent.php | PHP | asf20 | 567 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_radios} function plugin
*
* File: function.html_radios.php<br>
* Type: function<br>
* Name: html_radios<br>
* Date: 24.Feb.2003<br>
* Purpose: Prints out a list of radio input types<br>
* Inp... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_radios.php | PHP | asf20 | 4,841 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {assign} compiler function plugin
*
* Type: compiler function<br>
* Name: assign<br>
* Purpose: assign a value to a template variable
* @link http://smarty.php.net/manual/en/language.custom.functions.php#LANGUAGE.FUNCT... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/compiler.assign.php | PHP | asf20 | 1,123 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {html_table} function plugin
*
* Type: function<br>
* Name: html_table<br>
* Date: Feb 17, 2003<br>
* Purpose: make an html table from an array of data<br>
* Input:<br>
* - loop = array to loop through
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.html_table.php | PHP | asf20 | 5,343 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty {eval} function plugin
*
* Type: function<br>
* Name: eval<br>
* Purpose: evaluate a template variable as a template<br>
* @link http://smarty.php.net/manual/en/language.function.eval.php {eval}
* (Smarty onlin... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/plugins/function.eval.php | PHP | asf20 | 1,014 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* write the compiled resource
*
* @param string $compile_path
* @param string $compiled_content
* @return true
*/
function smarty_core_write_compiled_resource($params, &$smarty)
{
if(!@is_writable($smarty->compile_dir)) {
//... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.write_compiled_resource.php | PHP | asf20 | 1,081 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Handle insert tags
*
* @param array $args
* @return string
*/
function smarty_core_run_insert_handler($params, &$smarty)
{
require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
if ($smarty->debugging) {
$_params = ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.run_insert_handler.php | PHP | asf20 | 2,656 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty assign_smarty_interface core plugin
*
* Type: core<br>
* Name: assign_smarty_interface<br>
* Purpose: assign the $smarty interface variable
* @param array Format: null
* @param Smarty
*/
function smarty_core_assign_s... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.assign_smarty_interface.php | PHP | asf20 | 1,258 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* delete an automagically created file by name and id
*
* @param string $auto_base
* @param string $auto_source
* @param string $auto_id
* @param integer $exp_time
* @return boolean
*/
// $auto_base, $auto_source = null, $auto_id = n... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.rm_auto.php | PHP | asf20 | 2,286 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Load requested plugins
*
* @param array $plugins
*/
// $plugins
function smarty_core_load_plugins($params, &$smarty)
{
foreach ($params['plugins'] as $_plugin_info) {
list($_type, $_name, $_tpl_file, $_tpl_line, $_delayed... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.load_plugins.php | PHP | asf20 | 4,429 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* write out a file to disk
*
* @param string $filename
* @param string $contents
* @param boolean $create_dirs
* @return boolean
*/
function smarty_core_write_file($params, &$smarty)
{
$_dirname = dirname($params['filename']);
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.write_file.php | PHP | asf20 | 1,524 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* load a resource plugin
*
* @param string $type
*/
// $type
function smarty_core_load_resource_plugin($params, &$smarty)
{
/*
* Resource plugins are not quite like the other ones, so they are
* handled differently. The fi... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.load_resource_plugin.php | PHP | asf20 | 2,147 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* assemble filepath of requested plugin
*
* @param string $type
* @param string $name
* @return string|false
*/
function smarty_core_assemble_plugin_filepath($params, &$smarty)
{
static $_filepaths_cache = array();
$_plugin_fil... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.assemble_plugin_filepath.php | PHP | asf20 | 1,949 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Replace nocache-tags by results of the corresponding non-cacheable
* functions and return it
*
* @param string $compiled_tpl
* @param string $cached_source
* @return string
*/
function smarty_core_process_compiled_include($params, &... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.process_compiled_include.php | PHP | asf20 | 1,025 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* called for included php files within templates
*
* @param string $smarty_file
* @param string $smarty_assign variable to assign the included template's
* output into
* @param boolean $smarty_once uses include_once if thi... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.smarty_include_php.php | PHP | asf20 | 1,602 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Get path to file from include_path
*
* @param string $file_path
* @param string $new_file_path
* @return boolean
* @staticvar array|null
*/
// $file_path, &$new_file_path
function smarty_core_get_include_path(&$params, &$smarty)
{... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.get_include_path.php | PHP | asf20 | 1,002 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Prepend the cache information to the cache file
* and write it
*
* @param string $tpl_file
* @param string $cache_id
* @param string $compile_id
* @param string $results
* @return true|null
*/
// $tpl_file, $cache_id, $compile_id... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.write_cache_file.php | PHP | asf20 | 3,647 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Smarty debug_console function plugin
*
* Type: core<br>
* Name: display_debug_console<br>
* Purpose: display the javascript debug console window
* @param array Format: null
* @param Smarty
*/
function smarty_core_display_de... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.display_debug_console.php | PHP | asf20 | 1,583 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* determines if a resource is secure or not.
*
* @param string $resource_type
* @param string $resource_name
* @return boolean
*/
// $resource_type, $resource_name
function smarty_core_is_secure($params, &$smarty)
{
if (!$smarty-... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.is_secure.php | PHP | asf20 | 1,694 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* determines if a resource is trusted or not
*
* @param string $resource_type
* @param string $resource_name
* @return boolean
*/
// $resource_type, $resource_name
function smarty_core_is_trusted($params, &$smarty)
{
$_smarty_tru... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.is_trusted.php | PHP | asf20 | 1,284 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Replace cached inserts with the actual results
*
* @param string $results
* @return string
*/
function smarty_core_process_cached_inserts($params, &$smarty)
{
preg_match_all('!'.$smarty->_smarty_md5.'{insert_cache (.*)}'.$smarty->_... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.process_cached_inserts.php | PHP | asf20 | 2,464 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Extract non-cacheable parts out of compiled template and write it
*
* @param string $compile_path
* @param string $template_compiled
* @return boolean
*/
function smarty_core_write_compiled_include($params, &$smarty)
{
$_tag_star... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.write_compiled_include.php | PHP | asf20 | 3,130 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* read a cache file, determine if it needs to be
* regenerated or not
*
* @param string $tpl_file
* @param string $cache_id
* @param string $compile_id
* @param string $results
* @return boolean
*/
// $tpl_file, $cache_id, $compile... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.read_cache_file.php | PHP | asf20 | 3,604 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* delete a dir recursively (level=0 -> keep root)
* WARNING: no tests, it will try to remove what you tell it!
*
* @param string $dirname
* @param integer $level
* @param integer $exp_time
* @return boolean
*/
// $dirname, $level = ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.rmdir.php | PHP | asf20 | 1,444 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Retrieves PHP script resource
*
* sets $php_resource to the returned resource
* @param string $resource
* @param string $resource_type
* @param $php_resource
* @return boolean
*/
function smarty_core_get_php_resource(&$params, &$s... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.get_php_resource.php | PHP | asf20 | 2,467 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* create full directory structure
*
* @param string $dir
*/
// $dir
function smarty_core_create_dir_structure($params, &$smarty)
{
if (!file_exists($params['dir'])) {
$_open_basedir_ini = ini_get('open_basedir');
if... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.create_dir_structure.php | PHP | asf20 | 2,507 |
<?php
/**
* Smarty plugin
* @package Smarty
* @subpackage plugins
*/
/**
* Get seconds and microseconds
* @return double
*/
function smarty_core_get_microtime($params, &$smarty)
{
$mtime = microtime();
$mtime = explode(" ", $mtime);
$mtime = (double)($mtime[1]) + (double)($mtime[0]);
return ($mt... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/internals/core.get_microtime.php | PHP | asf20 | 360 |
<?php
/**
* Project: Smarty: the PHP compiling template engine
* File: Smarty.class.php
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the Li... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/Smarty.class.php | PHP | asf20 | 63,600 |
{* Smarty *}
{* debug.tpl, last updated version 2.1.0 *}
{assign_debug_info}
{capture assign=debug_output}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Smarty Debug Console</title>
{literal}
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/debug.tpl | Smarty | asf20 | 3,562 |
<?php
/**
* Config_File class.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is d... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/libs/Config_File.class.php | PHP | asf20 | 12,914 |
<?php
loadFile(HDPHP_PATH . '/libs/view/smarty/Smarty.class.php');
/**
* 后盾网 http://www.houdunwang.com
* Email:houdunwang@gmail.com
* Encoding:UTF-8
* Created on:2011-12-1 15:20:54
* @author:向军
*/
class smartyView extends Smarty {
function __construct() {
$this->template_dir = C("TPL_TELPLATE_PATH"... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/smarty/smartyView.class.php | PHP | asf20 | 674 |
<?php
/**
* 后盾网 http://www.houdunwang.com
* 2011-7-13 上午12:23:43
*/
load_file(PATH_HD . '/libs/usr/view/view.class.php');
final class hdView extends view {
static private $vars = array(); //模板变量
public $tplFile; //模版文件
private $compileFile; //编译文件
private $endFix; //缓存文件后缀
public $cacheFile; ... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/hd/hdView.class.php | PHP | asf20 | 5,277 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* Version $Id: hdFunctionTag.php 2012-2-6 16:36:09
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/hd/hdBaseTag.class.php | PHP | asf20 | 17,149 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* Version $Id: hdFunctionTag.php 2012-2-6 16:36:09
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/hd/compile.class.php | PHP | asf20 | 13,291 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* Version $Id: view.class.php 2012-2-5 13:08:37
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/view.class.php | PHP | asf20 | 1,952 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: newEmptyPHP.php 2011-7-13 上午12:23:43
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.c... | zyhhdcms | trunk/xm/hdphp/libs/usr/view/viewFactory.class.php | PHP | asf20 | 1,959 |
<?php
/**
* PHPMailer language file.
* English Version
*/
$PHPMAILER_LANG = array();
$PHPMAILER_LANG['provide_address'] = 'You must provide at least one recipient email address.';
$PHPMAILER_LANG['mailer_not_supported'] = ' mailer is not supported.';
$PHPMAILER_LANG['execute'] = 'Could ... | zyhhdcms | trunk/xm/hdphp/libs/usr/mail/language/phpmailer.lang-en.php | PHP | asf20 | 1,188 |
<?php
set_time_limit(0);
class PHPMailer {
/////////////////////////////////////////////////
// PROPERTIES, PUBLIC
/////////////////////////////////////////////////
/**
* Email priority (1 = High, 3 = Normal, 5 = low).
* @var int
*/
var $Priority = 3;
/**
* Se... | zyhhdcms | trunk/xm/hdphp/libs/usr/mail/class.phpmailer.php | PHP | asf20 | 64,055 |
<?php
/*~ class.smtp.php
.---------------------------------------------------------------------------.
| Software: PHPMailer - PHP email class |
| Version: 2.0.4 |
| Contact: via sourceforge.net support pages (also www.code... | zyhhdcms | trunk/xm/hdphp/libs/usr/mail/class.smtp.php | PHP | asf20 | 31,376 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* Version $Id: HD.php 2012-2-6 16:36:09
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
... | zyhhdcms | trunk/xm/hdphp/hdphp.php | PHP | asf20 | 3,594 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
/**
* 本文件为语言包测试文件,在视图页面中通过{$hd.lang.title}即可调用
* 可以创建任意多个语言文件如... | zyhhdcms | trunk/xm/index/language/utf8.php | PHP | asf20 | 630 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
/**
* 本文件为语言包测试文件,在视图页面中通过{$hd.lang.title}即可调用
* 可以创建任意多个语言文件如... | zyhhdcms | trunk/xm/index/styles.css/language/utf8.php | PHP | asf20 | 630 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$hd.langUAGE.error_html_title}</title>
<style type="text/css">
... | zyhhdcms | trunk/xm/index/styles.css/tpl/public/error.html | HTML | asf20 | 2,279 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$hd.language.success_html_title}</title>
<style type="text/css">
... | zyhhdcms | trunk/xm/index/styles.css/tpl/public/success.html | HTML | asf20 | 2,460 |
<?php
if (!defined("PATH_HD"))
exit;
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: newEmptyPHP.php 2012-2-18 下午01:53:33
* @author 向军
* Link http://www.houdunwang.com
* E-mail ... | zyhhdcms | trunk/xm/index/styles.css/config/config.php | PHP | asf20 | 9,132 |
<?php
class indexControl extends Control{
function index(){
header("Content-type:text/html;charset=utf-8");
echo "<div style='font-size:16px;font-weight:bold;color:#333;margin-left:20px;border:solid 2px #F00;width:500px;height:30px;padding:30px 50px 20px;'>感谢使用由后盾网提供的HD开源框架,基础目录已经创建成功!</div>";
... | zyhhdcms | trunk/xm/index/styles.css/control/indexControl.php | PHP | asf20 | 382 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
/**
* 本文件为语言包测试文件,在视图页面中通过{$hd.lang.title}即可调用
* 可以创建任意多个语言文件如... | zyhhdcms | trunk/xm/index/public/language/utf8.php | PHP | asf20 | 630 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$hd.langUAGE.error_html_title}</title>
<style type="text/css">
... | zyhhdcms | trunk/xm/index/public/tpl/public/error.html | HTML | asf20 | 2,279 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$hd.language.success_html_title}</title>
<style type="text/css">
... | zyhhdcms | trunk/xm/index/public/tpl/public/success.html | HTML | asf20 | 2,460 |
<?php
if (!defined("PATH_HD"))
exit;
/**
* Copyright [HD框架] (C)2011-2012 后盾网,Inc.
* Encoding UTF-8
* Version $Id: newEmptyPHP.php 2012-2-18 下午01:53:33
* @author 向军
* Link http://www.houdunwang.com
* E-mail ... | zyhhdcms | trunk/xm/index/public/config/config.php | PHP | asf20 | 9,132 |
<?php
class indexControl extends Control{
function index(){
header("Content-type:text/html;charset=utf-8");
echo "<div style='font-size:16px;font-weight:bold;color:#333;margin-left:20px;border:solid 2px #F00;width:500px;height:30px;padding:30px 50px 20px;'>感谢使用由后盾网提供的HD开源框架,基础目录已经创建成功!</div>";
... | zyhhdcms | trunk/xm/index/public/control/indexControl.php | PHP | asf20 | 382 |
<?php
class tag{
public $tag=array(
"page"=>array("block"=>0)
);
function _new($attr,$content){//新闻显示栏显示
$catid=isset($attr['cid'])?$attr['cid']:'';//栏目ID
if(empty($catid)){
$str="<?php echo '<script>alert(\"请指定cid属性\")</script>'?>";
return $str;
}else{
$db=M('news');
$row=$db->whe... | zyhhdcms | trunk/xm/index/libs/tag.class.php | PHP | asf20 | 3,088 |
<?php
/**
* Copyright [HD框架] (C)2011-2012 houdunwang ,Inc.
* Encoding UTF-8
* @author 向军
* Link http://www.houdunwang.com
* E-mail houdunwang@gmail.com
*/
/**
* 本文件为语言包测试文件,在视图页面中通过{$hd.lang.title}即可调用
* 可以创建任意多个语言文件如... | zyhhdcms | trunk/xm/index/admin/language/utf8.php | PHP | asf20 | 630 |
<?php
class newsrelationModel extends relationModel{
public $table = "news";
public $join = array(
"news_data"=>array(//与信息表关联 类型为一对一
"type"=>"has_one",
"foreign_key"=>"nid"//关联字段
),
"upload"=>array(
'type' =>"has_many",
"foreign_key"=>"id",
"other"=>1
)
);
}
... | zyhhdcms | trunk/xm/index/admin/model/newsrelationModel.php | PHP | asf20 | 362 |
<?php
class configviewModel extends viewModel{
public $table="config";
public $view=array(
"config_type"=>array(
"join_type"=>"inner",
"on"=>"config.tid=config_type.tid"
)
);
}
?> | zyhhdcms | trunk/xm/index/admin/model/configviewModel.php | PHP | asf20 | 201 |