mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-14 20:19:43 +01:00
Fixes for messages and reports
This commit is contained in:
8
go.php
8
go.php
@@ -178,7 +178,7 @@ switch ($current_go_case)
|
||||
if (empty($ERRORS))
|
||||
{
|
||||
$name = $NOT_USER ? (string) $SQL->escape(p('rname')) : $usrcp->name();
|
||||
$text = (string) $SQL->escape(p('rtext'));
|
||||
$text = (string) $SQL->escape(htmlspecialchars_decode(p('rtext')));
|
||||
$mail = $NOT_USER ? (string) strtolower(trim($SQL->escape(p('rmail')))) : $usrcp->mail();
|
||||
$url = (string) ip('rid') ? $SQL->escape($url_id) : $SQL->real_escape(p('surl'));
|
||||
$time = (int) time();
|
||||
@@ -307,7 +307,7 @@ switch ($current_go_case)
|
||||
if (empty($ERRORS))
|
||||
{
|
||||
$name = $NOT_USER ? (string) $SQL->escape(p('cname')) : $usrcp->name();
|
||||
$text = (string) $SQL->escape(p('ctext'));
|
||||
$text = (string) $SQL->escape(htmlspecialchars_decode(p('ctext')));
|
||||
$mail = $NOT_USER ? (string) strtolower(trim($SQL->escape(p('cmail')))) : $usrcp->mail();
|
||||
$timee = (int) time();
|
||||
$ip = get_ip();
|
||||
@@ -519,11 +519,11 @@ switch ($current_go_case)
|
||||
//do some of the queue ..
|
||||
if (preg_match('/:del_[a-z0-9]{0,3}calls:/i', $config['queue']))
|
||||
{
|
||||
klj_clean_old('call', (strpos(':del_allcalls:', $config['queue']) !== false ? 'all': 30));
|
||||
klj_clean_old('call', (strpos($config['queue'], ':del_allcalls:') !== false ? 'all': 30));
|
||||
}
|
||||
elseif (preg_match('/:del_[a-z0-9]{0,3}reports:/i', $config['queue']))
|
||||
{
|
||||
klj_clean_old('reports', (strpos(':del_allreports:', $config['queue']) !== false ? 'all': 30));
|
||||
klj_clean_old('reports', (strpos($config['queue'], ':del_allreports:') !== false ? 'all': 30));
|
||||
}
|
||||
elseif ((int) $config['del_f_day'] > 0)
|
||||
{
|
||||
|
||||
@@ -85,7 +85,7 @@ if ($nums_rows > 0)
|
||||
'id' => $row['id'],
|
||||
'name' => $row['name'],
|
||||
'mail' => $row['mail'],
|
||||
'text' => htmlspecialchars($row['text']),
|
||||
'text' => $row['text'],
|
||||
'human_time' => kleeja_date($row['time']),
|
||||
'time' => kleeja_date($row['time'], false),
|
||||
'ip' => $row['ip'],
|
||||
@@ -156,7 +156,6 @@ $page_nums = $Pager->print_nums(basename(ADMIN_PATH) . '?cp=' . basename
|
||||
if (ip('submit'))
|
||||
{
|
||||
$text = ($SQL->affected() ? $lang['CALLS_UPDATED'] : $lang['NO_UP_CHANGE_S']);
|
||||
$text .= '<script type="text/javascript"> setTimeout("get_kleeja_link(\'' . $action . '\'); check_msg_and_reports();", 2000);</script>' . "\n";
|
||||
kleeja_admin_info($text, true, '', true, $action);
|
||||
}
|
||||
|
||||
|
||||
@@ -155,7 +155,6 @@ $page_nums = $Pager->print_nums(basename(ADMIN_PATH) . '?cp=' . basenam
|
||||
if (ip('submit'))
|
||||
{
|
||||
$text = ($SQL->affected() ? $lang['REPORTS_UPDATED'] : $lang['NO_UP_CHANGE_S']);
|
||||
$text .= '<script type="text/javascript"> setTimeout("get_kleeja_link(\'' . $action . '\'); check_msg_and_reports();", 2000);</script>' . "\n";
|
||||
kleeja_admin_info($text, true, '', true, $action);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user