Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
patkon committed Jan 4, 2021
2 parents 259f3a2 + dced53f commit 62ddf4d
Show file tree
Hide file tree
Showing 643 changed files with 55,928 additions and 37,291 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,23 @@ flatCore is a lightweight Content Management System based on PHP and SQLite. MyS

__You are very welcome to take part in this project.__ We are happy for every contribution. Please submit your code to the develop branch, and start a pull request.

This branch will be merged into master, as soon as a new stable version is ready.
This branch will be merged into main branch, as soon as a new stable version is ready.

#### 3rd Party Frameworks and Plugins

+ Medoo - https://github.com/catfan/Medoo
+ TinyMCE - http://www.tinymce.com/
+ Ace Editor - http://ace.c9.io/
+ Smarty - http://www.smarty.net/
+ Swift Mailer - http://swiftmailer.org/
+ PHPMailer - https://github.com/PHPMailer/PHPMailer
+ Bootstrap - http://getbootstrap.com/
+ jQuery - https://jquery.com/
+ fancyBox - http://fancyapps.com/fancybox/3/
+ Masonry - http://masonry.desandro.com
+ featherlight - https://github.com/noelboss/featherlight/
+ DropzoneJS - http://www.dropzonejs.com
+ jquery.dirtyforms - https://github.com/snikch/jquery.dirtyforms
+ matchHeight - http://brm.io/jquery-match-height/
+ bootstrap-tagsinput - https://github.com/bootstrap-tagsinput/bootstrap-tagsinput
+ image-picker - https://github.com/rvera/image-picker
+ Spyc - https://github.com/mustangostang/spyc/
+ Parsedown - https://parsedown.org
136 changes: 120 additions & 16 deletions acp/acp.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@
require '../lib/Medoo.php';
use Medoo\Medoo;

require '../lib/Spyc/Spyc.php';

require '../config.php';
if(is_file('../'.FC_CONTENT_DIR.'/config.php')) {
include '../'.FC_CONTENT_DIR.'/config.php';
}
if(is_file('../'.FC_CONTENT_DIR.'/config_smtp.php')) {
include '../'.FC_CONTENT_DIR.'/config_smtp.php';
}


if(is_file('../config_database.php')) {
Expand All @@ -31,7 +36,8 @@

$db_content = $database;
$db_user = $database;
$db_statistics = $database;
$db_statistics = $database;
$db_posts = $database;



Expand All @@ -46,7 +52,8 @@

define("CONTENT_DB", "../$fc_db_content");
define("USER_DB", "../$fc_db_user");
define("STATS_DB", "../$fc_db_stats");
define("STATS_DB", "../$fc_db_stats");
define("POSTS_DB", "../$fc_db_posts");

$db_content = new Medoo([
'database_type' => 'sqlite',
Expand All @@ -61,20 +68,28 @@
$db_statistics = new Medoo([
'database_type' => 'sqlite',
'database_file' => STATS_DB
]);
]);

$db_posts = new Medoo([
'database_type' => 'sqlite',
'database_file' => POSTS_DB
]);

}




define("INDEX_DB", "../$fc_db_index");
define("FC_ROOT", str_replace("/acp","",FC_INC_DIR));
define("IMAGES_FOLDER", "$img_path");
define("FILES_FOLDER", "$files_path");
define("FC_SOURCE", "backend");


$db_index = new Medoo([
'database_type' => 'sqlite',
'database_file' => INDEX_DB
]);



require 'core/access.php';
include 'versions.php';
Expand Down Expand Up @@ -131,6 +146,7 @@

require '../lib/lang/index.php';
require 'core/functions.php';
require '../global/functions.php';
require 'core/switch.php';

$all_mods = get_all_moduls();
Expand Down Expand Up @@ -187,18 +203,15 @@
<script language="javascript" type="text/javascript" src="../lib/js/tinymce/jquery.tinymce.min.js"></script>

<!-- Add fancyBox -->
<link rel="stylesheet" href="./css/jquery.fancybox.min.css?v=2.1.5" type="text/css" media="screen" />
<script type="text/javascript" src="./js/jquery.fancybox.min.js?v=2.1.5"></script>

<script type="text/javascript" src="../lib/js/jquery/jquery.textareaCounter.plugin.js"></script>

<link rel="stylesheet" href="css/bootstrap.min.css?v=4.5.2" type="text/css" media="screen, projection">

<?php
if($acptheme == 'dark') {
$style_file = 'css/styles_dark.css?v='.time();
$style_file = 'theme/css/styles_dark.css?v='.time();
} else {
$style_file = 'css/styles_light.css?v='.time();
$style_file = 'theme/css/styles_light.css?v='.time();
}
echo '<link rel="stylesheet" href="'.$style_file.'" type="text/css" media="screen, projection">';
?>
Expand All @@ -222,7 +235,6 @@

<!-- uploader -->
<script src="../lib/js/dropzone.js"></script>
<link rel="stylesheet" href="../lib/css/dropzone.css" type="text/css" media="screen, projection">

<!-- ACE Editor -->
<script src="../lib/js/ace/ace.js" data-ace-base="../lib/js/ace" type="text/javascript" charset="utf-8"></script>
Expand All @@ -236,7 +248,96 @@

<!-- image picker -->
<script type="text/javascript" src="../lib/js/jquery/image-picker.min.js"></script>


<!-- date/time picker -->
<script type="text/javascript" src="js/moment.min.js"></script>
<script type="text/javascript" src="js/bootstrap-datetimepicker.min.js"></script>

<script type="text/javascript" src="js/accounting.min.js"></script>

<script type="text/javascript">

$.extend(true, $.fn.datetimepicker.defaults, {
icons: {
time: 'far fa-clock',
date: 'far fa-calendar',
up: 'fas fa-arrow-up',
down: 'fas fa-arrow-down',
previous: 'fas fa-chevron-left',
next: 'fas fa-chevron-right',
today: 'fas fa-calendar-check',
clear: 'far fa-trash-alt',
close: 'far fa-times-circle'
}
});

$(function(){

$('.dp').datetimepicker({
timeZone: 'UTC',
format: 'YYYY-MM-DD HH:mm'
});

if($("#price").val()) {

get_netto = $("#price").val();

var e = document.getElementById("tax");
var get_tax = e.options[e.selectedIndex].text;
get_tax = parseInt(get_tax);
get_netto_calc = get_netto.replace(/\./g, '');
get_netto_calc = get_netto_calc.replace(",",".");
current_brutto = get_netto_calc*(get_tax+100)/100;
current_brutto = accounting.formatNumber(current_brutto,4,".",",");
$('#price_total').val(current_brutto);

$('#price').keyup(function(){
get_netto = $('#price').val();
//get_tax = parseInt($('#tax').val());
get_netto_calc = get_netto.replace(/\./g, '');
get_netto_calc = get_netto_calc.replace(",",".");
current_brutto = get_netto_calc*(get_tax+100)/100;
current_brutto = accounting.formatNumber(current_brutto,4,".",",");
$('#price_total').val(current_brutto);
});

$('#price_total').keyup(function(){
get_brutto = $('#price_total').val();
//get_tax = parseInt($('#tax').val());
get_brutto_calc = get_brutto.replace(/\./g, '');
get_brutto_calc = get_brutto_calc.replace(",",".");
current_netto = get_brutto_calc*100/(get_tax+100);
current_netto = accounting.formatNumber(current_netto,4,".",",");
$('#price').val(current_netto);
});

$('#tax').bind("change keyup", function(){

var e = document.getElementById("tax");
var get_tax = e.options[e.selectedIndex].text;
get_tax = parseInt(get_tax);

get_netto = $('#price').val();
get_netto_calc = get_netto.replace(",",".");

current_brutto = get_netto_calc*(get_tax+100)/100;
current_brutto = accounting.formatNumber(current_brutto,4,".",",");

get_brutto_calc = current_brutto.replace(",",".");
current_netto = get_brutto_calc*100/(get_tax+100);
current_netto = accounting.formatNumber(current_netto,4,".",",");

$('#price_total').val(current_brutto);
$('#price').val(current_netto);
});

}


});

</script>


<?php

Expand Down Expand Up @@ -317,9 +418,12 @@
}
?>
</p>

<p><b>flatCore</b> Content Management System (<?php echo $fc_version_name . ' <small>B: ' . $fc_version_build; ?>)</small><br />
copyright © <?php echo date('Y'); ?>, <a href="https://www.flatcore.org/" target="_blank">flatCore.org</a> | <a href="https://github.com/flatCore/flatCore-CMS"><i class="fab fa-github"></i> flatCore-CMS</a></p>
<hr>
<p>
<img src="images/fc-logo.svg" alt="fc-logo" width="60px"><br>
<b>flatCore</b> Content Management System (<?php echo $fc_version_name . ' <small>B: ' . $fc_version_build; ?>)</small><br>
copyright © <?php echo date('Y'); ?>, <a href="https://flatcore.org/" target="_blank">flatCore.org</a> | <a href="https://github.com/flatCore/flatCore-CMS"><i class="fab fa-github"></i> flatCore-CMS</a>
</p>
<p class="d-none"><?php echo microtime(true)-$_SERVER['REQUEST_TIME_FLOAT']; ?></p>
</div>

Expand Down
139 changes: 0 additions & 139 deletions acp/core/ajax.chat.php

This file was deleted.

Loading

0 comments on commit 62ddf4d

Please sign in to comment.