LeChris
John 15:18
I have been speaking on not only Cry's latest release thread, but on other threads, and just to others generally about CryCMS 3.5 I have only been working on this for about a day, or two...and it has the basics of mysqli. You currently cannot login, register, etc, as I have pretty much fucked Rev over. The only way to save those functions is to upgrade them, I planned on this CMS taking me generally a week at the most, but something has came up recently...and honestly I have no time to spare for coding anymore. I am not saying that I am 100% done with coding all together, I am saying that this will most likely be my last release for a while.
Features (As Of Right Now)
-Mysqli
-Page System (url/(PAGE NAME)
-Widget System (Only Gets Widgets For The Current Page)
Download
You must be registered for see links
Snippet (Main File TBH, but you do need some of the files from that download still)
PHP:
<?php
define('IN_INDEX', 1);
$page= $_GET['page'];
/* CryCMS 3.1.0 Mysqli Edition */
require_once 'global.php';
/* Automatically Applies The Basics To Every Page */
if ($page == Index) {$template->write('{css} {title} {header} {logo} {end} {container}');}
if ($page == index) {$template->write('{css} {title} {header} {logo} {end} {container}');}
else {$template->write('{css} {title} {header} {logo} {navi} {end} {container}');}
$template->outputTPL();
/* Start Mysqli Connection */
$mysqli = new mysqli("localhost", "root", "", "phoenix");
/* 404 Query */
$get_page = "SELECT * FROM cry_pages WHERE name='".$page."'";
$query_page = $mysqli->query($get_page);
if ($query_page){
if($query_page->num_rows) {}
else { echo '<div class="container"><div class="title">404 Page Not Found</div><div class="content"><p><a href="Index" class="button" style="text-decoration:none;">Go back to a working page</a></p></div></div>'; }
}
/* Widgets */
$fetch_widgets = "SELECT * FROM cry_page_widgets WHERE page='".$page."'";
$query_widgets = $mysqli->query($fetch_widgets);
while($wg= $query_widgets->fetch_array(MYSQLI_ASSOC)) {
$widget=$wg["widget_id"];
$get_dem_widgets = "SELECT * FROM cry_widgets WHERE id='".$widget."'";
$get_widgets = $mysqli->query($get_dem_widgets);
while($w= $get_widgets->fetch_array(MYSQLI_ASSOC)) {
$php='<?php';
$nphp='?>';
echo '<div id="'.$w["column"].'"><div class="container"><div class="title">'.$w["title"].'</div><div class="content"><p>'.$w["content"].'</p></div></div></div>';
}}
if ($query_page == false) { echo '<div class="title">404</div>'; }
/* Close Connections */
$query_page->free();
$query_widgets->free();
$get_dem_widgets->free();
$mysqli->close();
?>