コード例 #1
0
ファイル: api.uhw.php プロジェクト: l1ght13aby/Ubilling
function uhw_PasswordForm($uconf)
{
    $form = '
        
       <form action="" method="POST" class="glamour">
       <label for="passfield">' . $uconf['SUP_PASS'] . '</label> <input type="' . $uconf['SELFACT_FIELDTYPE'] . '" name="password" id="passfield" size="16">
       <br>
       <br>
        <input type="submit" value="' . $uconf['SUP_ACTIVATE_QUERY'] . '">
        </form>
        
        <div style="clear:both;"></div>
        <br><br>
         ' . $uconf['SUP_PASSNOTICE'] . '
        ';
    $result = '<br><br><br>';
    $result .= uhw_modal($uconf['SUP_SELFACT'], $uconf['SUP_SELFACT'], $form, 'ubButton', '600', '400');
    print $result;
}
コード例 #2
0
ファイル: index.php プロジェクト: l1ght13aby/Ubilling
                                    //wrong password action
                                    uhw_LogBrute($trypassword, $usermac);
                                    print uhw_modal_open($uconf['SUP_ERROR'], $uconf['SUP_WRONGPASS'], '400', '300');
                                }
                            }
                        }
                        //
                        //show selfact form
                        //
                        uhw_PasswordForm($uconf);
                    } else {
                        print $uconf['SUP_MACEXISTS'];
                    }
                } else {
                    //bruteforce prevention
                    print '<br><br><br>' . uhw_modal($uconf['SUP_SELFACT'], $uconf['SUP_SELFACT'], $uconf['SUP_BRUTEERROR'], 'ubButton', '400', '300');
                }
            } else {
                print 'DEBUG: EXEPTION_PASS_UNIQ ';
            }
        }
    } else {
        print $uconf['SUP_NOMAC'];
    }
} else {
    //not unknown user network
    uhw_redirect($uconf['ISP_URL']);
}
?>
       
	</h3>