1. PHP / Говнокод #25774

    +2

    1. 01
    2. 02
    3. 03
    4. 04
    5. 05
    6. 06
    7. 07
    8. 08
    9. 09
    10. 10
    11. 11
    12. 12
    13. 13
    14. 14
    15. 15
    16. 16
    17. 17
    18. 18
    19. 19
    20. 20
    21. 21
    22. 22
    23. 23
    <?
    global $DB,$APPLICATION,$USE,$USER_FIELD_MANAGER,$CACHE_MANAGER;
    /* @var $DB CDatabase */
    /* @var $GLOBALS['DB'] CDatabase */
    /* @var $GLOBALS["DB"] CDatabase */
    $DB = $GLOBALS['DB'] = $GLOBALS["DB"] = new CDatabase();
    /* @var $APPLICATION CMain */
    /* @var $GLOBALS['APPLICATION'] CMain */
    /* @var $GLOBALS["APPLICATION"] CMain */
    $APPLICATION = $GLOBALS['APPLICATION'] = $GLOBALS["APPLICATION"] = new CMain();
    /* @var $USER CUser */
    /* @var $GLOBALS['USER'] CUser */
    /* @var $GLOBALS["USER"] CUser */
    $USER = $GLOBALS['USER'] = $GLOBALS["USER"] = new CUser();
    /* @var $USER_FIELD_MANAGER CUserTypeManager */
    /* @var $GLOBALS['USER_FIELD_MANAGER'] CUserTypeManager */
    /* @var $GLOBALS["USER_FIELD_MANAGER"] CUserTypeManager */
    $USER_FIELD_MANAGER = $GLOBALS['USER_FIELD_MANAGER'] = $GLOBALS["USER_FIELD_MANAGER"] = new CUserTypeManager;
    /* @var $CACHE_MANAGER CCacheManager */
    /* @var $GLOBALS['CACHE_MANAGER'] CCacheManager */
    /* @var $GLOBALS["CACHE_MANAGER"] CCacheManager */
    $CACHE_MANAGER = $GLOBALS['CACHE_MANAGER'] = $GLOBALS["CACHE_MANAGER"] = new CCacheManager;
    ?>

    Есть тут петухи, которые шарят в "PHP" ? Какие скобки лучше ординарные или двойные ?

    Запостил: phpBidlokoder2, 23 Августа 2019

    Комментарии (88) RSS

    Добавить комментарий