This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | require_once("../ariadne.inc"); |
||
3 | require_once($ariadne . "/bootstrap.php"); |
||
4 | |||
5 | require_once( AriadneBasePath . "/configs/axstore.phtml"); |
||
6 | require_once( AriadneBasePath . "/configs/cache.phtml"); |
||
7 | require_once( AriadneBasePath . "/stores/".$ax_config["dbms"]."store.phtml"); |
||
8 | require_once( AriadneBasePath . "/stores/".$store_config["dbms"]."store_install.phtml"); |
||
9 | |||
10 | $ERRMODE="text"; |
||
11 | |||
12 | $inst_store = $store_config["dbms"]."store_install"; |
||
13 | $store=new $inst_store(".",$store_config); |
||
14 | |||
15 | echo "== creating main Ariadne Object Store\n\n"; |
||
16 | |||
17 | if ($store->initialize()) { |
||
18 | require_once("init_database_data.php"); |
||
19 | |||
20 | foreach ($properties as $name => $property) { |
||
21 | $store->create_property($name, $property); |
||
22 | } |
||
23 | |||
24 | $store->add_type("pobject","pobject"); |
||
25 | $store->add_type("pdir","pobject"); |
||
26 | $store->add_type("pdir","ppage"); |
||
27 | $store->add_type("pdir","pdir"); |
||
28 | $store->add_type("pshortcut","pobject"); |
||
29 | $store->add_type("pshortcut","pshortcut"); |
||
30 | $store->add_type("puser","pobject"); |
||
31 | $store->add_type("puser","ppage"); |
||
32 | // $store->add_type("puser","pdir"); |
||
33 | $store->add_type("puser","puser"); |
||
34 | $store->add_type("pshadowuser","pobject"); |
||
35 | $store->add_type("pshadowuser","ppage"); |
||
36 | // $store->add_type("pshadowuser","pdir"); |
||
37 | $store->add_type("pshadowuser","puser"); |
||
38 | $store->add_type("pshadowuser","pshadowuser"); |
||
39 | $store->add_type("pgroup","pobject"); |
||
40 | $store->add_type("pgroup","ppage"); |
||
41 | $store->add_type("pgroup","pdir"); |
||
42 | $store->add_type("pgroup","puser"); |
||
43 | $store->add_type("pgroup","pgroup"); |
||
44 | $store->add_type("ppage","pobject"); |
||
45 | $store->add_type("ppage","ppage"); |
||
46 | $store->add_type("pcalitem","pobject"); |
||
47 | $store->add_type("pcalitem","pcalitem"); |
||
48 | $store->add_type("pcalendar","pobject"); |
||
49 | $store->add_type("pcalendar","ppage"); |
||
50 | $store->add_type("pcalendar","pdir"); |
||
51 | $store->add_type("pcalendar","pcalendar"); |
||
52 | $store->add_type("pscenario","pobject"); |
||
53 | $store->add_type("pscenario","pscenario"); |
||
54 | $store->add_type("particle","pobject"); |
||
55 | $store->add_type("particle","ppage"); |
||
56 | $store->add_type("particle","particle"); |
||
57 | $store->add_type("pnewspaper","pobject"); |
||
58 | $store->add_type("pnewspaper","ppage"); |
||
59 | $store->add_type("pnewspaper","pdir"); |
||
60 | $store->add_type("pnewspaper","pnewspaper"); |
||
61 | |||
62 | // Addressbook types and default objects |
||
63 | |||
64 | $store->add_type("paddressbook","pobject"); |
||
65 | $store->add_type("paddressbook","ppage"); |
||
66 | $store->add_type("paddressbook","pdir"); |
||
67 | $store->add_type("paddressbook","paddressbook"); |
||
68 | $store->add_type("pperson","pobject"); |
||
69 | $store->add_type("pperson","address"); |
||
70 | $store->add_type("pperson","pperson"); |
||
71 | $store->add_type("porganization","pobject"); |
||
72 | $store->add_type("porganization","address"); |
||
73 | $store->add_type("porganization","porganization"); |
||
74 | |||
75 | |||
76 | // install psite types and properties |
||
77 | |||
78 | $store->add_type("psite","pobject"); |
||
79 | $store->add_type("psite","ppage"); |
||
80 | $store->add_type("psite","pdir"); |
||
81 | $store->add_type("psite","psection"); |
||
82 | $store->add_type("psite","psite"); |
||
83 | |||
84 | // install pfile type |
||
85 | |||
86 | $store->add_type("pfile","pobject"); |
||
87 | $store->add_type("pfile","pfile"); |
||
88 | |||
89 | // install pphoto(book) types |
||
90 | |||
91 | $store->add_type("pphoto","pobject"); |
||
92 | $store->add_type("pphoto","pfile"); |
||
93 | $store->add_type("pphoto","pphoto"); |
||
94 | $store->add_type("pphotobook","pobject"); |
||
95 | $store->add_type("pphotobook","ppage"); |
||
96 | $store->add_type("pphotobook","pdir"); |
||
97 | $store->add_type("pphotobook","pphoto"); |
||
98 | $store->add_type("pphotobook","pphotobook"); |
||
99 | |||
100 | // install pprofile type |
||
101 | |||
102 | $store->add_type("pprofile","pobject"); |
||
103 | $store->add_type("pprofile","ppage"); |
||
104 | $store->add_type("pprofile","pdir"); |
||
105 | $store->add_type("pprofile","pprofile"); |
||
106 | |||
107 | // install psearch type |
||
108 | |||
109 | $store->add_type("psearch","pobject"); |
||
110 | $store->add_type("psearch","ppage"); |
||
111 | $store->add_type("psearch","pdir"); |
||
112 | $store->add_type("psearch","psearch"); |
||
113 | |||
114 | // install psection type |
||
115 | |||
116 | $store->add_type("psection", "pobject"); |
||
117 | $store->add_type("psection", "ppage"); |
||
118 | $store->add_type("psection", "pdir"); |
||
119 | $store->add_type("psection", "psection"); |
||
120 | |||
121 | // install pproject type |
||
122 | |||
123 | $store->add_type("pproject", "pobject"); |
||
124 | $store->add_type("pproject", "ppage"); |
||
125 | $store->add_type("pproject", "pdir"); |
||
126 | $store->add_type("pproject", "psection"); |
||
127 | $store->add_type("pproject", "pproject"); |
||
128 | |||
129 | // install pconnector type |
||
130 | |||
131 | $store->add_type("pconnector", "pobject"); |
||
132 | $store->add_type("pconnector", "ppage"); |
||
133 | $store->add_type("pconnector", "pdir"); |
||
134 | $store->add_type("pconnector", "pconnector"); |
||
135 | |||
136 | // install pldapconnection type |
||
137 | |||
138 | $store->add_type("pldapconnection", "pobject"); |
||
139 | $store->add_type("pldapconnection", "ppage"); |
||
140 | $store->add_type("pldapconnection", "pdir"); |
||
141 | $store->add_type("pldapconnection", "pconnector"); |
||
142 | $store->add_type("pldapconnection", "pldapconnection"); |
||
143 | |||
144 | // install pbookmark type |
||
145 | |||
146 | $store->add_type("pbookmark", "pobject"); |
||
147 | $store->add_type("pbookmark", "pbookmark"); |
||
148 | |||
149 | // install punittest type |
||
150 | $store->add_type("punittest", "pobject"); |
||
151 | $store->add_type("punittest", "ppage"); |
||
152 | $store->add_type("punittest", "pdir"); |
||
153 | $store->add_type("punittest", "punittest"); |
||
154 | |||
155 | if ($error) { |
||
156 | error($error); |
||
157 | } |
||
158 | |||
159 | } else { |
||
160 | error("store not initialized."); |
||
161 | } |
||
162 | $store->close(); |
||
163 | |||
164 | // session store |
||
165 | |||
166 | $inst_store = $session_config["dbms"]."store_install"; |
||
167 | $sessionstore=new $inst_store(".",$session_config); |
||
168 | |||
169 | echo "== creating Ariadne Session Store\n\n"; |
||
170 | if ($sessionstore->initialize()) { |
||
171 | $sessionstore->add_type("psession","pobject"); |
||
172 | $sessionstore->add_type("psession","psession"); |
||
173 | $sessionstore->save( '/', 'pobject', new baseObject ); |
||
174 | } else { |
||
175 | error("store not initialized."); |
||
176 | } |
||
177 | $sessionstore->close(); |
||
178 | |||
179 | // cache store |
||
180 | |||
181 | $inst_store = $cache_config["dbms"]."store_install"; |
||
182 | $cachestore=new $inst_store(".",$cache_config); |
||
183 | |||
184 | echo "== creating Ariadne Session Store\n\n"; |
||
185 | View Code Duplication | if ($cachestore->initialize()) { |
|
186 | foreach ($cacheproperties as $name => $property) { |
||
187 | $cachestore->create_property($name, $property); |
||
188 | } |
||
189 | $cachestore->add_type("pcache","pobject"); |
||
190 | $cachestore->add_type("pcache","pcache"); |
||
191 | |||
192 | $cachestore->save( '/', 'pobject', new baseObject ); |
||
193 | } else { |
||
194 | error("store not initialized."); |
||
195 | } |
||
196 | $cachestore->close(); |
||
197 | |||
198 | ?> |
||
0 ignored issues
–
show
|
|||
199 |
Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.
A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.