Ejemplo n.º 1
0
    }
} else {
    $order_sql = "`date` DESC";
}
//Выводим список людей
if ($_GET['page'] > 0) {
    $page = intval($_GET['page']);
} else {
    $page = 1;
}
$gcount = 20;
$limit_page = ($page - 1) * $gcount;
$sql_ = $db->super_query("SELECT tb1.id, title, date, traf, real_admin, del, ban, rec_num, tb2.user_name FROM `" . PREFIX . "_communities` tb1, `" . PREFIX . "_users` tb2 WHERE tb1.real_admin = tb2.user_id {$where_sql} ORDER by {$order_sql} LIMIT {$limit_page}, {$gcount}", 1);
//Кол-во людей считаем
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `" . PREFIX . "_communities` WHERE id != '' {$where_sql}");
$selsorlist = installationSelected($sort, '<option value="1">по алфавиту</option><option value="2">по дате создания</option><option value="3">по количеству участников</option><option value="4">по количеству записей на стене</option><option value="5">только с фото</option>');
echo <<<HTML
<style type="text/css" media="all">
.inpu{width:300px;}
textarea{width:300px;height:100px;}
</style>

<form action="controlpanel.php" method="GET">

<input type="hidden" name="mod" value="groups" />

<div class="fllogall">Поиск по ID сообщества:</div>
 <input type="text" name="se_uid" class="inpu" value="{$se_uid}" />
<div class="mgcler"></div>

<div class="fllogall">Поиск по названию:</div>
Ejemplo n.º 2
0
<div class="fllogall">SMTP порт:</div><input type="text" name="save[smtp_port]" class="inpu" value="{$config['smtp_port']}" /><div class="mgcler"></div>

<div class="fllogall">SMTP Имя Пользователя:</div><input type="text" name="save[smtp_user]" class="inpu" value="{$config['smtp_user']}" /><div class="mgcler"></div>

<div class="fllogall">SMTP Пароль:</div><input type="text" name="save[smtp_pass]" class="inpu" value="{$config['smtp_pass']}" /><div class="mgcler"></div>
HTML;
    //Настройки E-mail оповещаний
    echohtmlstart('Настройки E-Mail оповещаний');
    $for_select_news_mail_1 = installationSelected($config['news_mail_1'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_2 = installationSelected($config['news_mail_2'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_3 = installationSelected($config['news_mail_3'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_4 = installationSelected($config['news_mail_4'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_5 = installationSelected($config['news_mail_5'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_6 = installationSelected($config['news_mail_6'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_7 = installationSelected($config['news_mail_7'], '<option value="yes">Да</option><option value="no">Нет</option>');
    $for_select_news_mail_8 = installationSelected($config['news_mail_8'], '<option value="yes">Да</option><option value="no">Нет</option>');
    echo <<<HTML

<div class="fllogall">Включить уведомление при новой заявки в друзья:</div><select name="save[news_mail_1]" class="inpu" style="width:auto">{$for_select_news_mail_1}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при ответе на запись:</div><select name="save[news_mail_2]" class="inpu" style="width:auto">{$for_select_news_mail_2}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при комментировании видео:</div><select name="save[news_mail_3]" class="inpu" style="width:auto">{$for_select_news_mail_3}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при комментировании фото:</div><select name="save[news_mail_4]" class="inpu" style="width:auto">{$for_select_news_mail_4}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при комментировании заметки:</div><select name="save[news_mail_5]" class="inpu" style="width:auto">{$for_select_news_mail_5}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при новом подарке:</div><select name="save[news_mail_6]" class="inpu" style="width:auto">{$for_select_news_mail_6}</select><div class="mgcler"></div>

<div class="fllogall">Включить уведомление при новой записи на стене:</div><select name="save[news_mail_7]" class="inpu" style="width:auto">{$for_select_news_mail_7}</select><div class="mgcler"></div>
Ejemplo n.º 3
0
} else {
    $tpl->set_block("'\\[search-tab\\](.*?)\\[/search-tab\\]'si", "");
}
//################## Загружаем Страны ##################//
$sql_country = $db->super_query("SELECT SQL_CALC_FOUND_ROWS * FROM `" . PREFIX . "_country` ORDER by `name` ASC", true, "country", true);
foreach ($sql_country as $row_country) {
    $all_country .= '<option value="' . $row_country['id'] . '">' . stripslashes($row_country['name']) . '</option>';
}
$tpl->set('{country}', installationSelected($country, $all_country));
//################## Загружаем Города ##################//
if ($type == 1) {
    $sql_city = $db->super_query("SELECT SQL_CALC_FOUND_ROWS id, name FROM `" . PREFIX . "_city` WHERE id_country = '{$country}' ORDER by `name` ASC", true, "country_city_" . $country, true);
    foreach ($sql_city as $row2) {
        $all_city .= '<option value="' . $row2['id'] . '">' . stripslashes($row2['name']) . '</option>';
    }
    $tpl->set('{city}', installationSelected($city, $all_city));
}
$tpl->compile('info');
//Загружаем шаблон на вывод если он есть одного юзера и выводим
if ($sql_) {
    //Если критерий поиск "по людям"
    if ($type == 1) {
        $tpl->load_template('search/result_people.tpl');
        foreach ($sql_ as $row) {
            if ($row['user_real']) {
                $tpl->set('{user_real}', ' <div class="search_verified" title="Подтверждённая страница"></div>');
            } else {
                $tpl->set('{user_real}', '');
            }
            if ($row['user_paid']) {
                $tpl->set('{user_paid}', ' <div class="search_paid" title="Официальный спонсор скайпача"></div>');
Ejemplo n.º 4
0
        $order_sql = "`user_search_pref` ASC";
    } else {
        if ($sort == 2) {
            $order_sql = "`user_reg_date` ASC";
        } else {
            if ($sort == 3) {
                $order_sql = "`user_last_visit` DESC";
            } else {
                $order_sql = "`user_reg_date` DESC";
            }
        }
    }
} else {
    $order_sql = "`user_reg_date` DESC";
}
$selsorlist = installationSelected($sort, '<option value="1">по алфавиту</option><option value="2">по дате регистрации</option><option value="3">по дате посещения</option>');
//Выводим список людей
if ($_GET['page'] > 0) {
    $page = intval($_GET['page']);
} else {
    $page = 1;
}
$gcount = 20;
$limit_page = ($page - 1) * $gcount;
$sql_ = $db->super_query("SELECT user_group, user_search_pref, user_id, user_reg_date, user_last_visit, user_email, user_delet, user_ban, user_balance FROM `" . PREFIX . "_users`  {$where_sql} ORDER by {$order_sql} LIMIT {$limit_page}, {$gcount}", 1);
//Кол-во людей считаем
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `" . PREFIX . "_users` {$where_sql}");
echo <<<HTML
<style type="text/css" media="all">
.inpu{width:300px;}
textarea{width:300px;height:100px;}
Ejemplo n.º 5
0
 $tpl->set('{sex}', installationSelected($row['user_sex'], '<option value="1">мужской</option><option value="2">женский</option>'));
 $tpl->set('{user-day}', installationSelected($row['user_day'], '<option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option><option value="11">11</option><option value="12">12</option><option value="13">13</option><option value="14">14</option><option value="15">15</option><option value="16">16</option><option value="17">17</option><option value="18">18</option><option value="19">19</option><option value="20">20</option><option value="21">21</option><option value="22">22</option><option value="23">23</option><option value="24">24</option><option value="25">25</option><option value="26">26</option><option value="27">27</option><option value="28">28</option><option value="29">29</option><option value="30">30</option><option value="31">31</option>'));
 $tpl->set('{user-month}', installationSelected($row['user_month'], '<option value="1">Января</option><option value="2">Февраля</option><option value="3">Марта</option><option value="4">Апреля</option><option value="5">Мая</option><option value="6">Июня</option><option value="7">Июля</option><option value="8">Августа</option><option value="9">Сентября</option><option value="10">Октября</option><option value="11">Ноября</option><option value="12">Декабря</option>'));
 $tpl->set('{user-year}', installationSelected($row['user_year'], '<option value="1930">1930</option><option value="1931">1931</option><option value="1932">1932</option><option value="1933">1933</option><option value="1934">1934</option><option value="1935">1935</option><option value="1936">1936</option><option value="1937">1937</option><option value="1938">1938</option><option value="1939">1939</option><option value="1940">1940</option><option value="1941">1941</option><option value="1942">1942</option><option value="1943">1943</option><option value="1944">1944</option><option value="1945">1945</option><option value="1946">1946</option><option value="1947">1947</option><option value="1948">1948</option><option value="1949">1949</option><option value="1950">1950</option><option value="1951">1951</option><option value="1952">1952</option><option value="1953">1953</option><option value="1954">1954</option><option value="1955">1955</option><option value="1956">1956</option><option value="1957">1957</option><option value="1958">1958</option><option value="1959">1959</option><option value="1960">1960</option><option value="1961">1961</option><option value="1962">1962</option><option value="1963">1963</option><option value="1964">1964</option><option value="1965">1965</option><option value="1966">1966</option><option value="1967">1967</option><option value="1968">1968</option><option value="1969">1969</option><option value="1970">1970</option><option value="1971">1971</option><option value="1972">1972</option><option value="1973">1973</option><option value="1974">1974</option><option value="1975">1975</option><option value="1976">1976</option><option value="1977">1977</option><option value="1978">1978</option><option value="1979">1979</option><option value="1980">1980</option><option value="1981">1981</option><option value="1982">1982</option><option value="1983">1983</option><option value="1984">1984</option><option value="1985">1985</option><option value="1986">1986</option><option value="1987">1987</option><option value="1988">1988</option><option value="1989">1989</option><option value="1990">1990</option><option value="1991">1991</option><option value="1992">1992</option><option value="1993">1993</option><option value="1994">1994</option><option value="1995">1995</option><option value="1996">1996</option><option value="1997">1997</option><option value="1998">1998</option><option value="1999">1999</option><option value="2000">2000</option><option value="2001">2001</option><option value="2002">2002</option><option value="2003">2003</option><option value="2004">2004</option><option value="2005">2005</option><option value="2006">2006</option><option value="2007">2007</option>'));
 //################## Загружаем Страны ##################//
 $sql_country = $db->super_query("SELECT SQL_CALC_FOUND_ROWS * FROM `" . PREFIX . "_country` ORDER by `name` ASC", true, "country", true);
 foreach ($sql_country as $row_country) {
     $all_country .= '<option value="' . $row_country['id'] . '">' . stripslashes($row_country['name']) . '</option>';
 }
 $tpl->set('{country}', installationSelected($row['user_country'], $all_country));
 //################## Загружаем Города ##################//
 $sql_city = $db->super_query("SELECT SQL_CALC_FOUND_ROWS id, name FROM `" . PREFIX . "_city` WHERE id_country = '{$row['user_country']}' ORDER by `name` ASC", true, "country_city_" . $row['user_country'], true);
 foreach ($sql_city as $row2) {
     $all_city .= '<option value="' . $row2['id'] . '">' . stripslashes($row2['name']) . '</option>';
 }
 $tpl->set('{city}', installationSelected($row['user_city'], $all_city));
 $user_sp = explode('|', $row['user_sp']);
 if ($user_sp[1]) {
     $rowSp = $db->super_query("SELECT user_search_pref FROM `" . PREFIX . "_users` WHERE user_id = '{$user_sp[1]}'");
     $tpl->set('{sp-name}', $rowSp['user_search_pref']);
     $tpl->set_block("'\\[sp\\](.*?)\\[/sp\\]'si", "");
     if ($row['user_sex'] == 1) {
         if ($user_sp[0] == 2) {
             $tpl->set('{sp-text}', 'Подруга:');
         } elseif ($user_sp[0] == 3) {
             $tpl->set('{sp-text}', 'Невеста:');
         } else {
             if ($user_sp[0] == 4) {
                 $tpl->set('{sp-text}', 'Жена:');
             } else {
                 if ($user_sp[0] == 5) {
Ejemplo n.º 6
0
        $order_sql = "`title` ASC";
    } else {
        if ($sort == 2) {
            $order_sql = "`date` ASC";
        } else {
            if ($sort == 3) {
                $order_sql = "`comm_num` DESC";
            } else {
                $order_sql = "`date` DESC";
            }
        }
    }
} else {
    $order_sql = "`date` DESC";
}
$selsorlist = installationSelected($sort, '<option value="1">по алфавиту</option><option value="2">по дате добавления</option><option value="3">по количеству комментариев</option>');
//Выводим список людей
if ($_GET['page'] > 0) {
    $page = intval($_GET['page']);
} else {
    $page = 1;
}
$gcount = 20;
$limit_page = ($page - 1) * $gcount;
$sql_ = $db->super_query("SELECT tb1.id, title, date, comm_num, owner_user_id, tb2.user_name FROM `" . PREFIX . "_notes` tb1, `" . PREFIX . "_users` tb2 WHERE tb1.owner_user_id = tb2.user_id {$where_sql} ORDER by {$order_sql} LIMIT {$limit_page}, {$gcount}", 1);
//Кол-во людей считаем
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `" . PREFIX . "_notes` WHERE id != '' {$where_sql}");
echo <<<HTML
<style type="text/css" media="all">
.inpu{width:300px;}
textarea{width:300px;height:100px;}
Ejemplo n.º 7
0
        $where_sql .= "AND type = '" . $type . "' ";
    }
}
//Выводим список
if ($_GET['page'] > 0) {
    $page = intval($_GET['page']);
} else {
    $page = 1;
}
$gcount = 20;
$limit_page = ($page - 1) * $gcount;
$sql_ = $db->super_query("SELECT tb1.id, ruser_id, act, type, text, mid, date, tb2.user_search_pref FROM `" . PREFIX . "_report` tb1, `" . PREFIX . "_users` tb2 WHERE tb1.ruser_id = tb2.user_id " . $where_sql . " ORDER by `date` DESC LIMIT " . $limit_page . ", " . $gcount, 1);
//Кол-во считаем
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `" . PREFIX . "_report` WHERE id != '' " . $where_sql);
$act_type = installationSelected($act, '<option value="1">Фотографии</option><option value="2">Видеозаписи</option><option value="3">Заметки</option><option value="4">Записи</option>');
$selsorlist_type = installationSelected($type, '<option value="1">Материал для взрослых</opyion><option value="2">Детская порнография</opyion><option value="3">Эктремизм</opyion><option value="4">Насилие</opyion><option value="5">Пропаганда наркотиков</opyion>');
echo <<<HTML
<script type="text/javascript" src="/system/inc/js/jquery.js"></script>
<script type="text/javascript">
function del(act, id, i){
\t\$('#loading').fadeIn('fast');
\t\$.post('?mod=report&action=obj', {act_post: act, aid: id}, function(d){
\t\t\$('#loading').fadeOut('fast');
\t\t\$('#'+i).html('Удалено').attr('onClick', '');
\t});
}
function del_rep(id){
\t\$('#loading').fadeIn('fast');
\t\$.post('?mod=report&action=del', {id: id}, function(d){
\t\t\$('#loading').fadeOut('fast');
\t\t\$('#r'+id).html('Жалоба удалена');
Ejemplo n.º 8
0
    }
} else {
    $order_sql = "`adate` DESC";
}
//Выводим список людей
if ($_GET['page'] > 0) {
    $page = intval($_GET['page']);
} else {
    $page = 1;
}
$gcount = 20;
$limit_page = ($page - 1) * $gcount;
$sql_ = $db->super_query("SELECT tb1.aid, artist, name, adate, auser_id, tb2.user_name FROM `" . PREFIX . "_audio` tb1, `" . PREFIX . "_users` tb2 WHERE tb1.auser_id = tb2.user_id {$where_sql} ORDER by {$order_sql} LIMIT {$limit_page}, {$gcount}", 1);
//Кол-во людей считаем
$numRows = $db->super_query("SELECT COUNT(*) AS cnt FROM `" . PREFIX . "_audio` WHERE aid != '' {$where_sql}");
$selsorlist = installationSelected($sort, '<option value="1">по алфавиту</option><option value="2">по дате добавления</option>');
echo <<<HTML
<style type="text/css" media="all">
.inpu{width:300px;}
textarea{width:300px;height:100px;}
</style>

<form action="controlpanel.php" method="GET">

<input type="hidden" name="mod" value="musics" />

<div class="fllogall">Поиск по ID аудиозаписи:</div>
 <input type="text" name="se_uid" class="inpu" value="{$se_uid}" />
<div class="mgcler"></div>

<div class="fllogall">Поиск по названию:</div>