Example #1
0
function unsubscribe($forum, $thread, $user)
{
    BoincSubscription::delete($user->id, $thread->id);
    if (!BoincSubscription::lookup($user->id, $thread->id)) {
        page_head(tra("Unsubscription successful"));
        show_forum_header($user);
        show_title($forum, $thread);
        echo "<p>" . tra("You are no longer subscribed to %1. You will no longer receive notifications for this thread.", "<b>" . cleanup_title($thread->title) . "</b>");
    } else {
        page_head(tra("Unsubscription failed"));
        echo "<p>" . tra("We are currently unable to unsubscribe you from %1. Please try again later..", "<b>" . cleanup_title($thread->title) . "</b>");
    }
    echo "</p><p><br /><a href=\"forum_thread.php?id=" . $thread->id . "\">" . tra("Return to thread") . "</a></p>";
    page_tail();
}
Example #2
0
#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
show_title('Галерея аватаров');
if (is_user()) {
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            echo '<b>Выбрать</b> или <a href="avatars.php?act=load">Загрузить</a><br /><br />';
            $total = DB::run()->querySingle("SELECT count(*) FROM `avatars`;");
            if ($total > 0) {
                if ($start >= $total) {
                    $start = 0;
                }
                $queryav = DB::run()->query("SELECT * FROM `avatars` ORDER BY `avatars_id` ASC LIMIT " . $start . ", " . $config['avlist'] . ";");
                while ($data = $queryav->fetch()) {
                    echo '<img src="/images/avatars/' . $data['avatars_name'] . '" alt="" />
Example #3
0
<?php

#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
show_title('Регистрация');
if ($config['openreg'] == 1) {
    if (!is_user()) {
        if (empty($_SESSION['reguser'])) {
            switch ($act) {
                ############################################################################################
                ##                                    Главная страница                                    ##
                ############################################################################################
                case 'index':
                    echo 'Регистрация на сайте означает что вы ознакомлены и согласны с <b><a href="rules.php">правилами</a></b> нашего сайта<br />';
                    echo 'Длина логина или пароля должна быть от 3 до 20 символов<br />';
                    echo 'В полях логин и пароль разрешено использовать только знаки латинского алфавита и цифры, а также знак дефис!<br />';
                    if ($config['regkeys'] == 1 && !empty($config['regmail'])) {
                        echo '<img src="/images/img/warning.gif" alt="image" /> <span style="color:#ff0000"><b>Включено подтверждение регистрации!</b> Вам на почтовый ящик будет выслан мастер-ключ, который необходим для подтверждения регистрации!</span><br />';
                    }
                    if ($config['regkeys'] == 2) {
Example #4
0
<?php

##################################################################
# Karnaf HelpDesk System - Copyright (C) 2001-2015 Kobi Shmueli. #
# See the LICENSE file for more information.                     #
##################################################################
require_once "karnaf_header.php";
CheckOperSession();
$id = $_GET['id'];
if (empty($id) || !is_numeric($id)) {
    safe_die("Invalid Ticket ID!");
}
show_title("Ticket #" . $id);
make_menus("Karnaf (HelpDesk)");
$query = squery("SELECT t.id,t.randcode,t.status,t.description,t.unick,t.ufullname,t.uemail,t.uphone,t.uip,t.rep_u,\nt.rep_g,t.open_time,t.opened_by,t.is_real,t.is_private,t.email_upd,t.memo_upd,c1.name AS cat1_name,c2.name AS cat2_name,c3.name AS\ncat3_name,s.status_name,up.priority_name AS upriority,sp.priority_name AS priority,g.private_actions,t.merged_to,t.cc,up.priority_id \nAS upriority_id, sp.priority_id,t.ext1,t.ext2,t.ext3,t.title \nFROM (karnaf_tickets AS t INNER JOIN karnaf_cat3 AS c3 ON c3.id=t.cat3_id INNER JOIN karnaf_cat2 AS c2 ON c2.id=c3.parent\nINNER JOIN karnaf_cat1 AS c1 ON c1.id=c2.parent INNER JOIN karnaf_statuses AS s ON s.status_id=t.status INNER JOIN karnaf_priorities AS up ON\nup.priority_id=t.upriority INNER JOIN karnaf_priorities AS sp ON sp.priority_id=t.priority LEFT JOIN groups AS g ON g.name=t.rep_g) WHERE t.id=%d", $id);
if (!($result = sql_fetch_array($query))) {
    safe_die("Invalid Ticket ID!");
}
if (!IsGroupMember($result['rep_g']) && !IsKarnafAdminSession()) {
    AccessDenied("Ticket is assigned to another team.");
}
$autoload = 1;
if (isset($_GET['reassign'])) {
    $autoload = 5;
}
$autostatus = "";
if (isset($_POST['is_private']) && $_POST['is_private'] == "on") {
    $is_private = 1;
} else {
    $is_private = 0;
}
Example #5
0
             show_error('Ошибка! Неверный идентификатор сессии, повторите действие!');
         }
     } else {
         show_login('Вы не авторизованы, чтобы участвовать в голосованиях, необходимо');
     }
     echo '<img src="/images/img/back.gif" alt="image" /> <a href="index.php?act=poll&amp;id=' . $id . '">Вернуться</a><br />';
     echo '<img src="/images/img/reload.gif" alt="image" /> <a href="index.php">К голосованиям</a><br />';
     break;
     ############################################################################################
     ##                                      Голосование                                       ##
     ############################################################################################
 ############################################################################################
 ##                                      Голосование                                       ##
 ############################################################################################
 case 'voters':
     show_title('Последние проголосовавшие');
     $votes = DB::run()->queryFetch("SELECT * FROM `vote` WHERE `vote_id`=? LIMIT 1;", array($id));
     if (!empty($votes)) {
         $config['newtitle'] = $votes['vote_title'];
         echo '<img src="/images/img/stat.gif" alt="image" /> <b>' . $votes['vote_title'] . '</b> (Голосов: ' . $votes['vote_count'] . ')<br /><br />';
         $querypoll = DB::run()->query("SELECT `poll_user`, `poll_time` FROM `votepoll` WHERE `poll_vote_id`=? ORDER BY `poll_time` DESC LIMIT 20;", array($id));
         $polls = $querypoll->fetchAll();
         foreach ($polls as $poll) {
             echo user_gender($poll['poll_user']) . profile($poll['poll_user']) . ' (' . date_fixed($poll['poll_time']) . ')<br />';
         }
         echo '<br />';
     } else {
         show_error('Ошибка! Данного голосования не существует!');
     }
     echo '<img src="/images/img/back.gif" alt="image" /> <a href="index.php?act=poll&amp;id=' . $id . '">Вернуться</a><br />';
     echo '<img src="/images/img/reload.gif" alt="image" /> <a href="index.php">К голосованиям</a><br />';
Example #6
0
         $querytopic = DB::run()->query("SELECT `topics`.*, `forums_title` FROM `topics` LEFT JOIN `forums` ON `topics`.`topics_forums_id`=`forums`.`forums_id` ORDER BY `topics_last_time` DESC LIMIT " . $start . ", " . $config['forumtem'] . ";");
         $topics = $querytopic->fetchAll();
         render('forum/new_themes', array('topics' => $topics));
         page_strnavigation('new.php?act=themes&amp;', $config['forumtem'], $start, $total);
     } else {
         show_error('Созданных тем еще нет!');
     }
     break;
     ############################################################################################
     ##                                  Последние сообщения                                   ##
     ############################################################################################
 ############################################################################################
 ##                                  Последние сообщения                                   ##
 ############################################################################################
 case 'posts':
     show_title('Список последних сообщений');
     $total = DB::run()->querySingle("SELECT count(*) FROM `posts`;");
     if ($total > 0) {
         if ($total > 100) {
             $total = 100;
         }
         if ($start >= $total) {
             $start = last_page($total, $config['forumpost']);
         }
         $querypost = DB::run()->query("SELECT `posts`.*, `topics_title`, `topics_posts` FROM `posts` LEFT JOIN `topics` ON `posts`.`posts_topics_id`=`topics`.`topics_id` ORDER BY `posts_time` DESC LIMIT " . $start . ", " . $config['forumpost'] . ";");
         $posts = $querypost->fetchAll();
         render('forum/new_posts', array('posts' => $posts, 'start' => $start));
         page_strnavigation('new.php?act=posts&amp;', $config['forumpost'], $start, $total);
     } else {
         show_error('Сообщений еще нет!');
     }
Example #7
0
<?php

##################################################################
# Karnaf HelpDesk System - Copyright (C) 2001-2015 Kobi Shmueli. #
# See the LICENSE file for more information.                     #
##################################################################
$title = "New Ticket";
require_once "karnaf_header.php";
show_title("New Ticket");
if (IsKarnafOperSession()) {
    $isoper = 1;
} else {
    $isoper = 0;
}
if (isset($_POST['cat3'])) {
    if ($isoper) {
        $uip = $_POST['uip'];
    } else {
        $uip = get_session_ip();
    }
    $randstr = RandomNumber(10);
    $priority = 0;
    $rep_u = "";
    /* It would make sense to have the helpdesk team get tickets by default (unless the category assigns them to another team) */
    $rep_g = KARNAF_DEFAULT_GROUP;
    $query = squery("SELECT id,name,default_group,default_priority FROM karnaf_cat3 WHERE id=%d", $_POST['cat3']);
    if ($result = sql_fetch_array($query)) {
        if (!empty($result['default_group'])) {
            $rep_g = $result['default_group'];
        }
        $priority = (int) $result['default_priority'];
Example #8
0
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
if (function_exists('set_time_limit')) {
    set_time_limit(600);
}
if (isset($_GET['act'])) {
    $act = check($_GET['act']);
} else {
    $act = 'index';
}
if (is_admin(array(101))) {
    show_title('Backup базы данных');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            $globfiles = glob(DATADIR . "/backup/*.{zip,gz,bz2,sql}", GLOB_BRACE);
            $total = count($globfiles);
            if (is_array($globfiles) && $total > 0) {
                arsort($globfiles);
                foreach ($globfiles as $value) {
                    echo '<img src="/images/img/zip.gif" alt="image" /> <b>' . basename($value) . '</b> (' . read_file($value) . ') (<a href="backup.php?act=del&amp;backup=' . basename($value) . '&amp;uid=' . $_SESSION['token'] . '">Удалить</a>)<br />';
                }
                echo '<br />Всего бэкапов: <b>' . $total . '</b><br /><br />';
            } else {
                show_error('Бэкапов еще нет!');
Example #9
0
#          ********* ROTORCMS *********               #
#              Made by  :  VANTUZ                     #
#               E-mail  :  visavi.net@mail.ru         #
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$rand = mt_rand(100, 999);
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
show_title('Наперстки');
if (is_user()) {
    switch ($act) {
        # ###########################################################################################
        # #                                    Главная страница                                    ##
        # ###########################################################################################
        case "index":
            echo '<img src="/images/naperstki/1.gif" alt="image" /><br /><br />';
            echo '<b><a href="/games/naperstki.php?act=choice">Играть</a></b><br /><br />';
            echo 'В наличии: ' . moneys($udata['users_money']) . '<br /><br />';
            echo '<img src="/images/img/faq.gif" alt="image" /> <a href="/games/naperstki.php?act=faq">Правила</a><br />';
            break;
            # ###########################################################################################
            # #                                     Выбор наперстка                                    ##
            # ###########################################################################################
        # ###########################################################################################
Example #10
0
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/" . $config['themes'] . "/index.php";
if (isset($_GET['action'])) {
    $action = check($_GET['action']);
} else {
    $action = "";
}
show_title('partners.gif', 'Восстановление пароля');
if (!is_user()) {
    ############################################################################################
    ##                                    Главная страница                                    ##
    ############################################################################################
    if ($action == "") {
        if (isset($_COOKIE['cookname'])) {
            $cookname = check($_COOKIE['cookname']);
        } else {
            $cookname = "";
        }
        echo 'Введите свой логин и код для проверки<br />';
        echo 'Инструкция по восстановлению будет выслана на электронный адрес указанный в профиле<br />';
        echo 'Восстанавливать пароль можно не чаще чем раз в 12 часов<br /><br />';
        echo '<form method="post" action="lostpassword.php?action=send&amp;' . SID . '">';
        echo 'Логин:<br />';
Example #11
0
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">

<?php 
echo show_title($_GET[id]);
?>

<link rel="stylesheet" href="/styles/all.css">
<script src="/scripts/scripts.js"></script>
<script src="/scripts/dd_menu.js"></script>
<script src="/scripts/banner.js"></script>

<script type="text/javascript" src="/scripts/jquery-1.9.0.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="/scripts/autocomplete.js"></script>

<script type="text/javascript" src="/scripts/prototype.js"></script>
<script type="text/javascript" src="/scripts/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="/scripts/lightbox.js"></script>

<link rel="stylesheet" href="/styles/lightbox.css" type="text/css" media="screen" />

<link rel="icon" type="image/png" href="tool.png" />
<link rel="shortcut icon" href="tool.png"  type="image/png">
</head>
<body>
<center>

<table id="Table_Top" width="100%" border="0" cellpadding="0" height="100%" style="min-height:100%" cellspacing="0" align="center">
<tr valign="top" height="83px">
Example #12
0
    $start = abs(intval($_GET['start']));
} else {
    $start = 0;
}
if (isset($_GET['id'])) {
    $id = abs(intval($_GET['id']));
} else {
    $id = 0;
}
if (isset($_GET['type'])) {
    $type = abs(intval($_GET['type']));
} else {
    $type = 0;
}
if (is_admin(array(101, 102))) {
    show_title('Предложения и проблемы');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            $type2 = empty($type) ? 1 : 0;
            $total = DB::run()->querySingle("SELECT count(*) FROM `offers` WHERE `offers_type`=?;", array($type));
            $total2 = DB::run()->querySingle("SELECT count(*) FROM `offers` WHERE `offers_type`=?;", array($type2));
            echo '<img src="/images/img/document.gif" alt="image" /> ';
            if (empty($type)) {
                echo '<b>Предложения</b> (' . $total . ') / <a href="offers.php?type=1">Проблемы</a> (' . $total2 . ')';
            } else {
                echo '<a href="offers.php?type=0">Предложения</a> (' . $total2 . ') / <b>Проблемы</b> (' . $total . ')';
            }
            echo ' / <a href="/pages/offers.php?type=' . $type . '&amp;start=' . $start . '">Обзор</a><hr />';
Example #13
0
<?php

#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
show_title('Кто-где');
$total = DB::run()->querySingle("SELECT count(*) FROM `visit`;");
if ($total > 0) {
    if ($total > $config['lastusers']) {
        $total = $config['lastusers'];
    }
    if ($start >= $total) {
        $start = 0;
    }
    $queryvisit = DB::run()->query("SELECT * FROM `visit` ORDER BY `visit_nowtime` DESC LIMIT " . $start . ", " . $config['showuser'] . ";");
    while ($data = $queryvisit->fetch()) {
        if (SITETIME - $data['visit_nowtime'] < 600) {
            $lastvisit = '<span style="color:#00ff00">Oнлайн</span>';
        } else {
            $lastvisit = formattime(SITETIME - $data['visit_nowtime'], 0) . ' назад';
        }
Example #14
0
    $act = check($_GET['act']);
} else {
    $act = 'index';
}
if (isset($_GET['start'])) {
    $start = abs(intval($_GET['start']));
} else {
    $start = 0;
}
if (isset($_GET['id'])) {
    $id = abs(intval($_GET['id']));
} else {
    $id = 0;
}
if (is_admin()) {
    show_title('Просмотр новых файлов');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            $total = DB::run()->querySingle("SELECT count(*) FROM `downs` WHERE `downs_active`=?;", array(0));
            if ($total > 0) {
                if ($start >= $total) {
                    $start = 0;
                }
                $querynew = DB::run()->query("SELECT `downs`.*, `cats_name` FROM `downs` LEFT JOIN `cats` ON `downs`.`downs_cats_id`=`cats`.`cats_id` WHERE `downs_active`=? ORDER BY `downs_app` DESC, `downs_time` DESC  LIMIT " . $start . ", " . $config['downlist'] . ";", array(0));
                echo '<form action="newload.php?act=deldown&amp;start=' . $start . '&amp;uid=' . $_SESSION['token'] . '" method="post">';
                while ($data = $querynew->fetch()) {
                    echo '<div class="b">';
                    echo '<input type="checkbox" name="del[]" value="' . $data['downs_id'] . '" /> ';
Example #15
0
    $id = abs(intval($_GET['id']));
} else {
    $id = 0;
}
if (isset($_GET['cid'])) {
    $cid = abs(intval($_GET['cid']));
} else {
    $cid = 0;
}
if (isset($_GET['start'])) {
    $start = abs(intval($_GET['start']));
} else {
    $start = 0;
}
if (is_admin()) {
    show_title('Управление блогами');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            $queryblog = DB::run()->query("SELECT * FROM `catsblog` ORDER BY `cats_order` ASC;");
            $blogs = $queryblog->fetchAll();
            if (count($blogs) > 0) {
                foreach ($blogs as $data) {
                    echo '<img src="/images/img/dir.gif" alt="image" /> ';
                    echo '<b>' . $data['cats_order'] . '. <a href="blog.php?act=blog&amp;cid=' . $data['cats_id'] . '">' . $data['cats_name'] . '</a></b> (' . $data['cats_count'] . ')<br />';
                    if (is_admin(array(101))) {
                        echo '<a href="blog.php?act=editcats&amp;cid=' . $data['cats_id'] . '">Редактировать</a> / ';
                        echo '<a href="blog.php?act=prodelcats&amp;cid=' . $data['cats_id'] . '">Удалить</a>';
                    }
Example #16
0
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/" . $config['themes'] . "/index.php";
if (isset($_GET['start'])) {
    $start = (int) $_GET['start'];
} else {
    $start = 0;
}
show_title('partners.gif', 'Новости сайта');
$file = file(DATADIR . "news.dat");
$file = array_reverse($file);
$total = count($file);
if ($total > 0) {
    if ($start < 0 || $start > $total) {
        $start = 0;
    }
    if ($total < $start + $config['postnews']) {
        $end = $total;
    } else {
        $end = $start + $config['postnews'];
    }
    for ($i = $start; $i < $end; $i++) {
        $data = explode("|", $file[$i]);
        echo '<div class="b"><img src="../images/img/files.gif" alt="image" /> ';
Example #17
0
<?php

require_once "data/setting.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html>
<head>
<title><?php 
show_content_area('WebSite Name');
?>
 &raquo; <?php 
show_title();
?>
</title>
<meta name="description" content="NanoCMS is the smallest text file based cms written in php. As the nano name suggests the cms is really tiny, small,elegant, easy to use interface. You can create saperate pages and also sidebar content pages. The sidebar links are added automatically" />
<meta name="keywords" content="NanoCMS, nano, cms, tiny, small, easy to use, easy, free, opensource, easy, interface, pages, static, dynamic content, beginners" />
<meta name="author" content="Kalyan Chakravarthy" />
<link rel="stylesheet" type="text/css" href="style.css" />
<?php 
runTweak('head');
?>
</head>
<body>
<div id="wrapper">

  <div id="header">
    <h1><?php 
show_content_area('WebSite Name');
?>
</h1>
    <h2><?php 
Example #18
0
#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
if (is_admin(array(101, 102, 103))) {
    show_title('История банов');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            $total = DB::run()->querySingle("SELECT COUNT(*) FROM `banhist`;");
            if ($total > 0) {
                if ($start >= $total) {
                    $start = 0;
                }
                $queryhist = DB::run()->query("SELECT * FROM `banhist` ORDER BY `ban_time` DESC LIMIT " . $start . ", " . $config['listbanhist'] . ";");
                echo '<form action="banhist.php?act=del&amp;start=' . $start . '&amp;uid=' . $_SESSION['token'] . '" method="post">';
                while ($data = $queryhist->fetch()) {
                    echo '<div class="b">';
                    echo '<div class="img">' . user_avatars($data['ban_user']) . '</div>';
Example #19
0
<?php

#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
show_title('Онлайн пользователей');
$daytime = date("d", SITETIME);
$montime = date("d.m", SITETIME);
echo '<div class="b"><b>Пользователи онлайн:</b></div>';
$allonline = allonline();
$total = count($allonline);
if ($total > 0) {
    foreach ($allonline as $key => $value) {
        $comma = empty($key) ? '' : ', ';
        echo $comma . user_gender($value) . '<b>' . profile($value) . '</b>';
    }
    echo '<br />Всего пользователей: ' . $total . ' чел.<br /><br />';
} else {
    show_error('Зарегистированных пользователей нет!');
}
echo '<div class="b"><b>Поздравляем именинников:</b></div>';
$queryuser = DB::run()->query("SELECT `users_login` FROM `users` WHERE substr(`users_birthday`,1,5)=?;", array($montime));
Example #20
0
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
if (isset($_GET['act'])) {
    $act = check($_GET['act']);
} else {
    $act = 'index';
}
show_title('Бан пользователя');
if (is_user()) {
    if ($udata['users_ban'] == 1) {
        if ($udata['users_timeban'] > SITETIME) {
            switch ($act) {
                ############################################################################################
                ##                                    Главная страница                                    ##
                ############################################################################################
                case 'index':
                    echo '<img src="/images/img/error.gif" alt="image" /> <b>Вас забанили</b><br /><br />';
                    echo '<b><span style="color:#ff0000">Причина бана: ' . bb_code($udata['users_reasonban']) . '</span></b><br /><br />';
                    echo 'До окончания бана осталось <b>' . formattime($udata['users_timeban'] - SITETIME) . '</b><br /><br />';
                    echo 'Чтобы не терять время зря, рекомендуем вам ознакомиться с <b><a href="/pages/rules.php">Правилами сайта</a></b><br /><br />';
                    echo 'Общее число строгих нарушений: <b>' . $udata['users_totalban'] . '</b><br />';
                    echo 'Внимание, максимальное количество нарушений: <b>5</b><br />';
                    echo 'При превышении лимита нарушений ваш профиль автоматически удаляется<br />';
Example #21
0
         } else {
             show_error('Ошибка! Файл уже загружен!');
         }
     } else {
         show_error('Данного файла не существует!');
     }
     echo '<img src="/images/img/back.gif" alt="image" /> <a href="load.php?act=editdown&amp;id=' . $id . '">Вернуться</a><br />';
     break;
     ############################################################################################
     ##                                   Загрузка скриншота                                   ##
     ############################################################################################
 ############################################################################################
 ##                                   Загрузка скриншота                                   ##
 ############################################################################################
 case 'loadscreen':
     show_title('Загрузка скриншота');
     $down = DB::run()->queryFetch("SELECT `downs`.*, `cats`.* FROM `downs` LEFT JOIN `cats` ON `downs`.`downs_cats_id`=`cats`.`cats_id` WHERE `downs_id`=? LIMIT 1;", array($id));
     if (!empty($down)) {
         if (empty($down['downs_screen'])) {
             if (is_uploaded_file($_FILES['screen']['tmp_name'])) {
                 // ------------------------------------------------------//
                 $handle = upload_image($_FILES['screen'], $config['screenupload'], $config['screenupsize'], $down['downs_link']);
                 if ($handle) {
                     $folder = $down['folder'] ? $down['folder'] . '/' : '';
                     $handle->process(BASEDIR . '/load/screen/' . $folder);
                     if ($handle->processed) {
                         DB::run()->query("UPDATE `downs` SET `downs_screen`=? WHERE `downs_id`=?;", array($handle->file_dst_name, $id));
                         $handle->clean();
                         $_SESSION['note'] = 'Скриншот успешно загружен!';
                         redirect("load.php?act=editdown&id={$id}");
                     } else {
Example #22
0
         $querytopic = DB::run()->query("SELECT `topics`.*, `forums_title` FROM `topics` LEFT JOIN `forums` ON `topics`.`topics_forums_id`=`forums`.`forums_id` WHERE `topics_author`=? ORDER BY `topics_last_time` DESC LIMIT " . $start . ", " . $config['forumtem'] . ";", array($uz));
         $topics = $querytopic->fetchAll();
         render('forum/active_themes', array('topics' => $topics));
         page_strnavigation('active.php?act=themes&amp;uz=' . $uz . '&amp;', $config['forumtem'], $start, $total);
     } else {
         show_error('Созданных тем не найдено!');
     }
     break;
     ############################################################################################
     ##                                     Вывод сообщений                                    ##
     ############################################################################################
 ############################################################################################
 ##                                     Вывод сообщений                                    ##
 ############################################################################################
 case 'posts':
     show_title('Список всех сообщений ' . $uz);
     $total = DB::run()->querySingle("SELECT count(*) FROM `posts` WHERE `posts_user`=?;", array($uz));
     if ($total > 0) {
         if ($start >= $total) {
             $start = last_page($total, $config['forumpost']);
         }
         $querypost = DB::run()->query("SELECT `posts`.*, `topics_title` FROM `posts` LEFT JOIN `topics` ON `posts`.`posts_topics_id`=`topics`.`topics_id` WHERE `posts_user`=? ORDER BY `posts_time` DESC LIMIT " . $start . ", " . $config['forumpost'] . ";", array($uz));
         $posts = $querypost->fetchAll();
         render('forum/active_posts', array('posts' => $posts, 'user' => $uz, 'start' => $start));
         page_strnavigation('active.php?act=posts&amp;uz=' . $uz . '&amp;', $config['forumpost'], $start, $total);
     } else {
         show_error('Сообщения не найдены!');
     }
     break;
     ############################################################################################
     ##                                    Удаление сообщений                                  ##
Example #23
0
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$config['spamlist'] = 10;
if (isset($_GET['act'])) {
    $act = check($_GET['act']);
} else {
    $act = 'forum';
}
if (isset($_GET['start'])) {
    $start = abs(intval($_GET['start']));
} else {
    $start = 0;
}
if (is_admin(array(101, 102, 103))) {
    show_title('Список жалоб');
    switch ($act) {
        ############################################################################################
        ##                                         Форум                                          ##
        ############################################################################################
        case 'forum':
            $total = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(1));
            $totalguest = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(2));
            $totalpriv = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(3));
            $totalwall = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(4));
            $totalload = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(5));
            $totalblog = DB::run()->querySingle("SELECT count(*) FROM `spam` WHERE `spam_key`=?;", array(6));
            echo '<b>Форум</b> (' . $total . ') / <a href="spam.php?act=guest">Гостевая (' . $totalguest . ')</a> / <a href="spam.php?act=privat">Приват (' . $totalpriv . ')</a> / <a href="spam.php?act=wall">Стена</a> (' . $totalwall . ') / <a href="spam.php?act=load">Загрузки</a> (' . $totalload . ') / <a href="spam.php?act=blog">Блоги</a> (' . $totalblog . ')<br /><br />';
            if ($total > 0) {
                if ($start >= $total) {
                    $start = 0;
Example #24
0
#---------------------------------------------#
#      ********* RotorCMS *********           #
#           Author  :  Vantuz                 #
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
$act = isset($_GET['act']) ? check($_GET['act']) : 'index';
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
show_title('Реклама на сайте');
if (!empty($config['rekusershow'])) {
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            if (is_user()) {
                if ($udata['users_point'] >= 50) {
                    $total = DBM::run()->count('rekuser', array('rek_time' => array('>', SITETIME)));
                    if ($total < $config['rekusertotal']) {
                        $rekuser = DBM::run()->selectFirst('rekuser', array('rek_user' => $log, 'rek_time' => array('>', SITETIME)));
                        if (empty($rekuser)) {
                            echo 'У вас в наличии: <b>' . moneys($udata['users_money']) . '</b><br /><br />';
                            echo '<div class="form">';
                            echo '<form method="post" action="reklama.php?act=add&amp;uid=' . $_SESSION['token'] . '">';
Example #25
0
             }
             echo '</div>';
         }
         page_strnavigation('comments.php?', $config['postgallery'], $start, $total);
     } else {
         show_error('Комментариев еще нет!');
     }
     break;
     ############################################################################################
     ##                                  Вывод комментариев                                    ##
     ############################################################################################
 ############################################################################################
 ##                                  Вывод комментариев                                    ##
 ############################################################################################
 case 'comments':
     show_title('Список всех комментариев ' . nickname($uz));
     $total = DB::run()->querySingle("SELECT count(*) FROM `commphoto` WHERE `commphoto_user`=?;", array($uz));
     if ($total > 0) {
         if ($start >= $total) {
             $start = last_page($total, $config['postgallery']);
         }
         $page = floor(1 + $start / $config['postgallery']);
         $config['newtitle'] = 'Список всех комментариев ' . nickname($uz) . ' (Стр. ' . $page . ')';
         $querycomm = DB::run()->query("SELECT `commphoto`.*, `photo_title` FROM `commphoto` LEFT JOIN `photo` ON `commphoto`.`commphoto_gid`=`photo`.`photo_id` WHERE `commphoto_user`=? ORDER BY `commphoto_time` DESC LIMIT " . $start . ", " . $config['postgallery'] . ";", array($uz));
         while ($data = $querycomm->fetch()) {
             echo '<div class="b"><img src="/images/img/balloon.gif" alt="image" /> <b><a href="comments.php?act=viewcomm&amp;gid=' . $data['commphoto_gid'] . '&amp;cid=' . $data['commphoto_id'] . '">' . $data['photo_title'] . '</a></b>';
             if (is_admin()) {
                 echo ' — <a href="comments.php?act=del&amp;id=' . $data['commphoto_id'] . '&amp;uz=' . $uz . '&amp;start=' . $start . '&amp;uid=' . $_SESSION['token'] . '">Удалить</a>';
             }
             echo '</div>';
             echo '<div>' . bb_code($data['commphoto_text']) . '<br />';
Example #26
0
$start = isset($_GET['start']) ? abs(intval($_GET['start'])) : 0;
$sort = isset($_GET['sort']) ? check($_GET['sort']) : 'load';
switch ($sort) {
    case 'rated':
        $order = 'downs_rated';
        break;
    case 'comm':
        $order = 'downs_comments';
        break;
    default:
        $order = 'downs_load';
}
############################################################################################
##                                       Топ тем                                          ##
############################################################################################
show_title('Топ популярных файлов');
echo '<a href="#down"><img src="/images/img/downs.gif" alt="Вниз" /></a> ';
echo 'Сортировать: ';
if ($order == 'downs_load') {
    echo '<b>Скачивания</b> / ';
} else {
    echo '<a href="top.php?sort=load">Скачивания</a> / ';
}
if ($order == 'downs_rated') {
    echo '<b>Оценки</b> / ';
} else {
    echo '<a href="top.php?sort=rated">Оценки</a> / ';
}
if ($order == 'downs_comments') {
    echo '<b>Комментарии</b>';
} else {
Example #27
0
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title><?php 
echo show_title();
?>
</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="<?php 
echo site_url('themes/default/css/style.css');
?>
" type="text/css" media="all" />
<link rel="stylesheet" id="sitestyle" href="<?php 
get_theme_style();
?>
" type="text/css" media="all" />
<link rel="stylesheet" href="<?php 
echo $this->load->theme_css('print');
?>
" type="text/css" media="print" />

<script type="text/javascript" src="<?php 
echo site_url('themes/default/js/jquery.1.7.2 .min.js');
?>
"></script>
<script type="text/javascript" src="<?php 
echo site_url('themes/default/js/jquery-ui-1.9.1.custom.min.js');
?>
Example #28
0
         $blogs = $queryblogs->fetchAll();
         render('blog/active_blogs', array('blogs' => $blogs));
         page_strnavigation('active.php?act=blogs&amp;uz=' . $uz . '&amp;', $config['blogpost'], $start, $total);
         echo 'Всего статей: <b>' . $total . '</b><br /><br />';
     } else {
         show_error('Статей еще нет!');
     }
     break;
     ############################################################################################
     ##                                     Вывод сообщений                                    ##
     ############################################################################################
 ############################################################################################
 ##                                     Вывод сообщений                                    ##
 ############################################################################################
 case 'comments':
     show_title('Список всех комментариев ' . $uz);
     $total = DB::run()->querySingle("SELECT count(*) FROM `commblog` WHERE `commblog_author`=?;", array($uz));
     if ($total > 0) {
         if ($start >= $total) {
             $start = last_page($total, $config['blogpost']);
         }
         $is_admin = is_admin();
         $querycomments = DB::run()->query("SELECT `commblog`.*, `blogs_title`, `blogs_comments` FROM `commblog` LEFT JOIN `blogs` ON `commblog`.`commblog_blog`=`blogs`.`blogs_id` WHERE `commblog_author`=? ORDER BY `commblog_time` DESC LIMIT " . $start . ", " . $config['blogpost'] . ";", array($uz));
         $comments = $querycomments->fetchAll();
         render('blog/active_comments', array('comments' => $comments, 'start' => $start));
         page_strnavigation('active.php?act=comments&amp;uz=' . $uz . '&amp;', $config['blogpost'], $start, $total);
     } else {
         show_error('Комментарии не найдены!');
     }
     break;
     ############################################################################################
Example #29
0
#                 Site  :  http://pizdec.ru           #
#             WAP-Site  :  http://visavi.net          #
#                  ICQ  :  36-44-66                   #
#  Вы не имеете право вносить изменения в код скрипта #
#        для его дальнейшего распространения          #
#-----------------------------------------------------#
require_once "../includes/start.php";
require_once "../includes/functions.php";
require_once "../includes/header.php";
include_once "../themes/" . $config['themes'] . "/index.php";
if (isset($_GET['action'])) {
    $action = check($_GET['action']);
} else {
    $action = "";
}
show_title('partners.gif', 'Здоровье');
if (is_user()) {
    if ($udata[55] == 1) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        if ($action == "") {
            echo 'В наличии: ' . moneys($udata[41]) . '<br />';
            echo 'Уровень здоровья: <b>' . (int) $udata[56] . '</b>%<br />';
            echo '<img src="../gallery/grafic.php?rat=' . (int) $udata[56] . '&amp;imgs=1" alt="image" /><br /><br />';
            if ($udata[61] < SITETIME) {
                echo 'Вы можете увеличить уровень разными способами<br /><br />';
                echo '<img src="../images/img/plus.gif" alt="image" /> <b><a href="health.php?action=operacia&amp;pred=0&amp;' . SID . '">Покопаться в мусорке</a></b> (Бесплатно)<br />';
                echo '(Увеличивает твое здоровье всего на 1%, если повезет что-то там найти, утоляет голод на 1 час)<br /><br />';
                echo '<img src="../images/img/plus.gif" alt="image" /> <b><a href="health.php?action=operacia&amp;pred=1&amp;' . SID . '">Выпить пива</a></b> (Цена: ' . moneys(100) . ')<br />';
                echo '(Увеличивает ваше здоровье на 3%, самая дешевая цена, утоляет голод на 2 часа)<br /><br />';
Example #30
0
#            Email  :  visavi.net@mail.ru     #
#             Site  :  http://visavi.net      #
#              ICQ  :  36-44-66               #
#            Skype  :  vantuzilla             #
#---------------------------------------------#
require_once '../includes/start.php';
require_once '../includes/functions.php';
require_once '../includes/header.php';
include_once '../themes/header.php';
if (isset($_GET['act'])) {
    $act = check($_GET['act']);
} else {
    $act = 'index';
}
if (is_admin(array(101)) && $log == $config['nickname']) {
    show_title('Очистка базы юзеров');
    switch ($act) {
        ############################################################################################
        ##                                    Главная страница                                    ##
        ############################################################################################
        case 'index':
            echo 'Удалить пользователей которые не посещали сайт:<br />';
            echo '<div class="form">';
            echo '<form action="delusers.php?act=poddel" method="post">';
            echo 'Период:<br />';
            echo '<select name="deldate">';
            echo '<option value="1080">3 года</option>';
            echo '<option value="900">2.5 года</option>';
            echo '<option value="720">2 года</option>';
            echo '<option value="560">1.5 года</option>';
            echo '<option value="360">1 год</option>';