kritbit

kritbit Commit Details


Date:2015-11-22 22:18:00 (9 years 29 days ago)
Author:Natalie Adams
Branch:master
Commit:19eced1537286fbe6b029dadeb285c3912bf73be
Parents: a9094e4b945722c869b1f620b8b351177c8b8f0d
Message:Adding MySQL support for the DB backend Adding a check to main to make sure user is logged in

Changes:

File differences

web/application/controllers/main.php
44
55
66
7
8
7
8
9
10
911
1012
{
public function index()
{
$jobs = \application\models\Jobs::getByField("user_id", $this->user->id);
echo $this->loadRender("main.html", ["jobs" => $jobs]);
if ($this->user) {
$jobs = \application\models\Jobs::getByField("user_id", $this->user->id);
echo $this->loadRender("main.html", ["jobs" => $jobs]);
}
}
}
web/system/vendor/DB.php
157157
158158
159159
160
161
162
160163
161164
162165
case "SQLITE":
return self::fetch("PRAGMA table_info($table)", null, 1);
break;
case "MySQL":
return self::fetch("DESC $table", null, 0);
break;
}
}
}

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06121s using 14 queries.