Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 12 of 12
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge txspaderz's Avatar
    Join Date
    Jun 2008
    Location
    Houston
    Posts
    33
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default .smilies folder location

    Would it be possible to move the .smilies folder that is created by the HTML editor to the .cpanel folder in /home/<user>/? We see numerous tickets a week asking if their cPanel has been hacked because they see this .smilies folder in FTP / File Manager.

    Anyone else seeing complaints / concerns with the .smilies folder?

  2. #2
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Question Re: .smilies folder location

    Where do you see a .smilies folder at exactly?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,298
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    When editing a file in cPanel > File Manager and choosing to use the HTML Editor on the file, if you then select to insert a smiley, you get this folder (I just tested it on my server to ensure the proper spelling and location of the folder):

    /home/user/public_html/.smileys

    The feature request is to move the .smileys folder that the HTML Editor in File Manager creates from /home/user/public_html/.smileys to /home/user/.cpanel/.smileys so people won't see it in public_html location.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    Member
    Join Date
    Mar 2006
    Location
    Dieppe, NB, Canada
    Posts
    57

    Thumbs up Re: .smilies folder location

    It is a must!!!

    The .smileys folder is for the file manager html editor and it should not appeared in the public_html of any of my customers.

    Customer just panic and open tickets left & right!
    --
    Jean Boudreau - SysAdmin Lv -1

  5. #5
    Registered User
    Join Date
    Nov 2010
    Posts
    1

    Default Re: .smilies folder location

    cPanelTristan has it right, although the HTML editor creates that .smileys folder in the user's web root upon usage regardless of whether or not the user actually requests any smiley insertion into a file being edited.

    The unannounced appearance of a dotted folder name under the web root does tend to worry some users. I was one of them before discovering the source. Frankly, the need for cPanel's HTML editor to have its own set of smilies at all would seem at least as doubtful as its need for any other "built-in" store of images. But, if it absolutely must create a folder in the user's web root for that purpose, it should certainly make the user aware of what it's doing and preferably make it optional.

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    If the document created by the HTML editor contains one of these smilies, how would Apache serve up the image from ~/.cpanel, which is outside the document root?
    Kenneth
    Product Manager
    cPanel, Inc.

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,298
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    One idea might be to put the folder into /home/user/public_html/images/.smileys instead, which would create the images folder if it doesn't already exist or simply add the .smileys folder into that if it does. Since most people use or are used to seeing an images folder, it might be less surprising to see one added.

    Otherwise, if the smilies are being linked for the image anyway, couldn't the location be in /usr/local/apache/htdocs or /usr/local/cpanel/img-sys for a global repository for the images?

    Just some suggestions, which might not be overly valid ones, but these were the only ideas I could come up with to bypass the issue.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,891
    cPanel/Enkompass Access Level

    Root Administrator

    Lightbulb Re: .smilies folder location

    Or a directory called cpsmilies with a readme.txt in it explaining how this directory got here, and why you shouldn't delete it. Not sure how many users would ever have a directory called cpsmilies, but if this was placed in an images directory, it could easily be wiped by accident I would think.

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge txspaderz's Avatar
    Join Date
    Jun 2008
    Location
    Houston
    Posts
    33
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default Re: .smilies folder location

    Quote Originally Posted by cPanelTristan View Post
    Otherwise, if the smilies are being linked for the image anyway, couldn't the location be in /usr/local/apache/htdocs or /usr/local/cpanel/img-sys for a global repository for the images?

    I like this idea

  10. #10
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,782
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    It really depends upon whether WYSIWYG Pro supports such configurations. That is the 3rd Party software used as the HTML Editor.
    Kenneth
    Product Manager
    cPanel, Inc.

  11. #11
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    Quote Originally Posted by cpanelkenneth View Post
    It really depends upon whether WYSIWYG Pro supports such configurations. That is the 3rd Party software used as the HTML Editor.
    The wysiwygPro developer documentation seems to imply this may be possible: Setting Dir and URL properties - WysiwygPro, Browser Based Online HTML WYSIWYG Editor

    Looking at /usr/local/cpanel/base/3rdparty/WysiwygPro/editor_files/config.php - I am able to confirm the software itself supports this (permissions/ownership issues not withstanding):

    Code:
    define('SMILEY_FILE_DIRECTORY', $_SERVER['HOME'].'/public_html/.smileys/');
    
    
    // SMILEY_WEB_DIRECTORY
    // The web address of the directory you specified above
    
    
    define('SMILEY_WEB_DIRECTORY', '/.smileys/');

  12. #12
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: .smilies folder location

    Update: The HTML editor included in cPanel&WHM will be changing. We currently use a project called WYSIWYG Pro, but that project is now dead, hence our desire to move to something else.

    Part of moving to a new editor is that it will be very likely we will be removing the need for a .smileys directory entirely in the new editor.

Similar Threads & Tags
Similar threads

  1. Replies: 4
    Last Post: 02-06-2010, 12:22 PM
  2. cpeasyapache folder location
    By VeZoZ in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-26-2009, 09:47 PM
  3. sync folder from 1 web directory folder and network vpn
    By khambalya in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-29-2007, 05:08 AM
  4. Dont delete this folder - folder interal data
    By ozzi4648 in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-27-2006, 10:18 AM
  5. Replies: 1
    Last Post: 03-16-2004, 12:25 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube