Thema: New module add
 
unregistrierter Benutzer

verfasst:
24.Jul 2004 - 15:00

I have add support for module htmlp.
These are the line af code i have add:

Add for module htmlp:

//*****Start of add at the end of file pnuser.php*****

function sitemap_user_htmlp($args) {

extract($args);
$url = pnModApiFunc ('sitemap', 'user', 'getlinks', array('name' => 'htmlp', 'archiv' =>$archiv));

$output = new pnHTML();
$output->SetInputMode(_PHP_VERBATIMINPUT);

if (!pnSecAuthAction(0, 'fewo::', '::', ACCESS_READ)) {
$output->Text(pnVarPrepHTMLDisplay(_FEWONOAUTH));
return $output->GetOutput();
}

foreach( $url as $a) {
foreach( $a as $v) {
$output->Text(''.$v[title].'');
$output->Text('
');
}
}


return $output->GetOutput();
}
//*****End of add at the end of file pnuser.php*****



//*****Start of add at the end of file pnuserapi.php*****

function sitemap_userapi_htmlp($args)
{

extract ($args);

list($dbconn) = pnDBGetConn();

$prefix = pnConfigGetVar('prefix');
$htmlp_titles_table = "$prefix"."_htmlp";
$htmlp_content_id = "$prefix"."_htmlp.pn_pid";
$htmlp_content_title= "$prefix"."_htmlp.pn_title";

if( $archiv == 1){
$query = " SELECT $htmlp_content_id, $htmlp_content_title FROM $htmlp_titles_table
ORDER BY $htmlp_content_id
DESC LIMIT 31,1000";
}else{
$query = " SELECT $htmlp_content_id, $htmlp_content_title FROM $htmlp_titles_table
ORDER BY $htmlp_content_id
DESC LIMIT 0,30";
}

$sql = $dbconn->Execute($query);
if($dbconn->ErrorNo() != 0) {
echo "DB Error: sitemapStatic_docs: " . $dbconn->ErrorNo() . ': ' . $dbconn->ErrorMsg() . '
';
exit ();
}

for($i= 0; !$sql->EOF; $sql->MoveNext()) {

list($pn_pid, $pn_title)= $sql->fields;

$res[] = array('id' => $pn_pid,
'title' => $pn_title);
$i++;
}

$sql->Close();

return $res;
}
//*****End of add at the end of file pnuserapi.php*****


//*****Add done in the middle of file pnadminapi.php*****

$okmods = array( 'PostCalendar', 'FAQ', 'fewo', 'News',
'Sections', 'ContentExpress', 'Static_Docs',
'PagEd', 'phpBB_14', 'pncommerce', 'Web_Links',
'Reviews', 'Downloads', 'Polls', 'Encyclopedia',
'UpDownload','htmlp');
Admin
avatar
Mitglied
Mitglied
Beiträge: 38

verfasst:
31.Aug 2004 - 11:43

Hi all,

i have included this module in in version 0.93_Xanthia and 0.93_pnHtml.
thanks for your work

mfg Admin