Exemple #1
0
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects_offers_answers.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/op_codes.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/rating.php";
if ($uid) {
    $op_codes = new op_codes();
    $opcodes = $op_codes->getCodes('80,16,65');
    if ($paid_specs = professions::getPaidSpecs($uid)) {
        $paid_spec_cnt = count($paid_specs);
    }
    $free_spec_cnt = is_pro() ? 5 : 1;
    $spec_cnt = $paid_spec_cnt + $free_spec_cnt;
    $paid_spec_price = $opcodes[professions::OP_PAID_SPEC]['sum'] * $paid_spec_cnt;
    $poa = new projects_offers_answers();
    $poa->GetInfo($uid);
    $poa_codes = $poa->GetOpCodes();
    $user = new freelancer();
    // Изменяем авто продление PRO, если нужно
    if (strtolower($_GET['pro_auto_prolong']) == 'on') {
        $user->setPROAutoProlong('on', $uid);
    }
    if (strtolower($_GET['pro_auto_prolong']) == 'off') {
        $user->setPROAutoProlong('off', $uid);
    }
    $user->GetUser($_SESSION['login']);
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/account.php";
    $account = new account();
    $ok = $account->GetInfo($uid, true);
    $u_is_pro_auto_prolong = $user->GetField($uid, $e, 'is_pro_auto_prolong', false);
    // Включено ли у юзера автоматическое продление PRO
    require_once $_SERVER['DOCUMENT_ROOT'] . "/xajax/professions.common.php";
Exemple #2
0
<?php

$g_page_id = "0|9";
$rpath = "../";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/smail.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/projects_offers_answers.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/payed.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/professions.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/account.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/rating.php";
session_start();
$uid = get_uid(false);
$account = new account();
$answers = new projects_offers_answers();
$op_codes = $answers->GetOpCodes();
$action = trim($_POST['action']);
if (!$action) {
    header("Location: ./");
}
$payed = new payed();
$tr_id = __paramInit('int', NULL, 'transaction_id');
$answer_pay = __paramInit('bool', NULL, 'answer_pay');
$spec_pay = __paramInit('bool', NULL, 'spec_pay');
$spec_prolong = __paramInit('bool', NULL, 'prolong_specs');
if ($spec_prolong) {
    return;
    // #0022795
    if ($err = professions::prolongSpecs($uid)) {
        $error['prolong_specs'] = $err;
    }
    $answer_pay = null;
Exemple #3
0
" <?php 
echo $kind == 2 || $kind == 7 ? 'data-menu-opener="true" data-menu-descriptor="nav"' : '';
?>
><a class="b-menu__link" href="/konkurs/">Конкурсы</a></li>
                </ul>
            </div><!-- b-menu_tabs -->
            
    </div><!--b-page__filter-->
    <?php 
// блок ответов на проекты
if (get_uid(0) && !is_emp() && !is_pro()) {
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/projects_offers_answers.php';
    $user_answers = new projects_offers_answers();
    $user_answers->GetInfo($_SESSION['uid']);
    $free_answers = $user_answers->free_offers;
    $op_codes = $user_answers->GetOpCodes();
    $is_block_pro = true;
    include TPL_ANSWERS_DIR . '/tpl.answers-item.php';
}
?>
<!--<div class="b-page__lenta <?php 
echo $cls;
?>
">-->
    <div class="b-page__lenta ">
        <?php 
if ($kind == 8) {
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer_offers.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/country.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/city.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/teams.php';