Skip to content

Commit 83498f2

Browse files
committed
Merge branch 'develop'
2 parents 3885ab7 + c43c822 commit 83498f2

File tree

5 files changed

+24
-7
lines changed

5 files changed

+24
-7
lines changed

Config/Schema/app.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,6 @@ CREATE TABLE IF NOT EXISTS `ib_cake_sessions` (
249249
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
250250

251251
INSERT INTO `ib_settings` VALUES ('1', 'title', 'システム名', 'iroha Board');
252-
INSERT INTO `ib_settings` VALUES ('2', 'copyright', 'コピーライト', 'Copyright (C) 2016-2019 iroha Soft Co.,Ltd. All rights reserved.');
252+
INSERT INTO `ib_settings` VALUES ('2', 'copyright', 'コピーライト', 'Copyright (C) 2016-2021 iroha Soft Co.,Ltd. All rights reserved.');
253253
INSERT INTO `ib_settings` VALUES ('3', 'color', 'テーマカラー', '#337ab7');
254254
INSERT INTO `ib_settings` VALUES ('4', 'information', 'お知らせ', '全体のお知らせを表示します。\r\nこのお知らせは管理機能の「システム設定」にて変更可能です。');

Controller/ContentsQuestionsController.php

+9
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ public function index($content_id, $record_id = null)
7171
'conditions' => array('Record.id' => $record_id),
7272
));
7373

74+
// 受講者によるテスト結果表示の場合、自身のテスト結果か確認
75+
if(
76+
($this->action == 'record')&&
77+
($record['Record']['user_id']!=$this->Auth->user('id'))
78+
)
79+
{
80+
throw new NotFoundException(__('Invalid access'));
81+
}
82+
7483
// テスト結果に紐づく問題ID一覧(出題順)を作成
7584
$question_id_list = array();
7685
foreach($record['RecordsQuestion'] as $question)

Vendor/FileUpload.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function getBytes($str)
199199
break;
200200
case "t":
201201
case "tb":
202-
$bytes = $matches[1]*1024*1024*1024;
202+
$bytes = $matches[1]*1024*1024*1024*1024;
203203
break;
204204
}
205205

View/Layouts/default.ctp

-5
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,10 @@
9191
</div>
9292

9393
<div id="container">
94-
<div id="header" class="row">
95-
</div>
9694
<div id="content" class="row">
9795
<?php echo $this->Session->flash(); ?>
98-
9996
<?php echo $this->fetch('content'); ?>
10097
</div>
101-
<div id="footer" class="row">
102-
</div>
10398
</div>
10499

105100
<div class="ib-theme-color text-center">

View/Settings/admin_index.ctp

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
<?php echo $this->element('admin_menu');?>
2+
<?php $this->start('script-embedded'); ?>
3+
<script>
4+
$(document).ready(function()
5+
{
6+
$('option').each(function(){
7+
console.log($(this).val());
8+
$(this).css('color', 'white');
9+
$(this).css('background', $(this).val());
10+
$(this).css('font-weight', 'bold');
11+
});
12+
});
13+
</script>
14+
<?php $this->end(); ?>
215
<div class="admin-settings-index">
316
<div class="panel panel-default">
417
<div class="panel-heading">

0 commit comments

Comments
 (0)