mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
minor changes
git-svn-id: file:///svn/phpbb/trunk@2759 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b598c4d7c9
commit
dd700e5064
1 changed files with 3 additions and 4 deletions
|
@ -118,7 +118,7 @@ if ( $mode != '' )
|
||||||
|
|
||||||
<form method="post" action="<?php echo "admin_ranks.$phpEx$SID"; ?>"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center">
|
<form method="post" action="<?php echo "admin_ranks.$phpEx$SID"; ?>"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<th colspan="2"><?php echo $lang['Rank_title']; ?></th>
|
<th colspan="2"><?php echo $lang['Ranks']; ?></th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1" width="40%"><?php echo $lang['Rank_title']; ?>: </td>
|
<td class="row1" width="40%"><?php echo $lang['Rank_title']; ?>: </td>
|
||||||
|
@ -165,7 +165,6 @@ if ( $mode != '' )
|
||||||
|
|
||||||
if ( $special_rank == 1 )
|
if ( $special_rank == 1 )
|
||||||
{
|
{
|
||||||
$max_posts = -1;
|
|
||||||
$min_posts = -1;
|
$min_posts = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -174,13 +173,13 @@ if ( $mode != '' )
|
||||||
//
|
//
|
||||||
if ( $rank_image != '' )
|
if ( $rank_image != '' )
|
||||||
{
|
{
|
||||||
if ( !preg_match('/(\.gif|\.png|\.jpg)$/is', $rank_image))
|
if ( !preg_match('/(\.gif|\.png|\.jpg|\.jpeg)$/is', $rank_image))
|
||||||
{
|
{
|
||||||
$rank_image = '';
|
$rank_image = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $rank_id )
|
if ( $rank_id )
|
||||||
{
|
{
|
||||||
$sql = "UPDATE " . RANKS_TABLE . "
|
$sql = "UPDATE " . RANKS_TABLE . "
|
||||||
SET rank_title = '" . str_replace("\'", "''", $rank_title) . "', rank_special = $special_rank, rank_min = $min_posts, rank_image = '" . str_replace("\'", "''", $rank_image) . "'
|
SET rank_title = '" . str_replace("\'", "''", $rank_title) . "', rank_special = $special_rank, rank_min = $min_posts, rank_image = '" . str_replace("\'", "''", $rank_image) . "'
|
||||||
|
|
Loading…
Add table
Reference in a new issue