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

    +1

    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
    <?php
    
            if ($fields['emailhide'] == "true" OR $fields['emailhide'] == true OR $fields['emailhide'] == 1) {
                $newEmail = $values['fid2'][0]['val'];
                $cond = 1;
                $this->smarty->assign('is_phone', 1);
            } elseif ($fields['emailhide'] == "false" OR $fields['emailhide'] == false OR $fields['emailhide'] == 0) {
                $newEmail = $fields['email'];
                $cond = 0;
                $this->smarty->assign('is_phone', 0);
            }
            if ($this->user->is_phone == 1 OR $this->user->is_phone == true OR $this->user->is_phone == 'true') {
                $this->smarty->assign('is_phone', 1);
            } elseif ($this->user->is_phone == 0 OR $this->user->is_phone == false OR $this->user->is_phone == 'false') {
                $this->smarty->assign('is_phone', 0);

    Продолжение предыдущего ( #18863 )

    Запостил: m0003r, 15 Октября 2015

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

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