adding news feed chunks

This commit is contained in:
2016-06-13 22:17:46 +02:00
parent e5d64168d5
commit 02c9ea3249
6 changed files with 98 additions and 32 deletions

View File

@@ -20,6 +20,7 @@ $sAction = isset($_REQUEST['a'])?$_REQUEST['a']:'';
$sPage = isset($_GET['p'])?$_GET['p']:'index';
$sName = isset($_GET['name'])?$_GET['name']:'';
$sContent = isset($_GET['content'])?$_GET['content']:'';
$iChunk = isset($_GET['chunk'])?$_GET['chunk']:0;
//Initiate class
$oSpot = new Spot($oClassManagement, __FILE__);
@@ -33,7 +34,7 @@ if($sAction!='')
$sResult = $oSpot->getMessages();
break;
case 'feed':
$sResult = $oSpot->getNewsFeed();
$sResult = $oSpot->getNewsFeed($iChunk);
break;
case 'upload':
$sResult = $oSpot->upload();