Skip to content

Commit

Permalink
Fixed some bugs I found after convering my test-environment to php 7.…
Browse files Browse the repository at this point in the history
…2 from php 5.6. Should be more solid, can't produce any errors or warnings but I'm sure they're there, I welcome bug reports.
  • Loading branch information
surfrock66 committed Oct 31, 2019
1 parent d592b0d commit a29bc83
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
Empty file modified scripts/dbdump_to_csv.sh
100755 → 100644
Empty file.
1 change: 1 addition & 0 deletions web/creds-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
$db_host = 'localhost';
$db_user = ''; // Enter your MySQL username
$db_pass = ''; // Enter your MySQL password
$db_port = '3306'; // Enter yout MySql PORT
$db_name = 'torque';
$db_table = 'raw_logs';
$db_keys_table = 'torque_keys';
Expand Down
8 changes: 5 additions & 3 deletions web/get_sessions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
//echo "<!-- Begin get_sessions.php at ".date("H:i:s", microtime(true))." -->\r\n";
// this page relies on being included from another page that has already connected to db

session_set_cookie_params(0,dirname($_SERVER['SCRIPT_NAME']));
if (!isset($_SESSION)) { session_start(); }
if (!isset($_SESSION)) {
session_set_cookie_params(0,dirname($_SERVER['SCRIPT_NAME']));
session_start();
}

// Process the possibilities for the year and month filter: Set in POST, Set in GET, select all possible year/months, or the default: select the current year/month
if ( isset($_POST["selyearmonth"]) ) {
Expand Down Expand Up @@ -62,7 +64,7 @@
$seshsizes = array();
$seshprofile = array();
while($row = mysqli_fetch_assoc($sessionqry)) {
$session_duration_str = gmdate("H:i:s", ($row["timeend"] - $row["timestart"])/1000);
$session_duration_str = gmdate("H:i:s", ((int)$row["timeend"] - (int)$row["timestart"])/1000);
$session_profileName = $row["profileName"];
$session_size = $row["sessionsize"];

Expand Down
Empty file modified web/static/css/chosen.min.css
100755 → 100644
Empty file.
Empty file modified web/static/js/chosen.jquery.min.js
100755 → 100644
Empty file.
Empty file modified web/upload_data.php
100755 → 100644
Empty file.

1 comment on commit a29bc83

@mo5245
Copy link

@mo5245 mo5245 commented on a29bc83 Sep 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

closes #33

Please sign in to comment.