Skip to content

Commit

Permalink
Merge pull request #163 from uplink42/dev
Browse files Browse the repository at this point in the history
Updated global procedure. Fixed layout inconsistency with IE
  • Loading branch information
uplink42 authored Apr 23, 2017
2 parents 0fa5d4d + 432770d commit 2533880
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 9 deletions.
2 changes: 1 addition & 1 deletion application/controllers/Profits.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
ini_set('memory_limit','1G');

final class Profits extends MY_Controller
{
Expand All @@ -11,7 +12,6 @@ public function __construct()
$this->load->model('Profits_model', 'profits');
}


/**
* Loads the Profits page
* @param int $character_id
Expand Down
1 change: 1 addition & 0 deletions application/controllers/Transactions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php
defined('BASEPATH') or exit('No direct script access allowed');
ini_set('memory_limit','512M');

final class Transactions extends MY_Controller
{
Expand Down
7 changes: 4 additions & 3 deletions application/controllers/internal/Async_procedure.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ public function index($iduser)
log_message('error', $username . ' GLOBAL ERROR ->' . Msg::DB_ERROR);
} else {
try {
$this->Updater_model->calculateProfits();
//totals and history
$this->Updater_model->updateTotals(true, $username);
$this->load->model('Updater_profit_model', 'profits');
$this->profits->beginProfitCalculation($username);
// update totals and history
$this->Updater_model->updateTotals();
// send email
$this->db->where('iduser', $iduser);
$query = $this->db->get('user');
Expand Down
30 changes: 30 additions & 0 deletions application/models/internal/Autoexec_updater_model.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php
if (!defined('BASEPATH')) {
exit('No direct script access allowed');
}

error_reporting(E_ALL);
ini_set('display_errors', 1);

class Autoexec_updater_model extends CI_Model
{

public function __construct()
{
parent::__construct();
}


public function getAllUsers()
{
$this->db->select('username, iduser');
$this->db->from('user');
//$this->db->where('iduser <=', '1415');
$this->db->order_by('iduser', 'asc');
$query = $this->db->get();

$result = $query->result();

return $result;
}
}
4 changes: 0 additions & 4 deletions application/views/home/home_v.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,8 @@
<div class="container">
<div class="row">
<div class="col-md-12 intro-content">
<div class="logo">
<h1>ETM</h1>
</div>
<div class="intro-text text-center">
<h2>Eve Trade Master 2.0</h2>

<p class="lead">a web based profit tracker, asset manager and much more!</p>
</div>
<div class="page-scroll">
Expand Down
2 changes: 1 addition & 1 deletion assets/luna/styles/sass/partials/_body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ body {
}

.navbar-fixed-top {
position: initial;
position: inherit;
margin-bottom: 0;
}

Expand Down

0 comments on commit 2533880

Please sign in to comment.