403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/chatme24.com/wwwroot/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot//forum_edit_forum.php
<?php
/* (C) Websplosion LLC, 2001-2021

IMPORTANT: This is a commercial software product
and any kind of using it must agree to the Websplosion's license agreement.
It can be found at http://www.chameleonsocial.com/license.doc

This notice may not be removed from the source code. */


$area = "login";
include("./_include/core/main_start.php");
include("./_include/current/forum.php");

payment_check('forum');

class CForumTopics extends CHtmlBlock
{
	var $error = false;
	var $forum_title_error = '';
	var $forum_description_error = '';
	var $forum_message_error = '';

	function action()
	{
		global $g;
		global $l;
		global $g_user;
		global $g_info;

        if(!user_has_role_admin_view())
            redirect("forum.php");

        $forum_id = get_param("forum_id");
        $forum = CForumForum::retrieve_by_id($forum_id);
        if(!$forum)
            redirect("forum.php");

        $cmd = get_param("cmd");
		if($cmd == 'post')
		{
	        $title       = get_param("forum_title", "");
	        $description = get_param("forum_description", "");

	        if(!$title)
	        {
	        	$this->error = true;
	        	$this->forum_title_error = l('required_field');
	        }

	        if(!$this->error)
	        {
	        	$forum['title'] = $title;
	        	$forum['description'] = $description;

	        	if(user_has_role_admin_edit())
                    CForumForum::save($forum);
	        	redirect('forum_forum.php?forum_id=' . $forum['id']);
	        }
		}
	}

	function parseBlock(&$html)
	{
		global $g;
		global $g_user;

        $forum_id = get_param("forum_id");
        $html->setvar("forum_id", $forum_id);
        $forum = CForumForum::retrieve_by_id($forum_id);

        $title       = get_param("forum_title", $forum['title']);
        $description = get_param("forum_description", $forum['description']);

        $html->setvar('forum_title', l($title, false, 'forum_title'));
        $html->setvar('forum_description',l($description, false, 'forum_description'));

        $html->setvar("forum_title_error", $this->forum_title_error);
        $html->setvar("forum_description_error", $this->forum_description_error);

        $category_id = get_param("category_id");
        $html->setvar('category_id', $category_id);

		parent::parseBlock($html);
	}
}

$g['main']['title'] = $g['main']['title'] . ' :: ' . l('edit_forum');
$g['main']['description'] = $g['main']['title'];

$page = new CForumTopics("", $g['tmpl']['dir_tmpl_main'] . "forum_edit_forum.html");
$header = new CHeader("header", $g['tmpl']['dir_tmpl_main'] . "_header.html");
$page->add($header);
$footer = new CFooter("footer", $g['tmpl']['dir_tmpl_main'] . "_footer.html");
$page->add($footer);

include("./_include/core/main_close.php");

?>

Youez - 2016 - github.com/yon3zu
LinuXploit