Skip to content

Commit d9669db

Browse files
author
AbdelRahman
committed
first community edition release
1 parent 471f810 commit d9669db

File tree

472 files changed

+77700
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

472 files changed

+77700
-0
lines changed

CommunityEditionLicense.pdf

35.4 KB
Binary file not shown.

SmartReportingEngine/desktop.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[.ShellClassInfo]
2+
IconResource=C:\WINDOWS\System32\SHELL32.dll,3
3+
[ViewState]
4+
Mode=
5+
Vid=
6+
FolderType=Generic

SmartReportingEngine/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{\rtf1}
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
<?php
2+
/**
3+
* Smart Report Engine
4+
* Community Edition
5+
* Author : Webuccino
6+
* All copyrights are preserved to Webuccino
7+
* URL : https://mysqlreports.com/
8+
*
9+
*/
10+
define ( "DIRECTACESS", "true" );
11+
ob_start();
12+
require_once ("request.php");
13+
/*
14+
* #################################################################################################
15+
* hANDLING SUPER GLOBALS
16+
* ################################################################################################
17+
*/
18+
$_CLEANED = remove_unexpected_superglobals($_GET, array("setStyle"));
19+
$_GET = array ();
20+
$_POST = array ();
21+
$_REQUEST = array ();
22+
$_ENV = array ();
23+
$_FILES = array ();
24+
$_COOKIE = array ();
25+
$report_url = basename ( __DIR__ );
26+
$report_url .= ".php";
27+
if(!file_exists($report_url)){
28+
$report_url = $file_name . ".php" ;
29+
}
30+
if(!isset($_CLEANED["RequestToken"]) || $_CLEANED["RequestToken"] != $_SESSION[$request_token]){
31+
ob_end_clean( );
32+
header ( "location: " . $report_url );
33+
exit ();
34+
}
35+
36+
/*
37+
* #################################################################################################
38+
* Changing the style
39+
* ################################################################################################
40+
*/
41+
$all_styles = array (
42+
"blue",
43+
"grey",
44+
"default"
45+
);
46+
$posted_style = isset ( $_CLEANED ["setStyle"] ) ? $_CLEANED ["setStyle"] : "";
47+
$posted_style_key = array_search ( strtolower ( $posted_style ), $all_styles );
48+
$keys = array (
49+
0,
50+
1,
51+
2
52+
);
53+
if (in_array ( $posted_style_key, $keys )) {
54+
$_SESSION ["change_style_srm7"] = $all_styles [$posted_style_key];
55+
}
56+
ob_end_clean();
57+
header ( "location: " . $report_url );
58+
exit ();
59+
?>
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?php
2+
/**
3+
* Smart Report Engine
4+
* Community Edition
5+
* Author : Webuccino
6+
* All copyrights are preserved to Webuccino
7+
* URL : https://mysqlreports.com/
8+
*
9+
*/
10+
define ( "DIRECTACESS", "true" );
11+
ob_start();
12+
require_once 'request.php';
13+
// valid only for mobile views
14+
if (strtolower($layout) != "mobile") {
15+
ob_end_clean();
16+
header ( 'Location: ' . $file_name . '.php' );
17+
exit();
18+
}
19+
//case mobile layout displayed in a mobile or tablet screen
20+
if (isset ( $detect )) {
21+
if ($detect->isMobile () || $detect->isTablet ()) {
22+
ob_end_clean();
23+
header ( 'Location: ' . $file_name . '.php' );
24+
exit();
25+
}
26+
}
27+
28+
$mobile_report_url = $file_name . '.php';
29+
if ($_SERVER ['QUERY_STRING'] !== "") {
30+
$mobile_report_url = $mobile_report_url . "?" . $_SERVER ['QUERY_STRING'];
31+
}
32+
ob_end_flush();
33+
?>
34+
35+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
36+
<html xmlns="http://www.w3.org/1999/xhtml">
37+
<head>
38+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
39+
<title><?php echo $title ?> - Tablet View </title>
40+
<style type="text/css">
41+
.ipad {
42+
background-image: url(../shared/images/icons/ipad-emulator.jpg);
43+
background-repeat: no-repeat;
44+
height: 727px;
45+
width: 800px;
46+
margin-right: auto;
47+
margin-bottom: 10px;
48+
margin-left: auto;
49+
}
50+
</style>
51+
</head>
52+
53+
<body>
54+
<div
55+
style="text-align: center; position: absolute; width: 200px; margin: 0px auto;">
56+
<a title="<?php echo $Mobile_view_language;?>" href="Mobile.php"><img
57+
border="0" src="../shared/images/icons/view_mobile.png" /></a>
58+
</div>
59+
<div class="ipad">
60+
<iframe src="<?php echo $mobile_report_url; ?>" frameborder="0" width="582" height="423"
61+
style="background-color: #FFF; margin-left: 108px; margin-top: 157px;"></iframe>
62+
63+
</div>
64+
65+
</body>
66+
</html>
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?php
2+
3+
/**
4+
* Smart Report Engine
5+
* Community Edition
6+
* Author : Webuccino
7+
* All copyrights are preserved to Webuccino
8+
* URL : https://mysqlreports.com/
9+
*
10+
*/
11+
if (!defined("DIRECTACESS"))
12+
exit("No direct script access allowed");
13+
14+
require_once ("../shared/helpers/Model/search.php");
15+
require_once ("../shared/helpers/Model/Report.php");
16+
require_once ("../shared/helpers/Model/TableReport.php");
17+
require_once ("../shared/helpers/functions.php");
18+
require_once ("../shared/helpers/celltypes.php");
19+
require_once ("../shared/helpers/lib.php");
20+
require_once ("../shared/helpers/export.php");
21+
22+
23+
/*
24+
* #################################################################################################
25+
* Creating the Report Sql
26+
* ################################################################################################
27+
*/
28+
29+
30+
$sql = Prepare_TSql();
31+
32+
if ($empty_search_parameters || $possible_attack) {
33+
// case user send empty search keywords or entered the $Enter_your_search_lang in the search box
34+
35+
$all_records = array();
36+
$nRecords = 0;
37+
$empty_Report = true;
38+
$numberOfPages = 1;
39+
$records_per_page = 10;
40+
} else {
41+
42+
$all_records = query($sql [0], "LayOut : Prepare SQL", $sql [1], $sql [2]);
43+
44+
$nRecords = (is_array($all_records)) ? count($all_records) : 0;
45+
if ($records_per_page == 0) {
46+
$records_per_page = 10;
47+
}
48+
49+
$numberOfPages = ceil($nRecords / $records_per_page);
50+
if ($numberOfPages == 0 || $nRecords == 0) {
51+
$empty_Report = true;
52+
$numberOfPages = 1;
53+
} else {
54+
$empty_Report = false;
55+
}
56+
}
57+
$levels = count($group_by);
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<?php
2+
/**
3+
* Smart Report Engine
4+
* Community Edition
5+
* Author : Webuccino
6+
* All copyrights are preserved to Webuccino
7+
* URL : https://mysqlreports.com/
8+
*
9+
*/
10+
define ( "DIRECTACESS", "true" );
11+
ob_start();
12+
require_once ("request.php");
13+
/*
14+
* #################################################################################################
15+
* hANDLING SUPER GLOBALS
16+
* ################################################################################################
17+
*/
18+
$_CLEANED = remove_unexpected_superglobals($_GET, array("setStyle"));
19+
$_GET = array ();
20+
$_POST = array ();
21+
$_REQUEST = array ();
22+
$_ENV = array ();
23+
$_FILES = array ();
24+
$_COOKIE = array ();
25+
$report_url = basename ( __DIR__ );
26+
$report_url .= ".php";
27+
if(!file_exists($report_url)){
28+
$report_url = $file_name . ".php" ;
29+
}
30+
if(!isset($_CLEANED["RequestToken"]) || $_CLEANED["RequestToken"] != $_SESSION[$request_token]){
31+
ob_end_clean( );
32+
header ( "location: " . $report_url );
33+
exit ();
34+
}
35+
36+
/*
37+
* #################################################################################################
38+
* Changing the style
39+
* ################################################################################################
40+
*/
41+
unset($_SESSION['dynamic_param'.$file_name]);
42+
header ( "location: " . $report_url );
43+
exit ();
44+
?>

SmartReportingEngine/src/Core/index.html

Whitespace-only changes.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
define("DIRECTACESS",true);
3+
require_once("request.php");
4+
if($access_mode === "PUBLIC_REPORT"){
5+
header("HTTP/1.1 401 Unauthorized");
6+
echo 'Unauthorized';
7+
exit();
8+
}
9+
session_end();
10+
11+
//redirect
12+
if (!empty(trim($redirect_log_out))) {
13+
header('Location: ' . $redirect_log_out);
14+
exit();
15+
} elseif ((trim($redirect_log_out)) && !empty(trim($redirect_login_page))) {
16+
header('Location: ' . $redirect_login_page);
17+
exit();
18+
} else {
19+
20+
header("HTTP/1.1 401 Unauthorized");
21+
echo 'Unauthorized';
22+
exit();
23+
}
24+
25+
26+
27+

0 commit comments

Comments
 (0)