質問編集履歴
4
index.php追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -51,3 +51,23 @@
|
|
51
51
|
define('num_directories', 12);
|
52
52
|
|
53
53
|
```
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
(index.php)
|
58
|
+
|
59
|
+
```
|
60
|
+
|
61
|
+
$ms = new box();
|
62
|
+
|
63
|
+
$center = centerquery(2);
|
64
|
+
|
65
|
+
$tok = new tok();
|
66
|
+
|
67
|
+
include_once('class'.'.php');
|
68
|
+
|
69
|
+
HtmlTemplate::t_include($tokyo->test, $west->yokohama);
|
70
|
+
|
71
|
+
exit();
|
72
|
+
|
73
|
+
```
|
3
class.php追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,3 +37,17 @@
|
|
37
37
|
(追加)
|
38
38
|
|
39
39
|
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
(class.php)
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
define('tokyo-mail', 'example@ls.jp');
|
48
|
+
|
49
|
+
define('primary-wordS', 'band,tokyo,kanto,minato');
|
50
|
+
|
51
|
+
define('num_directories', 12);
|
52
|
+
|
53
|
+
```
|
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,17 +4,21 @@
|
|
4
4
|
|
5
5
|
これはどういう仕組みになっているのでしょうか。
|
6
6
|
|
7
|
+
```
|
7
8
|
|
9
|
+
php_value include_path
|
8
10
|
|
9
|
-
|
11
|
+
.:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings
|
10
|
-
|
11
|
-
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php```
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
+
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php
|
16
|
+
|
17
|
+
```
|
18
|
+
|
15
19
|
(init.php)
|
16
20
|
|
17
|
-
|
21
|
+
|
18
22
|
|
19
23
|
```
|
20
24
|
|
@@ -26,4 +30,10 @@
|
|
26
30
|
|
27
31
|
$_POST = protector_sanitize($_POST) ;
|
28
32
|
|
29
|
-
```
|
33
|
+
```
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
(追加)
|
38
|
+
|
39
|
+
他の文字列になっていたところを上記のようにsaitamaに変えるとドキュメントルートが変更されました。
|
1
init.php追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,3 +9,21 @@
|
|
9
9
|
```php_value include_path .:/LIbrary/Webserver/Documents/saitama/include:/LIbrary/Webserver/Documents/saitama/include/test:/LIbrary/Webserver/Documents/saitama/include/settings
|
10
10
|
|
11
11
|
php_value auto_prepend_file /LIbrary/Webserver/Documents/saitama/include/init.php```
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
(init.php)
|
16
|
+
|
17
|
+
``````
|
18
|
+
|
19
|
+
```
|
20
|
+
|
21
|
+
require_once "class.php";
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
$_GET = protector_sanitize($_GET) ;
|
26
|
+
|
27
|
+
$_POST = protector_sanitize($_POST) ;
|
28
|
+
|
29
|
+
``````
|