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

GeniXCMS v0.0.6

GenixCMS v0.0.6 Stable Release
parent c1886c02
No related branches found
No related tags found
No related merge requests found
Showing
with 29 additions and 92 deletions
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20140928
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
@@ -25,18 +25,7 @@ require("autoload.php");
 
 
try {
$sys = new System();
$sess = new Session();
$thm = new Theme();
$db = new Db();
$u = new User();
new Site();
Session::start();
System::gZip();
Token::create();
Mod::loader();
Theme::loader();
$thm->theme('header');
new System();
} catch (Exception $e) {
echo $e->getMessage();
}
Loading
Loading
@@ -50,7 +39,7 @@ if(isset($_POST['forgotpass']))
/*check if username is exist or not */
$username = Typo::cleanX(Typo::strip($_POST['username']));
$sql = sprintf("SELECT `userid`,`email`,`status`,`activation` FROM `user` WHERE `userid` = '%s'", $username);
$usr = $db->result($sql);
$usr = Db::result($sql);
$c = Db::$num_rows;
//echo $c;
//print_r($usr);
Loading
Loading
@@ -114,7 +103,7 @@ if(isset($_POST['forgotpass']))
$alertred[] = TOKEN_NOT_EXIST;
}
}
Theme::theme('header');
if(isset($alertred)) {
echo "
<div class=\"alert alert-danger\">
Loading
Loading
@@ -153,6 +142,6 @@ if(!User::is_loggedin()){
echo"<div class=\"alert alert-info\">You're already Logged In. <br /><a href=\"logout.php\">Logout</a></div>";
}
 
$thm->theme('footer');
Theme::theme('footer');
System::Zipped();
?>
\ No newline at end of file
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20140928
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
@@ -25,18 +25,8 @@ require("../autoload.php");
 
 
try {
$sys = new System();
$sess = new Session();
$thm = new Theme();
$db = new Db();
$u = new User();
new Site();
Session::start();
System::gZip();
Token::create();
Mod::loader();
Theme::loader();
$thm->admin('header');
new System();
} catch (Exception $e) {
echo $e->getMessage();
}
Loading
Loading
@@ -50,7 +40,7 @@ if(isset($_POST['forgotpass']))
/*check if username is exist or not */
$username = Typo::cleanX(Typo::strip($_POST['username']));
$sql = sprintf("SELECT `userid`,`email`,`status`,`activation` FROM `user` WHERE `userid` = '%s'", $username);
$usr = $db->result($sql);
$usr = Db::result($sql);
$c = Db::$num_rows;
//echo $c;
//print_r($usr);
Loading
Loading
@@ -114,7 +104,7 @@ if(isset($_POST['forgotpass']))
$alertred[] = TOKEN_NOT_EXIST;
}
}
Theme::admin('header');
if(isset($alertred)) {
echo "
<div class=\"alert alert-danger\">
Loading
Loading
@@ -158,6 +148,6 @@ if(!User::is_loggedin()){
echo"<div class=\"alert alert-info\">You're already Logged In. <br /><a href=\"logout.php\">Logout</a></div>";
}
 
$thm->admin('footer');
Theme::admin('footer');
System::Zipped();
?>
\ No newline at end of file
<?php
define('GX_PATH', realpath(__DIR__ . '/../'));
define('GX_LIB', GX_PATH.'/inc/lib/');
define('GX_MOD', GX_PATH.'/inc/mod/');
define('GX_THEME', GX_PATH.'/inc/themes/');
define('GX_ASSET', GX_PATH.'/assets/');
function __autoload($f) {
require GX_LIB. $f . '.class.php';
}
new System();
new Db();
new Site();
Session::start();
User::secure();
$path = '/assets/images/uploads/';
$upload_dir = GX_PATH.'/assets/images/uploads/';
$handle=opendir($upload_dir);
while($file=readdir($handle)){
if(!is_dir($upload_dir.$file)&&!is_link($upload_dir.$file)){
$finfo = new finfo(FILEINFO_MIME_TYPE);
$type = $finfo->file($upload_dir.$file);
if($type=='image/bmp'|| $type=='image/x-windows-bmp' ||
$type=='image/jpeg' || $type=='image/pjpeg' ||
$type=='image/png'||$type=='image/gif'||
$type=='image/tiff'||$type=='image/x-tiff'){
$docs[]=$file;
}
}
}
sort($docs);
foreach($docs as $key=>$file){
$array[]=array(
'thumb'=>$path.$file,
'image'=>$upload_dir.$file,
'title'=>$file
);
}
echo stripslashes(json_encode($array));
\ No newline at end of file
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
@@ -152,6 +152,7 @@ if (isset($data['alertred'])) {
</div>
</div>
 
</div>
</div>
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20150202
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20140928
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20140928
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
Loading
Loading
@@ -6,7 +6,7 @@
*
* @package GeniXCMS
* @since 0.0.1 build date 20141003
* @version 0.0.5
* @version 0.0.6
* @link https://github.com/semplon/GeniXCMS
* @link http://genixcms.org
* @author Puguh Wijayanto (www.metalgenix.com)
Loading
Loading
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