Просмотр файла video/install.php

Размер файла: 3.52Kb
<?php
list($generic_msec,$generic_sec)=explode(chr('32'),microtime());
$generic_time=$generic_sec+$generic_msec;
$title='Видео';
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!-- wap-svoboda.com -->
<head>
<title>
'.$title.'
</title>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
body { margin: auto; max-width:500px; background-color : #000000; color: #FFFFFF; font-family: Lucida Grande, Verdana, Arial, Helvetica, sans-serif; font-size: 12px; }
.title { background-image: url(image/8title.gif); color:#333333; font-weight:bold; margin-bottom:5px; }
.button { border: 1px solid #990000; background-color: #660000; color: #ffffff; padding: 2px; }
.form_go { border: 1px solid #990000; background-color: #660000; color: #ffffff; padding: 2px; margin-top:3px; }
textarea { width: 100%; }
a:link,a:active,a:visited { color: #FF9900; text-decoration: none; }
a:hover { text-decoration: none; color: #FFFF00; background-color: #990000; border: 1px solid #FF9900; padding: 1px; position: relative; top: 1px; }
.header { background: url(image/fon_red.gif); color: #00FF00; font-weight: bold; font-size: 11px; background-color: #990000; border-bottom: 3px solid #660000; border-left: 3px solid #CC0000; border-top: 3px solid #CC0000; border-right: 3px solid #660000; padding: 4px 4px 4px; }
.row { background-color: #000000; border-bottom: 1px solid #CC3300; border-left: 1px solid #CC3300; border-right: 1px solid #CC3300; padding: 4px 4px 4px; }
.row_easy { background-color: #660000; border-bottom: 1px solid #CC3300; border-left: 1px solid #CC3300; border-right: 1px solid #CC3300; padding: 1px; }
.row_hard { background-color: #000000; border-bottom: 1px solid #CC3300; border-left: 1px solid #CC3300; border-right: 1px solid #CC3300; padding: 1px; }
div.header a { color: #008000; text-decoration: none; }
</style>
</head>
<body>
<!-- body -->
<div class="title">
<div style="
font-size:16px;
padding-top:6px;
padding-bottom:6px;
">
<center>
'.$title.'<br/>
</center></div></div>
';
echo '<div class="header"><center>
Установка<br/></center></div>
';
if (file_exists('base.txt')) {
$arr=file('base.txt');
for ($i=0; $i<count($arr); $i++) {
$file=trim($arr[$i]);
$file=explode('||',$file);
$pid=$file[0];
$fid=$file[1];
@$title=trim($file[2]);  // Имя файла
@$scrin=trim($file[3]); // Адрес скриншота
@$min=trim($file[4]);  // Длительность мин.
@$sec=trim($file[5]);  // Длителность сек.
@$link=trim($file[6]); // Адрес файла
@$size=trim($file[7]); // Вес в кб
@$text=trim($file[8]);  // Описание
$str="$title\r\n$scrin\r\n$min\r\n$sec\r\n$link\r\n$size\r\n$text";
$fopen=fopen('fid/'.$pid.'.'.$fid.'.txt','w');
fputs($fopen,$str);
fclose($fopen);
}
if (unlink('base.txt')) {
echo '<div class="row_hard">
Попытка установить произведена!<br/></div>
';
} else {
echo '<div class="row_hard">
Установка не удалась! Смените права доступа!<br/></div>
';
}
}
list($generic_newmsec,$generic_newsec)=explode(chr('32'),microtime());
echo '
<p>
- <a href="index.php">В начало</a><br/>
- <a href="/">Главная</a><br/>
</p>
<!-- // end body -->
&copy; <a href="http://wap-svoboda.com">wap-svoboda.com</a><br/>
'.round((($generic_newsec+$generic_newmsec)-$generic_time),'4').'<br>
</body>
</html>';
?>