mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Реформат в PSR-2 + добавление заголовков лицензии MIT в файлы
This commit is contained in:
parent
a04df19607
commit
3730bed000
207 changed files with 44327 additions and 43119 deletions
112
info.php
112
info.php
|
@ -1,8 +1,31 @@
|
|||
<?php
|
||||
/**
|
||||
* MIT License
|
||||
*
|
||||
* Copyright (c) 2005-2017 TorrentPier
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
define('BB_SCRIPT', 'info');
|
||||
define('BB_ROOT', './');
|
||||
require(BB_ROOT .'common.php');
|
||||
require(BB_ROOT . 'common.php');
|
||||
|
||||
// Start session management
|
||||
$user->session_start();
|
||||
|
@ -11,32 +34,31 @@ global $lang;
|
|||
|
||||
$info = array();
|
||||
$html_dir = LANG_DIR . 'html/';
|
||||
$req_mode = !empty($_REQUEST['show']) ? (string) $_REQUEST['show'] : 'not_found';
|
||||
$req_mode = !empty($_REQUEST['show']) ? (string)$_REQUEST['show'] : 'not_found';
|
||||
|
||||
switch ($req_mode)
|
||||
{
|
||||
case 'advert':
|
||||
$info['title'] = $lang['ADVERT'];
|
||||
$info['src'] = 'advert.html';
|
||||
break;
|
||||
switch ($req_mode) {
|
||||
case 'advert':
|
||||
$info['title'] = $lang['ADVERT'];
|
||||
$info['src'] = 'advert.html';
|
||||
break;
|
||||
|
||||
case 'copyright_holders':
|
||||
$info['title'] = $lang['COPYRIGHT_HOLDERS'];
|
||||
$info['src'] = 'copyright_holders.html';
|
||||
break;
|
||||
case 'copyright_holders':
|
||||
$info['title'] = $lang['COPYRIGHT_HOLDERS'];
|
||||
$info['src'] = 'copyright_holders.html';
|
||||
break;
|
||||
|
||||
case 'not_found':
|
||||
$info['title'] = $lang['NOT_FOUND'];
|
||||
$info['src'] = 'not_found.html';
|
||||
break;
|
||||
case 'not_found':
|
||||
$info['title'] = $lang['NOT_FOUND'];
|
||||
$info['src'] = 'not_found.html';
|
||||
break;
|
||||
|
||||
case 'user_agreement':
|
||||
$info['title'] = $lang['USER_AGREEMENT'];
|
||||
$info['src'] = 'user_agreement.html';
|
||||
break;
|
||||
case 'user_agreement':
|
||||
$info['title'] = $lang['USER_AGREEMENT'];
|
||||
$info['src'] = 'user_agreement.html';
|
||||
break;
|
||||
|
||||
default:
|
||||
bb_simple_die('Invalid request');
|
||||
default:
|
||||
bb_simple_die('Invalid request');
|
||||
}
|
||||
|
||||
$require = file_exists($html_dir . $info['src']) ? $html_dir . $info['src'] : $html_dir . 'not_found.html';
|
||||
|
@ -44,28 +66,40 @@ $require = file_exists($html_dir . $info['src']) ? $html_dir . $info['src'] : $h
|
|||
?><!DOCTYPE html>
|
||||
<html dir="ltr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
||||
<meta http-equiv="Content-Style-Type" content="text/css" />
|
||||
<link rel="stylesheet" href="styles/templates/default/css/main.css" type="text/css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<meta http-equiv="Content-Style-Type" content="text/css"/>
|
||||
<link rel="stylesheet" href="styles/templates/default/css/main.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<style type="text/css">
|
||||
#infobox-wrap { width: 760px; }
|
||||
#infobox-body {
|
||||
background: #FFFFFF; color: #000000; padding: 1em;
|
||||
height: 400px; overflow: auto; border: 1px inset #000000;
|
||||
}
|
||||
#infobox-body p { margin-top: 1em; margin-bottom: 1em; }
|
||||
#infobox-wrap {
|
||||
width: 760px;
|
||||
}
|
||||
|
||||
#infobox-body {
|
||||
background: #FFFFFF;
|
||||
color: #000000;
|
||||
padding: 1em;
|
||||
height: 400px;
|
||||
overflow: auto;
|
||||
border: 1px inset #000000;
|
||||
}
|
||||
|
||||
#infobox-body p {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
</style>
|
||||
<br />
|
||||
<br/>
|
||||
<div id="infobox-wrap" class="bCenter row1">
|
||||
<fieldset class="pad_6">
|
||||
<legend class="med bold mrg_2 warnColor1"><?php echo mb_strtoupper($info['title'], 'UTF-8'); ?></legend>
|
||||
<div class="bCenter">
|
||||
<?php require($require); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<p class="gen tRight pad_6"><a href="javascript:window.close();" class="gen">[ <?php echo $lang['LOCK']; ?> ]</a></p>
|
||||
<fieldset class="pad_6">
|
||||
<legend class="med bold mrg_2 warnColor1"><?php echo mb_strtoupper($info['title'], 'UTF-8'); ?></legend>
|
||||
<div class="bCenter">
|
||||
<?php require($require); ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
<p class="gen tRight pad_6"><a href="javascript:window.close();" class="gen">[ <?php echo $lang['LOCK']; ?> ]</a>
|
||||
</p>
|
||||
</div><!--/infobox-wrap-->
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue