Script Testing 2 lol

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script Testing 2 lol

    Hi guys,

    Lol again i made a script this time its my first try in flatfile so here is the link Wapzone Please tell me what you think

    -----Edit-----
    I recoded it to an community now does anyone know a community which is done with text files? if so can you please link me to the script? i got some minor trouble with the forum thats why i am asking
    Last edited by djdevil89; 29.10.09, 13:55.

    PHP Code:
    foreach ($_SERVER as $server => $value)
    {
    echo 
    "$server is $value<br />";


    #2
    no loggin button --- Password cannot be empty
    Free WebHosting :D

    8):closedeyes:^_^

    Comment


      #3
      well its good. is it in txt files, not a database?
      mysterio.al - programming is a functional art

      Comment


        #4
        yes its a community working with txt files i got bored of mysql so i decided to give txt a try

        PHP Code:
        foreach ($_SERVER as $server => $value)
        {
        echo 
        "$server is $value<br />";

        Comment


          #5
          nice, thats classic
          mysterio.al - programming is a functional art

          Comment


            #6
            U dnt even have to wory bowt injection. bt u shud safeguard d text files bruv.

            Comment


              #7
              i was thinking of using .htaccess to secure the folders where the txt files are stored

              PHP Code:
              foreach ($_SERVER as $server => $value)
              {
              echo 
              "$server is $value<br />";

              Comment


                #8
                Before some months, i tried to make a community sity like you, which worked with txt files. There where usr.txt and pwd.txt files, where the usernames and passwords with be stored. Jets think that 5th username is in the 5th row of the usr.txt and the 5th password in the 5th row. when trying to register a new user, by writing two words in two lines into the username input box. So, after this, the new user's username in the 8th line will had to match with the 7th line where his password is stored. I fixed a lot from those bugs, till i desided to use a single txt file for all users details (username,password,age,sex,location,ect). And so for the messages and forum and chat. But still, with a small and accurate trick, an entire txt file could be ****ed up and make a mess up in all forum. Then i was bored, and shift+delete everything. I just want to say that it could be easy to damage the site. Anyway, wish your best.
                mysterio.al - programming is a functional art

                Comment


                  #9
                  well i am using htmlspecialchars and an other function to make the input in the text secure for example this
                  PHP Code:
                  $user $_REQUEST['user'];
                  $pass $_REQUEST['pass'];
                  $new_user ereg_replace("[^A-Za-z0-9]"""$user);
                  $new_pass ereg_replace("[^A-Za-z0-9]"""$pass);
                                                      
                  $new_user htmlspecialchars($new_user);
                                                      
                  $new_pass htmlspecialchars($new_pass); 

                  PHP Code:
                  foreach ($_SERVER as $server => $value)
                  {
                  echo 
                  "$server is $value<br />";

                  Comment

                  Working...
                  X