Exemple #1
0
 *
 * Copyright (C) 2008-2009 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * Tagwords Page
 *
 * $Source: /cvs_backup/e107_0.8/e107_plugins/tagwords/tagwords.php,v $
 * $Revision$
 * $Date$
 * $Author$
 *
*/
if (!defined('e107_INIT')) {
    require_once '../../class2.php';
}
//$_GET = e107::getUrl()->parseRequest('tagwords', 'main', e_QUERY);
require_once HEADERF;
require_once e_PLUGIN . "tagwords/tagwords_class.php";
$tag = new tagwords();
//echo e107::getUrl()->create('tagwords/search/area', 'area=news&q=something');
if (varsettrue($tag->pref['tagwords_class']) && !check_class($tag->pref['tagwords_class'])) {
    header("location:" . SITEURL);
    exit;
}
if (varsettrue($_GET['q'])) {
    $tag->TagSearchResults();
} else {
    $tag->TagRender();
}
require_once FOOTERF;
<?php

/*
 * e107 website system
 *
 * Copyright (C) 2008-2013 e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * Tagwords Admin
 *
*/
require_once "../../class2.php";
if (!getperms("P")) {
    header("location:" . e_BASE . "index.php");
    exit;
}
require_once e_ADMIN . "auth.php";
require_once e_HANDLER . "userclass_class.php";
$mes = e107::getMessage();
require_once e_PLUGIN . "tagwords/tagwords_class.php";
$tag = new tagwords();
//update preferences
if (isset($_POST['updatesettings'])) {
    $tag->update_prefs();
    $mes->addSuccess(LAN_UPDATED);
}
$ns->tablerender($caption, $mes->render() . $text);
$tag->tagwords_options();
require_once e_ADMIN . "footer.php";
 * e107 website system
 *
 * Copyright (C) e107 Inc (e107.org)
 * Released under the terms and conditions of the
 * GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
 *
 * Tagwords Admin
 *
 * $URL$
 * $Id$
 *
*/
require_once "../../class2.php";
if (!getperms("P")) {
    header("location:" . e_BASE . "index.php");
    exit;
}
require_once e_ADMIN . "auth.php";
require_once e_HANDLER . "userclass_class.php";
require_once e_PLUGIN . "tagwords/tagwords_class.php";
$tag = new tagwords();
//update preferences
if (isset($_POST['updatesettings'])) {
    $tag->update_prefs();
    $message = LAN_TAG_ADMIN_1;
}
if (isset($message)) {
    $tag->show_message($message, $caption = '', $type = 'ns');
}
$tag->tagwords_options();
require_once e_ADMIN . "footer.php";