[Release] CryCMS 3.5 [Mysqli] [Base] [Unfinished]

LeChris

github.com/habbo-hotel
Sep 30, 2013
2,744
1,326
Aav7tbIfxBN0.png

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

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();
?>
 

LeChris

github.com/habbo-hotel
Sep 30, 2013
2,744
1,326
Live Demo

Bug Fix
Remove
if ($page == index) {$template->write('{css} {title} {header} {logo} {end} {container}');}
THERE IS ALSO A 404 QUERY
 

LeChris

github.com/habbo-hotel
Sep 30, 2013
2,744
1,326
Thanks I guess. This CMS also is meant to be a total rewrite, however I kept Revs classes just for a well cheat sheet I guess. Non functioning of course


<--!Posted Via Tapatalk!-->
 

LeChris

github.com/habbo-hotel
Sep 30, 2013
2,744
1,326
I also have the entire CMS that echo hotel is using at the moment. It just has bug fixes and more pages, simple stuff. Message me if you want it.


<--!Posted Via Tapatalk!-->
 

Users who are viewing this thread

Top