Menu

Sortable Colums & Password Protecting

FreshMeat
2006-01-23
2013-04-17
  • FreshMeat

    FreshMeat - 2006-01-23

    I have phpCodeGenie up and running and have started generating my pages. There are a couple things I am curious about learning.

    1)  How to I create sortable colums?
    2)  How to I password protect my pages so only authorized people can add, delete and modify data?

    Thanks,
    Jason

     
    • rainbow

      rainbow - 2006-02-02

      Hi Jason,

      A while ago I downloaded version 3.0 Beta. I added code to it to make the colums sortable and it works very good. I just saw that there is a newer version now, I can't find a changelog of what have changed though!

      If you want I can send you the edited code.

      For password protecting I used Realm Authorization of Apache with .htacces files.
      But you can add your own database of user and passwords for authorization.

      what I did was something like

      .htaccess contents

      AuthName "Cgt-Access"
      AuthType Basic
      AuthDBMUserFile /usr/local/apache/passwd/dbpasswords.dat
      AuthDBMType DB

      if you put this file in any directory then apache will ask for user name and password. But you need to make that dbpasswords.dat file by yourself. you can find on google how to do that.

      Regards

      Rainbow

       
      • Chris

        Chris - 2006-02-22

        Hi Rainbow,

        I'm also interested in sorting results by columns, can you please send me the edited code ?

        BTW, PCG is great ! It fulfills most of my requirements as a professional developer.

        Thank you
        Chris

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.