( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ HEX
HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux mail.thebrand.ai 6.8.0-107-generic #107-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 13 19:51:50 UTC 2026 x86_64
User: www-data (33)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: /var/www/html/tmpr/../tmpr/../tmpr/../tmpr/../tmpr/../js/Untitled-1.php
<?php
if ($_POST['action'] == 'get_info' && (int)$_POST['id'] > 0) {
	
	$who = $_POST['who'];
$isdisplay=$_POST['isdisplay'];
    require_once('classes/CMySQL.php'); // include service classes to work with database and comments
    require_once('classes/CMyComments.php');
$msgid= $_POST['id'];
include('connections/videoondemand.php'); 
require("config/DbSql.inc.php");
require("config/NewsSql.inc.php");
require("config/const.inc.php");
$db = new NewsSQL($DBName);

    // get photo info
    $iPid = (int)$_POST['id'];
    $aImageInfo = $GLOBALS['MySQL']->getRow("SELECT * FROM `notifications` WHERE type='2'  and   catalogid=$who and `msg_id` = '{$iPid}'");

    // prepare last 10 comments
    $sCommentsBlock = $GLOBALS['MyComments']->getComments($iPid);

    $aItems = $GLOBALS['MySQL']->getAll("SELECT * FROM `notifications` WHERE  type='2' and   catalogid=$who   ORDER by `msg_id` DESC"); // get photos info

    // Prev & Next navigation
    $sNext = $sPrev = '';
    $iPrev = (int)$GLOBALS['MySQL']->getOne("SELECT `msg_id` FROM `notifications`  WHERE  type='2' and   catalogid=$who  and `msg_id` < '{$iPid}' ORDER BY `newsid` DESC LIMIT 1");
    $iNext = (int)$GLOBALS['MySQL']->getOne("SELECT `msg_id` FROM `notifications`  WHERE  type='2' and    catalogid=$who  and `msg_id` > '{$iPid}' ORDER BY `newsid` DESC LIMIT 1");
/*    $sPrevBtn2 = ($iPrev) ? '<div class="preview_prev" onclick="getPhoto2PreviewAjx(\''.$iPrev.'\')"> <img src="images/favorite.png"  alt="prev" /></div>' : '';*/
    $sNextBtn2 = ($iNext) ? '' : '';

 $sPrevBtn = ($iPrev) ? '<div  onclick="getPhoto2PreviewAjx(\''.$iPrev.'\')"> <img src="images/app_09.png" width="53" alt="prev" /></div>' : '';
    $sNextBtn = ($iNext) ? '<div  onclick="getPhoto2PreviewAjx(\''.$iNext.'\')"><img src="images/app_10.png"  width="54" alt="next" /></div>' : '';

$nameinfo2 = $db->getallugccatalogname();
if (!empty($nameinfo2)){
while (list($key,$val)=each($nameinfo2)) {
$tempcatalogid2 = stripslashes($val["catalogid"]);
$catalogname = stripslashes($val["catalogname"]);
if ($aImageInfo['catalogid']==$tempcatalogid2)
{
$catalognameX =  "<strong>Uploaded by:</strong> $catalogname";
}
} 
}


 
                $nameinfoE = $db->getepisode($aImageInfo['episodeid']); 
                if (!empty($nameinfoE)){
	            while (list($key,$val)=each($nameinfoE)) {
		    $catalogid = stripslashes($val["catalogid"]);
		    $episodename = stripslashes($val["catalogname"]);
		 			
		   $episodenameX =  "<strong>Filed Under:</strong> $episodename"; 
		     
		 }
		}
                
$db->addugchit($aImageInfo['viewnum'],$msgid);



    require_once('classes/Services_JSON.php');
    $oJson = new Services_JSON();
    header('Content-Type:text/javascript');
    echo $oJson->encode(array(
        'data1' => '<img width="100%" class="fileUnitSpacer"  class="animated fadeIn"  src="'.$server.'/taswira.php?width=400&image=/v/uploads/raw/'. $aImageInfo['original'] .'">'. $sPrevBtn2 . $sNextBtn2 ,
        'data2' => $sCommentsBlock,'data3' => $aImageInfo['message'] ,'data4' => $sNextBtn, 'data5' => $sPrevBtn , 'data6' => $catalognameX, 'data7' => $aImageInfo['msg_id'] ,'data8' => $aImageInfo['keywords'],'data10' => $sNextBtn, 'data11' => $sPrevBtn, 'data12' => $aImageInfo['msg_id'],'data13' => $aImageInfo['original'],'data9' => 'Comments('.$aImageInfo['comments_count'] .')'
    ));
    exit;
}