mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +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))
|
if (empty($ERRORS))
|
||||||
{
|
{
|
||||||
$name = $NOT_USER ? (string) $SQL->escape(p('rname')) : $usrcp->name();
|
$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();
|
$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'));
|
$url = (string) ip('rid') ? $SQL->escape($url_id) : $SQL->real_escape(p('surl'));
|
||||||
$time = (int) time();
|
$time = (int) time();
|
||||||
@@ -307,7 +307,7 @@ switch ($current_go_case)
|
|||||||
if (empty($ERRORS))
|
if (empty($ERRORS))
|
||||||
{
|
{
|
||||||
$name = $NOT_USER ? (string) $SQL->escape(p('cname')) : $usrcp->name();
|
$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();
|
$mail = $NOT_USER ? (string) strtolower(trim($SQL->escape(p('cmail')))) : $usrcp->mail();
|
||||||
$timee = (int) time();
|
$timee = (int) time();
|
||||||
$ip = get_ip();
|
$ip = get_ip();
|
||||||
@@ -519,11 +519,11 @@ switch ($current_go_case)
|
|||||||
//do some of the queue ..
|
//do some of the queue ..
|
||||||
if (preg_match('/:del_[a-z0-9]{0,3}calls:/i', $config['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']))
|
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)
|
elseif ((int) $config['del_f_day'] > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ if ($nums_rows > 0)
|
|||||||
'id' => $row['id'],
|
'id' => $row['id'],
|
||||||
'name' => $row['name'],
|
'name' => $row['name'],
|
||||||
'mail' => $row['mail'],
|
'mail' => $row['mail'],
|
||||||
'text' => htmlspecialchars($row['text']),
|
'text' => $row['text'],
|
||||||
'human_time' => kleeja_date($row['time']),
|
'human_time' => kleeja_date($row['time']),
|
||||||
'time' => kleeja_date($row['time'], false),
|
'time' => kleeja_date($row['time'], false),
|
||||||
'ip' => $row['ip'],
|
'ip' => $row['ip'],
|
||||||
@@ -156,7 +156,6 @@ $page_nums = $Pager->print_nums(basename(ADMIN_PATH) . '?cp=' . basename
|
|||||||
if (ip('submit'))
|
if (ip('submit'))
|
||||||
{
|
{
|
||||||
$text = ($SQL->affected() ? $lang['CALLS_UPDATED'] : $lang['NO_UP_CHANGE_S']);
|
$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);
|
kleeja_admin_info($text, true, '', true, $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,6 @@ $page_nums = $Pager->print_nums(basename(ADMIN_PATH) . '?cp=' . basenam
|
|||||||
if (ip('submit'))
|
if (ip('submit'))
|
||||||
{
|
{
|
||||||
$text = ($SQL->affected() ? $lang['REPORTS_UPDATED'] : $lang['NO_UP_CHANGE_S']);
|
$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);
|
kleeja_admin_info($text, true, '', true, $action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user