~ubuntu-branches/ubuntu/wily/ldap-account-manager/wily

« back to all changes in this revision

Viewing changes to templates/help.php

  • Committer: Package Import Robot
  • Author(s): Roland Gruber
  • Date: 2015-03-31 18:56:30 UTC
  • mfrom: (1.2.27)
  • Revision ID: package-import@ubuntu.com-20150331185630-z7wvaw3la13snxxa
Tags: 4.9-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?php
2
2
/*
3
 
$Id: help.php 4679 2013-01-05 12:44:17Z gruberroland $
 
3
$Id: help.php 5530 2015-03-08 19:34:22Z gruberroland $
4
4
 
5
5
  This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/)
6
6
  Copyright (C) 2003 - 2006  Michael Duergner
7
 
                2008 - 2013  Roland Gruber
 
7
                2008 - 2015  Roland Gruber
8
8
 
9
9
  This program is free software; you can redistribute it and/or modify
10
10
  it under the terms of the GNU General Public License as published by
79
79
 * Print help site for a specific help number.
80
80
 * 
81
81
 * @param array The help entry that is to be displayed. 
82
 
 * @param array The help variables that are used to replace the spacer in the help text.
83
82
 */
84
 
function displayHelp($helpEntry,$helpVariables) {
 
83
function displayHelp($helpEntry) {
85
84
        echoHTMLHead();
86
85
        echo "          <h1 class=\"help\">" . $helpEntry['Headline'] . "</h1>\n";
87
86
        $format = "             <p class=\"help\">" . $helpEntry['Text'] . "</p>\n";
88
87
        if (isset($helpEntry['attr'])) {
89
88
                $format .= '<br><hr>' . _('Technical name') . ': <i>' . $helpEntry['attr'] . '</i>';
90
89
        }
91
 
        array_unshift($helpVariables,$format);
92
 
        call_user_func_array("printf",$helpVariables);
 
90
        echo $format;
93
91
        if(isset($helpEntry['SeeAlso']) && is_array($helpEntry['SeeAlso'])) {
94
92
                echo '          <p class="help">' . _('See also') . ': <a class="helpSeeAlso" href="' . $helpEntry['SeeAlso']['link'] . '">' . $helpEntry['SeeAlso']['text'] . '</a></p>';
95
93
        }
144
142
        }
145
143
}
146
144
 
147
 
$i = 1;
148
 
$moreVariables = true;
149
 
$helpVariables = array();
150
 
while($moreVariables) {
151
 
        if (isset($_GET['var' . $i])) {
152
 
                array_push($helpVariables, htmlspecialchars($_GET['var' . $i]));
153
 
                $i++;
154
 
        }
155
 
        else {
156
 
                $moreVariables = false;
157
 
        }
158
 
}
159
 
 
160
 
displayHelp($helpEntry,$helpVariables);
 
145
displayHelp($helpEntry);
161
146
 
162
147
?>
 
 
b'\\ No newline at end of file'