Ability to create symlink from private_html to public_html (SKINS)

Version 1.255

Feature
Finished

Ability to create symlink from private_html to public_html, on click with "are you sure" message (as the private_html will be deleted, along with it's contents) Link is in: http://1.2.3.4:2222/CMD_ADDITIONAL_DOMAINS?domain=domain.com user/modify_domain.hml, add: <script language=javascript> <!-- function confirmit() { with (document.https) { var checkedval=''; for (var i=0; i < elements.length; i++) if (elements[i].type == 'radio') { if ( elements[i].name == "val" && elements[i].checked ) { checkedval=elements[i].value; } } if (checkedval=='symlink') { if (confirm('Using a symbolic link will delete the private_html directory and all files in it. Do you wish to continue?')) { submit(); } } else { submit(); } } } //--> </script> <table class=list cellpadding=3 cellspacing=1> <form name=https action="/CMD_DOMAIN" method="post"> <input type=hidden name=action value="private_html"> <input type=hidden name=domain value="|domain|"> <tr ><td class=listtitle colspan=2>private_html setup for |domain| - (SSL must be enabled above) </td></tr> |*if SSLCHECKED!="checked"| |?SSLDISABLED=disabled| |*else| |?SSLDISABLED=| |*endif| <tr><td class=list><input type=radio name=val value="directory" |SSLDISABLED| |DIRECTORY_CHECKED|></td><td class=list>Use a directory named private_html</td></tr> <tr><td class=list><input type=radio name=val value="symlink" |SSLDISABLED| |SYMLINK_CHECKED|></td><td class=list>Use a symbolic link from private_html to public_html - allows for same data in http and https</td></tr> <tr><td class=listtitle colspan=3 align=right> <input type=button value='Save' |SSLDISABLED| onClick="confirmit();"> </td></tr> </form> </table>

Interested to try DirectAdmin? Get a 30-day Free Trial!