示例#1
0
include GLPI_ROOT . "/inc/includes.php";
// Redirect management
if (isset($_GET["redirect"])) {
    manageRedirect($_GET["redirect"]);
}
//*******************
// Affichage Module FAQ
//******************
$name = "";
checkFaqAccess();
if (getLoginUserID()) {
    helpHeader($LANG['Menu'][20], $_SERVER['PHP_SELF'], $_SESSION["glpiname"]);
} else {
    $_SESSION["glpilanguage"] = $CFG_GLPI['language'];
    // Anonymous FAQ
    simpleHeader($LANG['Menu'][20], array($LANG['Menu'][20] => $_SERVER['PHP_SELF']));
}
if (!isset($_GET["contains"])) {
    $_GET["contains"] = "";
}
if (!isset($_GET["knowbaseitemcategories_id"])) {
    $_GET["knowbaseitemcategories_id"] = 0;
}
if (isset($_GET["id"])) {
    $kb = new KnowbaseItem();
    if ($kb->getFromDB($_GET["id"])) {
        $kb->showFull(false);
    }
} else {
    KnowbaseItem::searchForm($_GET, 1);
    KnowbaseItemCategory::showFirstLevel($_GET, 1);
示例#2
0
 }
 $url = 'http://' . $_SERVER['HTTP_HOST'] . $uri;
 $urlq = $url . '?' . http_build_query($_GET);
 $uname = $upath . $fname;
 // URL pathname
 // Parse URL query options
 $debug = getGetBool('debug', false);
 // Shows output of conversion command, including errors
 // Determine output format
 // There are several repeated patterns that could be made into subroutines.
 if (in_array(strtolower($format), $textFormatAliases)) {
     header('Content-type: text/plain; charset=utf-8');
     readfile($mdFile);
 } elseif ($format == 'nav') {
     header('Content-type: text/html; charset=utf-8');
     simpleHeader('Navigating : ' . dirname($uname), $headerExtras, $cssURL);
     if (file_exists($bannerFile)) {
         readfile($bannerFile);
         echo '<hr />';
     }
     $includeFiles = getGetBool('files', false);
     $recurse = getGetBool('recurse', false);
     $tree = makeNavTree(dirname($mdFile), $includeFiles, $recurse);
     echo '<h1>Navigate to:</h1>' . PHP_EOL;
     $crumbs = genCrumbString($upath, $isIndex, $homeWeb, true, false, false);
     echo '<p>' . $crumbs . ' &gt; </p>' . PHP_EOL;
     echo '<div id="tree">';
     echo $tree;
     echo '</div>';
     simpleFooter();
     exit;
  You should have received a copy of the GNU Affero General Public License
  along with Behaviors. If not, see <http://www.gnu.org/licenses/>.

  ------------------------------------------------------------------------

  @package   Plugin Monitoring for GLPI
  @author    David Durieux
  @co-author 
  @comment   
  @copyright Copyright (c) 2011-2012 Plugin Monitoring for GLPI team
  @license   AGPL License 3.0 or (at your option) any later version
             http://www.gnu.org/licenses/agpl-3.0-standalone.html
  @link      https://forge.indepnet.net/projects/monitoring/
  @since     2011

  ------------------------------------------------------------------------
*/
define('GLPI_ROOT', '../../..');
include GLPI_ROOT . "/inc/includes.php";
PluginMonitoringProfile::checkRight("componentscatalog", 'w');
simpleHeader($LANG['plugin_monitoring']['title'][0]);
if (isset($_POST['update'])) {
    $pmNetworkport = new PluginMonitoringNetworkport();
    //   $pmComponentscatalog_rule = new PluginMonitoringComponentscatalog_rule();
    //   $networkEquipment = new NetworkEquipment();
    $pmNetworkport->updateNetworkports();
    //   $networkEquipment->getFromDB($_POST['items_id']);
    //   $pmComponentscatalog_rule->isThisItemCheckRuleNetworkport($networkEquipment);
    glpi_header($_SERVER['HTTP_REFERER']);
}
commonFooter();
示例#4
0
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with GLPI; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--------------------------------------------------------------------------
*/
// ----------------------------------------------------------------------
// Original Author of file:
// Purpose of file:
// ----------------------------------------------------------------------
define('GLPI_ROOT', '..');
include GLPI_ROOT . "/inc/includes.php";
$user = new User();
// Manage lost password
simpleHeader($LANG['users'][3]);
if (!$CFG_GLPI['use_mailing']) {
    exit;
}
if (isset($_REQUEST['token'])) {
    if (isset($_REQUEST['email'])) {
        $user->updateForgottenPassword($_REQUEST);
    } else {
        User::showPasswordForgetChangeForm($_REQUEST['token']);
    }
} else {
    if (isset($_REQUEST['email'])) {
        $user->forgetPassword($_REQUEST['email']);
    } else {
        User::showPasswordForgetRequestForm();
    }