- Timestamp:
- 09/16/07 21:08:11 (14 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
admin/index.php (modified) (1 diff)
-
common/mvblog_admin.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/index.php
r574 r646 94 94 case "edit_plugin_setting" : $admin->edit_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 95 95 case "save_plugin_setting" : $admin->save_plugin_setting($_REQUEST["plugin"], $_REQUEST); break; 96 case "show_about" : $admin->show_about(); break; 96 97 default : $admin->show_index(); break; 97 98 } -
trunk/common/mvblog_admin.php
r644 r646 106 106 $this->_selected_submenuitem = "menuitems"; 107 107 break; 108 case "show_about" : 109 $this->_selected_menuitem = "index"; 110 $this->_selected_submenuitem = "about"; 111 break; 108 112 default : 109 113 $this->_selected_menuitem = "index"; 114 $this->_selected_submenuitem = "index"; 110 115 break; 111 116 } 112 } else 117 } else { 113 118 $this->_selected_menuitem = "index"; 119 $this->_selected_submenuitem = "index"; 120 } 114 121 } 115 122 /* }}} */ … … 302 309 } 303 310 /* }}} */ 311 /* show_about {{{ */ 312 /** 313 * Show information about the current version etc. 314 */ 315 public function show_about() { 316 /* gather some info we want to show */ 317 $mvblogversion = $this->version; 318 if (array_key_exists("dbversion", $this->settings)) 319 $dbversion = $this->settings["dbversion"]; 320 else 321 $dbversion = gettext("Unknown"); 322 if (array_key_exists("webroot", $this->settings)) 323 $webroot = $this->settings["webroot"]; 324 else 325 $webroot = gettext("Unknown"); 326 if (is_array($this->active_plugins)) 327 $active_plugins = implode(", ", $this->active_plugins); 328 else 329 $active_plugins = gettext("None"); 330 ?> 331 <p class="first"> 332 <h2>Information about this MvBlog instance</h2> 333 MvBlog version: <?php echo $mvblogversion; ?><br /> 334 Database version: <?php echo $dbversion; ?><br /> 335 Active plugins: <?php echo $active_plugins; ?> <br /> 336 </p> 337 <p class="first"> 338 MvBlog is created by Michiel van Baak <michiel@mvblog.org><br /> 339 With the help of Leonieke Aalders, Sofie van Tendeloo en Ferry Boender.<br /> 340 Besides those 3 contributers others have helped as well, but those 3 were there from the beginning<br /> 341 and without them this project would never be this far.<br /><br /> 342 For more information please visit <a href="http://www.mvblog.org">www.mvblog.org</a><br /> 343 For documentation please go to the <a href="http://dev.mvblog.org/wiki/EndUserDocumentation">wiki</a><br /> 344 If you found a bug or need a new feature please report it on <a href="http://dev.mvblog.org">the developement website</a>. 345 </p> 346 <?php 347 } 348 /* }}} */ 304 349 /* show_admin_menu {{{ */ 305 350 /** … … 340 385 <a class="if_submenu_item<?php if ($this->_selected_submenuitem == "settings") { echo "_act"; } ?>" href="./index.php?action=show_settings"><?php echo gettext("Settings"); ?></a> 341 386 <a class="if_submenu_item<?php if ($this->_selected_submenuitem == "menuitems") { echo "_act"; } ?>" href="./index.php?action=show_menuitems"><?php echo gettext("Menuitems"); ?></a> 387 <?php 388 break; 389 case "index" : 390 ?> 391 <a class="if_submenu_item<?php if ($this->_selected_submenuitem == "index") { echo "_act"; } ?>" href="./index.php"><?php echo gettext("Main"); ?></a> 392 <a class="if_submenu_item<?php if ($this->_selected_submenuitem == "about") { echo "_act"; } ?>" href="./index.php?action=show_about"><?php echo gettext("About"); ?></a> 342 393 <?php 343 394 break;
