Hi Ragezone,
At the moment I'm busy coding a complete new CMS called SnowCMS. It will have the same style as FunCMS (maby normal index en quickregister if you guys didn't like that style). It wil be coded in OOP using MySQLi. I'll use a bootstrap so it will be easy to edit this CMS without using <?php echo ?> but with things like {url} and {shortname}.
Here are some snippets:
PHP Code:<?php
require('/SnowCMS/config.php');
require('/SnowCMS/classes/class_mysql.php');
$page = trim($_SERVER['REQUEST_URI'], '/');
$url = 'http://'.$_SERVER['SERVER_NAME'];
if (empty($page))
{
$page = 'index';
}
ob_start();
include ('/SnowCMS/content/'.$page.'.php');
$content = ob_get_contents();
ob_end_clean();
$vars = Array(
'{url}' => $url,
'{shortname}' => Config::$name,
);
echo str_ireplace(array_keys($vars), array_values($vars), $content);
?>
PHP Code:<?php
class mysql
{
private $connect;
function __construct()
{
$c = Config::$DB;
$this->connect = new mysqli($c['db_host'], $c['db_user'], $c['db_pass'], $c['db_name']);
}
}
?>
I hope you guys like it.PHP Code:<?php
class Config {
static $name = 'Snow';
static $DB = Array(
'db_host' => '127.0.0.1',
'db_user' => 'root',
'db_pass' => 'Owner502',
'db_name' => 'nieuw',
);
static $hash = 'sha1';
}
?>
Please say if you didn't like the style of FunCMS than I will make normal quickregister and index.
And say whatever what's bad or good about my code. I want to make it as good as possible.
Thanks :thumbup:

