Удаление ссылки по просьбе, правки путей к картинкам, правка функции перезагрузки аватара.

This commit is contained in:
Exile 2014-10-21 17:37:35 +04:00
commit d3b8049006
4 changed files with 8 additions and 8 deletions

View file

@ -16,7 +16,7 @@ qaqra
rserg99
leszav
Dr_Brown
Bullit (http://bestrip.org/)
Bullit
Triceratop (http://goldenshara.com/)
Ramzess
@ -26,7 +26,7 @@ Ramzess
SamSeGo
alesel (http://sporttracker.kz/)
Bullit (http://bestrip.org/)
Bullit
igorsaevets
vasilich619
wint1000 (http://asmlocator.ru/)

View file

@ -58,7 +58,7 @@ switch ($mode)
'ROW_CLASS' => !($i % 2) ? 'row2' : 'row1',
'JOB_ID' => $i + 1,
'CRON_ID' => $row['cron_id'],
'CRON_ACTIVE' => $row['cron_active'] ? '<img src="../images/icon_run.gif" alt="'. $lang['YES'] .'" />' : '<img src="../images/icon_delete.gif" alt="'. $lang['NO'] .'" />',
'CRON_ACTIVE' => $row['cron_active'] ? '<img src="../styles/images/icon_run.gif" alt="'. $lang['YES'] .'" />' : '<img src="../styles/images/icon_delete.gif" alt="'. $lang['NO'] .'" />',
'CRON_TITLE' => $row['cron_title'],
'CRON_SCRIPT' => $row['cron_script'],
'SCHEDULE' => $row['schedule'] ? $lang['SCHEDULE'][$row['schedule']] : '<b class="leech">'. $lang['NOSELECT'] .'</b>',

View file

@ -1963,7 +1963,7 @@ function topic_attachment_image($switch_attachment)
{
return '';
}
return '<img src="images/icon_clip.gif" alt="" border="0" /> ';
return '<img src="styles/images/icon_clip.gif" alt="" border="0" /> ';
}
function transliterate ($str)
@ -2825,10 +2825,10 @@ function is_gold ($type)
switch ($type)
{
case TOR_TYPE_GOLD:
$is_gold = '<img src="images/tor_gold.gif" width="16" height="15" title="'. $lang['GOLD'] .'" />&nbsp;';
$is_gold = '<img src="styles/images/tor_gold.gif" width="16" height="15" title="'. $lang['GOLD'] .'" />&nbsp;';
break;
case TOR_TYPE_SILVER:
$is_gold = '<img src="images/tor_silver.gif" width="16" height="15" title="'. $lang['SILVER'] .'" />&nbsp;';
$is_gold = '<img src="styles/images/tor_silver.gif" width="16" height="15" title="'. $lang['SILVER'] .'" />&nbsp;';
break;
default:
$is_gold = '';

View file

@ -104,12 +104,12 @@ class upload_common
}
}
// check ext
if (!isset($this->ext_ids[$this->file_ext]) || !in_array($this->file_ext, $this->cfg['allowed_ext'], true))
if ($uploaded_only && (!isset($this->ext_ids[$this->file_ext]) || !in_array($this->file_ext, $this->cfg['allowed_ext'], true)))
{
$this->errors[] = sprintf($lang['UPLOAD_ERROR_NOT_ALLOWED'], htmlCHR($this->file_ext));
return false;
}
$this->file_ext_id = $this->ext_ids[$this->file_ext];
$this->file_ext_id = @$this->ext_ids[$this->file_ext];
return true;
}