@@ -24,7 +24,8 @@ |
||
24 | 24 | $code .= '$' . $this->name . ' = '; |
25 | 25 | if (is_array($this->value)) { |
26 | 26 | $code .= \CodeGenerator::genArray($this->value); |
27 | - } else { |
|
27 | + } |
|
28 | + else { |
|
28 | 29 | $code .= '"' . str_replace('"', '\"', $this->value) . '";'; |
29 | 30 | } |
30 | 31 | return $code; |
@@ -27,7 +27,8 @@ discard block |
||
27 | 27 | } |
28 | 28 | } |
29 | 29 | return $result; |
30 | - } else { |
|
30 | + } |
|
31 | + else { |
|
31 | 32 | return Router::loadClass($className); |
32 | 33 | } |
33 | 34 | } |
@@ -99,7 +100,8 @@ discard block |
||
99 | 100 | $paths[$code . '_ObjectDir'] = $folder . '/objects/' . $classPath . '/' . $classPath . '.php'; |
100 | 101 | $paths[$code . '_Model'] = $folder . '/models/' . $classPath . '.php'; |
101 | 102 | $paths[$code . '_ModelDir'] = $folder . '/models/' . $classPath . '/' . $classPath . '.php'; |
102 | - } else { |
|
103 | + } |
|
104 | + else { |
|
103 | 105 | $classFile = substr($classPath, strrpos($classPath, '/') + 1); |
104 | 106 | $classPathWithotClass = substr($classPath, 0, strrpos($classPath, '/')); |
105 | 107 |
@@ -24,7 +24,8 @@ |
||
24 | 24 | $code .= '$' . $this->name . ' = '; |
25 | 25 | if (is_array($this->value)) { |
26 | 26 | $code .= \CodeGenerator::genArray($this->value); |
27 | - } else { |
|
27 | + } |
|
28 | + else { |
|
28 | 29 | $code .= '"' . str_replace('"', '\"', $this->value) . '";'; |
29 | 30 | } |
30 | 31 | return $code; |
@@ -43,7 +43,8 @@ |
||
43 | 43 | function INJI_SYSTEM_ERROR($msg, $fatal = false) { |
44 | 44 | if ($fatal) { |
45 | 45 | exit("<div style = 'text-align:center;font-size:20px;margin-top:25%;'>{$msg}</div>"); |
46 | - } else { |
|
46 | + } |
|
47 | + else { |
|
47 | 48 | echo "<div style = 'text-align:center;font-size:20px;margin-top:25%;'>{$msg}</div>"; |
48 | 49 | } |
49 | 50 | } |
@@ -43,7 +43,8 @@ |
||
43 | 43 | function INJI_SYSTEM_ERROR($msg, $fatal = false) { |
44 | 44 | if ($fatal) { |
45 | 45 | exit("<div style = 'text-align:center;font-size:20px;margin-top:25%;'>{$msg}</div>"); |
46 | - } else { |
|
46 | + } |
|
47 | + else { |
|
47 | 48 | echo "<div style = 'text-align:center;font-size:20px;margin-top:25%;'>{$msg}</div>"; |
48 | 49 | } |
49 | 50 | } |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <tfoot> |
2 | 2 | <tr> |
3 | 3 | <?php |
4 | - foreach ($table->cols as $col) { |
|
5 | - if (is_string($col)) { |
|
6 | - echo "<th>{$col}</th>"; |
|
7 | - } else { |
|
8 | - echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
9 | - } |
|
10 | - } |
|
11 | - ?> |
|
4 | + foreach ($table->cols as $col) { |
|
5 | + if (is_string($col)) { |
|
6 | + echo "<th>{$col}</th>"; |
|
7 | + } else { |
|
8 | + echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
|
9 | + } |
|
10 | + } |
|
11 | + ?> |
|
12 | 12 | </tr> |
13 | 13 | </tfoot> |
14 | 14 | \ No newline at end of file |
@@ -4,7 +4,8 @@ |
||
4 | 4 | foreach ($table->cols as $col) { |
5 | 5 | if (is_string($col)) { |
6 | 6 | echo "<th>{$col}</th>"; |
7 | - } else { |
|
7 | + } |
|
8 | + else { |
|
8 | 9 | echo Html::el('th', !empty($col['attributes']) ? $col['attributes'] : [], $col['text']); |
9 | 10 | } |
10 | 11 | } |
@@ -24,7 +24,8 @@ |
||
24 | 24 | $code .= '$' . $this->name . ' = '; |
25 | 25 | if (is_array($this->value)) { |
26 | 26 | $code .= \CodeGenerator::genArray($this->value); |
27 | - } else { |
|
27 | + } |
|
28 | + else { |
|
28 | 29 | $code .= '"' . str_replace('"', '\"', $this->value) . '";'; |
29 | 30 | } |
30 | 31 | return $code; |
@@ -25,10 +25,12 @@ |
||
25 | 25 | } |
26 | 26 | if (password_verify($_POST['systemPass'], $config['systemPass'])) { |
27 | 27 | $_SESSION['systemLogin'] = 1; |
28 | - } else { |
|
28 | + } |
|
29 | + else { |
|
29 | 30 | if (empty($config['failTry'])) { |
30 | 31 | $config['failTry'] = 1; |
31 | - } else { |
|
32 | + } |
|
33 | + else { |
|
32 | 34 | $config['failTry'] ++; |
33 | 35 | } |
34 | 36 | Config::save('share', $config); |
@@ -24,7 +24,8 @@ |
||
24 | 24 | $code .= '$' . $this->name . ' = '; |
25 | 25 | if (is_array($this->value)) { |
26 | 26 | $code .= \CodeGenerator::genArray($this->value); |
27 | - } else { |
|
27 | + } |
|
28 | + else { |
|
28 | 29 | $code .= '"' . str_replace('"', '\"', $this->value) . '";'; |
29 | 30 | } |
30 | 31 | return $code; |