添加到 trunk

+YUCHENG HU+

git-svn-id: https://svn.code.sf.net/p/hawebs/svn@265 a2543c7e-f6e9-4f8a-8bff-1ffc34733512
This commit is contained in:
YuCheng Hu
2010-06-13 22:11:56 +00:00
parent 8ba6c6caaa
commit 7774e8b256
53 changed files with 3619 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 991 B

@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 261 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1013 B

@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,20 @@
<?php
jimport('joomla.application.component.controller');
class NinjaRssSyndicatorController extends JController
{
function __construct()
{
parent::__construct();
}
function display()
{
parent::display();
}
}
?>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev ([email protected])" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>HA 资讯 - 资源下载</title>
<description><![CDATA[HA WEBSYSTEMS - 提供WEB方式的信息化和技术服务]]></description>
<link>http://news.hawebs.net/zh/</link>
<lastBuildDate>Tue, 30 Mar 2010 16:01:27 GMT</lastBuildDate>
<generator>FeedCreator 1.8.0-dev ([email protected])</generator>
<atom:link href="http://news.hawebs.net/zh/index.php?option=com_ninjarsssyndicator&amp;feed_id=11&amp;format=raw" rel="self" type="application/rss+xml" /> <item>
<title>Manning - AJAX In Action</title>
<link>http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=122:manning-ajax-in-action&amp;catid=49:2010-03-29-21-36-44&amp;Itemid=59</link>
<description><![CDATA[Manning - AJAX In Action]]></description>
<author> [email protected] (HAWEBS)</author>
<pubDate>Mon, 29 Mar 2010 21:43:44 GMT</pubDate>
<guid isPermaLink="false">http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=122:manning-ajax-in-action&amp;catid=49:2010-03-29-21-36-44&amp;Itemid=59</guid>
</item>
</channel>
</rss>
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.8.0-dev ([email protected])" -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>HA 资讯 - Derby</title>
<description><![CDATA[HA WEBSYSTEMS - 提供WEB方式的信息化和技术服务]]></description>
<link>http://news.hawebs.net/zh/</link>
<lastBuildDate>Thu, 01 Apr 2010 02:10:41 GMT</lastBuildDate>
<generator>FeedCreator 1.8.0-dev ([email protected])</generator>
<atom:link href="http://news.hawebs.net/zh/index.php?option=com_ninjarsssyndicator&amp;feed_id=3&amp;format=raw" rel="self" type="application/rss+xml" /> <item>
<title>Derby 系统要求</title>
<link>http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=119:derby-&amp;catid=42:derby&amp;Itemid=57</link>
<description><![CDATA[Derby是使用纯Java实现的数据库引擎。 Derby能运行在任何被认证的Java虚拟机(JVM)上。<br /><br />你计算机安装的JAVA版本必须高于1.4。 Java开发工具包(JDK)在对新Derby用户的自学习教程被要求执行。<br /><br />使用java -version命令,来检查Java虚拟机安装的正确版本。]]></description>
<author> [email protected] (HAWEBS)</author>
<pubDate>Thu, 11 Mar 2010 04:29:32 GMT</pubDate>
<guid isPermaLink="false">http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=119:derby-&amp;catid=42:derby&amp;Itemid=57</guid>
</item>
<item>
<title>Derby 产品文档</title>
<link>http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=118:derby-&amp;catid=42:derby&amp;Itemid=57</link>
<description><![CDATA[Derby产品文档包括手册和API参考。<br /><br />Derby入门指南<br /> 描述如何安装和配置Derby。 包括针对新用户的自学教程和针对有JDBC经验用户的快速指南。 本指南同时也介绍了 dblook, ij,和sysinfo工具和Derby包含和使用的库和脚本。<br /><br />Derby开发者指南<br /> 描述Derby所有的通用部署功能和特性,比如Derby的JDBC和SQL特性,部署Derby应用,使用属性文件、安全和其他高级特性。<br /><br />Derby参考手册<br /> 文档描述了SQL语言在Derby中的实现。 手册提供了Derby的JDBC和JTA实现、关键字、系统表、属性和SQL异常(SQLExceptions)的相关参考信息。<br /><br />Derby调优<br /> 文档提供了提高性能小技巧、更深层次的性能讨论和Derby的优化信息。<br /><br />Derby工具包指南<br /> 描述如何使用Derby的工具包,比如dblook、ij和sysinfo,和如何使用系统过程导入导出数据,以及如何在数据库中使用Java代码。<br /><br />Derby服务器和管理指南<br /> 第一部分讨论了服务器配置的,以及如何进行客户端编程和数据库管理。 一些系统可能需要管理进程,比如备份数据库。 这些进程独立于任何服务器框架,但是是多用户或大小系统的独特特性。<br /> 第二部分讨论了管理问题,比如备份和死锁调试。<br /><br />Derby API参考<br /> API参考是由Derby公共类自动生成而来。 不提供JDBC的API,因为这是Java 2 标准版平台的一部分。 更多API类的信息,请参考Derby参考手册。<br /> 你可以从下Apache的官方地址中访问10.5版手册和API参考<br /><br />产品文档随Derby同时安装。 手册被安装在docs子目录中。 API参考安装在javadoc子目录中。]]></description>
<author> [email protected] (HAWEBS)</author>
<pubDate>Thu, 11 Mar 2010 04:27:47 GMT</pubDate>
<guid isPermaLink="false">http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=118:derby-&amp;catid=42:derby&amp;Itemid=57</guid>
</item>
<item>
<title>Derby 10.5.3.0 于2009年8月发布</title>
<link>http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=98:derby-10530-20098&amp;catid=42:derby&amp;Itemid=57</link>
<description><![CDATA[<p>Derby的最新版 10.5.3.0于2009年8月26日发布。<br /><br />Apache Derby是Apache数据库项目的一个子项目。<br /><br />Derby是支持ISO/ANSI SQL和JDBC标准的纯Java关系数据库引擎。<br /><br />Derby 10.5.3.0的下载链接为:<br /><br /><a href="http://db.apache.org/derby/derby_downloads.html">http://db.apache.org/derby/derby_downloads.html</a></p>]]></description>
<author> [email protected] (HAWEBS)</author>
<pubDate>Sun, 21 Feb 2010 06:35:36 GMT</pubDate>
<guid isPermaLink="false">http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=98:derby-10530-20098&amp;catid=42:derby&amp;Itemid=57</guid>
</item>
<item>
<title>Apache Derby 数据库项目</title>
<link>http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=74:apache-derby-&amp;catid=42:derby&amp;Itemid=57</link>
<description><![CDATA[<p>Apache Derby是Apache DB的子项目,是一个使用Java编写的开源关系型数据库。关键特点包括:</p>
<p>1. 程序小巧,基础引擎和内嵌的JDBC驱动总共大约2MB。</p>
<p>2. 基于Java、JDBC和SQL标准。</p>
<p>3. 提供内嵌的JDBC驱动,你可把Derby潜入到基于Java的应用程序中。</p>
<p>4. 支持客户端/服务器模式。</p>
<p>5. 安装、布置和使用简单。</p>
<p>对于如何入门Derby,请参阅IBM 用 Apache Derby 进行开发的相关技术文章。</p>]]></description>
<author> [email protected] (HAWEBS)</author>
<pubDate>Wed, 06 Jan 2010 05:39:04 GMT</pubDate>
<guid isPermaLink="false">http://news.hawebs.net/zh/index.php?option=com_content&amp;view=article&amp;id=74:apache-derby-&amp;catid=42:derby&amp;Itemid=57</guid>
</item>
</channel>
</rss>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1,214 @@
<?php
defined('_JEXEC') or die( 'Restricted access' );
jimport( 'joomla.application.component.model' );
class ninjarsssyndicatorModelninjarsssyndicator extends JModel
{
var $_data = null;
var $_id = null;
var $_content = null;
function __construct()
{
parent::__construct();
global $option;
$id = JRequest::getVar('feed_id', 0, '', 'int');
$this->setId((int)$id);
}
function setId($id)
{
// Set id and wipe data
$this->_id = $id;
$this->_data = null;
}
function _buildQuery()
{
$query = "SELECT * FROM `#__ninjarsssyndicator_feeds` WHERE id = $this->_id";
return $query;
}
function getData()
{
$db = JFactory::getDBO();
// Load the data
if (empty( $this->_data )) {
$query = $this->_buildQuery();
$db->setQuery( $query );
$this->_data = $db->loadObject();
}
if (!$this->_data || $this->_data->published == 0) {
$this->_data = array();
}
return $this->_data;
}
function getContent()
{
if (null === ($feed = $this->getData())) {
JError::raiseWarning( 'SOME_ERROR_CODE', JText::_( 'Error Loading Modules' ) . $db->getErrorMsg());
return false;
}
$seclist = $feed->msg_sectlist;
$FPItemsOnly = $feed->msg_FPItemsOnly;
$inclExclCatList = $feed->msg_includeCats;
$excatlist = $feed->msg_excatlist;
$exitems = str_replace(" ", "", $feed->msg_exitems);
$count = $feed->msg_count;
$db = JFactory::getDBO();
/*
unused code
*/
//Xipat - VH (Feb 09 2009): Remove unuse code
/*
if ($feed->msg_sectcat != "") {
$tmp_cats = explode(",", $feed->msg_sectcat);
$cats = "";
foreach ($tmp_cats as $tmp_cat) {
if ($cats == "") {
$cats = "\nAND (c.title = '$tmp_cat' ";
} else {
$cats .= "\nOR c.title = '$tmp_cat' ";
}
}
$cats .= ") ";
}
*/
$date = JFactory::getDate();
//$now = date( "Y-m-d H:i:s",time()+$mainframe->getCfg('offset')*60*60 );
$now = $date->toMySQL();
switch (strtolower( $feed->msg_orderby )) {
case 'date':
$orderby = "a.created";
break;
case 'rdate':
$orderby = "a.created DESC";
break;
case 'mdate':
$orderby = "a.modified";
break;
case 'mrdate':
$orderby = "a.modified DESC";
break;
case 'catsect':
$orderby = intval($FPItemsOnly)==1 ? "f.ordering, a.ordering ASC, a.catid, a.sectionid" : "a.ordering ASC, a.catid, a.sectionid";
break;
case 'artord':
$orderby = "a.ordering";
break;
default:
$orderby = "a.created";
break;
}
/* SELECT construction */
$queryUncat = "";//Oct 25 2008: include uncategories
$query = "SELECT u.id as userid, c.id as catid, s.id as secid, a.id as id, a.*, a.introtext as itext, a.fulltext as mtext, u.name AS author, u.usertype, u.email as authorEmail, a.created_by_alias as authorAlias, a.created AS dsdate, c.name as catName,"
//Oct 24 2008: include slug and catslug for work with JRoute
. 'CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(":", a.id, a.alias) ELSE a.id END as slug,'
. 'CASE WHEN CHAR_LENGTH(c.alias) THEN CONCAT_WS(":", c.id, c.alias) ELSE c.id END as catslug'
;
/* FROM */
$query .= "\nFROM #__content AS a"
;
$query .= "\nLEFT JOIN #__users AS u ON u.id = a.created_by"
. "\nLEFT JOIN `#__categories` AS c on c.id = a.catid "
. "\nLEFT JOIN `#__sections` AS s on s.id = c.section "
;
/* WHERE construction */
$query .= "\n WHERE a.state='1'";
/* JOIN construction */
if (intval($FPItemsOnly)==1) {
// frontpage Items only
$query .= "\n AND a.id IN (SELECT content_id FROM #__content_frontpage)";
} elseif (intval($FPItemsOnly)==2) {
// all articles except frontpage ones
$query .= "\n AND a.id NOT IN (SELECT content_id FROM #__content_frontpage)";
}
if ($exitems != "") {
$query .= "\n AND a.id NOT IN (" . $exitems . ")";
}
if ($seclist!=="") {
if($seclist == "0")// Xipat - VH: Query uncategorised
{
$query .= "\n AND a.sectionid = 0";
$queryUncat= " OR a.sectionid = 0 ";
}
else {
$query .= "\n AND s.id IN (" . $seclist . ")";
}
}
else {
$queryUncat= " OR a.sectionid = 0 ";
}
if ($excatlist!=="") {
if ($inclExclCatList){
$query .= "\n AND c.id IN (" . $excatlist . ")";
} else {
$query .= "\n AND c.id NOT IN (" . $excatlist . ")";
}
}
$nullDate = $db->getNullDate();
$query .= "\n AND a.access <= 0" // item only public access check
. "\n AND (c.access <= 0 $queryUncat) " // category only public access check
. "\n AND (s.access <= 0 $queryUncat)" // section only public access check
. "\n" . 'AND (a.publish_up = '.$db->Quote($nullDate).' OR a.publish_up <= '.$db->Quote($now).')'
. "\n" . 'AND ( a.publish_down = '.$db->Quote($nullDate).' OR a.publish_down >= '.$db->Quote($now).')'
;
/* ORDER BY, LIMIT ... construction */
$query .= "\nORDER BY $orderby"
. ($count ? (" LIMIT " . $count) : "")
;
// die ($query);
if (empty( $this->_content )) {
$db->setQuery( $query );
$this->_content = $db->loadObjectList();
}
if (!$this->_content) {
$this->_content = array();
}
//die($query);
return $this->_content;
}
function getMenuItemArray(){
$type = 'content_blog_section';
$database = JFactory::getDBO();;
$itemids = NULL;
$database->setQuery("SELECT id, componentid "
. "\n FROM #__menu "
. "\n WHERE type = '$type'"
. "\n AND published = 1");
$rows = $database->loadObjectList();
foreach ($rows as $row) {
$itemids[$row->componentid] = $row->id;
}
return $itemids;
}
}
?>
@@ -0,0 +1,23 @@
<?php
defined('_JEXEC') or die('Restricted access');
// Require the base controller
require_once (JPATH_COMPONENT.DS.'controllers'.DS.'defaultcontroller.php');
// Require specific controller if requested
if($controller = JRequest::getVar('controller')) {
require_once (JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php');
}
// Create the controller
$classname = 'NinjaRssSyndicatorController'.$controller;
//die($classname );
$controller = new $classname( );
// Perform the Request task
$controller->execute( JRequest::getVar('task'));
// Redirect if set by the controller
$controller->redirect();
?>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>
@@ -0,0 +1 @@
<html><body bgcolor="#FFFFFF"></body></html>

Some files were not shown because too many files have changed in this diff Show More