| verzia 1.20, 2017/06/09 15:02:37 |
verzia 1.21, 2024/11/20 07:21:07 |
|
|
| * http://platon.sk/projects/phpMyEdit/ |
* http://platon.sk/projects/phpMyEdit/ |
| */ |
*/ |
| |
|
| /* $Platon: phpMyEdit/extensions/phpMyEdit-messages.class.php,v 1.19 2013-10-10 17:16:24 igor Exp $ */ |
/* $Platon: phpMyEdit/extensions/phpMyEdit-messages.class.php,v 1.20 2017/06/09 15:02:37 igor Exp $ */ |
| |
|
| /* This extension is part of phpMyEzin: Content Management System project, |
/* This extension is part of phpMyEzin: Content Management System project, |
| where it handles discussion messages for particular articles. It depends on |
where it handles discussion messages for particular articles. It depends on |
| Riadok 35 class phpMyEdit_messages extends phpMyEd |
|
| Riadok 35 class phpMyEdit_messages extends phpMyEd |
|
| |
|
| // Operation |
// Operation |
| var $deleteallinvalid; |
var $deleteallinvalid; |
| |
|
| // Internal cache |
// Internal cache |
| var $_cache_get_absolut_message_parent; |
var $_cache_get_absolut_message_parent; |
| |
|
| function phpMyEdit_messages($opts) /* {{{ */ |
function __construct($opts) /* {{{ */ |
| { |
{ |
| $execute = 1; |
$execute = 1; |
| isset($opts['execute']) && $execute = $opts['execute']; |
isset($opts['execute']) && $execute = $opts['execute']; |
| $opts['execute'] = 0; |
$opts['execute'] = 0; |
| parent::phpMyEdit($opts); |
parent::__construct($opts); |
| $this->tb2 = $opts['tb2']; |
$this->tb2 = $opts['tb2']; |
| $this->format_date = $opts['format_date']; |
$this->format_date = $opts['format_date']; |
| $this->deleteallinvalid = $this->get_sys_cgi_var('operation'); |
$this->deleteallinvalid = $this->get_sys_cgi_var('operation'); |
| Riadok 73 class phpMyEdit_messages extends phpMyEd |
|
| Riadok 73 class phpMyEdit_messages extends phpMyEd |
|
| } |
} |
| $row = $this->sql_fetch($result, FETCH_ASSOC); |
$row = $this->sql_fetch($result, FETCH_ASSOC); |
| //$ezin_admin_article = intval($row['article_id']); |
//$ezin_admin_article = intval($row['article_id']); |
| $ezin_admin_msgcount = intval($row['messages']); |
$ezin_admin_msgcount = intval($row['messages']); |
| $this->sql_free_result($result); |
$this->sql_free_result($result); |
| |
|
| echo '<form class="',$this->getCSSclass('form'); |
echo '<form class="',$this->getCSSclass('form'); |
| Riadok 168 class phpMyEdit_messages extends phpMyEd |
|
| Riadok 168 class phpMyEdit_messages extends phpMyEd |
|
| $ar = array(); |
$ar = array(); |
| $ar_out = array(); |
$ar_out = array(); |
| for ($i = 0; ($row = $this->sql_fetch($result, FETCH_ASSOC)); $i++) { |
for ($i = 0; ($row = $this->sql_fetch($result, FETCH_ASSOC)); $i++) { |
| $ar[$i] = $row; |
$ar[$i] = $row; |
| $ar_out[] = $row['id']; |
$ar_out[] = $row['id']; |
| } |
} |
| $checked = ! $level && $parent ? ' checked' : ''; |
$checked = ! $level && $parent ? ' checked' : ''; |
| Riadok 324 class phpMyEdit_messages extends phpMyEd |
|
| Riadok 324 class phpMyEdit_messages extends phpMyEd |
|
| if ($row['date'] > 0) { |
if ($row['date'] > 0) { |
| printf(' [%d] (%s)', $row['id'], date($this->format_date, $row['date'])); |
printf(' [%d] (%s)', $row['id'], date($this->format_date, $row['date'])); |
| } |
} |
| echo '</option>',"\n"; |
echo '</option>',"\n"; |
| } |
} |
| echo '</select>',"\n"; |
echo '</select>',"\n"; |
| if ($disabled) { |
if ($disabled) { |