<tr>
<td>
<b><?php echo $a_name?></b>
- <input name="author[<?php echo $idx?>]" value="<?php echo ENTITY::hsc($a_name)?>" type="hidden"
+ <input name="author[<?php echo $idx?>]" value="<?php echo Entity::hsc($a_name)?>" type="hidden" />
</td>
<td>
<?php $query = 'SELECT mname as text, mnumber as value FROM '.sql_table('member');
$template['name'] = 'memberid[' . $idx . ']';
- showlist($query,'select',$template);
+ echo showlist($query,'select',$template);
?>
</td>
<td>
<?php $query = 'SELECT bname as text, bnumber as value FROM '.sql_table('blog');
$template['name'] = 'blogid';
$template['selected'] = $CONF['DefaultBlog'];
- showlist($query,'select',$template);
+ echo showlist($query,'select',$template);
?>
</div>
<div>
<?php $query = 'SELECT mname as text, mnumber as value FROM '.sql_table('member');
$template['name'] = 'newowner';
- showlist($query,'select',$template);
+ echo showlist($query,'select',$template);
?>
</li>
</ul>
function bc_doConversion() {
- global $HTTP_POST_VARS;
+ global $HTTP_POST_VARS, $manager;
// 1. get all data
$authorcount = intval($HTTP_POST_VARS['authorcount']);
if ($createnew == 1) {
// choose unique name
$shortname = 'blogger';
- if (BLOG::exists($shortname)) {
+ if (Blog::exists($shortname)) {
$idx = 1;
- while (BLOG::exists($shortname . $idx))
+ while (Blog::exists($shortname . $idx))
$idx++;
$shortname = $shortname . $idx;
}
}
// add authors to blog team
- $b = new BLOG($nucleus_blogid);
+ $b =& $manager->getBlog($nucleus_blogid);
global $catid;
$catid = $b->getDefaultCategory();
echo "<ul>";
echo "<li>Blogger ID: $bloggerid </li>";
- echo "<li>Body:" . ENTITY::hsc(substr($row['body'],0,20)) . "...(time: " . $timestamp . ") </li>";
+ echo "<li>Body:" . Entity::hsc(substr($row['body'],0,20)) . "...(time: " . $timestamp . ") </li>";
echo "<li>author: " . $row['author'] ;
echo " (nucleus-id: " . $nucl_id . ")</li>";
else
$c_userid = $c_email;
- echo '<div>',ENTITY::hsc(shorten($c_text,50,'...')),'</div><ul>';
+ echo '<div>',Entity::hsc(shorten($c_text,50,'...')),'</div><ul>';
// echo '<li>Date: ',strftime('%x %X',$c_timestamp),'</li>';
echo "<li>Name: $c_name</li>";
// echo "<li>Email: $c_email</li>";