Skip to content
Snippets Groups Projects
Commit b741de0c authored by Pavel Vyskočil's avatar Pavel Vyskočil
Browse files

Merge pull request #2 from BaranekD/v1.1_rename_class

V1.1 rename class
parent 396b5376
Branches
Tags
No related merge requests found
......@@ -2,6 +2,7 @@
All notable changes to this project will be documented in this file.
## [Unreleased]
- Classes SimpleSAML_Logger and SimpleSAML_Module renamed to SimpleSAML\Logger and SimpleSAML\Module
## [v1.1.0]
[Added]
......
......@@ -18,15 +18,15 @@ class DatabaseCommand
$service = $request['Destination']['name']['en'];
$sql = "INSERT INTO ".$identityProvidersTableName."(year, month, day, sourceIdp, count) VALUES ('".$date->format('Y')."','".$date->format('m') ."','".$date->format('d')."','".$sourceIdp."','1') ON DUPLICATE KEY UPDATE count = count + 1";
SimpleSAML_Logger::info($sql);
SimpleSAML\Logger::info($sql);
if ($conn->query($sql) === FALSE) {
SimpleSAML_Logger::error("The login log wasn't inserted into the database.");
SimpleSAML\Logger::error("The login log wasn't inserted into the database.");
}
$sql = "INSERT INTO ".$serviceProvidersTableName."(year, month, day, service, count) VALUES ('".$date->format('Y')."','".$date->format('m') ."','".$date->format('d')."','".$service."','1') ON DUPLICATE KEY UPDATE count = count + 1";
SimpleSAML_Logger::info($sql);
SimpleSAML\Logger::info($sql);
if ($conn->query($sql) === FALSE) {
SimpleSAML_Logger::error("The login log wasn't inserted into the database.");
SimpleSAML\Logger::error("The login log wasn't inserted into the database.");
}
$conn->close();
......
......@@ -55,7 +55,7 @@ class databaseConnector
{
$conn = mysqli_init();
if ($this->encryption ===true){
SimpleSAML_Logger::debug("Getting connection with encryption.");
SimpleSAML\Logger::debug("Getting connection with encryption.");
mysqli_ssl_set($conn, $this->sslKey,$this->sslCert, $this->sslCA, $this->sslCAPath, null);
if ($this->port === null){
mysqli_real_connect($conn, $this->serverName, $this->username, $this->password, $this->databaseName);
......
......@@ -6,7 +6,7 @@ include dirname(__DIR__)."/lib/Auth/Process/DatabaseCommand.php";
$this->data['header'] = 'SimpleSAMLphp Statistics';
$this->data['jquery'] = array('core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' . SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' . SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
$this->data['head'] .='';
$this->data['head'] .= '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>';
$this->data['head'] .= '<script type="text/javascript">
......
......@@ -4,7 +4,7 @@ include dirname(__DIR__)."/lib/Auth/Process/DatabaseCommand.php";
* @author Pavel Vyskočil <vyskocilpavel@muni.cz>
*/
?>
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
<h2>Summary</h2>
<div id="summary" >
......
......@@ -4,7 +4,7 @@ include dirname(__DIR__)."/lib/Auth/Process/DatabaseCommand.php";
* @author Pavel Vyskočil <vyskocilpavel@muni.cz>
*/
?>
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
<h2>Number of logins per day</h2>
<div id="tableOfAllLogin">
<script type="text/javascript">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment