36 ossn_register_menu_link(
'support',
'admin:support',
'http://community.opensource-socialnetwork.org',
'topbar_admin');
109 $Ossn->com_panel[$component] =
$page;
119 if (!isset($Ossn->com_panel)) {
122 foreach ($Ossn->com_panel as $key => $name) {
123 $registered[] = $key;
139 $Ossn->adminSettingsPage[$name] =
$page;
149 if (!isset($Ossn->adminSettingsPage)) {
152 foreach ($Ossn->adminSettingsPage as $key => $name) {
153 $registered[] = $key;
165 $params[
'menu'] = $Ossn->menu[
'admin/sidemenu'];
196 $contents[
'contents'] =
ossn_plugin_view(
'pages/administrator/contents/dashboard');
197 $contents[
'title'] = $title;
206 $title = $com[
'com']->name;
207 $contents[
'contents'] =
ossn_plugin_view(
"settings/administrator/{$pages[1]}/{$Ossn->com_panel[$pages[1]]}", $com);
208 $contents[
'title'] = $title;
215 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/components");
216 $contents[
'title'] = $title;
222 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/themes");
223 $contents[
'title'] = $title;
227 case 'com_installer':
229 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/com_installer");
230 $contents[
'title'] = $title;
234 case 'theme_installer':
236 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/theme_installer");
237 $contents[
'title'] = $title;
246 $contents[
'contents'] =
ossn_plugin_view($Ossn->adminSettingsPage[$pages[1]]);
247 $contents[
'title'] = $title;
254 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/cache");
255 $contents[
'title'] = $title;
261 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/adduser");
262 $contents[
'title'] = $title;
268 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/users/list");
269 $contents[
'title'] = $title;
273 case 'unvalidated_users':
274 $title =
ossn_print(
'admin:users:unvalidated');
275 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/users/unvalidated");
276 $contents[
'title'] = $title;
281 if (isset($pages[1])) {
285 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/user/edit", $user);
286 $contents[
'title'] = $title;
291 header(
'Content-Type: application/json');
295 echo json_encode($version);
314 $logout =
input(
'logout');
315 if($logout ==
'true'){
322 $contents[
'contents'] =
ossn_plugin_view(
"pages/administrator/contents/login");
323 $contents[
'title'] = $title;