X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.debug_print_var.php;fp=wwwroot%2Fsmarty%2FSmarty-2.6.10%2Flibs%2Fplugins%2Fmodifier.debug_print_var.php;h=0000000000000000000000000000000000000000;hb=e034221efbc7970ec58be22d7517fd3c503dc903;hp=b9bb1848802ef8884a6069d662d7402b0644b9f6;hpb=c6f21b69e8210bdd0e80cf87f1c2f06dfc848a75;p=mirrors%2FKyberia-bloodline.git
diff --git a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.debug_print_var.php b/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.debug_print_var.php
deleted file mode 100644
index b9bb184..0000000
--- a/wwwroot/smarty/Smarty-2.6.10/libs/plugins/modifier.debug_print_var.php
+++ /dev/null
@@ -1,56 +0,0 @@
-
- * Name: debug_print_var
- * Purpose: formats variable contents for display in the console
- * @link http://smarty.php.net/manual/en/language.modifier.debug.print.var.php
- * debug_print_var (Smarty online manual)
- * @param array|object
- * @param integer
- * @param integer
- * @return string
- */
-function smarty_modifier_debug_print_var($var, $depth = 0, $length = 40)
-{
- $_replace = array("\n"=>'\n', "\r"=>'\r', "\t"=>'\t');
- if (is_array($var)) {
- $results = "Array (".count($var).")";
- foreach ($var as $curr_key => $curr_val) {
- $return = smarty_modifier_debug_print_var($curr_val, $depth+1, $length);
- $results .= "
".str_repeat(' ', $depth*2)."".strtr($curr_key, $_replace)." => $return";
- }
- } else if (is_object($var)) {
- $object_vars = get_object_vars($var);
- $results = "".get_class($var)." Object (".count($object_vars).")";
- foreach ($object_vars as $curr_key => $curr_val) {
- $return = smarty_modifier_debug_print_var($curr_val, $depth+1, $length);
- $results .= "
".str_repeat(' ', $depth*2)."$curr_key => $return";
- }
- } else if (is_resource($var)) {
- $results = ''.(string)$var.'';
- } else if (empty($var) && $var != "0") {
- $results = 'empty';
- } else {
- if (strlen($var) > $length ) {
- $results = substr($var, 0, $length-3).'...';
- } else {
- $results = $var;
- }
- $results = htmlspecialchars($results);
- $results = strtr($results, $_replace);
- }
- return $results;
-}
-
-/* vim: set expandtab: */
-
-?>