Ejemplo n.º 1
0
 public function process_event(&$event)
 {
     $r = FALSE;
     switch ($event->type) {
         case 'memcache_delete':
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/memBuff.php';
             $memBuff = new memBuff();
             $memBuff->delete($event->data['key']);
             $r = TRUE;
             break;
         case 'memcache_flush_group':
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/memBuff.php';
             $memBuff = new memBuff();
             $memBuff->flushGroup($event->data['key']);
             $r = TRUE;
             break;
         case 'static_compress.createBatchBySeed':
             $GLOBALS['DEBUG_VAR'] = array();
             require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
             $memBuff = new memBuff();
             $memBuff->set('eto.kostyl.inache.tupit.set.v.createBatch', 1, 1);
             $stc = new static_compress();
             $r = !($error = $stc->createBatchBySeed($event->data['seed']));
             break;
     }
     if ($event->type) {
         $this->log->notice("Function {$event->type}... " . ($r ? 'Success' : 'Error ' . $error));
         $this->log->notice(base64_decode($event->data['seed']));
         $this->log->notice(var_export($GLOBALS['DEBUG_VAR']));
     }
     return PGQ_EVENT_OK;
 }
Ejemplo n.º 2
0
return;
//}
if (!defined('IN_STDF')) {
    return '';
}
if (!$page_title) {
    $page_title = 'Удаленная работа (фри-ланс) на FL.ru';
}
if (!$page_keyw) {
    $page_keyw = 'работа, ищу работу, поиск работы, удаленная работа, фри-ланс';
}
if (!$page_descr) {
    $page_descr = 'FL.ru это профессиональный ресурс, предназначенный для поиска работы или исполнителя (фрилансера) на удаленную работу (фри-ланс).';
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
$stc = new static_compress();
$_promo_block = !(isset($_COOKIE['nfastpromo']) && strstr($_COOKIE['nfastpromo'], 'close'));
if ($_SESSION['uid'] && $_promo_block) {
    $_promo_block = $_SESSION['promo_block_hide'] == '0' ? false : true;
}
/*@mark_0013129*/
$page_keyw = $page_title;
$page_descr = $page_title;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
    <head>
        <meta name="description" lang="ru" content="<?php 
echo $page_descr;
?>
" />
Ejemplo n.º 3
0
            $maxLen = 25;
            // сокращаем название файла, сохраняя расширение
            if (strlen($name) > $maxLen) {
                $arr = explode('.', $name);
                $ext = array_pop($arr);
                $name = preg_replace("/.{$ext}\$/", '', $name);
                $name = substr($name, 0, $maxLen) . '...';
                $name = $name . '.' . $ext;
            }
            $js_callback_func = "parent.upload.view('{$name}', '{$link}', '{$id_upload}')";
        }
        break;
    default:
        break;
}
$stc = new static_compress();
?>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
  <?php 
$stc->Add('/scripts/warning.js');
?>
  <?php 
$stc->Send();
?>
</head>

<body onload="<?php 
echo !$err ? $js_callback_func : ($js_error_callback_func ? $js_error_callback_func : ($js_callback_err_func ? $js_callback_err_func : "parent.alert('{$err}')"));
Ejemplo n.º 4
0
            $maxLen = 25;
            // сокращаем название файла, сохраняя расширение
            if (strlen($name) > $maxLen) {
                $arr = explode('.', $name);
                $ext = array_pop($arr);
                $name = preg_replace("/.{$ext}\$/", '', $name);
                $name = substr($name, 0, $maxLen) . '...';
                $name = $name . '.' . $ext;
            }
            $js_callback_func = "parent.upload.view('{$name}', '{$link}', '{$id_upload}')";
        }
        break;
    default:
        break;
}
$stc = new static_compress();
?>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
  <?php 
$stc->Add("/scripts/warning.js");
?>
  <?php 
$stc->Send();
?>
</head>

<body onload="<?php 
echo !$err ? $js_callback_func : ($js_error_callback_func ? $js_error_callback_func : ($js_callback_err_func ? $js_callback_err_func : "parent.alert('{$err}')"));
Ejemplo n.º 5
0
<?php

define('IS_SITE_ADMIN', 1);
require_once "../../classes/config.php";
require_once "../../classes/users.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php";
session_start();
get_uid();
$DB = new DB('master');
if (!(hasPermissions('adm') && hasPermissions('users'))) {
    header("Location: /404.php");
    exit;
}
$stc = new static_compress();
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html> 
<head> 
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> 
	<title>Последние 10 IP</title> 
	<?php 
$stc->Send();
?>
	</head> 
 
<body bgcolor="#FFFFFF" text="#000000"> 
<strong>Последние 10 e-mail: <?php 
echo htmlspecialchars($_GET['usurname']);
?>
 <?php 
Ejemplo n.º 6
0
    if ($prj_kind == 7) {
        if ($error || !$pictname) {
            echo "\n\t\t\t\t-- IBox --\n\t\t\t\t<uploaded>\n\t\t\t\t\t<nothing>opera</nothing>\n\t\t\t\t\t<status>error</status>\n\t\t\t\t\t<message>{$err}</message>\n\t\t\t\t\t<time>" . date('Добавлено d.m.Y в H:i', time()) . "</time>\n\t\t\t\t</uploaded>\n\t\t\t\t-- IBox --\n\t\t\t";
        } else {
            if ($prevname) {
                $_SESSION['contest_files'][$mid] = array('prev_id' => $img->id, 'orig_name' => $_FILES['ps_attach']['name']);
                echo "\n\t\t\t\t-- IBox --\n\t\t\t\t<uploaded>\n\t\t\t\t\t<nothing>opera</nothing>\n\t\t\t\t\t<status>success</status>\n\t\t\t\t\t<fileid>u{$mid}</fileid>\n\t\t\t\t\t<preview>" . WDCPREFIX . "/users/{$dir}/upload/{$prevname}</preview>\n\t\t\t\t\t<filename>" . WDCPREFIX . "/users/{$dir}/upload/{$pictname}</filename>\n\t\t\t\t\t<time>" . date('Добавлено d.m.Y в H:i', time()) . "</time>\n\t\t\t\t</uploaded>\n\t\t\t\t-- IBox --\n\t\t\t";
            } else {
                $_SESSION['contest_files'][$mid] = array('orig_name' => $_FILES['ps_attach']['name']);
                echo "\n\t\t\t\t-- IBox --\n\t\t\t\t<uploaded>\n\t\t\t\t\t<nothing>opera</nothing>\n\t\t\t\t\t<status>success</status>\n\t\t\t\t\t<fileid>u{$mid}</fileid>\n\t\t\t\t\t<displayname>" . htmlentities($_FILES['ps_attach']['name'], ENT_COMPAT, 'cp1251') . "</displayname>\n\t\t\t\t\t<filename>" . WDCPREFIX . "/users/{$dir}/upload/{$pictname}</filename>\n\t\t\t\t\t<time>" . date('Добавлено d.m.Y в H:i', time()) . "</time>\n\t\t\t\t</uploaded>\n\t\t\t\t-- IBox --\n\t\t\t";
            }
        }
        return 0;
    }
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php";
    $stc = new static_compress();
    ?>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<?php 
    $stc->Add("/css/projects3.css");
    $stc->Add("/scripts/warning.js");
    $stc->Send();
    ?>
</head>
<body style="margin:0px; padding:0px"<?php 
    if ($pict_added && !$error) {
        if (!$is_adm) {
            ?>
Ejemplo n.º 7
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
$stc = new static_compress();
$seed = $_GET['t'];
if ($seed) {
    $stc->output($seed);
}
Ejemplo n.º 8
0
}
if (!$bp->id) {
    header('Location: /404.php');
    exit;
}
if ($bp->sbr_id) {
    $sbr = new sbr_emp($bp->user_id);
    if ($sbr->initFromId($bp->sbr_id, false, false, null, false)) {
        $contract_num = $sbr->getContractNum();
        $sbr_nds = $sbr->getCommNds($sbr_comm);
    }
}
$bp->sum = round($bp->sum, 2);
$sum_rk = preg_split('/[.,]/', $bp->sum);
$sum_rk[1] = str_pad($sum_rk[1], 2, '0');
$stc = new static_compress();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Удаленная работа (фри-ланс) на Free-lance.ru</title>
		<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
		<?php 
$stc->Add('/css/style.css');
?>
		<?php 
$stc->Send();
?>
	</head>
	<body>
<?php 
Ejemplo n.º 9
0
<?php

/*
 * Загрузка файлов для работы в портфолио, аватар, лого работодателя и резюме фрилансера (пока)
 */
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
session_start();
$type = InGetPost('type');
$stc = new static_compress();
$uid = get_uid(false);
$is_adm = $pict_added = false;
$err = '';
$pkey = InGetPost('pkey');
$imageTypes = array();
// чтобы админ мог редактировать
if (hasPermissions('users') && InGetPost('uid')) {
    $uid = InGetPost('uid');
    $is_adm = true;
}
if (isset($_POST['action']) && $_POST['action'] == 'add_pic' && is_array($_FILES['attach'])) {
    $file = new CFile($_FILES['attach']);
    if ($file->error[0] && $file->name) {
        $err = 'Слишком большой файл';
    }
    if ($file->size > 0) {
        $pict_added = true;
        if ($type == 'work_prev' && $file->size > 102400) {
            $err = 'Слишком большой файл превью. Загрузите превью меньшего объема.';
        }
        if (!$err && $type != 'prj_logo') {
Ejemplo n.º 10
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/stdf.php';
session_start();
get_uid(false);
if (eregi("^[A-Za-z0-9_\\-]{1,32}\$", $_GET['user']) && eregi('^[A-Za-z0-9_.]{1,32}$', $_GET['attach'])) {
    $str = viewattach($_GET['user'], $_GET['attach'], 'contacts', $file, -1, -1, 5242880, 0);
    require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
    $stc = new static_compress();
    ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Удаленная работа (фри-ланс) на Free-lance.ru</title>
	<meta name="description" lang="ru" content="Free-lance.ru это профессиональный ресурс, предназначенный для поиска работы или исполнителя (фрилансера) на удаленную работу (фри-ланс).">
	<meta name="keywords" lang="ru" content="работа, ищу работу, поиск работы, удаленная работа, фри-ланс">
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
	<?php 
    $stc->Add('/scripts/swfobject.js');
    ?>
    <?php 
    $stc->Send();
    ?>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr valign="top">
Ejemplo n.º 11
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/stdf.php";
session_start();
get_uid(false);
if (eregi("^[A-Za-z0-9_\\-]{1,32}\$", $_GET['user']) && eregi("^[A-Za-z0-9_.]{1,32}\$", $_GET['attach'])) {
    $str = viewattach($_GET['user'], $_GET['attach'], "contacts", $file, -1, -1, 5242880, 0);
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php";
    $stc = new static_compress();
    ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Удаленная работа (фри-ланс) на Free-lance.ru</title>
	<meta name="description" lang="ru" content="Free-lance.ru это профессиональный ресурс, предназначенный для поиска работы или исполнителя (фрилансера) на удаленную работу (фри-ланс).">
	<meta name="keywords" lang="ru" content="работа, ищу работу, поиск работы, удаленная работа, фри-ланс">
	<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
	<?php 
    $stc->Add("/scripts/swfobject.js");
    ?>
    <?php 
    $stc->Send();
    ?>
</head>

<body bgcolor="#FFFFFF" text="#000000">

<table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr valign="top">
Ejemplo n.º 12
0
if (!defined('IN_STDF')) {
    header('HTTP/1.1 403 Forbidden');
    header('location: /403.html');
    die;
}
if (!$page_title) {
    $page_title = 'Удаленная работа (фри-ланс) на Free-lance.ru';
}
if (!$page_keyw) {
    $page_keyw = 'работа, ищу работу, поиск работы, удаленная работа, фри-ланс';
}
if (!$page_descr) {
    $page_descr = 'Free-lance.ru это профессиональный ресурс, предназначенный для поиска работы или исполнителя (фрилансера) на удаленную работу (фри-ланс).';
}
require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
$stc = new static_compress();
// общий.
$stc2 = new static_compress();
// для подключаемых модулей.
/*@mark_0013129*/
$page_keyw = $page_title;
$page_descr = $page_title;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
        <meta name="description" lang="ru" content="<?php 
echo $page_descr;
?>
" />
Ejemplo n.º 13
0
<?
	require_once($_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php");
	$stc = new static_compress;
	$stc->Add("/scripts/mootools-new.js");
	$stc->Add( '/scripts/raphael-min.js' );
    $stc->Add( '/scripts/svg.js' );
    
    if ($css_file) { $stc->Add("/css/".$css_file);}
    
    $stc->Send();

	require_once($_SERVER['DOCUMENT_ROOT'] . "/xajax/rating.common.php");
	$xajax->printJavascript('/xajax/');
?>
<script>
    window.addEvent('domready', function() {
        
        xajax_GetRating('month');
        document.getElement('select[name=ratingmode]').addEvent('change', function() {
            xajax_GetRating(this.get('value'));
        });
    });
</script>

<div class="month-rate-graph" style="padding:0;margin:0;">
    <h3 class="b-page__iphone">График изменений рейтинга</h3>
    <select name="ratingmode">
        <option value="month">в этом месяце</option>
        <option value="prev">в прошлом месяце</option>
        <option value="year">за год</option>
    </select>
Ejemplo n.º 14
0
}
if (!$bp->id) {
    header("Location: /404.php");
    exit;
}
if ($bp->sbr_id) {
    $sbr = new sbr_emp($bp->user_id);
    if ($sbr->initFromId($bp->sbr_id, false, false, NULL, false)) {
        $contract_num = $sbr->getContractNum();
        $sbr_nds = $sbr->getCommNds($sbr_comm);
    }
}
$bp->sum = round($bp->sum, 2);
$sum_rk = preg_split('/[.,]/', $bp->sum);
$sum_rk[1] = str_pad($sum_rk[1], 2, '0');
$stc = new static_compress();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Удаленная работа (фри-ланс) на Free-lance.ru</title>
		<meta content="text/html; charset=windows-1251" http-equiv="Content-Type"/>
		<?php 
$stc->Add("/css/style.css");
?>
		<?php 
$stc->Send();
?>
	</head>
	<body>
<?php 
Ejemplo n.º 15
0
    $log->TRACE($scl->stat_monthly_split());
}
// Отсылаем email тем у кого заканчивается закрепление проекта наверху главной страницы
$log->TRACE($mail->EndTopDaysPrjSendAlerts());
if (date('H') == 7) {
    $log->TRACE($mail->sendYdDayRegistry());
    //$log->TRACE( $mail->SbrReqvAlerts() );
    $log->TRACE($mail->SbrDeadlineAlert());
}
// платные места на верху
$pp = new pay_place();
$log->TRACE($pp->clearOldData());
$pp = new pay_place(1);
$log->TRACE($pp->clearOldData());
if (date('H') == 6) {
    $stc = new static_compress();
    $log->TRACE($stc->cleaner());
}
$rating = new rating();
if (date('H') == 1) {
    //$rating = new rating();
    //$log->TRACE( $rating->calcDaily() );
    $log->TRACE($rating->calcMonthly());
}
$log->TRACE($rating->calcDaily());
// перенесено в /minutly.php
/*if(date('H') >= 0 && date('H') <= 5) { 
    // разморозка ПРО
    $log->TRACE( payed::freezeUpdateProUsers() );
}*/
if (date('H') == 0) {
Ejemplo n.º 16
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
$stc = new static_compress();
$stc->Add('/scripts/mootools-new.js');
$stc->Add('/scripts/raphael-min.js');
$stc->Add('/scripts/svg.js');
if ($css_file) {
    $stc->Add('/css/' . $css_file);
}
$stc->Send();
require_once $_SERVER['DOCUMENT_ROOT'] . '/xajax/rating.common.php';
$xajax->printJavascript('/xajax/');
?>
<script>
    window.addEvent('domready', function() {
        
        xajax_GetRating('month');
        document.getElement('select[name=ratingmode]').addEvent('change', function() {
            xajax_GetRating(this.get('value'));
        });
    });
</script>

<div class="month-rate-graph" style="padding:0;margin:0;">
    <h3 class="b-page__iphone">График изменений рейтинга</h3>
    <select name="ratingmode">
        <option value="month">в этом месяце</option>
        <option value="prev">в прошлом месяце</option>
        <option value="year">за год</option>
    </select>
Ejemplo n.º 17
0
    $page_title = "Удаленная работа (фри-ланс) на FL.ru";
}
if (!$page_keyw) {
    $page_keyw = "работа, ищу работу, поиск работы, удаленная работа, фриланс, фри-ланс";
}
if (!$page_descr) {
    $page_descr = "FL.ru это профессиональный ресурс, предназначенный для поиска работы или исполнителя (фрилансера) на удаленную работу (фриланс).";
}
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/user_phone.php";
require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/Helpers/SubBarNotificationHelper.php";
$stc = new static_compress();
// общий.
$stc2 = new static_compress();
// для подключаемых модулей.
$stc_js = new static_compress();
// JS-файлы
$stc2_js = new static_compress();
// JS-файлы для подключаемых модулей
if (!isset($promo)) {
    $promo = true;
}
//Глобальные переменные которые могут несуществовать и нужно это проверить
$main_page = isset($main_page) ? $main_page : false;
$freelancers_catalog = isset($freelancers_catalog) ? $freelancers_catalog : false;
$_user = new users();
$_user->GetUserByUID(get_uid(false));
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head><?php 
Ejemplo n.º 18
0
<?php

define('IS_OPENED', 1);
chdir(dirname(__FILE__));
require_once '../classes/stdf.php';
require_once '../classes/static_compress.php';
$stc = new static_compress();
if ($argv[1] == '--only-bem') {
    exit(+(!$stc->createBemBatchFiles()));
}
exit($stc->updateBatchesVersion());