';
}
?>
@@ -362,11 +362,11 @@
}
?>
-
+
diff --git a/config/constants.php b/config/constants.php
index 8ae8d13..0160431 100644
--- a/config/constants.php
+++ b/config/constants.php
@@ -1,16 +1,16 @@
\ No newline at end of file
diff --git a/create-account.php b/create-account.php
index 0740d1b..a13eecc 100644
--- a/create-account.php
+++ b/create-account.php
@@ -1,21 +1,21 @@
0)
{
- throw new HttpException(409, NULL, "Account already exists");
+ throw new HttpException(409, NULL, 'Account already exists');
}
# check if user is correct
$api = new ALD( API_URL );
try
{
- $user = $api->getUserById($_POST["id"]);
+ $user = $api->getUserById($_POST['id']);
}
catch (HttpException $e)
{
- throw new HttpException(404, NULL, "User not found in backend: '{$e->getMessage()}'.");
+ throw new HttpException(404, NULL, 'User not found in backend: "' . $e->getMessage() . '")';
}
- if ($user["name"] != $_POST["user"] || $user["mail"] != md5($_POST["mail"]))
+ if ($user['name'] != $_POST['user'] || $user['mail'] != md5($_POST['mail']))
{
- throw new HttpException(400, NULL, "data invalid");
+ throw new HttpException(400, NULL, 'data invalid');
}
# create account
- $id = mysql_real_escape_string($_POST["id"]);
- $mail = mysql_real_escape_string($_POST["mail"]);
+ $id = mysql_real_escape_string($_POST['id']);
+ $mail = mysql_real_escape_string($_POST['mail']);
- $db_query = "INSERT INTO $db_table_user_profile (id, mail) VALUES (UNHEX('$id'), '$mail')";
+ $db_query = 'INSERT INTO ' . DB_TABLE_USER_PROFILE . ' (id, mail) VALUES (UNHEX("' . $id . '"), "' . $mail . '")';
$db_result = mysql_query($db_query, $db_connection);
if (!$db_result)
{
throw new HttpException(500, NULL, mysql_error());
}
- header("HTTP/1.1 204 " . HttpException::getStatusMessage(204));
+ header('HTTP/1.1 204 ' . HttpException::getStatusMessage(204));
exit;
}
catch (HttpException $e)
{
- header("HTTP/1.1 {$e->getCode()} " . HttpException::getStatusMessage($e->getCode()));
+ header('HTTP/1.1 ' . $e->getCode() . ' ' . HttpException::getStatusMessage($e->getCode()));
echo $e->getMessage();
}
?>
\ No newline at end of file
diff --git a/help.php b/help.php
index 757eaf6..a58594f 100644
--- a/help.php
+++ b/help.php
@@ -1,11 +1,11 @@
-
+
@@ -45,6 +45,6 @@
-
+
\ No newline at end of file
diff --git a/index.php b/index.php
index 0a6f07a..1b0fb6c 100644
--- a/index.php
+++ b/index.php
@@ -1,15 +1,15 @@
-
+
-
+
@@ -40,6 +40,6 @@
-
+
\ No newline at end of file
diff --git a/internal/mailimage.php b/internal/mailimage.php
index 42e2a67..15444bc 100644
--- a/internal/mailimage.php
+++ b/internal/mailimage.php
@@ -1,28 +1,28 @@
@@ -206,10 +206,10 @@
foreach ($meta_actions AS $action) {
switch ($action['type']) {
case ACT_ADD: $prefix = 'Added:';
- $details = "Property $action[property] has been added to the package metadata.";
+ $details = 'Property ' . $action['property'] . ' has been added to the package metadata.';
break;
case ACT_DEL: $prefix = 'Deleted:';
- $details = "Property $action[property] has been removed from the package metadata.";
+ $details = 'Property ' . $action['property'] . ' has been removed from the package metadata.';
break;
default:
case ACT_MOD: $prefix = 'Modified:';
@@ -226,7 +226,7 @@