Development Sync #28
@@ -1,15 +1,22 @@
|
|||||||
# NeoCMS
|
# NeoCMS
|
||||||
|
|
||||||
## Version 2.0
|
## Version 2.0
|
||||||
|
|
||||||
Welcome to NeoCMS, the super lightweight, database-free content management system! Built with PHP and JavaScript, NeoCMS is designed to be fast and easy to use. No complicated setup required—just drop it into your static website, and you’re good to go.
|
Welcome to NeoCMS, the super lightweight, database-free content management system! Built with PHP and JavaScript, NeoCMS
|
||||||
|
is designed to be fast and easy to use. No complicated setup required—just drop it into your static website, and you’re
|
||||||
|
good to go.
|
||||||
|
|
||||||
Version 2.0 is a complete overhaul to support the latest versions of jQuery and TinyMCE (GPL). We’ve made things even smoother for your content editing experience.
|
Version 2.0 is a complete overhaul to support the latest versions of jQuery and TinyMCE (GPL). We’ve made things even
|
||||||
|
smoother for your content editing experience.
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
* No Database Required: NeoCMS works without a database, so you don’t have to worry about setup hassles or performance slowdowns.
|
* No Database Required: NeoCMS works without a database, so you don’t have to worry about setup hassles or performance
|
||||||
* Easy Content Editing: With our intuitive WYSIWYG editor, anyone can update content without writing a single line of code.
|
slowdowns.
|
||||||
* Seamless Integration: Simply add the CMS to any existing static website. Just assign a special class to the elements you want to make editable, and you’re all set.
|
* Easy Content Editing: With our intuitive WYSIWYG editor, anyone can update content without writing a single line of
|
||||||
|
code.
|
||||||
|
* Seamless Integration: Simply add the CMS to any existing static website. Just assign a special class to the elements
|
||||||
|
you want to make editable, and you’re all set.
|
||||||
* Consistent Layouts: NeoCMS supports page templates to keep your layouts neat and uniform across all pages.
|
* Consistent Layouts: NeoCMS supports page templates to keep your layouts neat and uniform across all pages.
|
||||||
|
|
||||||
## Installation Guide
|
## Installation Guide
|
||||||
@@ -35,10 +42,12 @@ That’s it! You’re up and running.
|
|||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
NeoCMS is open-source software licensed under the GNU General Public License v3.0 (GPLv3). You are free to use, modify, and distribute this software under the terms of this license.
|
NeoCMS is open-source software licensed under the GNU General Public License v3.0 (GPLv3). You are free to use, modify,
|
||||||
|
and distribute this software under the terms of this license.
|
||||||
|
|
||||||
For more information, see the full GPLv3 License found in LICENSE.
|
For more information, see the full GPLv3 License found in LICENSE.
|
||||||
|
|
||||||
## Found a Bug?
|
## Found a Bug?
|
||||||
|
|
||||||
If you run into any issues or have feature requests, please submit them on our GitHub issues page. Your feedback helps us improve NeoCMS!
|
If you run into any issues or have feature requests, please submit them on our GitHub issues page. Your feedback helps
|
||||||
|
us improve NeoCMS!
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ switch ($_REQUEST["action"]) {
|
|||||||
header('Content-type: application/json');
|
header('Content-type: application/json');
|
||||||
if (!empty($_POST['uri']) && !empty($_POST['content'])) {
|
if (!empty($_POST['uri']) && !empty($_POST['content'])) {
|
||||||
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
|
$_SESSION['core']->saveContent($_POST['uri'], $_POST['content']);
|
||||||
echo json_encode(array('message'=>'Page has been saved'));
|
echo json_encode(array('message' => 'Page has been saved'));
|
||||||
} else {
|
} else {
|
||||||
echo json_encode(array('error'=>'Unable to save page'));
|
echo json_encode(array('error' => 'Unable to save page'));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -166,4 +166,6 @@ File List Modal
|
|||||||
background-color: #e0e0e0;
|
background-color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.redText {
|
||||||
|
color: #ff4d4d;
|
||||||
|
}
|
||||||
+6
-1
@@ -36,7 +36,12 @@ require_once "init.php";
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="loggedInDetails">
|
<div class="loggedInDetails">
|
||||||
Logged in as: <?php echo $_SESSION["core"]->getLoggedinUser(); ?>
|
Logged in as: <?php echo $_SESSION["core"]->getLoggedinUser(); ?><br />
|
||||||
|
<?php
|
||||||
|
if ( ! is_writable("logs/")) {
|
||||||
|
echo "<span class='redText'>Make /cms/logs/ writeable!</span>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<iframe id="frameContainer" src="welcome.html" class="frame"></iframe>
|
<iframe id="frameContainer" src="welcome.html" class="frame"></iframe>
|
||||||
|
|||||||
+1
-1
@@ -70,7 +70,7 @@ $(document).ready(function () {
|
|||||||
|
|
||||||
// Handle Saving changes to the page
|
// Handle Saving changes to the page
|
||||||
$('#savePage').click(() => {
|
$('#savePage').click(() => {
|
||||||
frameContainerElement=$('#frameContainer').contents().get(0);
|
frameContainerElement = $('#frameContainer').contents().get(0);
|
||||||
$.post("/cms/controller/", {
|
$.post("/cms/controller/", {
|
||||||
action: "save",
|
action: "save",
|
||||||
uri: frameContainerElement.location.pathname,
|
uri: frameContainerElement.location.pathname,
|
||||||
|
|||||||
Reference in New Issue
Block a user