Ankündigung

Einklappen
Keine Ankündigung bisher.

Decoded file herrichten

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Decoded file herrichten

    Guten Tag,

    ich habe eine File decoded.
    Leider funktioniert der Decoder nicht zu 100%.
    Ich habe schon mehrfach versucht die php datei selbst zu fixen.
    Leider ohne Erfolg.
    Ich würde dem jenigen der mir die Datei fixt 5€ via paypal zusenden.
    Falls der fix überhaupt möglich ist.
    Vielen dank



    Hier der Code:


    PHP-Code:





    <?php

        
    function directdebit_config() {
            
    $configarray = array( 'FriendlyName' => array( 'Type' => 'System''Value' => 'Direct Debit' ) );
            return 
    $configarray;
        }

        
    /**
     * Used to generate a form for the client to assist in making a payment.
     *
     * @param array $params The parameters for the payment
     * @return string The code to display a payment link to the client
     */
        
    function directdebit_link($params) {
            
    $code '<form method="post" action="modules/gateways/directdebit.php?invoiceid=' $params['invoiceid'] . '">
    <input type="submit" value="' 
    $params['langpaynow'] . '" />
    </form>'
    ;
            return 
    $code;
        }


        if (isset( 
    $_GET['invoiceid'] )) {
            require( 
    '../../init.php' );
            
    $whmcs->load_function'gateway' );
            
    $whmcs->load_function'invoice' );
            global 
    $_LANG;

            
    getGatewayVariables'directdebit' );
            
    $GATEWAY = ;

            if (!
    $GATEWAY['type']) {
                exit( 
    'Module Not Activated' );
                
    $invoiceID = (int)$whmcs->get_req_var'invoiceid' );

                if (
    eaaadiagec::get'adminid' )) {
                    
    select_query'tblinvoices''id, userid', array( 'id' => $invoiceID ) );
                    
    $result = ;
                    
    jmp;
                    
    select_query'tblinvoices''id, userid', array( 'id' => $invoiceID'userid' => (int)eaaadiagec::get'uid' ) ) );
                    
    $result = ;
                    
    mysql_fetch_array$result );
                    
    $data = ;
                    
    $data['id'];
                    
    $invoiceID = ;
                    
    $data['userid'];
                    
    $userID = ;

                    if (!
    $invoiceID) {
                        exit( 
    'Access Denied' );
                        echo 
    '<!DOCTYPE html>
    <html lang="en">
        <head>
            <meta http-equiv="content-type" content="text/html; charset='
    ;
                        echo 
    $CONFIG['Charset'];
                        echo 
    '" />
            <title>
                '
    ;
                        echo 
    $_LANG['directDebitPageTitle'];
                        echo 
    '        </title>
            <link href="../../templates/default/css/invoice.css" rel="stylesheet">
        </head>
        <body>
            <div class="wrapper">
                <p>
                    <img src="'
    ;
                        echo 
    $CONFIG['LogoURL'];
                        echo 
    '" title="';
                        
    $CONFIG['CompanyName'];
                    }
                }
            }
        }

        echo ;
        echo 
    '" />
                </p>
                <h1>
                    '
    ;
        echo 
    $_LANG['directDebitHeader'];
        echo 
    '            </h1>
            '
    ;

        if (
    $submit) {
            
    $errorMessage '';

            if (!
    $bankName) {
                
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorNoBankName'];

                if (!
    in_array$bankAccType, array( 'Checking''Savings' ) )) {
                    
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorAccountType'];

                    if (!
    $bankABACode) {
                        
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorNoABA'];

                        if (!
    $bankAccNumber) {
                            
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorAccNumber'];

                            if (!
    $bankAccNumber2) {
                                
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorConfirmAccNumber'];

                                if (
    $bankAcctNumber != $bankAcctNumber2) {
                                    
    $errorMessage .=  . '<li>' $_LANG['directDebitErrorAccNumberMismatch'];
                                }
                            }
                        }
                    }


                    if (!
    $errorMessage) {
                        
    update_query;
                        
    'tblclients';
                    }
                }
            }

            ( array( 
    'bankname' => $bankName'banktype' => $bankAccType'bankcode' => $bankABACode'bankacct' => $bankAccNumber ), array( 'id' => $userID ) );
            echo 
    '<p align="center">' $_LANG['directDebitThanks'] . '</p>
            <p align="center"><a href="#" onclick="window.close()">' 
    $_LANG['closewindow'] . '</a></p>
            '
    ;

            if (( !
    $submit || $errorMessage )) {
                echo 
    '            <p>
                    '
    ;
                echo 
    $_LANG['directDebitPleaseSubmit'];
                echo 
    '            </p>
                <form method="post" action="'
    ;
                echo 
    $_SERVER['PHP_SELF'];
                echo 
    '?invoiceid=';
                echo 
    $invoiceID;
                echo 
    '">
                    <input type="hidden" name="submit" value="true" />
                    '
    ;

                if (
    $errorMessage) {
                    echo 
    '<div class="creditbox" style="text-align:left;"><b>' . (  . $_LANG['directDebitFollowingError'] . '</b></p><ul>' $errorMessage '</ul></div>' );
                }
            }

            (  || !
    $bankAccType );
            
    $bankAccType == 'Checking';
        }


        if ((bool)) {
            
    $checkingChecked ' checked';
            
    $savingsChecked '';
        }

        echo 
    '" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                '
    ;
        echo 
    $_LANG['directDebitConfirmAccNumber'];
        echo 
    '                        </td>
                            <td>
                                <input type="text" name="bankAccNumber2" size="20" value="'
    ;
        echo 
    $bankAccNumber2;
        echo 
    '" />
                            </td>
                        </tr>
                    </table>
                    <p align="center">
                        <img src="//cdn.whmcs.com/assets/img/achinfographic.gif" />
                    </p>
                    <p align="center">
                        <input type="submit" value="'
    ;
        echo 
    $_LANG['directDebitSubmit'];
        echo 
    '" />
                    </p>
                </form>
            '
    ;
        echo 
    '        </div>
        </body>
    </html>
    '
    ;
    ?>

  • #2
    Habe es mir halb durchgelesen, da waren die 5 € schon verbraucht.....

    Kommentar

    Lädt...
    X