Exemplo n.º 1
0
	{
		define('VB_ENTRY', 'ajax.php');
	}

	// Get the entry time
	define('VB_ENTRY_TIME', microtime(true));

	// vB core path
	define('VB_PATH', DIR . '/vb/');

	// The package path
	define('VB_PKG_PATH', realpath(VB_PATH . '../packages') . '/');
	require_once(DIR . '/vb/vb.php');
	
	vB::init();
	vBCms_Rssfeed::makeRss();
	exit;
}
	
$vbulletin->GPC['type'] = strtoupper($vbulletin->GPC['type']);
$description = $vbulletin->options['description'];
$podcast = false;

// check to see if there is a forum preference
if ($vbulletin->GPC['forumid'])
{
	$vbulletin->GPC['forumids'] .= ',' . $vbulletin->GPC['forumid'];
}

if ($vbulletin->GPC['forumids'] != '')
{
Exemplo n.º 2
0
    $settings = array('alignment' => $vbulletin->GPC['alignment'], 'size' => $vbulletin->GPC['size'], 'caption' => $vbulletin->GPC['caption'], 'linkurl' => $vbulletin->GPC['linkurl'], 'styles' => $vbulletin->GPC['styles'], 'description' => $vbulletin->GPC['description'], 'title' => $vbulletin->GPC['title']);
    $db->query_write("\r\n\t\tINSERT INTO " . TABLE_PREFIX . "attachment\r\n\t\t\t(attachmentid, settings)\r\n\t\tVALUES (" . $vbulletin->GPC['attachmentid'] . ", '" . $db->escape_string(serialize($settings)) . "')\r\n\t\tON DUPLICATE KEY UPDATE settings = '" . $db->escape_string(serialize($settings)) . "'\r\n\r\n\t");
    $xml = new vB_AJAX_XML_Builder($vbulletin, 'text/xml');
    $xml->add_tag('ok', 1);
    $xml->print_xml();
}
if ($_REQUEST['do'] == 'rss') {
    //	if (! $config['Misc']['allow_rss'])
    //	{
    //		return "Not Authorized";
    //	}
    require_once DIR . '/includes/class_xml.php';
    require_once DIR . '/packages/vbcms/rssfeed.php';
    $current_user = new vB_Legacy_CurrentUser();
    $vbulletin->input->clean_array_gpc('r', array('type' => TYPE_STR, 'count' => TYPE_UINT, 'id' => TYPE_UINT, 'grouped' => TYPE_UINT, 'days' => TYPE_UINT, 'detail' => TYPE_STR, 'name' => TYPE_STR));
    vBCms_Rssfeed::makeRss($current_user);
}
if ($_REQUEST['do'] == 'get_comments') {
    if (!defined('VB_ENTRY')) {
        define('VB_ENTRY', 'ajax.php');
    }
    // Get the entry time
    define('VB_ENTRY_TIME', microtime(true));
    // vB core path
    define('VB_PATH', DIR . '/vb/');
    // The package path
    define('VB_PKG_PATH', realpath(VB_PATH . '../packages') . '/');
    require_once DIR . '/vb/vb.php';
    vB::init();
    if (!function_exists('__autoload')) {
        require_once DIR . '/vb/simple_autoload.php';