set_prefilter('picture_modify', 'titlePadminfT');
}
function titlePadminfT($content){
$search = '#
{\'title_photo\'|@translate}
#'; $replacement = '
{\'title_album\'|@translate}
'; return preg_replace($search, $replacement, $content); } function titleAadminA(){ if (isset($_GET['cat_id'])){ global $template, $prefixeTable, $pwg_loaded_plugins; $query = 'select id,title FROM ' . TITLE_ALBUM_TABLE . ' WHERE id = '.$_GET['cat_id'].';'; $result = pwg_query($query); $row = pwg_db_fetch_assoc($result); if (isset($row['title'])){ $titleA=$row['title']; $template->assign( array( 'titleCONTENT' => $titleA, )); }else{ $template->assign( array( 'titleCONTENT' => "", )); } if (isset($pwg_loaded_plugins['ExtendedDescription'])){ $template->assign('useED',1); }else{ $template->assign('useED',0); } } if (isset($_POST['insertitleA'])){ $query = 'DELETE FROM ' . TITLE_ALBUM_TABLE . ' WHERE id = '.$_GET['cat_id'].';'; $result = pwg_query($query); $q = 'INSERT INTO ' . $prefixeTable . 'title_album(id,title)VALUES ('.$_GET['cat_id'].',"'.$_POST['insertitleA'].'");'; pwg_query($q); $template->assign( array( 'titleCONTENT' => $_POST['insertitleA'], )); } } */ ?>