diff options
Diffstat (limited to 'help')
-rw-r--r-- | help/index.php | 21 | ||||
-rw-r--r-- | help/templates/index.php | 18 |
2 files changed, 20 insertions, 19 deletions
diff --git a/help/index.php b/help/index.php index dafbd05cf33..fe20c1c4ab5 100644 --- a/help/index.php +++ b/help/index.php @@ -8,27 +8,12 @@ if( !OC_USER::isLoggedIn()){ } OC_APP::setActiveNavigationEntry( "help" ); -$settings = array(); -// Do the work ... -if( $_POST["submit"] ) -{ - if( $_POST["newpassword"] != $_POST["newpasswordconfirm"] ){ - // Say "Passwords not equal" - } - else{ - if( OC_USER::checkPassword( $_SESSION["username"], $_POST["password"] )){ - // Set password - OC_USER::setPassord( $_SESSION["username"], $_POST["newpassword"] ); - } - else{ - // Say "old password bad" - } - } -} +$kbe=OC_OCSCLIENT::getKnownledgebaseEntries(); + $tmpl = new OC_TEMPLATE( "help", "index", "user" ); -$tmpl->assign( "settings", $settings ); +$tmpl->assign( "kbe", $kbe ); $tmpl->printPage(); ?> diff --git a/help/templates/index.php b/help/templates/index.php index 19b0fa8e7fa..89674e01874 100644 --- a/help/templates/index.php +++ b/help/templates/index.php @@ -1 +1,17 @@ -This is self-explanatory. Why are you here? +<?php +/* + * Template for settings page + */ +?> +<h1>Help</h1> + +<table cellspacing="0"> + <tbody> + <?php foreach($_["kbe"] as $kb): ?> + <tr> + <td width="1"><?php if($kb["preview"] <> "") { echo('<a href="'.OC_HELPER::linkTo( "help", "index.php" ).'?id='.$kb['id'].'"><img class="preview" border="0" src="'.$kb["preview"].'" /></a>'); } ?> </a></td> + <td class="name"><a href="<?php echo(OC_HELPER::linkTo( "help", "index.php" ).'?id='.$kb['id']); ?>" title=""><?php echo $kb["name"]; ?></a><br /><?php echo('<span class="type">'.$kb['description'].'</span>'); ?></td> + </tr> + <?php endforeach; ?> + </tbody> +</table> |