Esempio n. 1
0
 public static function getPrice()
 {
     return isProfi() ? self::PRICE_FRONT_DISCOUNT : self::PRICE_FRONT;
 }
Esempio n. 2
0
 /**
  * Поучить список доступный услуг по ПРО и/или ПРОФИ
  * 
  * @param type $is_emp
  * @return type
  */
 static function getAvailablePayedList($is_emp = false)
 {
     $payed = self::getPayedPROList($is_emp ? 'emp' : 'frl');
     if (!$is_emp && isAllowProfi()) {
         $payed = isProfi() ? self::getPayedPROFIList() : array_merge($payed, self::getPayedPROFIList());
     }
     return $payed;
 }
Esempio n. 3
0
$g_page_id = '0|9';
$rpath = '../';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/blogs_payed.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/account.php';
$stretch_page = true;
$showMainDiv = true;
$footer_payed = true;
$no_banner = true;
session_start();
$uid = get_uid(false);
if ($uid && substr($_SESSION['role'], 0, 1) == 1) {
    header('Location: /payed-emp/');
    exit;
} elseif (isProfi()) {
    $content = 'content.disabled.php';
} else {
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/freelancer.php';
    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';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/payed.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/billing.php';
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/wallet/wallet.php';
    $js_file = array('payed.js', 'billing.js');
    $user = new freelancer();
    // Изменяем авто продление PRO, если нужно
    if (strtolower($_POST['pro_auto_prolong']) == 'on') {
        $user->setPROAutoProlong('on', $uid);
Esempio n. 4
0
                     <td class="b-layout__td">
                     </td>
                  </tr>
               </table>
<?php 
    $pay = current(payed::getPayedPROFIList());
    if ($pay) {
        ?>
               <a class="b-button b-button_flat b-button_flat_green b-button_flat_big __ga__pro__frl_buy" 
                  href="javascript:void(0)" 
                  onclick="<?php 
        echo "quickPRO_show(); \$('quick_pro_f_item_" . $pay['opcode'] . "').set('checked', 'true'); quickPRO_select(\$('quick_pro_f_item_" . $pay['opcode'] . "'));";
        ?>
">
                   <?php 
        if (isProfi()) {
            ?>
                        Продлить PROFI за 5990 руб.
                   <?php 
        } else {
            ?>
                        Стать PROFI за 5990 руб.
                   <?php 
        }
        ?>
               </a>
               <div class="b-layout__txt b-layout__txt_fontsize_11 b-layout__txt_padtop_10 b-layout__txt_padbot_10">
                   Цена указана за 1 месяц действия аккаунта. Неиспользованные дни действующего PRO будут добавлены к сроку действия PROFI (из расчета 1 день PROFI = 13 дней PRO).
               </div>
<?php 
    }