Wszelkie prawa zastrzeżone. Simplog Installation
Simplog Installation
Execute($sql); $blogid = $res->fields[blog_id]; } else { $blogid = $_REQUEST['blogid']; } $blogInfo =& new BlogInfo($blogid); if(!isset($_REQUEST['trans'])) { $_REQUEST['trans'] = 0; } if(!isset($_REQUEST['format'])) { $_REQUEST['format']=0; } if($blogid != "") { #check if user in in blog's acl $sql = "select blog_id from blog_acl where user_id=$uid"; $res = $db->Execute($sql); $ids = array(); while(!$res->EOF) { array_push($ids,$res->fields[blog_id]); $res->MoveNext(); } #if not kick them out of the application if(!in_array($blogid,$ids)) { header("Location: logout.php\n\n"); } #get blog title and table name in DB $blogInfo =& new BlogInfo($blogid); $btitle = $blogInfo->getBlogTitle(); $blogname = $blogInfo->getBlogTitle(); $btemp = $blogInfo->getBlogTemplateId(); $badmin = $blogInfo->getBlogAdminName(); } include("header.php"); echo "News Feeds\n"; echo "\n"; if($_REQUEST['act'] == "edit") { $sql = "SELECT * from blog_rss where rss_id=".$_REQUEST['fid']; $res = $db->Execute($sql); $fname = stripslashes($res->fields['title']); $url = stripslashes($res->fields['url']); } elseif($_REQUEST['act'] == "updfeed") { $rss = get_feed($_REQUEST['fid'],$_REQUEST['url']); $sql = "UPDATE blog_rss set title='".addslashes($rss->channel['title'])."', description='".addslashes($rss->channel['description'])."', url='".escape($_REQUEST['url'])."' where rss_id=".$_REQUEST['fid']; $res = $db->Execute($sql); echo "\n"; } elseif($_REQUEST['act'] == "addfeed") { $sql = "INSERT into blog_rss (url,user_id,title,description) values ('".escape($_REQUEST['url'])."',$uid,'','')"; $res = $db->Execute($sql); $sql = "SELECT max(rss_id) as id from blog_rss"; $res = $db->Execute($sql); $rid = $res->fields['id']; $rss = get_feed($rid,$_REQUEST['url']); $sql = "UPDATE blog_rss set title='".addslashes($rss->channel['title'])."', description='".addslashes($rss->channel['description'])."' where rss_id=$rid"; $res = $db->Execute($sql); echo "News Feed Added

\n"; } elseif($_REQUEST['act'] == "delfeed") { $sql = "DELETE from blog_rss where rss_id=".$_REQUEST['fid']; $res= $db->Execute($sql); echo "

\n"; } elseif($_REQUEST['act'] == "save") { if($_REQUEST['body'] == "") { echo "Sorry, gotta type something chief!

\n"; } else { $_REQUEST['body'] .= "

".$_REQUEST['comm'].""; if($_REQUEST['trans']) { $_REQUEST['body'] = str_to_link($_REQUEST['body']); } # Insert the new blog entry. $blogInfo->insertBlogEntry($_REQUEST['etitle'], $_REQUEST['body'], $uid, $_REQUEST['format'], $_REQUEST['cid']); do_pings(); echo "

Item Saved as Entry
\n"; } } ?> Execute($sql); $rss = get_feed($_REQUEST['fid'],$res->fields['url']); echo "

News Feed Updated
News Feed Deleted
\n"; echo "\n"; for($y=0;$yitems);$y++) { $rss->items[$y]['title'] = unhtmlentities($rss->items[$y]['title']); if($rss->items[$y]['link'] == '') { $rss->items[$y]['link'] = $rss->items[$y]['guid']; } if($rss->items[$y]['title'] == '') { $rss->items[$y]['title'] = ">>"; } print ""; $rss->items[$y]['description'] = unhtmlentities($rss->items[$y]['description']); print "\n"; } ?>
"; if($rss->channel['link']) { echo "channel['link']."\" target=\"_new\">".$rss->channel['title'].""; } else { echo $rss->channel['title']; } echo "
items[$y]['link'] ."\" target=_new>". $rss->items[$y]['title'] . "
\"BlogBlog This!
" . $rss->items[$y]['description'] ."
Execute($sql); $rss = get_feed($_REQUEST['fid'],$res->fields['url']); $rss->items[$y]['title'] = unhtmlentities($rss->items[$y]['title']); if($rss->items[$y]['link'] == '') { $rss->items[$y]['link'] = $rss->items[$y]['guid']; } if($rss->items[$y]['title'] == '') { $rss->items[$y]['title'] = ">>"; } $entry = "items[$item]['link']."\" target=_new>".$rss->items[$item]['title'].": ".$rss->items[$item]['description']." \n\n{from channel['link']."\" target=\"_new\">".$rss->channel['title']."}"; echo "

Blog This!
Category: ".category_list()."
Title:
Entry:
Comments:
preserve formatting
translate links(http, mailto)
"; if($use_weblog_rpc) { echo "send update notice to weblogs.com
(may cause longer load time)
"; } if($enable_trackback) { echo "send trackback ping
"; } if($enable_pingback) { echo "send pingback
"; } echo "

 

\n"; ?> Title Description URL Edit Delete XML Execute($sql); while(!$res->EOF) { echo "fields['rss_id']."&blogid=$blogid\">".$res->fields['title']."\n"; echo "".$res->fields['description']."\n"; echo "".$res->fields['url']."\n"; echo "fields['rss_id']."&blogid=$blogid\">\"Edit\"\n"; echo "fields['rss_id']."&blogid=$blogid\" onClick=\"return confirm('Are you sure you want to delete this feed?');\">\"Delete\"\n"; echo "fields['url']."\" target=_new>\n"; $res->MoveNext(); } ?>
News Feed

URL: "> "> \n"; } ?> "> 
Find sydicated news feeds at syndic8 and NewsIsFree