Directory Script(new)

Discussion in 'Directories' started by latehorn, Dec 6, 2006.

  1. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #21
    if you had read the thread you would have noticed that mod_rewrite can be turned on ;)
     
    just-4-teens, Dec 7, 2006 IP
  2. mani

    mani Peon

    Messages:
    679
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #22
    yup its written above , i just view the demo and ask for mod rewrite ,
    sorry my mistake :)
     
    mani, Dec 7, 2006 IP
  3. afzalkhan

    afzalkhan Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    can you asking for link from index page whole directory or without any link ?
     
    afzalkhan, Dec 7, 2006 IP
  4. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #24
    What? :confused:
     
    latehorn, Dec 7, 2006 IP
  5. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #25
    Anyway, I just updated the script from rc1 to rc2..

    Download
     
    latehorn, Dec 8, 2006 IP
  6. opdir

    opdir Peon

    Messages:
    174
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #26
    I have tried to install this script , but when I finished, I couldn't log into the system with my username/password I set. why?
     
    opdir, Dec 8, 2006 IP
  7. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #27
    I tried to recreate the issue but it worked for me. I see three possibillities in your case, either that your password and username are the same or that you entered in some weird characters or that you just entered wrong username/password.
     
    latehorn, Dec 8, 2006 IP
  8. opdir

    opdir Peon

    Messages:
    174
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #28
    I'm sure that I have entered the correct username/password and the password doesn't contain some weird characters.
     
    opdir, Dec 8, 2006 IP
  9. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #29
    I've had a PM conversation with opdir and I solved his issue.

    Well it turned out that the login didn't worked when register_globals was turned off. So if anyone have login problems, I suggest this fix:

    ________________

    Delete the '-' and add the '+' lines in admin_login:
    -              $GLOBALS['MM_Username'] = $_POST['username']; 
    -              $GLOBALS['MM_UserGroup'] = 'Admin';           
    - 
    -              //register the session variables 
    -              session_register("MM_Username"); 
    -              session_register("MM_UserGroup"); 
    +              $_SESSION['MM_Username'] = $_POST['username']; 
    +              $_SESSION['MM_UserGroup'] = 'Admin'; 
    Code (markup):
    ________________

    This fix will be included in future versions of the script. But until rc3, you have to do it yourself(if the admin login doesn't work for you).
     
    latehorn, Dec 9, 2006 IP
  10. pgolovko

    pgolovko Peon

    Messages:
    36
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #30
    register_globals ... I can almost taste SQL Injection here ;)
     
    pgolovko, Dec 9, 2006 IP
  11. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #31
    thats weird, im sure i have register_globals turned off and i could login just fine :|

     
    just-4-teens, Dec 9, 2006 IP
  12. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #32
    Well that's because it happens when you use PHP5+ and the register_globals is turned off.
     
    latehorn, Dec 9, 2006 IP
  13. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #33
    i also have PHP5 :D
     
    just-4-teens, Dec 9, 2006 IP
  14. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #34
    LOL.. sorry but I thought I could run a away with that simple explanation.. :p

    Anyway, I only checked a qoute from the PHP manual that explained this
    [QOUTE]If you want your script to work regardless of register_globals, you need to instead use the $_SESSION array as $_SESSION entries are automatically registered. If your script uses session_register(), it will not work in environments where the PHP directive register_globals is disabled.[/QOUTE]

    And after that fix, op got his copy to work. So I assumed it was the register_globals but obviously not in your case.. hehe
     
    latehorn, Dec 9, 2006 IP
  15. SasaVtec

    SasaVtec Notable Member

    Messages:
    1,588
    Likes Received:
    150
    Best Answers:
    0
    Trophy Points:
    275
    #35
    pretty please an admin demo, thanks :D
     
    SasaVtec, Dec 11, 2006 IP
  16. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #36
    I thought about it, but I guess some users could missuse it.
     
    latehorn, Dec 11, 2006 IP
  17. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #37
    For those who are interested. OpenLD 1.1 Alpha has just been released. Recommended for experimental purposes and includes many new major features/changes.
     
    latehorn, Jan 3, 2007 IP
  18. latehorn

    latehorn Guest

    Messages:
    4,676
    Likes Received:
    238
    Best Answers:
    0
    Trophy Points:
    0
    #38
    For those who are interested. OpenLD 1.1 Beta has just been released.
     
    latehorn, Jan 10, 2007 IP
  19. just-4-teens

    just-4-teens Peon

    Messages:
    3,967
    Likes Received:
    168
    Best Answers:
    0
    Trophy Points:
    0
    #39
    cool, i will update my site later on.
     
    just-4-teens, Jan 10, 2007 IP
  20. digital1

    digital1 Well-Known Member

    Messages:
    517
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #40
    This looks like an interesting little directory script... I think I might look into this. Thanks, latehorn.
     
    digital1, Jan 10, 2007 IP