File size: 782B
<?php
$paste = '';
if (isset($_GET['plid']) and isset($_GET['elid'])) {
foreach($_POST['check'] as $check) {
$paste .= '//c' . $_GET['plid'] . '/' . $_GET['elid'] . '/' . $check;
}
} elseif (isset($_GET['elid'])) {
foreach($_POST['check'] as $check) {
$paste .= '//c' . $_GET['elid'] . '/' . $check;
}
}
$_SESSION['paste'] = $paste;
echo '<div style="text-align:center">' . "\n";
echo 'Объекты добавлены в буфер для копирования.<br />' . "\n";
echo '<a href="?func=file';
if (isset($_GET['elid'])) {
echo '&elid=' . urlencode($_GET['elid']);
}
if (isset($_GET['plid'])) {
echo '&plid=' . urlencode($_GET['plid']);
}
echo '">Продолжить»</a>' . "\n";
echo '</div>' . "\n";
?>