Skip to content
This repository was archived by the owner on Sep 19, 2022. It is now read-only.

Commit b741de0

Browse files
committed
Merge pull request #2 from BaranekD/v1.1_rename_class
V1.1 rename class
1 parent 396b537 commit b741de0

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
All notable changes to this project will be documented in this file.
33

44
## [Unreleased]
5+
- Classes SimpleSAML_Logger and SimpleSAML_Module renamed to SimpleSAML\Logger and SimpleSAML\Module
56

67
## [v1.1.0]
78
[Added]

lib/Auth/Process/DatabaseCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ public static function insertLogin(&$request, &$date)
1818
$service = $request['Destination']['name']['en'];
1919

2020
$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";
21-
SimpleSAML_Logger::info($sql);
21+
SimpleSAML\Logger::info($sql);
2222
if ($conn->query($sql) === FALSE) {
23-
SimpleSAML_Logger::error("The login log wasn't inserted into the database.");
23+
SimpleSAML\Logger::error("The login log wasn't inserted into the database.");
2424
}
2525

2626
$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";
27-
SimpleSAML_Logger::info($sql);
27+
SimpleSAML\Logger::info($sql);
2828
if ($conn->query($sql) === FALSE) {
29-
SimpleSAML_Logger::error("The login log wasn't inserted into the database.");
29+
SimpleSAML\Logger::error("The login log wasn't inserted into the database.");
3030
}
3131

3232
$conn->close();

lib/Auth/Process/DatabaseConnector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getConnection()
5555
{
5656
$conn = mysqli_init();
5757
if ($this->encryption ===true){
58-
SimpleSAML_Logger::debug("Getting connection with encryption.");
58+
SimpleSAML\Logger::debug("Getting connection with encryption.");
5959
mysqli_ssl_set($conn, $this->sslKey,$this->sslCert, $this->sslCA, $this->sslCAPath, null);
6060
if ($this->port === null){
6161
mysqli_real_connect($conn, $this->serverName, $this->username, $this->password, $this->databaseName);

templates/statistics-tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
$this->data['header'] = 'SimpleSAMLphp Statistics';
77

88
$this->data['jquery'] = array('core' => TRUE, 'ui' => TRUE, 'css' => TRUE);
9-
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' . SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
9+
$this->data['head'] = '<link rel="stylesheet" media="screen" type="text/css" href="' . SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css') . '" />';
1010
$this->data['head'] .='';
1111
$this->data['head'] .= '<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>';
1212
$this->data['head'] .= '<script type="text/javascript">

www/summary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Pavel Vyskočil <[email protected]>
55
*/
66
?>
7-
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
7+
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
88

99
<h2>Summary</h2>
1010
<div id="summary" >

www/tables.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Pavel Vyskočil <[email protected]>
55
*/
66
?>
7-
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML_Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
7+
<link rel="stylesheet" media="screen" type="text/css" href="<?php SimpleSAML\Module::getModuleUrl('proxystatistics/statisticsproxy.css')?>" />
88
<h2>Number of logins per day</h2>
99
<div id="tableOfAllLogin">
1010
<script type="text/javascript">

0 commit comments

Comments
 (0)