Skip to content
Snippets Groups Projects
Commit 08e99af9 authored by Puguh Wijayanto's avatar Puguh Wijayanto
Browse files

Version v0.0.3

Update Release for Version v0.0.3
- Adding Themes and Plugins support
- Fixing Empty Input fields when submitting
- Fixing Tokens, remove when already used
- Improve the languages
- Improving securities
- Fixing Categories input after deleting, token not exist but data
inserted.
- Fixing Registration action info.
- Add forgotpassword.php file to request new password.
parent 1b1b664b
No related branches found
No related tags found
No related merge requests found
Showing
with 3 additions and 754 deletions
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20140928
* @version 0.0.2
* @version 0.0.3
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
@@ -137,7 +137,7 @@ if(isset($_POST['forgotpass']))
if(!User::is_loggedin()){
 
?>
<div class="row">
<div class="container">
<div style="max-width: 300px; margin-left: auto; margin-right: auto; margin-top: 30px; margin-bottom: 60px ">
<form action="" class="form-signin" role="form" method="post">
<h2 class="form-signin-heading"><?=FORGOT_PASS;?></h2>
Loading
Loading
Loading
Loading
@@ -112,6 +112,6 @@ define('PARENTS', 'Parent');
define('CATEGORY_NAME', 'Category Name');
 
define('PUBLISHED_LOWER', 'published');
define('UNPUBLISHED_LOWER', 'pnpublished');
define('UNPUBLISHED_LOWER', 'unpublished');
define('LEFT_IT_BLANK_NOW_DATE', 'left it blank to make it now');
 
<?php
/*
* Name: TestImage CLass
* Desc: TestImage CLass description
* Version: 0.0.1
* Build: 0.0.1 pre
* Developer: Puguh Wijayanto
* URI: http://www.metalgenix.com
* License: MIT License
* Icon: <i class="fa fa-cogs"></i>
*/
\ No newline at end of file
<?php
if( isset($_POST['upload']) ){
//echo "string";
//print_r($_FILES);
if(isset($_FILES['images']) && $_FILES['images'] != ''){
$path = "/assets/images/uploads/";
$allowed = array('png', 'jpg', 'gif');
$upload = Upload::go('images', $path, $allowed );
if(isset($upload['error']) != ''){
echo $upload['error'];
}else{
$im = $upload['filepath'];
$dst = GX_PATH."/assets/images/uploads/thumbs/".$upload['filename'];
Image::resize($im, $dst, "300", '300', 1);
list($w, $h) = getimagesize($im);
Image::resize($im, $im, $w, $h, 0);
}
}
echo "<pre>";
print_r($upload);
echo "</pre>";
}
?>
<div class="row">
<div class="col-md-12">
<h1>GeniXCMS TestImage Sample</h1>
<hr />
</div>
<div class="col-md-12">
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="images" class="form-control">
<button type="submit" class="btn btn-primary" name="upload"><i class="fa fa-upload"></i> Upload</button>
</form>
</div>
</div>
\ No newline at end of file
File deleted
<div class="col-sm-8 blog-main">
<?php
if($data['num'] > 0){
foreach ($data['posts'] as $p) {
# code...
echo "
<div class=\"blog-post\">
<h2 class=\"blog-post-title\"><a href=\"".Url::post($p->id)."\">$p->title</a></h2>
<p class=\"blog-post-meta\">{$p->date} by <a href=\"#\">{$p->author}</a></p>
".Posts::content($p->content)."
</div>
";
}
if(isset($_GET['paging'])){
$paging = $_GET['paging'];
}else{
$paging = 1;
}
$url = Url::cat($_GET['cat']);
$paging = array(
'paging' => $paging,
'table' => 'posts',
'where' => '`type` = \'post\' AND `cat` = \''.$_GET['cat'].'\'',
'max' => $data['max'],
'url' => $url,
'type' => 'pager'
);
echo Paging::create($paging);
}else{
echo "No Post to show";
}
?>
</div>
<?php Theme::theme('rightside', $data); ?>
\ No newline at end of file
/*
* GeniXCMS - Content Management System
* ============================================================
* Build : 20140925
* Version : 0.0.1 pre
* Developed By : Puguh Wijayanto (www.metalgenix.com)
* License : MIT License
* ------------------------------------------------------------
* theme : default
* version : 0.0.1 pre
* build : 20140925
*/
/*
* Globals
*/
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
color: #333;
}
/*
* Override Bootstrap's default container.
*/
@media (min-width: 1200px) {
.container {
width: 970px;
}
}
/*
* Masthead for nav
*/
.blog-masthead {
background-color: #428bca;
-webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}
/* Nav links */
.blog-nav-item {
position: relative;
display: inline-block;
padding: 10px;
font-weight: 500;
color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus {
color: #fff;
text-decoration: none;
}
/* Active state gets a caret at the bottom */
.navbar .active {
color: #fff;
}
.navbar .active:after {
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 0;
margin-left: -5px;
vertical-align: middle;
content: " ";
border-right: 5px solid transparent;
border-bottom: 5px solid;
border-left: 5px solid transparent;
}
.nav>li>a {
color: #fff;
}
.navbar {
min-height: none!important;
margin-bottom: 0px!important;
}
.nav>li>a:hover, .nav>li>a:focus {
background-color: transparent;
color: #eee;
}
.nav .open>a, .nav .open>a:hover, .nav .open>a:focus {
background-color: transparent;
}
a.navbar-brand {
color: #fff;
}
.navbar-toggle .icon-bar {
border-bottom: 3px solid #fff;
}
/*
* Blog name and description
*/
.blog-header {
padding-top: 20px;
padding-bottom: 20px;
}
.blog-title {
margin-top: 30px;
margin-bottom: 0;
font-size: 60px;
font-weight: normal;
}
.blog-description {
font-size: 20px;
color: #999;
}
/*
* Main column and sidebar layout
*/
.blog-main {
font-size: 18px;
line-height: 1.5;
}
/* Sidebar modules for boxing content */
.sidebar-module {
padding: 15px;
margin: 0 -15px 15px;
}
.sidebar-module-inset {
padding: 15px;
background-color: #f5f5f5;
border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
/* Pagination */
.pager {
margin-bottom: 60px;
text-align: left;
}
.pager > li > a {
width: 140px;
padding: 10px 20px;
text-align: center;
border-radius: 30px;
}
/*
* Blog posts
*/
.blog-post {
margin-bottom: 60px;
}
.blog-post-title {
margin-bottom: 5px;
font-size: 40px;
}
.blog-post-meta {
margin-bottom: 20px;
color: #999;
}
/*
* Footer
*/
.blog-footer {
padding: 40px 0;
color: #999;
text-align: center;
background-color: #f9f9f9;
border-top: 1px solid #e5e5e5;
}
.blog-footer p:last-child {
margin-bottom: 0;
}
\ No newline at end of file
</div><!-- /.row -->
</div><!-- /.container -->
<div class="blog-footer">
<p>Blog template built for <a href="http://getbootstrap.com">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
<p>
<a href="#">Back to top</a>
</p>
</div>
<?=Site::footer();?>
<link href="<?=Site::$url;?>/assets/css/genixfont.css" rel="stylesheet">
<link href="<?=Site::$url;?>/inc/themes/default/css/blog.css" rel="stylesheet">
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<?php
Site::meta();
?>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=422479467810457&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="blog-masthead">
<div class="container">
<!-- <nav class="blog-nav">
<a class="blog-nav-item active" href="#">Home</a>
<a class="blog-nav-item" href="#">New features</a>
<a class="blog-nav-item" href="#">Press</a>
<a class="blog-nav-item" href="#">New hires</a>
<a class="blog-nav-item" href="#">About</a>
</nav> -->
<nav class="navbar" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="<?=Site::$url;?>"><?=Options::get('sitename');?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<?php
echo Menus::getMenu('mainmenu', 'nav navbar-nav navbar-right', true);
?>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</div>
<div class="container">
<div class="blog-header">
<h1 class="blog-title"><a href="<?=Site::$url;?>"><?=Site::$name;?></a></h1>
<p class="lead blog-description"><?=Options::get('siteslogan');?></p>
</div>
<div class="row">
<div class="col-sm-8 blog-main">
<?php
if($data['num'] > 0) {
foreach ($data['posts'] as $p) {
# code...
echo "
<div class=\"blog-post\">
<h2 class=\"blog-post-title\"><a href=\"".Url::post($p->id)."\">$p->title</a></h2>
<p class=\"blog-post-meta\">{$p->date} by <a href=\"#\">{$p->author}</a></p>
".Posts::content($p->content)."
</div>
";
}
}else{
echo "No Post to Show";
}
if(isset($_GET['paging'])){
$paging = $_GET['paging'];
}else{
$paging = 1;
}
$paging = array(
'paging' => $paging,
'table' => 'posts',
'where' => '`type` = \'post\'',
'max' => $data['max'],
'url' => 'index.php?',
'type' => 'pager'
);
echo Paging::create($paging);
?>
</div>
<?php Theme::theme('rightside', $data); ?>
\ No newline at end of file
<div class="col-sm-8 blog-main">
<?php
foreach ($data['posts'] as $p) {
# code...
echo "
<div class=\"blog-post\">
<h2 class=\"blog-post-title\">$p->title</h2>
".Typo::Xclean($p->content)."
</div>
";
}
?>
</div>
<?php Theme::theme('rightside', $data); ?>
\ No newline at end of file
<div class="col-sm-3 col-sm-offset-1 blog-sidebar">
<div class="sidebar-module sidebar-module-inset">
<h4>About</h4>
<h5><?=Site::logo('','40px');?> <?=Site::$name;?></h5>
<p><em><?=Options::get('siteslogan');?></em>
<?=Site::$desc;?></p>
</div>
<div class="sidebar-module">
<h4>Recent Post</h4>
<ol class="list-unstyled">
<?php
$recent = Posts::recent(10);
$num = Db::$num_rows;
if($num > 0) {
foreach ($recent as $r) {
# code...
echo "<li><a href=\"".Url::post($r->id)."\">$r->title</a></li>
";
}
}else{
echo "No Post to Show";
}
?>
</ol>
</div>
<div class="sidebar-module">
<h4>Elsewhere</h4>
<ol class="list-unstyled">
<li><a href="#">GitHub</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Facebook</a></li>
</ol>
</div>
</div><!-- /.blog-sidebar -->
inc/themes/default2/screenshot.png

88.4 KiB

<div class="col-sm-8 blog-main">
<?php
if(isset($data['posts'][0]->title)){
foreach ($data['posts'] as $p) {
# code...
echo "
<div class=\"blog-post\">
<h2 class=\"blog-post-title\"><a href=\"".Url::post($p->id)."\">$p->title</a></h2>
<p class=\"blog-post-meta\">{$p->date} by <a href=\"#\">{$p->author}</a></p>
".Typo::Xclean($p->content)."
</div>
<hr />
<div class=\"col-sm-12\">
<div class=\"row\">
<h3>Comments</h3>
<div class=\"fb-comments\" data-href=\"http://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}\" data-width=\"100%\" data-numposts=\"5\" data-colorscheme=\"light\"></div>
</div>
</div>
";
}
}else{
//echo "Error, Post not found.";
Control::error('404');
}
?>
</div>
<?php Theme::theme('rightside', $data); ?>
\ No newline at end of file
<?php
/*
* Name: Default Themes 2
* Desc: Default GeniXCMS Themes
* Version: 0.0.1
* Build: 0.0.1 pre
* Developer: Puguh Wijayanto
* URI: http://www.metalgenix.com
* License: MIT License
* Icon: <i class="fa fa-cogs"></i>
*/
\ No newline at end of file
<div class="col-sm-8 blog-main">
<?php
if($data['num'] > 0){
foreach ($data['posts'] as $p) {
# code...
echo "
<div class=\"blog-post\">
<h2 class=\"blog-post-title\"><a href=\"".Url::post($p->id)."\">$p->title</a></h2>
<p class=\"blog-post-meta\">{$p->date} by <a href=\"#\">{$p->author}</a></p>
".Posts::content($p->content)."
</div>
";
}
if(isset($_GET['paging'])){
$paging = $_GET['paging'];
}else{
$paging = 1;
}
$url = Url::cat($_GET['cat']);
$paging = array(
'paging' => $paging,
'table' => 'posts',
'where' => '`type` = \'post\' AND `cat` = \''.$_GET['cat'].'\'',
'max' => $data['max'],
'url' => $url,
'type' => 'pager'
);
echo Paging::create($paging);
}else{
echo "No Post to show";
}
?>
</div>
<?php Theme::theme('rightside', $data); ?>
\ No newline at end of file
/*
* GeniXCMS - Content Management System
* ============================================================
* Build : 20140925
* Version : 0.0.1 pre
* Developed By : Puguh Wijayanto (www.metalgenix.com)
* License : MIT License
* ------------------------------------------------------------
* theme : default
* version : 0.0.1 pre
* build : 20140925
*/
/*
* Globals
*/
body {
font-family: Georgia, "Times New Roman", Times, serif;
color: #555;
}
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
margin-top: 0;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-weight: normal;
color: #333;
}
/*
* Override Bootstrap's default container.
*/
@media (min-width: 1200px) {
.container {
width: 970px;
}
}
/*
* Masthead for nav
*/
.blog-masthead {
background-color: #428bca;
-webkit-box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
box-shadow: inset 0 -2px 5px rgba(0,0,0,.1);
}
/* Nav links */
.blog-nav-item {
position: relative;
display: inline-block;
padding: 10px;
font-weight: 500;
color: #cdddeb;
}
.blog-nav-item:hover,
.blog-nav-item:focus {
color: #fff;
text-decoration: none;
}
/* Active state gets a caret at the bottom */
.navbar .active {
color: #fff;
}
.navbar .active:after {
position: absolute;
bottom: 0;
left: 50%;
width: 0;
height: 0;
margin-left: -5px;
vertical-align: middle;
content: " ";
border-right: 5px solid transparent;
border-bottom: 5px solid;
border-left: 5px solid transparent;
}
.nav>li>a {
color: #fff;
}
.navbar {
min-height: none!important;
margin-bottom: 0px!important;
}
.nav>li>a:hover, .nav>li>a:focus {
background-color: transparent;
color: #eee;
}
.nav .open>a, .nav .open>a:hover, .nav .open>a:focus {
background-color: transparent;
}
a.navbar-brand {
color: #fff;
}
.navbar-toggle .icon-bar {
border-bottom: 3px solid #fff;
}
/*
* Blog name and description
*/
.blog-header {
padding-top: 20px;
padding-bottom: 20px;
}
.blog-title {
margin-top: 30px;
margin-bottom: 0;
font-size: 60px;
font-weight: normal;
}
.blog-description {
font-size: 20px;
color: #999;
}
/*
* Main column and sidebar layout
*/
.blog-main {
font-size: 18px;
line-height: 1.5;
}
/* Sidebar modules for boxing content */
.sidebar-module {
padding: 15px;
margin: 0 -15px 15px;
}
.sidebar-module-inset {
padding: 15px;
background-color: #f5f5f5;
border-radius: 4px;
}
.sidebar-module-inset p:last-child,
.sidebar-module-inset ul:last-child,
.sidebar-module-inset ol:last-child {
margin-bottom: 0;
}
/* Pagination */
.pager {
margin-bottom: 60px;
text-align: left;
}
.pager > li > a {
width: 140px;
padding: 10px 20px;
text-align: center;
border-radius: 30px;
}
/*
* Blog posts
*/
.blog-post {
margin-bottom: 60px;
}
.blog-post-title {
margin-bottom: 5px;
font-size: 40px;
}
.blog-post-meta {
margin-bottom: 20px;
color: #999;
}
/*
* Footer
*/
.blog-footer {
padding: 40px 0;
color: #999;
text-align: center;
background-color: #f9f9f9;
border-top: 1px solid #e5e5e5;
}
.blog-footer p:last-child {
margin-bottom: 0;
}
\ No newline at end of file
</div><!-- /.row -->
</div><!-- /.container -->
<div class="blog-footer">
<p>Blog template built for <a href="http://getbootstrap.com">Bootstrap</a> by <a href="https://twitter.com/mdo">@mdo</a>.</p>
<p>
<a href="#">Back to top</a>
</p>
</div>
<?=Site::footer();?>
<link href="<?=Site::$url;?>/assets/css/genixfont.css" rel="stylesheet">
<link href="<?=Site::$url;?>/inc/themes/default/css/blog.css" rel="stylesheet">
</body>
</html>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment