fixed path issues

This commit is contained in:
systopia 2015-03-19 15:21:18 +01:00
parent 6a8d44548f
commit a2385a8c1c
7 changed files with 12 additions and 15 deletions

View File

@ -1,5 +0,0 @@
TODO
1) sanitize string values (mysql_escape_string?)
2) better index page
3) error page

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ | | http://www.systopia.de/ |
+---------------------------------------------------------*/ +---------------------------------------------------------*/
require_once "../proxy.php"; ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mail open tracking is enabled // see if mail open tracking is enabled
if (!$mail_subscription_user_key) civiproxy_http_error("Feature disabled", 405); if (!$mail_subscription_user_key) civiproxy_http_error("Feature disabled", 405);
@ -80,7 +81,6 @@ if (!empty($group_query['is_error'])) {
<div id="container"> <div id="container">
<div id="info" class="center"> <div id="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a> <a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div> </div>
<div id="content" class="center"> <div id="content" class="center">
<p>Thank you. You are now subscribed to the newsletter.</a> <p>Thank you. You are now subscribed to the newsletter.</a>

View File

@ -7,8 +7,8 @@
| http://www.systopia.de/ | | http://www.systopia.de/ |
+---------------------------------------------------------*/ +---------------------------------------------------------*/
require_once "../config.php"; ini_set('include_path', dirname(dirname(__FILE__)));
require_once "../proxy.php"; require "proxy.php";
// see if mail open tracking is enabled // see if mail open tracking is enabled
if (!$target_mail_view) civiproxy_http_error("Feature disabled", 405); if (!$target_mail_view) civiproxy_http_error("Feature disabled", 405);

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ | | http://www.systopia.de/ |
+---------------------------------------------------------*/ +---------------------------------------------------------*/
require_once "../proxy.php"; ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mail open tracking is enabled // see if mail open tracking is enabled
if (!$mail_subscription_user_key) civiproxy_http_error("Feature disabled", 405); if (!$mail_subscription_user_key) civiproxy_http_error("Feature disabled", 405);
@ -80,7 +81,6 @@ if (!empty($group_query['is_error'])) {
<div id="container"> <div id="container">
<div id="info" class="center"> <div id="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a> <a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div> </div>
<div id="content" class="center"> <div id="content" class="center">
<p>Thank you. You've been re-subscribed to the newsletter.</a> <p>Thank you. You've been re-subscribed to the newsletter.</a>

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ | | http://www.systopia.de/ |
+---------------------------------------------------------*/ +---------------------------------------------------------*/
require "../proxy.php"; ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mailing subscribe feature is enabled // see if mailing subscribe feature is enabled
if (empty($mail_subscription_user_key)) civiproxy_http_error("Feature disabled", 405); if (empty($mail_subscription_user_key)) civiproxy_http_error("Feature disabled", 405);
@ -133,7 +134,7 @@ if (empty($_REQUEST['email']) || !empty($parameter_errors)) {
<select name='group_id'> <select name='group_id'>
"; ";
foreach ($groups as $group_id => $group) { foreach ($groups as $group_id => $group) {
print "<option value='{$group_id}'>{$group['name']}</input>"; print "<option value='{$group_id}'>{$group['title']}</input>";
} }
print " print "
</select> </select>

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ | | http://www.systopia.de/ |
+---------------------------------------------------------*/ +---------------------------------------------------------*/
require "../proxy.php"; ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mailing subscribe feature is enabled // see if mailing subscribe feature is enabled
if (empty($mail_subscription_user_key)) civiproxy_http_error("Feature disabled", 405); if (empty($mail_subscription_user_key)) civiproxy_http_error("Feature disabled", 405);
@ -80,7 +81,6 @@ if (!empty($group_query['is_error'])) {
<div id="container"> <div id="container">
<div id="info" class="center"> <div id="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a> <a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div> </div>
<div id="content" class="center"> <div id="content" class="center">
<p>Thank you. You have been successfully unsubscribed.</a> <p>Thank you. You have been successfully unsubscribed.</a>

View File

@ -193,6 +193,7 @@ function civiproxy_get_parameters($valid_parameters) {
function civiproxy_http_error($message, $code = 404) { function civiproxy_http_error($message, $code = 404) {
global $civiproxy_version; global $civiproxy_version;
global $error_message; global $error_message;
global $civiproxy_logo;
$civiproxy_error_message = $message; $civiproxy_error_message = $message;