rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit 4ed80838200416d2f26774075c7689fc07dfd1bc
parent 669c502ae223f92d2169956502576d7b28140612
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 May 2015 13:35:41 +0200

next try

Diffstat:
Mcore/backend/blog/posts.php | 2+-
Mthemes/jumbotron/admin_pages/posts.php | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/core/backend/blog/posts.php b/core/backend/blog/posts.php @@ -170,7 +170,7 @@ function shortText($string,$lenght) { //$longtext = $post_text; function deletePost($id) { - if ($connection->query(DELETE FROM posts WHERE id=$id) === TRUE) { + if ($connection->query("DELETE FROM posts WHERE id=$id") === TRUE) { echo "Record deleted successfully"; } else { echo "Error deleting record: " . $conn->error; diff --git a/themes/jumbotron/admin_pages/posts.php b/themes/jumbotron/admin_pages/posts.php @@ -16,7 +16,7 @@ echo "<td>$id</td>"; echo "<td>$post_title</td>"; echo "<td></td>"; - echo "<td><button style=\"background-color: transparent;text-decoration: underline;border: none;color: blue;cursor: pointer;\" formaction=\"posts.php?function=edit\" title=\"Edit\">Edit</button> <span class=\"glyphicon glyphicon-pencil\" aria-hidden=\"true\"></span> | <button style=\"background-color: transparent;text-decoration: underline;border: none;color: blue;cursor: pointer;\" formaction=\"posts.php?function=delete\" title=\"Delete\">Delete</button> <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span></td>"; + echo "<td><a formaction=\"posts.php?function=edit\" title=\"Edit\">Edit</a> <span class=\"glyphicon glyphicon-pencil\" aria-hidden=\"true\"></span> | <a formaction=\"posts.php?function=delete\" title=\"Delete\">Delete</a> <span class=\"glyphicon glyphicon-trash\" aria-hidden=\"true\"></span></td>"; echo "</tr>"; $x = $x+1; $id = $id+1;