Guten Tag,
Ich starte mit einem neuem Projekt namens SyncCMS. Es basiert auf das Design vom Apollo Projekt. (da es nie fertiggestellt wurde)
Features
Spoiler anzeigen
- MVC
- Auto Updater
- Plugin System
- Language System
- Cross Browser Support
- Flat / Material Design
Plugins
Spoiler anzeigen
- Preload
- Adblock Detection
- Snowstorm
TODO
Spoiler anzeigen
IndexRegisterLogoutProfil EinstellungenNewsStaffsTop UsersSicherheitshinweiseBenimregelnClientAuto UpdaterSupport @Hcmeister"Unbann Page" @Hcmeister- Bewerbungen @Hcmeister
Trusted Dealer @HcmeisterWerbetipps @HcmeisterUmcasher @Sunrise-- Passwort vergessen @Supermania
News Pagination @CrapCan- Home -> Newssysem @Indepently
User der Woche @IndepentlyTop Werber @IndepentlySocial Media Icons @IndepentlyUpdate-Box @IndepentlyHotelstatistik @IndepentlyEvents @Indepently- Radio & Wunschbox @Indepently
- Home -> Online Freunde @Indepently
- Minimail @Synchro
Facebook Box @HcmeisterAdsense Box @HcmeisterImager fixen (Thanks @5AM)Users suchenNeuste Users- Shop
- Mein Seite
- Extras
Home erweiternCommunity erweiternBancheckIP CheckMaintenanceClient Katalog- Housekeeping
Screens
Snippets
Spoiler anzeigen
PHP
<?php
class Route
{
private $url;
private $view;
private $model;
private $config;
private $connection;
public function __construct($config, $connection)
{
$this->config = $config;
$this->connection = $connection;
if(isset($_GET['url'])) {
$this->url = explode('/', filter_var(rtrim($_GET['url'], '/'), FILTER_SANITIZE_URL));
} else {
$this->url = null;
}
if(!is_null($this->url[0])) {
if(isset($this->url[0])) {
if(file_exists('App/Views/' . $this->url[0] . '.php')) {
$this->view = $this->url[0];
$this->model = $this->url[0];
} else {
$this->view = 'Error';
$this->model = 'Error';
}
}
if(isset($this->url[1])) {
if(file_exists('App/Views/' . $this->url[0] . '_' . $this->url[1] . '.php')) {
$this->view = $this->url[0] . '_' . ucfirst($this->url[1]);
$this->model = $this->url[0];
} elseif(file_exists('App/Views/' . $this->url[1] . '.php')) {
$this->view = $this->url[1];
$this->model = $this->url[1];
} else {
$this->view = 'Error';
$this->model = 'Error';
}
}
} else {
$this->view = 'Index';
$this->model = 'Index';
}
new Page($config, $connection, ucfirst($this->view), ucfirst($this->model), $this->url);
}
public function __destruct()
{
$this->url = null;
$this->view = null;
$this->model = null;
$this->config = null;
$this->connection = null;
}
}
?>
Alles anzeigen
PHP
<?php
$config = [
'database' => [
'host' => '127.0.0.1',
'user' => 'root',
'pass' => '',
'name' => 'hobbu'
],
'website' => [
'url' => 'http://127.0.0.1',
'name' => 'Hobbu',
'language' => 'de',
'timezone' => 'Europe/Berlin',
'maintenance' => false
],
'register' => [
'credits' => 25000,
'duckets' => 3000,
'diamonds' => 150,
'loyalty' => 50,
'rank' => 1,
'motto' => 'Willkommen im Hotel!',
'vip' => true,
'vip_points' => 50,
'startroom' => false
],
'client' => [
'host' => '127.0.0.1',
'port' => 30000
],
'game' => [
'external_vars' => 'http://127.0.0.1/resources/game/gamedata/external_variables.txt',
'external_texts' => 'http://127.0.0.1/resources/game/gamedata/external_flash_texts.txt',
'external_override_vars' => 'http://127.0.0.1/resources/game/gamedata/external_override_variables.txt',
'external_override_texts' => 'http://127.0.0.1/resources/game/gamedata/external_flash_override_texts.txt',
'figuredata' => 'http://127.0.0.1/resources/game/gamedata/figuredata.xml',
'productdata' => 'http://127.0.0.1/resources/game/gamedata/productdata.xml',
'furnidata' => 'http://127.0.0.1/resources/game/gamedata/furnidata.xml',
'base' => 'http://127.0.0.1/resources/game/',
'habbo' => 'http://127.0.0.1/resources/game/habbo.swf'
],
'plugins' => [
'smooth' => true,
'adblock' => true,
'preload' => true,
'snowstorm' => false
],
'logs' => [
'clear' => true,
'active' => [
'sync' => true,
'error' => true
]
],
'verification' => [
'hash' => 'HASH',
'active' => true
],
'app' => [
'root' => str_replace('\\', '/', $_SERVER['DOCUMENT_ROOT']),
'build' => '1000',
'version' => 'RTM',
'release' => '22.07.2015 11:04',
'developer' => true
]
];
?>
Alles anzeigen
Farbcodes
Spoiler anzeigen
- Danger -> Rot
- Default -> Blau
- Primary -> Grün
- Warning -> Orange
- Akzent -> Pink
Livedemo: https://www.hobbu.org
FORTSCHITT
[progressbar=60][/progressbar]
Freundliche Grüsse,
Synergy