2011-04-16 19:49:57 +04:00
|
|
|
<?php
|
|
|
|
|
2011-04-17 14:20:28 +04:00
|
|
|
OC_APP::register( array( "order" => 1, "id" => "help", "name" => "Help" ));
|
2011-04-17 22:00:07 +04:00
|
|
|
|
|
|
|
// Workaround for having help as the last entry always
|
2011-04-17 22:11:28 +04:00
|
|
|
$entry = array( "id" => "help", "order" => 1000, "href" => OC_HELPER::linkTo( "help", "index.php" ), "name" => "Help", "icon" => OC_HELPER::imagePath( "help", "help.png" ));
|
2011-04-18 11:30:37 +04:00
|
|
|
if( isset( $_SESSION["user_id"] ) && OC_GROUP::inGroup( $_SESSION["user_id"], "admin" )){
|
2011-04-17 22:00:07 +04:00
|
|
|
OC_APP::addAdminPage( $entry );
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
OC_APP::addSettingsPage( $entry );
|
|
|
|
}
|
2011-04-16 19:49:57 +04:00
|
|
|
|
|
|
|
?>
|