View file help.php

File size: 2.77Kb
<?php
#############################################
# 0JXRgdC70Lgg0YLRiyDRh9C40YLQsNC10YjRjCDRj #
# dGC0L4g0YHQvtC+0LHRidC10L3QuNC1LCDQt9C90L #
# DRh9C40YIg0YLRiyDQvdC10LzQvdC+0LPQviDQt9C #
#          90LDQtdGI0YwgUEhQIQ==            #
#__---------------------------------------__#
#__        0JrQu9C40Log0JrQu9GD0LE=       __#
#  ---------------------------------------  #
# 0JDQstGC0L7RgCA6IE1vcmdhbg==              #
# SUNRIDog0L3QtSDRgdC60LDQttGDIHhE          #
#                                           #
#############################################

require 'inc/start.php';
require 'inc/regvars.php';
require 'inc/db.php';
require 'inc/config.php';
require 'inc/funct.php';
require 'inc/antidos.php';
require 'inc/gzip.php';
require 'inc/header.php';
$title = 'FAQ/Помощь';
require 'inc/head.php';


if(empty($_GET['page']))
{
echo '<div class="sec">
Помощь
</div><div class="vstavka">';

if($user_in_site==1 && $user_prof['admin']>=3)
{
echo '<div class="ad"><img src="/pic/add.png"/> <a href="/admin/pages.php?mode=add">Добавить страницу</a>  | <a href="/admin/pages.php?">Управление</a></div>
<br />
';
}

$res = query("SELECT id,name FROM `$db[prefix]pages` WHERE `viewed`='1' ORDER BY `date` DESC");
if(mysql_num_rows($res)>0)
{

while($page = mysql_fetch_array($res))
{
echo '<div class="ad"><img src="/pic/element.png"> <a href="help.php?page='.$page['id'].'">'.$page['name'].'</a></div>
';
}


}else{echo 'Страниц нет!<br />';}



}else
{
$get_page = obr($_GET['page'],'integer',11);
$res = query("SELECT name,text,auth FROM `$db[prefix]pages` WHERE `id`='$get_page' ");
if(mysql_num_rows($res)>0)
 {
$page = mysql_fetch_array($res);
 if($user_in_site==1 || $page['auth']==0)
  {
echo '<div class="sec">
'.$page['name'].'
</div><div class="vstavka">';

if($user_in_site==1 && $user_prof['admin']>=3)
{
echo '<div class="ad"><img src="/pic/add.png"/> <a href="/admin/pages.php?mode=add">Добавить страницу</a>  | <a href="/admin/pages.php?">Управление</a></div>
<br />
';
}

echo $page['text'];

if($user_in_site==1 && $user_prof['admin']>=3)
{
echo '<div ';
}

  }else{echo '<div class="vstavka">Эта страница доступна только <a href="/aut.php">авторизованным</a> пользователям.';}
 }else{location('help.php');}
}



if($user_in_site==1)
{
echo '<hr/>';
if(isset($page)) echo '..<a href="help.php">FAQ/Помощь</a><br />';
echo '.<a href="/menu/">Кабинет</a><br />';
}
require 'inc/foot.php';

################################################
# 0KHQutGA0LjQv9GCINC90LUg0L/QsNCx0LvQuNC6IQ== #
#   0KHRgtCw0LLRgNC+0L/QvtC70YwsIDIwMDkg0LMu   #
################################################

?>