コード例 #1
0
ファイル: viewwork.php プロジェクト: kapai69/fl-ru-damp
        $fpath = '../';
        include '../404.php';
        exit;
    } else {
        if ($project['kind'] == 2) {
            $pict_name = '';
            foreach ($offer['attach'] as $key => $value) {
                if ($value['id'] == $wid) {
                    $pict_name = $value['pict'];
                }
            }
            if ($pict_name == '') {
                $fpath = '../';
                include '../404.php';
                exit;
            }
        } else {
            $pict_name = $offer['pict' . $wid];
        }
        if ($pict_name) {
            $proj['pict'] = $pict_name;
            $str = viewattach($offer['login'], $pict_name, 'upload', $file, -1, -1, 1048576, 1);
        }
        require_once $_SERVER['DOCUMENT_ROOT'] . '/classes/static_compress.php';
        $stc = new static_compress();
        $template = 'template2.php';
        $content = 'tpl.viewproj.php';
        include '../' . $template;
        exit;
    }
}
コード例 #2
0
ファイル: viewproj.php プロジェクト: kapai69/fl-ru-damp
    $pattern = "#(/users/[\\w_\\d]+/)viewproj\\.php\\?prjid=[0-9]+.*#";
    $locate_url = preg_replace($pattern, '$1', $_SERVER['REQUEST_URI']);
    header("location: {$locate_url}");
    exit;
}
$proj = portfolio::GetPrj($prjid, $uid);
$width = $height = 0;
if (!$proj || $proj['is_blocked'] == 't' && $uid != get_uid(false) && !hasPermissions('users')) {
    $fpath = '../';
    include ABS_PATH . '/404.php';
    exit;
} else {
    $spec_text = professions::GetProfName($proj['spec']);
    if ($proj['pict']) {
        $imgTitle = $proj['name'] . ' (' . $spec_text . ') - фри-лансер ' . $proj['uname'] . ' ' . $proj['usurname'] . ' [' . $proj['login'] . ']. ';
        $str = viewattach($proj['login'], $proj['pict'], 'upload', $file, -1, -1, 1048576, 0, 0, 'center', false, 1, $proj['name'], true, false, $imgTitle, $proj['wmode']);
    }
    //elseif ($proj['link'] && !$proj['descr']) header("Location: http://" . $proj['link']);
    $pathinfo = pathinfo($proj['pict']);
    $proj['pict_ext'] = strtolower($pathinfo['extension']);
    $js_file = array('banned.js');
    //Мета-теги
    SeoTags::getInstance()->initByPortfolio($proj, $spec_text);
    $page_title = SeoTags::getInstance()->getTitle();
    $page_descr = SeoTags::getInstance()->getDescription();
    $page_keyw = SeoTags::getInstance()->getKeywords();
    $FBShare = array('title' => htmlspecialchars($proj['name'], ENT_QUOTES), 'description' => '', 'image' => HTTP_PREFIX . 'www.free-lance.ru/images/free-lance_logo.jpg');
    $content = 'tpl.viewproj.php';
}
$css_file = array('/css/nav.css');
$no_banner = true;
コード例 #3
0
function ChangeGrPrev($prof_id, $check)
{
    session_start();
    $objResponse = new xajaxResponse();
    $portf = new portfolio();
    if (!$portf->ChangeGrPrev($_SESSION['uid'], intval($prof_id), $projs)) {
        if ($projs) {
            foreach ($projs as $id => $prj) {
                if ($check != 0) {
                    if ($prj['prev_type'] == 1) {
                        $text = '<div style="width:200px">' . reformat2($prj['prev_data'], 37) . '</div>';
                    } else {
                        if (in_array(strtolower(CFile::getext($prj['prev_data'])), $GLOBALS['graf_array']) && strtolower(CFile::getext($prj['prev_data'])) != 'swf') {
                            $text = '<div align="left" style="width:200px;"><a href="/users/' . $_SESSION['login'] . '/viewproj.php?prjid=' . $id . '" target="_blank" class="blue">
    				' . viewattach($_SESSION['login'], $prj['prev_data'], 'upload', $file, 500, 200, 307200, 0, 0, 'left') . '</a></div>';
                        } else {
                            $text = viewattach($_SESSION['login'], $prj['prev_data'], 'upload', $file, 500, 200, 307200, 0, 0, 'left');
                        }
                        #				$script .= "document.getElementById('prev".$id."').checked = true;";
                    }
                } else {
                    #				$script = "document.getElementById('prev".$id."').checked = false;";
                    $text = '<div style="width:200px">&nbsp;</div>';
                }
                $objResponse->assign('previmg' . intval($id), 'innerHTML', $text);
                $objResponse->script($script);
            }
        }
        $script = "document.getElementById('grprev" . $prof_id . "').disabled = false;";
    } else {
        $script = "document.getElementById('grprev" . $prof_id . "').disabled = false;";
    }
    $objResponse->script($script);
    return $objResponse;
}
コード例 #4
0
ファイル: view_attach.php プロジェクト: kapai69/fl-ru-damp
<?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">
コード例 #5
0
ファイル: view_attach.php プロジェクト: Nikitian/fl-ru-damp
<?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'])) {
    require_once $_SERVER['DOCUMENT_ROOT'] . "/classes/static_compress.php";
    $str = viewattach($_GET['user'], $_GET['attach'], "upload", $file, -1, -1, 5242880, 0);
    $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">
コード例 #6
0
ファイル: inner_index.php プロジェクト: Nikitian/fl-ru-damp
<strong><?php 
            echo $prj['name'];
            ?>
</strong><?php 
        }
        ?>
 [<a href="mailto:<?php 
        echo $prj['email'];
        ?>
"><?php 
        echo $prj['email'];
        ?>
</a>]<br>
	<?php 
        echo reformat($prj['descr'], 96);
        echo $prj['attach'] ? "<br><br>" . viewattach($prj['login'], $prj['attach'], "upload", $tmp, 0) : "";
        ?>
<br>
	<br/>
	id <?php 
        echo $prj['id'];
        ?>
	</td>
	<td class="qpr" align="center"><a  href="/public/?step=1&public=<?php 
        echo $prj['id'];
        ?>
&red=<?php 
        echo rawurlencode($_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING']);
        ?>
" class="blue" title="<?php 
        echo $prj['name'];
コード例 #7
0
ファイル: inner_index.php プロジェクト: kapai69/fl-ru-damp
<strong><?php 
            echo $prj['name'];
            ?>
</strong><?php 
        }
        ?>
 [<a href="mailto:<?php 
        echo $prj['email'];
        ?>
"><?php 
        echo $prj['email'];
        ?>
</a>]<br>
	<?php 
        echo reformat($prj['descr'], 96);
        echo $prj['attach'] ? '<br><br>' . viewattach($prj['login'], $prj['attach'], 'upload', $tmp, 0) : '';
        ?>
<br>
	<br/>
	id <?php 
        echo $prj['id'];
        ?>
	</td>
	<td class="qpr" align="center"><a  href="/public/?step=1&public=<?php 
        echo $prj['id'];
        ?>
&red=<?php 
        echo rawurlencode($_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']);
        ?>
" class="blue" title="<?php 
        echo $prj['name'];