Maschine's webscheduler for Media Portal (1 Viewer)

samuel337

Portal Pro
August 25, 2004
772
0
Melbourne, Australia
jcee said:
2. A lot of webservers here where recommended.. I run Mp on a WIN XP pro.. which has built in Webserver.. so should'nt I use that one? or should I install one of the others (which one)..

If you use the web server in XP Pro, IIS, you will have to manually install PHP support. On the other hand, if you use apache or apache-based web servers, PHP support is built in. Try xampp (http://www.xampp.org) - a apache-based web server that has built in PHP support.

Sam
 

Maschine

Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    samuel337 said:
    I'm wondering if you'd be interested in using this plugin to further your web interface.

    Hi Sam,

    this one sounds really great! Sure I will have a look at your plugin immediately.

    I have to confess that I never heard about those webservices you mentioned... But I'll also do some research on this topic.

    Well, thanks again for your offer and I'm sure together we'll build a really nice web-frontend for MP :)

    How can I contact you best to discuss some things? Maybe you could PM me your AIM or ICQ id, if you have one...

    OK, I'm going to start reading and testing now ;-)
    Maschine
     
    A

    Anonymous

    Guest
    Securing Maschine's webscheduler with .htaccess

    Hi,

    First of all thanks to Maschine for a great tool.

    I've made a guide to secure access to the webscheduler:

    To secure a folder with .htaccess you ned to create 2 plain textfiles ( use notepad or semilar )

    The files must be places in the same folder as Mashines PHP files in my case C:\apachefriends\xampp\htdocs

    First we create a file that tells apache to secure the folder:
    - First we create a file called htaccess in the above folder ( be sore you have no extension on the file )
    - Launch a dos command ( start - run - "cmd" and press enter )
    - type "cd C:\apachefriends\xampp\htdocs" ( without quotes)
    - type ren htaccess .htaccess ( this because windows will not let you create a file called .htaccess )
    - exit dos command
    - open the file (.htaccess) with notepad

    - Fill in this (following 4 lines):
    AuthName "Enter username and password to access Maschine's webscheduler"
    AuthType Basic
    AuthUserFile c:\apachefriends\xampp\htdocs\htpasswd
    require valid-user
    - (AuthUserFile tells apache where to look for the usernames and passwords, more about that file later.)
    - Save the file and exit notepad.


    Now we create a file with users and passwords:
    - Create a file called htpasswd (again, no extension)
    - Open the file
    - The format of the file is user:password fx:
    santa:christmas
    merry:newyear
    The 2 lines above will alow santa to access the site with one password and merry to access it with another.
    If you want to encrypt the passwords look here http://www.webcafe.dk/artikler/apache/htaccesskrypterpassword/
    I now it's danish but i guess you all speak danish ;-)
    - Type your username in the "Brugernavn" textbox
    - Type your password in "Password" textbox
    - Press "Krypter" button
    - the line to fill into your htpasswd is written in red (fx dk_akj:ZGC9H3.puTezA )


    - Save the file and exit notepad.
    - Close all browsers
    - Open webscheduler and see if it works.

    NB: I'm novice in Apacheworld so please feel free to correct me if something is wrong.


    Anders
     

    Maschine

    Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Re: Securing Maschine's webscheduler with .htaccess

    Hi dk_akj,

    first of all thanks for your feedback and for your little tutorial. I'm also using htaccess protection on my htpc, actually I was just too lazy to write a tutorial :oops: So thanks for you help!

    One little thing I did in another way:
    dk_akj said:
    If you want to encrypt the passwords look here http://www.webcafe.dk/artikler/apache/htaccesskrypterpassword/
    I now it's danish but i guess you all speak danish ;-)
    - Type your username in the "Brugernavn" textbox
    - Type your password in "Password" textbox
    - Press "Krypter" button
    - the line to fill into your htpasswd is written in red (fx dk_akj:ZGC9H3.puTezA )
    In your "xampp/apache/bin" directory there is a little program called "htpasswd.exe". Start it in a dosbox with: "htpasswd passwordfile username" to get a encryptet password for "username" written in your "passwordfile". But again, thanks for your work :)

    Maschine
     
    A

    Anonymous

    Guest
    Hi Maschine,

    Glad that I could "help" you with the guide.

    A few things to improve:

    Search EPG returns also programs that was shown yesterday.
    Search EPG, You only show time not date.

    What is the idea og the "today 20:15" ??

    Next feature:
    List of recorded TV, and hyperlink so you can download it. ( mayby a copyright/legacy issue ??)


    Kind regards
    Anders
     

    Maschine

    Retired Team Member
  • Premium Supporter
  • June 15, 2004
    768
    86
    Germany
    Home Country
    Germany Germany
    Hi dk_akj,

    dk_akj said:
    A few things to improve:
    Search EPG returns also programs that was shown yesterday.
    Search EPG, You only show time not date.
    Congratulations, you found the bugs I built in the code to test you ;-)
    Thanks, I'll fix this asap!

    dk_akj said:
    What is the idea og the "today 20:15" ??
    Here in Germany the "primetime" everyday is at 20:15 at this time the most interesting movies or "blockbusters" start. So I thought it would be nice to see all primetime-movies with one click. I'll extend this soon for any time you like, so that you can see all movies running at a certain time with one click. But right now I don't know how and so there is now just 20:15.

    dk_akj said:
    Next feature:
    List of recorded TV, and hyperlink so you can download it. ( mayby a copyright/legacy issue ??)
    Interesting idea! Should not be that hard to implement. I'll think of it.

    Maschine
     
    A

    Anonymous

    Guest
    Sounds great :)

    Another "bug":
    Search function doesn't look in TV-show description, only the title.

    Kind Regards
    Anders
     
    A

    Anonymous

    Guest
    And the fix :)
    Fixes both "only future" and "only title searched"


    // only search for future programs
    $p_now = date("Ymdhis");

    $p_query = "SELECT * FROM program WHERE (strTitle LIKE '%".$_GET[searchfor]."%' OR strDescription LIKE '%".$_GET[searchfor]."%') AND iStartTime > ".$p_now ." ORDER BY iStartTime";
    $program = sqlite_query ($db,$p_query);


    My first PHP code ever :D

    Kind regards
    Anders
     

    Users who are viewing this thread

    Top Bottom