From 38c9df8e97311bdd960e555ee7dbc4beed0d2e96 Mon Sep 17 00:00:00 2001
From: Thomas Bruederli <thomas@roundcube.net>
Date: Thu, 14 Nov 2013 05:46:49 -0500
Subject: [PATCH] Add public_html directory to be used as document root or alias directory for Roundcube installations. This will only expose the required resources to public access

---
 public_html/program/js        |    1 +
 public_html/index.php         |   27 +++++++++++++++++++++++++++
 public_html/skins             |    1 +
 public_html/plugins           |    1 +
 public_html/.htaccess         |    1 +
 public_html/program/resources |    1 +
 public_html/robots.txt        |    1 +
 7 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/public_html/.htaccess b/public_html/.htaccess
new file mode 120000
index 0000000..94546dc
--- /dev/null
+++ b/public_html/.htaccess
@@ -0,0 +1 @@
+../.htaccess
\ No newline at end of file
diff --git a/public_html/index.php b/public_html/index.php
new file mode 100644
index 0000000..cec0dca
--- /dev/null
+++ b/public_html/index.php
@@ -0,0 +1,27 @@
+<?php
+
+/*
+ +-----------------------------------------------------------------------+
+ | Roundcube Webmail IMAP Client                                         |
+ | Version 1.0-git                                                       |
+ |                                                                       |
+ | Copyright (C) 2005-2013, The Roundcube Dev Team                       |
+ |                                                                       |
+ | Licensed under the GNU General Public License version 3 or            |
+ | any later version with exceptions for skins & plugins.                |
+ | See the README file for a full license statement.                     |
+ |                                                                       |
+ | PURPOSE:                                                              |
+ |   This is the public entry point for all HTTP requests to the         |
+ |   Roundcue webmail application.                                       |
+ +-----------------------------------------------------------------------+
+ | Author: Thomas Bruederli <roundcube@gmail.com>                        |
+ | Author: Aleksander Machniak <alec@alec.pl>                            |
+ +-----------------------------------------------------------------------+
+*/
+
+define('INSTALL_PATH', realpath(__DIR__ . '/..') . '/');
+
+// include index.php from application root directory
+include INSTALL_PATH . 'index.php';
+
diff --git a/public_html/plugins b/public_html/plugins
new file mode 120000
index 0000000..7655edc
--- /dev/null
+++ b/public_html/plugins
@@ -0,0 +1 @@
+../plugins
\ No newline at end of file
diff --git a/public_html/program/js b/public_html/program/js
new file mode 120000
index 0000000..2c75643
--- /dev/null
+++ b/public_html/program/js
@@ -0,0 +1 @@
+../../program/js
\ No newline at end of file
diff --git a/public_html/program/resources b/public_html/program/resources
new file mode 120000
index 0000000..a1164a0
--- /dev/null
+++ b/public_html/program/resources
@@ -0,0 +1 @@
+../../program/resources
\ No newline at end of file
diff --git a/public_html/robots.txt b/public_html/robots.txt
new file mode 120000
index 0000000..123b166
--- /dev/null
+++ b/public_html/robots.txt
@@ -0,0 +1 @@
+../robots.txt
\ No newline at end of file
diff --git a/public_html/skins b/public_html/skins
new file mode 120000
index 0000000..2492237
--- /dev/null
+++ b/public_html/skins
@@ -0,0 +1 @@
+../skins
\ No newline at end of file

--
Gitblit v1.9.1