The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

listpopstable change help

Discussion in 'General Discussion' started by rwdcsi, Mar 13, 2002.

  1. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    We are using CPanles in secure mode. The &pops.html& file uses the listpopstable function to build the accounts list for the page. However it is building the link for web-email with the port number for insecure cpanels.

    Where can I find the code to change this? Or is there a config parameter somewhere I need to change?

    Thanks,
    Ron D.
     
  2. bdraco

    bdraco Guest

    [quote:b4cec05de6][i:b4cec05de6]Originally posted by rwdcsi[/i:b4cec05de6]

    We are using CPanles in secure mode. The &pops.html& file uses the listpopstable function to build the accounts list for the page. However it is building the link for web-email with the port number for insecure cpanels.

    Where can I find the code to change this? Or is there a config parameter somewhere I need to change?

    Thanks,
    Ron D.[/quote:b4cec05de6]

    You can't

    however you can use the new api

    Look in /usr/local/cpanel/newapi.txt
     
  3. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I looked at the newapi.txt, thanks for the pointer. Is there any
    documentation or instructions anywhere that will help me understand
    how to implement the api?
     
  4. bdraco

    bdraco Guest

    [quote:9615020275][i:9615020275]Originally posted by rwdcsi[/i:9615020275]

    I looked at the newapi.txt, thanks for the pointer. Is there any
    documentation or instructions anywhere that will help me understand
    how to implement the api?[/quote:9615020275]

    Its pretty simple

    &?cp listpops([a href=&mailto:%&]Email %[/a],email,login)&

    There are two var email and login the first % will be replaced with which ever one you specificy first
     
  5. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I'm a bit confused about what to use. The pops.html page currently
    has the tag &cpanel Email=&listpopstable()&& which returns a table
    that includes the email address, the arrow image, the login, the
    delete image w/a link, the read webmail image w/a link, the change
    password image w/a link and Outlook Express Config link (if on and
    using Outlook) on each line of the table.

    None of the strings in the newapi.txt file seem to match that. The
    listgpgkeys entry looks to be the closest. Do I need to create my
    own string of variables within &?cp listpops(????)& to return the same
    content?
     
  6. hostbet

    hostbet Well-Known Member

    Joined:
    Aug 13, 2001
    Messages:
    80
    Likes Received:
    0
    Trophy Points:
    6
    the newapi.txt has the structure for the layout for that page, is what I understand regarding the newapi.txt and the you call it by using &cpanel Email=&listpopstable()&&
     
  7. bdraco

    bdraco Guest

    [quote:3fed54b754][i:3fed54b754]Originally posted by rwdcsi[/i:3fed54b754]

    I'm a bit confused about what to use. The pops.html page currently
    has the tag &cpanel Email=&listpopstable()&& which returns a table
    that includes the email address, the arrow image, the login, the
    delete image w/a link, the read webmail image w/a link, the change
    password image w/a link and Outlook Express Config link (if on and
    using Outlook) on each line of the table.

    None of the strings in the newapi.txt file seem to match that. The
    listgpgkeys entry looks to be the closest. Do I need to create my
    own string of variables within &?cp listpops(????)& to return the same
    content?
    [/quote:3fed54b754]

    Just try putting

    &?cp listpops([a href=&mailto:%&]Email %[/a],email,login)&

    in a page and watch what is spits back
     
  8. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    If that is the case, I'm right back where I started. The read webmail
    link on the pop accounts is built with port 2095 which is the port
    for insecure access. We are running CPanels secured which needs
    port 2096. When our customers click the link, they get a plank page
    because they are in secure mode and port 2095 doesn't allow access to
    secure pages.

    How do I get the api to build the link with port 2096 instead of 2095?
     
  9. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    When I place that code,
    &?cp listpops([a href=&mailto:%&]Email %[/a],email,login)&,
    in the pops.html it places a link at the top of the table to the last
    pop account in the table. The link open my email client with the pop
    account as the &to& value.

    This is a good thing to have and I will use it, but it does nothing
    to solve my current problem.

    The &read webmail& link on each pop account is built with 2095 as
    the port for accessing NeoMail. Port 2095 is for insecure and we are
    running secure, using port 2096. I need know how to change the port
    number in the link to 2096.
     
  10. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    [quote:e7e8ec1466][i:e7e8ec1466]Originally posted by rwdcsi[/i:e7e8ec1466]

    When I place that code,
    &?cp listpops([a href=&mailto:%&]Email %[/a],email,login)&,
    in the pops.html it places a link at the top of the table to the last
    pop account in the table. The link open my email client with the pop
    account as the &to& value.

    This is a good thing to have and I will use it, but it does nothing
    to solve my current problem.

    The &read webmail& link on each pop account is built with 2095 as
    the port for accessing NeoMail. Port 2095 is for insecure and we are
    running secure, using port 2096. I need know how to change the port
    number in the link to 2096.
    [/quote:e7e8ec1466]

    You could just use a full URL in that link couldn't you. I mean the fram the webmail is in won't be secure but it should work.
     
  11. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Can't specify a full URL because all the code is generated by the api.
    I think the api needs to be aware of secured/unsecured operation and
    build the links accordingly. Otherwise, no matter what solution is
    implemented for one mode of operation, it will break the other mode
    of operation. It would be nice to allow customers their choice with
    both modes working.

    Nick? Anyone? Should this go to bugtrak?
     
  12. rpmws

    rpmws Well-Known Member

    Joined:
    Aug 14, 2001
    Messages:
    1,824
    Likes Received:
    5
    Trophy Points:
    38
    Location:
    back woods of NC, USA
    [quote:60fffc8f82][i:60fffc8f82]Originally posted by rwdcsi[/i:60fffc8f82]

    Can't specify a full URL because all the code is generated by the api.
    I think the api needs to be aware of secured/unsecured operation and
    build the links accordingly. Otherwise, no matter what solution is
    implemented for one mode of operation, it will break the other mode
    of operation. It would be nice to allow customers their choice with
    both modes working.

    Nick? Anyone? Should this go to bugtrak?[/quote:60fffc8f82]

    That's right I forgot about that ..wasn't thinking. I guess you could just simply make a page that everyone is directed to that explains how to access say using https://domain.com/webmail/ and have them start using that method maybe?? Does the webmail even work with SSL ?
     
  13. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Yes, it does. There was problem with the images being insecure.
    Netscape of course wouldn't show the insecure components but IE
    would (browsers??????) Anyway I found what was causing that, fixed
    it and have tested in secure and insecure modes with good results.

    I need to pass it up to Nick for consideration so here is what I found
    and changed:

    The NeoMail Insecure Images Issue:
    I have found what is causing the images to be insecure. I have made
    changes and tested in secure and insecure modes and all seems to work
    well.

    In /usr/local/cpanel/etc/neomail.conf, end of the file, there are
    three lines:
    $image_url = &http://$httphost/neo-images&;
    $bg_url = &http://$httphost/neo-images/neomail-bg.gif&;
    $logo_url = &http://$httphost/neo-images/neomail.gif&;
    that point to the images for neomail. The &http://& hoses the
    security of the images. I changed the lines as follows (removed the
    $httphost portion because relative instead of absolute reference does
    need it):
    $image_url = &/neo-images&;
    $bg_url = &/neo-images/neomail-bg.gif&;
    $logo_url = &/neo-images/neomail.gif&;
    and all seems to be good, secured and unsecured.

    I have done some looking and testing and can not see a need for
    httphost that was in the lines. Appears that it was to allow for
    image directories in each domain home directory, customized images
    probably.

    A better solution would be to retain the absolute reference (so custom
    images could be used) but have a line for secure and insecure. I
    don't know if there is a variable to tell us this or not.

    However, if the new webmail package goes in pretty soon, all this may
    be moot.

    Would this be a bug fix request? The auto updates replace the
    neomail.conf file when they run and it would be nice to get the fix
    incorporated into the package so I don't have to re-fix it every day.
     
  14. rwdcsi

    rwdcsi Member

    Joined:
    Dec 10, 2001
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    OOPS!

    (removed the $httphost portion because relative instead of absolute
    reference does need it)

    should have been:

    (removed the $httphost portion because relative instead of absolute
    reference does NOT need it)
     
Loading...

Share This Page