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/ |
+---------------------------------------------------------*/
require_once "../proxy.php";
ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mail open tracking is enabled
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="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div>
<div id="content" class="center">
<p>Thank you. You are now subscribed to the newsletter.</a>

View File

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

View File

@ -7,7 +7,8 @@
| 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
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="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div>
<div id="content" class="center">
<p>Thank you. You've been re-subscribed to the newsletter.</a>

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ |
+---------------------------------------------------------*/
require "../proxy.php";
ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mailing subscribe feature is enabled
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'>
";
foreach ($groups as $group_id => $group) {
print "<option value='{$group_id}'>{$group['name']}</input>";
print "<option value='{$group_id}'>{$group['title']}</input>";
}
print "
</select>

View File

@ -7,7 +7,8 @@
| http://www.systopia.de/ |
+---------------------------------------------------------*/
require "../proxy.php";
ini_set('include_path', dirname(dirname(__FILE__)));
require "proxy.php";
// see if mailing subscribe feature is enabled
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="info" class="center">
<a href="https://www.systopia.de/"><?php echo $civiproxy_logo;?></a>
<p id="version">Subscribe to Newsletters</p>
</div>
<div id="content" class="center">
<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) {
global $civiproxy_version;
global $error_message;
global $civiproxy_logo;
$civiproxy_error_message = $message;