Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 14 of 14
  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default listpopstable change help

    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. #2
    bdraco
    Guest

    Default

    [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. #3
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #4
    bdraco
    Guest

    Default

    [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. #5
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #6
    Member
    Join Date
    Aug 2001
    Posts
    80

    Default

    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()&&
    Knowledge is Sharing.....

  7. #7
    bdraco
    Guest

    Default

    [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. #8
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #9
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #10
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    [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.
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  11. #11
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #12
    Member rpmws's Avatar
    Join Date
    Aug 2001
    Location
    back woods of NC, USA
    Posts
    1,858

    Default

    [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 ?
    Just keeping my "eye" on things....
    R. Paul Mathews
    RPMWS - diehard cPanel Nutcase

  13. #13
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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. #14
    Member
    Join Date
    Dec 2001
    Posts
    22

    Default

    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)

Similar Threads & Tags
Similar threads

  1. listpopstable()
    By cyon in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-09-2003, 05:55 PM
  2. listpopstable()
    By equens in forum Themes and Branding
    Replies: 1
    Last Post: 11-30-2002, 07:03 PM
  3. listpopstable
    By Radio_Head in forum Themes and Branding
    Replies: 3
    Last Post: 11-05-2002, 02:30 PM
  4. listpopstable
    By Kulman in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-01-2002, 06:25 AM
  5. <cpanel Email=\"listpopstable()\">
    By emiliocarpio2001 in forum Themes and Branding
    Replies: 1
    Last Post: 09-28-2001, 09:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube