public function output() { global $vbulletin, $threadid, $postid, $db, $VB_API_WHITELIST; require_once DIR . '/includes/functions_bigthree.php'; $threadinfo = verify_id('thread', $threadid, 1, 1); if ($vbulletin->options['threadmarking'] and $vbulletin->userinfo['userid']) { $vbulletin->userinfo['lastvisit'] = max($threadinfo['threadread'], $threadinfo['forumread'], TIMENOW - $vbulletin->options['markinglimit'] * 86400); } $coventry = fetch_coventry('string'); $posts = $db->query_first("\n\t\t\tSELECT MIN(postid) AS postid\n\t\t\tFROM " . TABLE_PREFIX . "post\n\t\t\tWHERE threadid = {$threadinfo['threadid']}\n\t\t\t\tAND visible = 1\n\t\t\t\tAND dateline > " . intval($vbulletin->userinfo['lastvisit']) . "\n\t\t\t\t" . ($coventry ? "AND userid NOT IN ({$coventry})" : "") . "\n\t\t\tLIMIT 1\n\t\t"); if ($posts['postid']) { $postid = $posts['postid']; } else { $postid = $threadinfo['lastpostid']; } loadAPI('showthread'); include DIR . '/showthread.php'; }
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('threadtag', 'manage'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('blog', 'dosendtofriend'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } if ($_REQUEST['blogid']) { loadAPI('blog_post', 'editblog'); } else { loadAPI('blog_post', 'newblog'); } /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('album', 'user'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('newthread', 'newthread'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('blog_usercp', 'modifycat'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('register', ''); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('search', 'intro'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('private', 'newpm'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
// Access token $api_s = trim($_REQUEST['api_s']); // Request Signature Verification Prepare (Verified in init.php) $api_sig = trim($_REQUEST['api_sig']); unset($_GET['']); // See VBM-835 $VB_API_PARAMS_TO_VERIFY = $_GET; unset($VB_API_PARAMS_TO_VERIFY['api_c'], $VB_API_PARAMS_TO_VERIFY['api_v'], $VB_API_PARAMS_TO_VERIFY['api_s'], $VB_API_PARAMS_TO_VERIFY['api_sig'], $VB_API_PARAMS_TO_VERIFY['debug'], $VB_API_PARAMS_TO_VERIFY['showall'], $VB_API_PARAMS_TO_VERIFY['do'], $VB_API_PARAMS_TO_VERIFY['r'], $VB_API_PARAMS_TO_VERIFY['vbseourl']); ksort($VB_API_PARAMS_TO_VERIFY); $VB_API_REQUESTS = array('api_m' => $api_m, 'api_version' => $api_version, 'api_c' => $api_c, 'api_s' => $api_s, 'api_sig' => $api_sig); if (!$api_script) { header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); die; } // Check if the api method has been defined in versions $api_script = loadAPI($api_script, $_REQUEST['do'], $api_version); //find the latest version of the class defined. This could be written more //cleanly but I'm trying not to touch the logic below that runs the class. for ($i = $api_version; $i > 0; $i--) { $api_classname = 'vB_APIMethod_' . $api_m . '_' . $i; if (class_exists($api_classname)) { break; } } if (!class_exists($api_classname)) { $api_classname = 'vB_APIMethod_' . $api_m; } if (class_exists($api_classname)) { $apimethod = new $api_classname(); if ($apimethod instanceof vBI_APIMethod) { require_once './global.php';
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('editpost', 'editpost'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('blog_usercp', 'editprofile'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('newreply', 'newreply'); $VB_API_WHITELIST['show'][] = 'threadid'; $VB_API_WHITELIST['show'][] = 'postid'; /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('blog_post', 'comment'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('inlinemod', 'mergeposts'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/
<?php /*======================================================================*\ || #################################################################### || || # vBulletin 4.2.2 Alpha 1 - Licence Number VBFSA2W3VC || # ---------------------------------------------------------------- # || || # Copyright �2000-2013 vBulletin Solutions Inc. All Rights Reserved. || || # This file may not be redistributed in whole or significant part. # || || # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # || || # http://www.vbulletin.com | http://www.vbulletin.com/license.html # || || #################################################################### || \*======================================================================*/ if (!VB_API) { die; } loadAPI('profile', 'editsignature'); /*======================================================================*\ || #################################################################### || # Downloaded: 03:13, Sat Sep 7th 2013 || # CVS: $RCSfile$ - $Revision: 35584 $ || #################################################################### \*======================================================================*/