1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 00:27:45 +02:00

jquery pagination - currently used on comments and media-manager.

This commit is contained in:
CaMer0n
2012-08-04 21:50:47 +00:00
parent abe5e487be
commit a739be4176
6 changed files with 263 additions and 146 deletions

View File

@@ -43,6 +43,16 @@ if(e_AJAX_REQUEST) // TODO improve security
$ret = array();
// Comment Pagination
if(varset($_GET['mode']) == 'list' && vartrue($_GET['id']) && vartrue($_GET['type']))
{
$clean_type = preg_replace("/[^\w\d]/","",$_GET['type']);
$tmp = e107::getComment()->getComments($clean_type,intval($_GET['id']),intval($_GET['from']),$att);
echo $tmp['comments'];
exit;
}
if(varset($_GET['mode']) == 'reply' && vartrue($_POST['itemid']))