PageRenderTime 35ms CodeModel.GetById 26ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/class/xml/rpc/terms.php

https://gitlab.com/VoyaTrax/vtCMS
PHP | 66 lines | 46 code | 0 blank | 20 comment | 7 complexity | f893100bd09d172f3537a1b58cfead00 MD5 | raw file
 1<?php
 2/**
 3 * XOOPS common initialization file
 4 *
 5 * You may not change or alter any portion of this comment or credits
 6 * of supporting developers from this source code or any supporting source code
 7 * which is considered copyrighted (c) material of the original comment or credit authors.
 8 * This program is distributed in the hope that it will be useful,
 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 *
12 * @copyright       (c) 2000-2014 XOOPS Project (www.xoops.org)
13 * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
14 * @package kernel
15 * @version $Id$
16 */
17include dirname(__FILE__) . '/mainfile.php';
18include_once $GLOBALS['xoops']->path('header.php');
19global $xoopsConfig, $xoopsUser;
20if ($xoopsConfig['closesite'] == 1) { 
21  $allowed = false;
22  if (is_object($xoopsUser)) {
23    foreach ($xoopsUser->getGroups() as $group) {
24        if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) {
25            $allowed = true;
26            break;
27        }
28    }
29  }
30  if (!$allowed) { 
31    $GLOBALS['xoopsTpl']->assign( 'xoops_showlblock', 0 );
32    $GLOBALS['xoopsTpl']->assign( 'xoops_showrblock', 0 ); 
33    $GLOBALS['xoopsTpl']->assign( 'xoops_rblocks', array() );
34    $GLOBALS['xoopsTpl']->assign( 'xoops_lblocks', array() );
35    $GLOBALS['xoopsTpl']->assign( 'xoops_ccblocks', array() );
36    $GLOBALS['xoopsTpl']->assign( 'xoops_crblocks', array() );
37    $GLOBALS['xoopsTpl']->assign( 'xoops_clblocks', array() );
38  }
39}
40#include_once $GLOBALS['xoops']->path('/modules/system/constants.php');
41#$txtoutput = xoops_getConfigOption('terms', 'SYSTEM_CAT_TERMS');
42#$myts =& MyTextSanitizer::getInstance();
43#$txtoutput = $myts->displayTarea($txtoutput, 0, 1, 1, 1, 1);
44//echo "<pre>" . $txtoutput . "</pre>";
45?>
46<!-- HTML CONTENT-->
47<table width="100%" cellspacing="1" class="outer">
48  <tr>
49    <th><?php echo _TERMS; ?></th>
50  </tr>
51  <tr>
52<!--    <td class="odd" style="text-align:left;"><?php #echo $txtoutput; ?></td>-->
53   <td class="odd" style="text-align:left;"><?php echo '[en]This should contain default <ul>terms</ul> page. You need to go to terms.php and manually edit that. This is a temp. thing, we\'re working on doing this in the backend.[/en][de]Dies sollte standardmäßig ein <ul><Nutzungsbedingungen</ul> Seite enthalten. Sie müssen sich, zur ordner terms.php gehen und manuell bearbeiten. Dies ist eine temporäre Lösung. Wir arbeiten daran, dies zu bearbeiten im Backend.[/de]'; ?></td>
54  </tr>
55</table>
56<br>
57<table width="100%" cellspacing="0" class="outer">
58  <tr>
59 <!--   <td class="foot" style="font-weight:normal;" align="right"><span class="itemPoster"><?php //echo _MI_COPYRIGHT; ?></span></td>-->
60  </tr>
61</table>
62<br>
63<!-- END HTML CONTENT-->
64<?php
65include_once $GLOBALS['xoops']->path('footer.php');
66?>