Php vraagje

Gestart doorMitchels41 reacties155 weergaven

42 berichten · pagina 2 van 3

Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kut opera xd
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wie heeft mijn DA gehacktconfusedStaat nu bij domeinen erik.one2xs.com
Sorry voor dubbelpost
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Wtf, sorry, dan heb ik hem in de verkeerde gezet.
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ok xdKan het nu nog? Dat username veranderen?
0
Erik

Lid

Berichten
7.109
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik had hem ook. biggrin
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
@Erik: Ja, maar hij hoort ook bij jou. emo
@Mitchels: Als je je script hier even wil plaatsen..
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL] [COLOR= #DD0000]../_include.php[/COLOR][COLOR= #007700];[/COLOR]
design_boven[COLOR= #007700]([/COLOR][COLOR= #DD0000]Home[/COLOR][COLOR= #007700]);[/COLOR]
check_login[COLOR= #007700]();[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<h2>Uitbetalen</h2>[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$check[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM uitbetalen WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check[/COLOR][COLOR= #007700]) !==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt nog een uitbetaling open staan.[/COLOR][COLOR= #007700];
    
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]

    [COLOR= #0000BB]$row1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT kliks, user, email FROM users WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row1[/COLOR][COLOR= #007700]))
    {[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kliks[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
        {[/COLOR]
            
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je moet minimaal 0,5 euro/2000punten hebben verdiend voor je een uitbetaling kan aanvragen.[/COLOR][COLOR= #007700];
        
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
    
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ===[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700])
            {[/COLOR]
                
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                INSERT INTO
                                    uitbetalen
                                (
                                    user,
                                    email,
                                    `in`,
                                    naam,
                                    aantal
                                )
                                VALUES
                                (
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/strtolower"]strtolower[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]])).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]in[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"
                                )"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je uitbetaling word zo snel mogenlijk behandeld![/COLOR][COLOR= #007700];
            
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                ?>
                <form action="" method="POST">
                    <table width="75%">
                        <tr>
                            <td>
                                Username:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="user" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>" readonly="readonly" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="email" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR] ?>" readonly="readonly" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Uitbetalen in:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <select size="1" name="in">
                                    <option selected="selected" value="none">Kies er een uit</option>
                                    <option value="Paypal">Paypal</option>
                                    <option value="Dutchleader">Dutchleader credits</option>
                                    <option value="Erohits">Erohits credits</option>
                                    <option value="Annepromo">Annepromo credits</option>
                                    <option value="Magichits">Magichits credits</option>
                                    <option value="PromotieKingdom">PromotieKingdom credits</option>
                                    <option value="Powerhits">Powerhits credits</option>
                                    <option value="kliks">Kliks op je site</option>
                                    <option value="One2xs">One2xs</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Uitbetaal naam*
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="naam" value="" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Aantal credits:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="aantal" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kliks[/COLOR][COLOR= #007700]];[/COLOR] ?>" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="submit" name="submit" value="Verzenden">
                            </td>
                        </tr>
                    </table>
                </form>
                <br /><br />
                * = Url als je kliks kiest anders het account naam waar je je wil laten uitbetalen.
                [COLOR= #0000BB]<?php[/COLOR]
                
            [COLOR= #007700]}
            
        }
        
    }

}[/COLOR]

design_onder[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
?>
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Gebruikersnaam kan ik dan niet meer aanpassen (die kan ook uit het formulier dan) maar de rest nog wel.
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Email ook confusedDe rest heeft ook geen zin.
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Omdat je niet op je HTML mag vetrouwen; iedereen kan dat emailveld aanpassen als hij dat wil, t is niet zo dat als je hem readonly maakt dat het niet meer kan, het wordt alleen iets lastiger dan.
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hmm ok, ik ga nu eten, straks probeer ik hem te veranderen zodat hij veilig isyummie
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Ok, succes.
0
Berichten
1.160
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Smakelijk.
Neej hij heeft mysql real escape string gebruikt sadley. Anders kon ik hem exploiten dat ik 1000 punten kreeg =D
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Edit: laat maar
0
Mitchels

Lid · Topicstarter

Berichten
2.396
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include_once"]include_once[/URL] [COLOR= #DD0000]../_include.php[/COLOR][COLOR= #007700];[/COLOR]
design_boven[COLOR= #007700]([/COLOR][COLOR= #DD0000]Home[/COLOR][COLOR= #007700]);[/COLOR]
check_login[COLOR= #007700]();[/COLOR]

[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<h2>Uitbetalen</h2>[/COLOR][COLOR= #007700];[/COLOR]

[COLOR= #0000BB]$check[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT 1 FROM uitbetalen WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$check[/COLOR][COLOR= #007700]) !==[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700])
{[/COLOR]
    
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt nog een uitbetaling open staan. Wacht eerst totdat die behandeld is en vraag daarna eventueel weer een nieuwe aan. We proberen hem zo snel mogelijk te behandelen![/COLOR][COLOR= #007700];
    
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]

    [COLOR= #0000BB]$row1[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT kliks, user, email FROM users WHERE user = "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_assoc"]mysql_fetch_assoc[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row1[/COLOR][COLOR= #007700]))
    {[/COLOR]
        
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kliks[/COLOR][COLOR= #007700]] <[/COLOR] [COLOR= #0000BB]2000[/COLOR][COLOR= #007700])
        {[/COLOR]
            
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je moet minimaal 0,5 euro/2000punten hebben verdiend voor je een uitbetaling kan aanvragen.[/COLOR][COLOR= #007700];
        
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
    
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ===[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700])
            {[/COLOR]
                
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"
                                INSERT INTO
                                    uitbetalen
                                (
                                    user,
                                    email,
                                    `in`,
                                    naam,
                                    aantal
                                )
                                VALUES
                                (
                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]in[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]",
                                    "[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]aantal[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"
                                )"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je uitbetaling word zo snel mogenlijk behandeld![/COLOR][COLOR= #007700];
            
            }[/COLOR]

            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                ?>
                <form action="" method="POST">
                    <table width="75%">
                        <tr>
                            <td>
                                Username:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]user[/COLOR][COLOR= #007700]];[/COLOR] ?>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Email:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                [COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]];[/COLOR] ?>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Uitbetalen in:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <select size="1" name="in">
                                    <option selected="selected" value="none">Kies er een uit</option>
                                    <option value="Paypal">Paypal</option>
                                    <option value="Dutchleader">Dutchleader credits</option>
                                    <option value="Erohits">Erohits credits</option>
                                    <option value="Annepromo">Annepromo credits</option>
                                    <option value="Magichits">Magichits credits</option>
                                    <option value="PromotieKingdom">PromotieKingdom credits</option>
                                    <option value="Powerhits">Powerhits credits</option>
                                    <option value="kliks">Kliks op je site</option>
                                    <option value="One2xs">One2xs</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Uitbetaal naam*
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="naam" value="" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Aantal credits:
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="text" name="aantal" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]kliks[/COLOR][COLOR= #007700]];[/COLOR] ?>" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <input type="submit" name="submit" value="Verzenden">
                            </td>
                        </tr>
                    </table>
                </form>
                <br /><br />
                * = Url als je kliks kiest anders het account naam waar je je wil laten uitbetalen.
                [COLOR= #0000BB]<?php[/COLOR]
                
            [COLOR= #007700]}
            
        }
        
    }

}[/COLOR]

design_onder[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
?>


Nu wil ik dat er een echo komt als je puntenaantal dat je wilt uitbetalen groter is dan je hebt.
Hoe doe ik dat, ik heb zelf dingen geprobeerd maar ik kreeg alleen errors die ik niet opgelost kreeg.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren