mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
r357
UPDATE `bb_config` SET `config_value` = '3' WHERE `config_name` = 'pic_max_size'; git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@357 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
da96fe87a5
commit
afa54a91ba
8 changed files with 21 additions and 23 deletions
|
@ -642,7 +642,7 @@ INSERT INTO `bb_config` VALUES ('reports_enabled', '1');
|
|||
INSERT INTO `bb_config` VALUES ('gold_silver_enabled', '1');
|
||||
INSERT INTO `bb_config` VALUES ('gallery_enabled', '1');
|
||||
INSERT INTO `bb_config` VALUES ('pic_dir', 'pictures/');
|
||||
INSERT INTO `bb_config` VALUES ('pic_max_size', '3*1024*1024');
|
||||
INSERT INTO `bb_config` VALUES ('pic_max_size', '3');
|
||||
INSERT INTO `bb_config` VALUES ('auto_delete_posted_pics', '1');
|
||||
INSERT INTO `bb_config` VALUES ('magnet_links_enabled', '1');
|
||||
INSERT INTO `bb_config` VALUES ('no_avatar', 'images/avatars/gallery/noavatar.png');
|
||||
|
|
|
@ -75,9 +75,7 @@ if ($mode == 'config')
|
|||
'REPORT_LIST_ADMIN_OFF' => (!$bb_cfg['report_list_admin']) ? ' checked="checked"' : '',
|
||||
'REPORT_NEW_WINDOW_ON' => ($bb_cfg['report_new_window']) ? ' checked="checked"' : '',
|
||||
'REPORT_NEW_WINDOW_OFF' => (!$bb_cfg['report_new_window']) ? ' checked="checked"' : '',
|
||||
|
||||
'L_CONFIGURATION_TITLE' => $lang['REPORTS'] . ': ' . $lang['CONFIGURATION'])
|
||||
);
|
||||
));
|
||||
|
||||
print_page('report_config_body.tpl', 'admin');
|
||||
}
|
||||
|
@ -486,11 +484,6 @@ else
|
|||
{
|
||||
case '':
|
||||
$report_modules = report_modules();
|
||||
|
||||
$template->assign_vars(array(
|
||||
'L_REPORTS_TITLE' => $lang['REPORTS'] . ': ' . $lang['MODULES_REASONS'])
|
||||
);
|
||||
|
||||
$report_counts = report_counts_obtain();
|
||||
$report_reason_counts = report_reason_counts_obtain();
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array();
|
|||
|
||||
// Increase number of revision after update
|
||||
$bb_cfg['tp_version'] = '2.4 (beta)';
|
||||
$bb_cfg['tp_release_state'] = 'R356';
|
||||
$bb_cfg['tp_release_state'] = 'R357';
|
||||
$bb_cfg['tp_release_date'] = '06-02-2012';
|
||||
|
||||
// Database
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
define('IN_PHPBB', true);
|
||||
define('BB_SCRIPT', 'gallery');
|
||||
define('BB_ROOT', './');
|
||||
require(BB_ROOT ."common.php");
|
||||
require(BB_ROOT .'common.php');
|
||||
|
||||
// Start session management
|
||||
$user->session_start(array('req_login' => true));
|
||||
|
@ -16,7 +16,7 @@ if(bf($userdata['user_opt'], 'user_opt', 'allow_gallery'))
|
|||
{
bb_die($lang['USE_GALLERY_OFF']);
}
|
||||
|
||||
$go = isset($_GET['go']) ? $_GET['go'] : '';
|
||||
$max_size = $bb_cfg['pic_max_size'];
|
||||
$max_size = $bb_cfg['pic_max_size']*1024*1024;
|
||||
$dir = $bb_cfg['pic_dir'];
|
||||
$url = make_url('/');
|
||||
|
||||
|
@ -187,10 +187,6 @@ if ($go == 'delete' && IS_ADMIN && !empty($_GET['fn']))
|
|||
$template->assign_vars(array(
|
||||
'MSG' => $msg,
|
||||
'MAX_SIZE' => humn_size($max_size),
|
||||
'MAX_SIZE_HINT' => $lang['GALLERY_MAX_FILE_SIZE'],
|
||||
'CREATE_THUMB' => $lang['GALLERY_CREATE_THUMB'],
|
||||
'UPLOAD' => $lang['GALLERY_UPLOAD_IMAGE'],
|
||||
'MORE' => $lang['GALLERY_MORE_LINK'],
|
||||
));
|
||||
|
||||
print_page('gallery.tpl');
|
|
@ -4,7 +4,7 @@
|
|||
<div>
|
||||
<h3>BitTorrent клиенты</h3>
|
||||
<ul>
|
||||
<li><a href="http://www.utorrent.com/" class="med"><b>uTorrent</b></a> <span class="med nowrap">(рекомендуемый: <b>3.1</b>)</span></li>
|
||||
<li><a href="http://www.utorrent.com/" class="med"><b>uTorrent</b></a> <span class="med nowrap">(рекомендуемый: <b>3.1.2</b>)</span></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,8 +1,12 @@
|
|||
<h1>{L_CONFIGURATION_TITLE}</h1>
|
||||
<h1>{L_CONFIGURATION}</h1>
|
||||
|
||||
<p>{L_REPORT_CONFIG_EXPLAIN}</p>
|
||||
<br />
|
||||
|
||||
<a href="admin_reports.php?mode=config" class="bold">{L_CONFIGURATION}</a> ·
|
||||
<a href="admin_reports.php">{L_MODULES_REASONS}</a>
|
||||
<br /><br />
|
||||
|
||||
<form action="{S_REPORT_ACTION}" method="post">
|
||||
<table width="99%" cellpadding="4" cellspacing="1" border="0" align="center" class="forumline">
|
||||
<tr>
|
||||
|
|
|
@ -1,6 +1,11 @@
|
|||
<h1>{L_REPORTS_TITLE}</h1>
|
||||
<h1>{L_MODULES_REASONS}</h1>
|
||||
|
||||
<p>{L_REPORT_ADMIN_EXPLAIN}</p>
|
||||
<br />
|
||||
|
||||
<a href="admin_reports.php?mode=config">{L_CONFIGURATION}</a> ·
|
||||
<a href="admin_reports.php" class="bold">{L_MODULES_REASONS}</a>
|
||||
<br /><br />
|
||||
|
||||
<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline">
|
||||
<tr>
|
||||
|
|
|
@ -94,16 +94,16 @@ function add_image_field(i)
|
|||
<tr>
|
||||
<td class="row1" align="center">
|
||||
<span class="gen">
|
||||
<h3 align="Center">{MAX_SIZE_HINT} {MAX_SIZE}</h3>
|
||||
<h3 align="Center">{L_GALLERY_MAX_FILE_SIZE} {MAX_SIZE}</h3>
|
||||
{MSG}
|
||||
<hr>
|
||||
<center>
|
||||
<form enctype="multipart/form-data" method="post" action="?go=upload">
|
||||
<span id="fileupload"><input name="imgfile[]" type="file" /><br /></span><a href="#" onclick="$('#fileupload').clone(true).insertBefore(this); return false;" style="text-decoration: underline;" align="right">{MORE}</a><br />
|
||||
<span id="fileupload"><input name="imgfile[]" type="file" /><br /></span><a href="#" onclick="$('#fileupload').clone(true).insertBefore(this); return false;" style="text-decoration: underline;" align="right">{L_GALLERY_MORE_LINK}</a><br />
|
||||
<br />
|
||||
<label><input type="checkbox" name="create_thumb" value="0" /> {CREATE_THUMB} </label>
|
||||
<label><input type="checkbox" name="create_thumb" value="0" /> {L_GALLERY_CREATE_THUMB} </label>
|
||||
<hr />
|
||||
<input type="submit" value="{UPLOAD}" />
|
||||
<input type="submit" value="{L_GALLERY_UPLOAD_IMAGE}" />
|
||||
</form>
|
||||
</center>
|
||||
</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue