HEX
Server: Apache/2.4.25
System: Linux ion14 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64
User: (10087)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,system, exec, shell_exec, passthru, popen, proc_open
Upload Files
File: /home/www/web115/wordpress/wp-content/plugins/digimember/system/helper/html_input_date.php
<?php

    function ncore_htmlDateInput( $postname, $value, $settings=array(), $attributes=array() )
    {
        static $initialized_cache = array();

        $is_past   = (bool) ncore_retrieve( $settings, 'past_dates_only' );
        $is_future = (bool) ncore_retrieve( $settings, 'future_date_only' );

        $css = 'ncore_dateedit ncore_dateedit' . ($is_past?'':'_past').($is_future?'':'_future');

        $initialized =& $initialized_cache[ $css ];

        if (!isset($initialized))
        {
            ncore_api()->load->helper( 'date' );

            $initialized = ncore_id('datePicker');
            $date_format = str_replace(['m', 'd', 'y'], ['mm', 'dd', 'yyyy'], strtolower(_ncore( 'm/d/Y' )));

            $language = str_replace('_', '-', get_locale());
            $datepicker_options = "
        language: '$language',
        format: '$date_format',
        weekStart: 1,
        autoHide: true,
        zIndex: 2147483647,
";

            if ($is_past)
            {
                $datepicker_options .= "endDate: new Date(),startDate: new Date(0),";
            }
            elseif ($is_future)
            {
                $datepicker_options .= "startDate: new Date(),";
            }
            else {
                $datepicker_options .= "startDate: new Date(0),";
            }

            $js_onload = "
    ncoreJQ( '.$initialized' ).dmDatePicker({
        $datepicker_options
});
";
            /** @var ncore_HtmlLogic $html */
            $html = ncore_api()->load->model( 'logic/html' );
            $html->jsOnLoad( $js_onload );
        }

        $attributes['size'] = 10;
        $attributes['class'] = ncore_retrieve( $attributes, 'class' ) . ' ' . $css . ' ' . $initialized;
        $attributes['autocomplete'] = 'off';

        $value = ncore_formatDate( strtotime($value) );

        return ncore_htmlTextInput( $postname, $value, $attributes );
}